AnsweredAssumed Answered

Cannot start recovery - bad boot image magic

Question asked by Krzysztof Szałach on Jun 22, 2015
Latest reply on Jun 29, 2015 by CarlosCasillas

Hi!

 

I'm trying to run android recovery. To do this I:

- start Android normally

- exec "reboot recovery"

- u-boot detects recovery mode

Recovery command file founded!

recovery on bootdev: 8

setup env for recovery..

- trying to read recovery image from nand:

NAND read: device 0 offset 0x2000000, size 0x600000

   6291456 bytes read: OK

- but then:

booti: bad boot image magic

 

I had this issue long time ago, and problem was related to flashing u-boot for mmc, instead of u-boot for nand. But now, as Android starts properly, u-boot is good. So what can be other issue? My bootcmd for recovery is:

bootcmd_android_Recovery=nand read 0x12800000 0x2000000 0x600000;booti 0x1280000

 

While booting up normally, there are some informations from mtdparts:

Creating 4 MTD partitions on "gpmi-nand":

0x000000000000-0x000000400000 : "bootloader"

0x000000400000-0x000001400000 : "bootimg"

0x000001400000-0x000003000000 : "recovery"

0x000003000000-0x000020000000 : "root"

 

And when booting normally, in u-boot there is:

NAND read: device 0 offset 0x400000, size 0x1000000

16777216 bytes read: OK

kernel   @ 10808000 (4972480)

ramdisk  @ 11800000 (497048)

 

This corresponds to 0x000000400000-0x000001400000 : "bootimg".

 

So why when booting up recovery, those parameters doesn't correspond to anything? I've tried to run from u-boot:

nand read 0x12800000 0x1400000 0x1C00000;booti 0x12800000

 

And then something starts - it looks like normal android execution, but ends up with open android with red exclamation mark on the screen beeing displayed...

Outcomes