Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to boot Linux from EMMC? #15

Open
BuddyZhang1 opened this issue Dec 20, 2016 · 3 comments
Open

How to boot Linux from EMMC? #15

BuddyZhang1 opened this issue Dec 20, 2016 · 3 comments

Comments

@BuddyZhang1
Copy link
Contributor

BuddyZhang1 commented Dec 20, 2016

On new board OrangePi Zero plus2 base on H5, OrangePi offer a slice of EMMC.
User can use EMMC as disk or boot system from EMMC. Now, I'm doing correlative work to boot from
EMMC, and I have wrote some scripts to utilize EMMC as disk, it can store data.
But I got some error when I boot system from EMMC, I can't fix this error:

boot0
When I boot boot0 from EMMC, the system can't work well, dead follow information:

HELLO! BOOT0 is starting!
boot0 commit : e49ebc044423f7912cddca46b4670b1891fe39d5
 
boot0 version : 4.0
set pll start
set pll end
rtc[0] value = 0x00000000
rtc[1] value = 0x00000000
rtc[2] value = 0x00000000
rtc[3] value = 0x00000000
rtc[4] value = 0x00000000
rtc[5] value = 0x00000000
DRAM BOOT DRIVE INFO: V0.6
the chip id is 0x00000001
the chip id is 0x00000001
the chip id is 0x00000001
the chip id is 0x00000001
the chip id is 0x00000001
axp not exist
DRAM CLK =672 MHZ
DRAM Type =3 (2:DDR2,3:DDR3,6:LPDDR2,7:LPDDR3)
DRAM zq value: 0x003b3bf9
DRAM SIZE =512 M
DRAM simple test OK.
dram size =512
card no is 2
sdcard 2 line count 8
[mmc]: mmc driver ver 2016-03-15 20:40
[mmc]: Wrong media type 0x00000000
[mmc]: ***Try SD card 2***
[mmc]: mmc 2 cmd 8 timeout, err 00000100
[mmc]: mmc 2 cmd 8 err 00000100
[mmc]: mmc 2 send if cond failed
[mmc]: mmc 2 cmd 55 timeout, err 00000100
[mmc]: mmc 2 cmd 55 err 00000100
[mmc]: mmc 2 send app cmd failed
[mmc]: ***Try MMC card 2***
[mmc]: MMC 5.0
[mmc]: HSDDR52/DDR50 8 bit
[mmc]: 50000000 Hz
[mmc]: 7456 MB
[mmc]: ***SD/MMC 2 init OK!!!***
[mmc]: mmc 2 data timeout, err 00000080
[mmc]: mmc 2 cmd 18 err 00000080
[mmc]: mmc 2  read blcok failed
[mmc]: mmc 2 block read failed
PANIC : sunxi_flash_init() error --1--
Ready to disable icache.

..... What should I do to fix this error _

@BuddyZhang1
Copy link
Contributor Author

This log is from Android, the system can boot from EMMC

HELLO! BOOT0 is starting!
boot0 commit : 8 
boot0 version : 4.0
set pll start
set pll end
rtc[0] value = 0x00000000
rtc[1] value = 0x00000000
rtc[2] value = 0x00000000
rtc[3] value = 0x00000000
rtc[4] value = 0x00000000
rtc[5] value = 0x00000000
DRAM BOOT DRIVE INFO: V0.6
the chip id is 0x00000001
the chip id is 0x00000001
the chip id is 0x00000001
the chip id is 0x00000001
the chip id is 0x00000001
axp not exist
DRAM CLK =672 MHZ
DRAM Type =3 (2:DDR2,3:DDR3,6:LPDDR2,7:LPDDR3)
DRAM zq value: 0x003b3bf9
DRAM SIZE =512 M
DRAM simple test OK.
dram size =512
card no is 2
sdcard 2 line count 8
[mmc]: mmc driver ver 2016-03-15 20:40
[mmc]: ***Try MMC card 2***
[mmc]: MMC 5.0
[mmc]: HSDDR52/DDR50 8 bit
[mmc]: 50000000 Hz
[mmc]: 7456 MB
[mmc]: ***SD/MMC 2 init OK!!!***
sum=9a394ca1
src_sum=9a394ca1
read boot-pkg from emmc 32800 sector
Succeed in loading uboot from sdmmc flash.
Entry_name        = u-boot
Entry_name        = monitor
Entry_name        = scp

@Shaggy013
Copy link

i'm no expert of things but did you looked for example at a fex from a board with mmc ?

just looked at the oppclus fex and is there nand ?

@BuddyZhang1
Copy link
Contributor Author

@Shaggy013
I fix some update error. It should be mmc not nand.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants