Fastboot flash invalid partition

When I use fastboot to recovery the hikey, I found a invalid partion error like below:
sudo fastboot flash fastboot fip.bin

target reported max download size of 268435456 bytes
sending ‘fastboot’ (1155 KB)…
FAILED (remote: invalid partition)
finished. total time: 0.003s

I think it maybe a flash partition error. If there a way to erase all the flash storage?
Or anyone else faces this problem before?

I have other Hikey, they can us fastboot normally

Hi Tony,

Have you tried flashing a ptable image first? And perhaps a reboot after that as well just to be sure.

Yes, I flashed the ptable and it also shows successful

of course, I do flash ptable first, and the ptable flash is successful.

------------------ Original ------------------

There is a script under device/linaro/hikey/installer called flash-all.sh

Use that, it will take care of everything.

Hi Tony,

Any progress on your issue? Maybe your ptable file is corrupted and you can try downloading it again? Or try a recovery session, i.e. start all over from the beginning?

Hello,

I also encounter a particiton issue with hikey board, following instaructions from
http://wiki.lemaker.org/HiKey(LeMaker_version):Quick_Start/zh-cn

I have been able to execute
python hisi-idt.py -d /dev/ttyUSB0 --img1=l-loader.bin

now my board is detected by fastboot.

But as soon as I try to flash ptable, I have an error.
fastboot flash ptable ptable-aosp-8g.img
sending ‘ptable’ (17 KB)…
FAILED (remote: invalid partition)
finished. total time: 0.000s

Any idea to solve this issue ?

For information I have not been able to create the file
/etc/udev/rules.d/51-android.rules

Thanks in advance for your help !