AnsweredAssumed Answered

Can't mmc erase boot partition

Question asked by fulin chen on Sep 29, 2016
Latest reply on Oct 7, 2016 by fulin chen

Hi,

i have a starnge problem, i have mmc erase uboot in boot partition, but when i reboot, it is still running, where is the uboot come from? look at this as follow:

U-Boot 2015.04-14475-g75887f8-dirty (Sep 29 2016 - 14:07:15)

 

CPU:   Freescale i.MX6Q rev1.5 at 792 MHz
CPU:   Temperature 41 C
Reset cause: POR
Board: MX6-SabreSD
I2C:   ready
DRAM:  3.8 GiB
PMIC:  PFUZE100 ID=0x10
MMC:   FSL_SDHC: 0, FSL_SDHC: 1, FSL_SDHC: 2, FSL_SDHC: 3
mmc get env dev=0
*** Warning - bad CRC, using default environment

 

No panel detected: default to SAMSUNG-LTM230HL08
Display: SAMSUNG-LTM230HL08 (1920x1080)
In:    serial
Out:   serial
Err:   serial
check_and_clean: reg 0, flag_set 0
Fastboot: Normal
flash target is MMC:0
Bad partition index:1 for partition:boot
Bad partition index:2 for partition:recovery
Bad partition index:5 for partition:system
Bad partition index:4 for partition:data
Net:   Phy 1 not found
PHY reset timed out
FEC [PRIME]
Normal Boot
Hit any key to stop autoboot:  0
=>
=>
=>
=>
=>
=> mmc erase 2 10000

 

MMC erase: dev # 0, block # 2, count 65536 ...

 

Caution! Your devices Erase group is 0x400
The erase range would be change to 0x0~0x103ff

 

65536 blocks erased: OK
=> mmc read 0x12000000 2 1000

 

MMC read: dev # 0, block # 2, count 4096 ... 4096 blocks read: OK
=> md 0x12000000
12000000: 00000000 00000000 00000000 00000000    ................
12000010: 00000000 00000000 00000000 00000000    ................
12000020: 00000000 00000000 00000000 00000000    ................
12000030: 00000000 00000000 00000000 00000000    ................
12000040: 00000000 00000000 00000000 00000000    ................
12000050: 00000000 00000000 00000000 00000000    ................
12000060: 00000000 00000000 00000000 00000000    ................
12000070: 00000000 00000000 00000000 00000000    ................
12000080: 00000000 00000000 00000000 00000000    ................
12000090: 00000000 00000000 00000000 00000000    ................
120000a0: 00000000 00000000 00000000 00000000    ................
120000b0: 00000000 00000000 00000000 00000000    ................
120000c0: 00000000 00000000 00000000 00000000    ................
120000d0: 00000000 00000000 00000000 00000000    ................
120000e0: 00000000 00000000 00000000 00000000    ................
120000f0: 00000000 00000000 00000000 00000000    ................
=>
12000100: 00000000 00000000 00000000 00000000    ................
12000110: 00000000 00000000 00000000 00000000    ................
12000120: 00000000 00000000 00000000 00000000    ................
12000130: 00000000 00000000 00000000 00000000    ................
12000140: 00000000 00000000 00000000 00000000    ................
12000150: 00000000 00000000 00000000 00000000    ................
12000160: 00000000 00000000 00000000 00000000    ................
12000170: 00000000 00000000 00000000 00000000    ................
12000180: 00000000 00000000 00000000 00000000    ................
12000190: 00000000 00000000 00000000 00000000    ................
120001a0: 00000000 00000000 00000000 00000000    ................
120001b0: 00000000 00000000 00000000 00000000    ................
120001c0: 00000000 00000000 00000000 00000000    ................
120001d0: 00000000 00000000 00000000 00000000    ................
120001e0: 00000000 00000000 00000000 00000000    ................
120001f0: 00000000 00000000 00000000 00000000    ................
=>
12000200: 00000000 00000000 00000000 00000000    ................
12000210: 00000000 00000000 00000000 00000000    ................
12000220: 00000000 00000000 00000000 00000000    ................
12000230: 00000000 00000000 00000000 00000000    ................
12000240: 00000000 00000000 00000000 00000000    ................
12000250: 00000000 00000000 00000000 00000000    ................
12000260: 00000000 00000000 00000000 00000000    ................
12000270: 00000000 00000000 00000000 00000000    ................
12000280: 00000000 00000000 00000000 00000000    ................
12000290: 00000000 00000000 00000000 00000000    ................
120002a0: 00000000 00000000 00000000 00000000    ................
120002b0: 00000000 00000000 00000000 00000000    ................
120002c0: 00000000 00000000 00000000 00000000    ................
120002d0: 00000000 00000000 00000000 00000000    ................
120002e0: 00000000 00000000 00000000 00000000    ................
120002f0: 00000000 00000000 00000000 00000000    ................
=>
12000300: 00000000 00000000 00000000 00000000    ................
12000310: 00000000 00000000 00000000 00000000    ................
12000320: 00000000 00000000 00000000 00000000    ................
12000330: 00000000 00000000 00000000 00000000    ................
12000340: 00000000 00000000 00000000 00000000    ................
12000350: 00000000 00000000 00000000 00000000    ................
12000360: 00000000 00000000 00000000 00000000    ................
12000370: 00000000 00000000 00000000 00000000    ................
12000380: 00000000 00000000 00000000 00000000    ................
12000390: 00000000 00000000 00000000 00000000    ................
120003a0: 00000000 00000000 00000000 00000000    ................
120003b0: 00000000 00000000 00000000 00000000    ................
120003c0: 00000000 00000000 00000000 00000000    ................
120003d0: 00000000 00000000 00000000 00000000    ................
120003e0: 00000000 00000000 00000000 00000000    ................
120003f0: 00000000 00000000 00000000 00000000    ................

 

