Fastboot hangs when transfer system.img

96boards

#1

I’ve added my application to system and build sdk to get boot.img & system.img
When I use fastboot flash -w system out/target/product/hikey/system.img, the host hangs like

root@adam-ThinkPad-T430s:/home/adam/8.0# fastboot flash -w system system.img
target reported max download size of 134217728 bytes
wiping userdata…
Couldn’t parse erase-block-size ‘0x’.
Couldn’t parse logical-block-size ‘0x’.
Creating filesystem with parameters:
Size: 5588889600
Block size: 4096
Blocks per group: 32768
Inodes per group: 8128
Inode size: 256
Journal blocks: 21319
Label:
Blocks: 1364475
Block groups: 42
Reserved block group size: 335
Created filesystem with 11/341376 inodes and 45438/1364475 blocks
wiping cache…
Couldn’t parse erase-block-size ‘0x’.
Couldn’t parse logical-block-size ‘0x’.
Creating filesystem with parameters:
Size: 268435456
Block size: 4096
Blocks per group: 32768
Inodes per group: 8192
Inode size: 256
Journal blocks: 1024
Label:
Blocks: 65536
Block groups: 2
Reserved block group size: 15
Created filesystem with 11/16384 inodes and 2089/65536 blocks
erasing ‘system’…
OKAY [ 0.003s]
sending sparse ‘system’ 1/8 (131071 KB)…
OKAY [ 4.471s]
writing ‘system’ 1/8…
OKAY [ 4.378s]
sending sparse ‘system’ 2/8 (130970 KB)…
OKAY [ 4.405s]
writing ‘system’ 2/8…
OKAY [ 4.117s]
sending sparse ‘system’ 3/8 (130886 KB)…
OKAY [ 4.378s]
writing ‘system’ 3/8…
OKAY [ 3.542s]
sending sparse ‘system’ 4/8 (115628 KB)…
OKAY [ 3.916s]
writing ‘system’ 4/8…
OKAY [ 3.575s]
sending sparse ‘system’ 5/8 (130905 KB)…
OKAY [ 4.384s]
writing ‘system’ 5/8…
OKAY [ 3.511s]
sending sparse ‘system’ 6/8 (129398 KB)…

.
On hikey, log shows

Erasing partition system
Downloading 134216980 bytes
134216980 / 134216980 bytes downloaded (100%)
Flashing partition system
618 / 618 chunks written (100%)
Done.
Downloading 134113572 bytes
134113572 / 134113572 bytes downloaded (100%)
Flashing partition system
534 / 534 chunks written (100%)
Done.
Downloading 134027296 bytes
134027296 / 134027296 bytes downloaded (100%)
Flashing partition system
171 / 171 chunks written (100%)
Done.
Downloading 118403684 bytes
118403684 / 118403684 bytes downloaded (100%)
Flashing partition system
390 / 390 chunks written (100%)
Done.
Downloading 134047536 bytes
134047536 / 134047536 bytes downloaded (100%)
Flashing partition system
151 / 151 chunks written (100%)
Done.
Downloading 132503584 bytes
132488714 / 132503584 bytes downloaded (99%)

Does anyone has any idea about this situation?
Thanks


#2

Are you flashing via fastboot mode (jumpers 1-2 5-6 connected)?
If so, please try flashing again via recovery mode (jumpers 1-2 3-4 connected).


#3

Hi vchong,

Thanks for your help, but it is not working.

I cannot let hikey into recovery mode (jumpers 1-2 3-4 connected).
When (jumpers 1-2 3-4 connected), hikey cannot power on (power indicator led is off). Power switch(push button) does not work too.

Besides, how should I burn android without fastboot under recovery mode ?

Reagrds,
Adam


#4

You need to run hisi-idt.py first from recovery before you can use fastboot. See https://github.com/96boards/documentation/blob/master/ConsumerEdition/HiKey/Installation/BoardRecovery.md.