Failed to flash boot.img and userdata.img. why..?

Hi guys,
I failed to flash boot.img, userdata.img.
And I don’t know why. Please give me some help :sweat_smile:

I followed this guide

I flashed all the binaries successfully (super,cache,recovery…) except boot.img, userdata.img.

My build commands of aosp are below :

$ repo init -u https://android.googlesource.com/platform/manifest -b master
$ repo sync -j8
$ . ./build/envsetup.sh
$ lunch yukawa-userdebug
$ make TARGET_USE_TABLET_LAUNCHER=true TARGET_VIM3L=true TARGET_KERNEL_USE=5.4 -j24

And these are my error logs :

  1. boot.img
$ sudo fastboot flash boot boot.img
fastboot: error: boot partition is smaller than boot image
  1. userdata.img
$ sudo fastboot flash userdata userdata.img
Sending 'userdata' (128 KB)                        OKAY [  0.018s]
Writing 'userdata'                                 FAILED (remote: 'cannot find partition')

Is there anybody who can help me ?

stumbled upon the same issue too while testing :sweat_smile:

it seems the AOSP partition size is slightly different from the standard android image from khadas,

I believe you can only use the AOSP image if you pack it up into a full image, and flash it with Amlogic USB burning tool…

1 Like

@speed.eom @Terry @jasonl Please help about this question…

1 Like

@speed.eom exec fastboot oem format ,then flash boot.img

1 Like

I just fix my problem.
The problem is that I reset my board after flashing android bootloader.
So I just executed fastboot commands without reset, everything is fine!

Thanks for you guy’s help !