OpenMediaVault (PINE A64(+)) 4.13.10 [Nov 21] | OpenMediaVault (A64-LTS / SOPINE) 4.13.10 [Nov 21] | Q4OS (PINE A64(+)) 2.4-r1 [Nov 10] | Volumio (ROCK64) 2.299 [Oct 30] | Q4OS (Pinebook) 2.4-r1 [Oct 30] | DietPi (ROCK64) v156 [Oct 24] | Armbian - Xenial Desktop (Pinebook) 5.34 [Oct 24] | motionEyeOS (PINE A64(+)) 20171003 [Oct 23] | Android Images (ROCK64) 20171012 [Oct 23]

Getting Started | Visit the WIKI | IRC Logs | Forum Rules/Policy


[SOLVED] Boot from SD works, no boot with eMMC
#1
[EDIT] It seems I got my post mixed up, so from the beginning:

I try to get Volumio running an a SOPINE but only managed with an SD card.
I know that boot0 has to be swapped for boot0so and uboot with a new version with the sopine device tree.
For the SD card that seems ok, but eMMC won't boot.
Then I tried a community ubuntu image and get this:
Code:
HELLO! BOOT0 is starting!
boot0 commit : 43e77041d17badbf8be959b8db97232c5e3a0a75

boot0 version : 4.0.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 driver version: V1.1
rsb_send_initseq: rsb clk 400Khz -> 3Mhz
PMU: AXP81X
ddr voltage = 1280 mv
DRAM Type = 7 (2:DDR2,3:DDR3,6:LPDDR2,7:LPDDR3)
DRAM clk = 552 MHz
DRAM zq value: 003b3bdd
DRAM dual rank full DQ gate training OK
DRAM size = 2048 MB
DRAM init ok
dram size =2048
card boot number = 2, boot0 copy = 0
card no is 2
sdcard 2 line count 8
[mmc]: mmc driver ver 2015-05-08 20:06
[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]: 14800 MB
[mmc]: ***SD/MMC 2 init OK!!!***
sdcard 2 init ok
The size of uboot is 000e8000.
[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
Fail in reading uboot head.
Ready to disable icache.

Testing with a Volumio image and eMMC makes a slight difference, it seems to initialise but still fails
This image one was built by me using longsleep's BSP:

Code:
boot0 version : 4.0.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 driver version: V1.1
rsb_send_initseq: rsb clk 400Khz -> 3Mhz
PMU: AXP81X
ddr voltage = 1280 mv
DRAM Type = 7 (2:DDR2,3:DDR3,6:LPDDR2,7:LPDDR3)
DRAM clk = 552 MHz
DRAM zq value: 003b3bdd
DRAM dual rank full DQ gate training OK
DRAM size = 2048 MB
DRAM init ok
dram size =2048
card boot number = 2, boot0 copy = 0
card no is 2
sdcard 2 line count 8
[mmc]: mmc driver ver 2015-05-08 20:06
[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]: 14800 MB
[mmc]: ***SD/MMC 2 init OK!!!***
sdcard 2 init ok
The size of uboot is 000e8000.
[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
Fail in reading uboot head.
Ready to disable icache.
Booting from SD gives me this:
Code:
HELLO! BOOT0 is starting!
boot0 commit : 43e77041d17badbf8be959b8db97232c5e3a0a75

boot0 version : 4.0.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 driver version: V1.1
rsb_send_initseq: rsb clk 400Khz -> 3Mhz
PMU: AXP81X
ddr voltage = 1280 mv
DRAM Type = 7 (2:DDR2,3:DDR3,6:LPDDR2,7:LPDDR3)
DRAM clk = 552 MHz
DRAM zq value: 003b3bdd
DRAM dual rank full DQ gate training OK
DRAM size = 2048 MB
DRAM init ok
dram size =2048
card boot number = 0, boot0 copy = 0
card no is 0
sdcard 0 line count 4
[mmc]: mmc driver ver 2015-05-08 20:06
[mmc]: sdc0 spd mode error, 2
[mmc]: Wrong media type 0x00000000
[mmc]: ***Try SD card 0***
[mmc]: HSSDR52/SDR25 4 bit
[mmc]: 50000000 Hz
[mmc]: 15193 MB
[mmc]: ***SD/MMC 0 init OK!!!***
sdcard 0 init ok
The size of uboot is 000ec000.
sum=d2bdbe35
src_sum=d2bdbe35
Succeed in loading uboot from sdmmc flash.
boot0: start load other image
boot0: Loading BL3-1
Loading file 0 at address 0x40000000,size 0x00008400 success
boot0: Loading scp
Loading file 2 at address 0x00040000,size 0x00019c00 success
set arisc reset to de-assert state
Ready to disable icache.
Jump to secend Boot.


U-Boot 2014.07-g6f37e5c (Jun 27 2017 - 10:50:26) Allwinner Technology

etc........

Anyone any idea??
-- Gé --

I forgot to add: I flash the eMMC using an adapter from Hardkernel, same one I successfully use for Rock64.
The eMMC is a Foresee 16GB module from the shop, tried a second one too, both work ok with rock64.
Reply
#2
and the BSP version might be the problem. 

Ayufan has done a number of changes and backports concerning mmc since he forked, so before digging further I will switch to his version and report back here.

-- Gé --
Reply
#3
Solved!

- Upgraded to Ayufan's 3.10.105-bsp-1.2+ kernel repo
- Used boot0so and u-boot binaries from Ayufan's boot-tools repo
- Decompiled sun50i-a64-pine64-sopine.dtb from the same repo and enabled the audio devices
Reply
#4
(11-11-2017, 12:07 PM)gkkpch Wrote: Solved!

- Upgraded to Ayufan's 3.10.105-bsp-1.2+ kernel repo
- Used boot0so and u-boot binaries from Ayufan's boot-tools repo
- Decompiled sun50i-a64-pine64-sopine.dtb from the same repo and enabled the audio devices

Could you post a tutorial on how to do this? I am interested in getting my emmc working as well.
Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  PXE boot w/ SPI Flash bourg 2 215 09-12-2017, 03:24 AM
Last Post: ayufan
  No boot on any Linux image :/ oxomoxo 2 88 08-11-2017, 09:44 AM
Last Post: oxomoxo
  Can not boot from eMMC stephen fleming 2 303 06-25-2017, 01:30 PM
Last Post: stephen fleming

Forum Jump:


Users browsing this thread: 1 Guest(s)