[U-Boot] [bug report] sunxi: booting from eMMC
Alexandr Bochkarev
aneox.inbox at gmail.com
Wed Oct 12 14:57:43 CEST 2016
Now i found and add 2 in mmc_extra_slot_number config, compile and burn on marsboard emmc(sdc2)
Got absolutely the same output, as from my board, except mmc number
U-Boot SPL 2016.11-rc1-g4dc34be-dirty (Oct 12 2016 - 18:48:07)
DRAM: 1024 MiB
CPU: 912000000Hz, AXI/AHB/APB: 3/2/2
Trying to boot from MMC2
CMD_SEND:0
..ARG... 0x00000000
..MMC_RSP_NONE
CMD_SEND:8
..ARG... 0x00000000
..RET... -110
CMD_SEND:55
..ARG... 0x00000000
..RET... -110
CMD_SEND:0
..ARG... 0x00000000
..MMC_RSP_NONE
CMD_SEND:1
..ARG... 0x00000000
..MMC_RSP_R3,4.. 0x00000000
CMD_SEND:1
..ARG... 0x00000000
..MMC_RSP_R3,4.. 0x00000000
CMD_SEND:0
..ARG... 0x00000000
..MMC_RSP_NONE
CMD_SEND:1
..ARG... 0x00000000
..MMC_RSP_R3,4.. 0x00000000
CMD_SEND:1
..ARG... 0x00000000
..MMC_RSP_R3,4.. 0x00000000
CMD_SEND:2
..ARG... 0x00000000
..MMC_RSP_R2.. 0x00000000
.. .. 0x00000000
.. .. 0x00000000
.. .. 0x00000000
.....DUMPING DATA
.....000 - 00 00 00 00
.....004 - 00 00 00 00
.....008 - 00 00 00 00
.....012 - 00 00 00 00
CMD_SEND:3
..ARG... 0x00000000
..MMC_RSP_R1,5,6,7 . 0x00000000
CMD_SEND:9
..ARG... 0x00000000
..MMC_RSP_R2.. 0x00000000
.. .. 0x00000000
.. .. 0x00000000
.. .. 0x00000000
.....DUMPING DATA
.....000 - 00 00 00 00
.....004 - 00 00 00 00
.....008 - 00 00 00 00
.....012 - 00 00 00 00
CMD_SEND:13
..ARG... 0x00000000
..MMC_RSP_R1,5,6,7 . 0x00000000
CURR STATE:3
CMD_SEND:7
..ARG... 0x00000000
..MMC_RSP_R1,5,6,7 . 0x00000000
CMD_SEND:8
..ARG... 0x00000000
..MMC_RSP_R1,5,6,7 . 0x00000000
CMD_SEND:8
..ARG... 0x00000000
..MMC_RSP_R1,5,6,7 . 0x00000000
CMD_SEND:6
..ARG... 0x00000000
..MMC_RSP_R1b.. 0x00000000
CMD_SEND:13
..ARG... 0x00000000
..MMC_RSP_R1,5,6,7 . 0x00000000
CURR STATE:4
CMD_SEND:8
..ARG... 0x00000000
..MMC_RSP_R1,5,6,7 . 0x00000000
CMD_SEND:6
..ARG... 0x00000000
..RET... -110
CMD_SEND:16
..ARG... 0x00000000
..MMC_RSP_R1,5,6,7 . 0x00000000
CMD_SEND:17
..ARG... 0x00000000
..RET... -110
test 1 cmdidx: 17
mmc_bread: Failed to read blocks
mmc_load_image_raw_sector: mmc block read error
SPL: failed to boot from all boot devices
### ERROR ### Please RESET the board ###
> 12 окт. 2016 г., в 18:42, Alexandr Bochkarev <aneox.inbox at gmail.com> написал(а):
>
>
>> I understood more clearly...Your target for using is sdc0(eMMC), right?
> Yes
>
> Now i have checked det pin on my board. I use standart A20-OLinuXino-Lime_defconfig with my board.
> So PH1 is pull-fown. No changes if just remove det pin
>
> U-Boot SPL 2016.11-rc1-g4dc34be-dirty (Oct 12 2016 - 18:12:37)
> DRAM: 512 MiB
> Failed to set core voltage! Can't set CPU frequency
> Trying to boot from MMC1
> mmc_bread: Failed to read blocks
> mmc_load_image_raw_sector: mmc block read error
> SPL: failed to boot from all boot devices
> ### ERROR ### Please RESET the board ###
>
>
>
> Then , i removed det pin from config and build again. Burn it to emmc(sdc2) on marsboard and tried to boot this board with mainline u-boot, not 2014 as before and get this.
>
> U-Boot SPL 2016.11-rc1-g4dc34be-dirty (Oct 12 2016 - 18:24:58)
> DRAM: 1024 MiB
> CPU: 912000000Hz, AXI/AHB/APB: 3/2/2
> Trying to boot from MMC2
> MMC Device 1 not found
> spl: could not find mmc device. error: -19
> SPL: failed to boot from all boot devices
> ### ERROR ### Please RESET the board ###
>
> Something new, error code is 19 ) Looks like it see that no card on sdc0 and found emmc on sdc2, but fails.
> Same code on my board never tries mmc2, so it part works
>
>> I will try to check codes relevant to sunxi..
>
> I hope on your help, thank you very much
>
>
More information about the U-Boot
mailing list