it is become 0 at offset 1k in emmc device, which was uboot placed. but when i shutdown and shutup, it still runs:

 

12000300: 00000000 00000000 00000000 00000000    ................
12000310: 00000000 00000000 00000000 00000000    ................
12000320: 00000000 00000000 00000000 00000000    ................
12000330: 00000000 00000000 00000000 00000000    ................
12000340: 00000000 00000000 00000000 00000000    ................
12000350: 00000000 00000000 00000000 00000000    ................
12000360: 00000000 00000000 00000000 00000000    ................
12000370: 00000000 00000000 00000000 00000000    ................
12000380: 00000000 00000000 00000000 00000000    ................
12000390: 00000000 00000000 00000000 00000000    ................
120003a0: 00000000 00000000 00000000 00000000    ................
120003b0: 00000000 00000000 00000000 00000000    ................
120003c0: 00000000 00000000 00000000 00000000    ................
120003d0: 00000000 00000000 00000000 00000000    ................
120003e0: 00000000 00000000 00000000 00000000    ................
120003f0: 00000000 00000000 00000000 00000000    ................
=>

 

U-Boot 2015.04-14475-g75887f8-dirty (Sep 29 2016 - 14:07:15)

 

CPU:   Freescale i.MX6Q rev1.5 at 792 MHz
CPU:   Temperature 41 C
Reset cause: POR
Board: MX6-SabreSD
I2C:   ready
DRAM:  3.8 GiB
PMIC:  PFUZE100 ID=0x10
MMC:   FSL_SDHC: 0, FSL_SDHC: 1, FSL_SDHC: 2, FSL_SDHC: 3
mmc get env dev=0
*** Warning - bad CRC, using default environment

 

No panel detected: default to SAMSUNG-LTM230HL08
Display: SAMSUNG-LTM230HL08 (1920x1080)
In:    serial
Out:   serial
Err:   serial
check_and_clean: reg 0, flag_set 0
Fastboot: Normal
flash target is MMC:0
Bad partition index:1 for partition:boot
Bad partition index:2 for partition:recovery
Bad partition index:5 for partition:system
Bad partition index:4 for partition:data
Net:   Phy 1 not found
PHY reset timed out
FEC [PRIME]
Normal Boot
Hit any key to stop autoboot:  0
boota mmc0
boota: bad boot image magic

 

Where is the uboot come from? is it in recovery.img

Outcomes