Hi,

The actual logs are almost always useful, along with the problem
description.

>From the error message, it looks like there could be a problem with
the page size used by your images.
Check the page size of the images that you can flash correctly, and
confirm that you are using the same value with your images.
The default is 2048, and fastboot has an option to specify it in case
it is different.
So I guess the size is expected to be a multiple of 2048+64(?)=2112
(probably.)
If you are setting the size to a fixed value, then it might be a good
idea to check if it is aligned to the value that is printed in the
log.

//Just a sample from a nand.c online. You need to check your
corresponding file
    unsigned wsize = 2048 + extra_per_page;
:
        if(bytes < wsize) {
            dprintf("flash_write_image: image undersized (%d < %d)\n",
bytes, wsize);
            return -1;


On Dec 1, 5:59 pm, Cheryala Venu Madhav <[email protected]>
wrote:
> Hi All,
> I am facing a strange problem with my build system in Android.
>
> I have compiled the code for my target device and system.img and
> userdata.img are generated. When I try to flash the system.img and
> userdata.img, I am facing Issue with fastboot_write_image.
>
> "fastboot flash system system.img" fails with error the "image undersized"
>
> I dont see any problems with my bootloader as others can flash the images
> without any issues.
>
> Appreciate your early response.
>
> --
> Thanks
> Venumadhav

-- 
unsubscribe: [email protected]
website: http://groups.google.com/group/android-porting

Reply via email to