[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.
#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é --
#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
#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.
#5
this is not something done quickly with a tutorial I'm afraid, I use my own scripts for building a volumio-specific image (volumio.org)


Possibly Related Threads…
Thread Author Replies Views Last Post
  Can't boot from eMMc with Armbian 23.8 Bookworm francoispawlus 1 503 11-13-2023, 04:12 AM
Last Post: francoispawlus
  Try to boot armbian 22.02 on SoPine baseboard adjivas 1 910 01-11-2023, 03:20 PM
Last Post: MNtinkerer
  Manjaro won't boot from EmmC adjivas 0 474 12-30-2022, 06:25 PM
Last Post: adjivas
  Warning: Boot regression in latest kernels (4.19, 5.10 etc.) kuleszdl 4 3,573 08-22-2021, 01:27 PM
Last Post: kuleszdl
  No HDMI output on standard Debian install / no boot sagada 2 4,589 09-06-2020, 03:54 AM
Last Post: kuleszdl
  SOPINE Network boot Ninazu 1 3,779 05-11-2020, 12:40 PM
Last Post: lbruno
  Trying to boot archlinux-minimal-sopine-20170708-1.img kris240376 0 2,537 05-25-2018, 10:30 AM
Last Post: kris240376
  Cannot boot into Xenial Mate Jacob5146 4 6,812 04-22-2018, 11:00 AM
Last Post: Jacob5146
  PXE boot w/ SPI Flash bourg 2 4,761 09-12-2017, 03:24 AM
Last Post: ayufan
  No boot on any Linux image :/ oxomoxo 2 3,176 08-11-2017, 09:44 AM
Last Post: oxomoxo

Forum Jump:


Users browsing this thread: 1 Guest(s)