Problem with boot from emmc

Started by lombyp, April 30, 2021, 07:28:40 PM

Previous topic - Next topic

lombyp

Hi everyone, every time i try to boot the system from the emmc, I always get the same error:
[2.538703] sunxi-mmc 1c11000.mmc: data error, sending stop command
[3.541959] sunxi-mmc 1c11000.mmc: send stop command failed

does anyone know how to solve this problem?

U-Boot 2021.01+olimex-2-20210317.105620 (Mar 17 2021 - 10:57:18 +0000) Allwinner Technology

CPU:   Allwinner A20 (SUN7I)
ID:    T2-OLinuXino-MICRO-e8Gs16M-IND Rev.M
SN:    FFFFFFFF
MAC:   02:16:05:02:D3:84
I2C:   ready
DRAM:  1 GiB
SF: Detected w25q128 with page size 256 Bytes, erase size 4 KiB, total 16 MiB
MMC:   mmc@1c0f000: 0, mmc@1c11000: 1, mmc@1c12000: 2
Loading Environment from EXT4... OK
In:    serial
Out:   serial
Err:   serial
## Error: Can't overwrite "ethaddr"
## Error inserting "ethaddr" variable, errno=1
## Error: Can't overwrite "serial#"
## Error inserting "serial#" variable, errno=1
Allwinner mUSB OTG (Peripheral)
Net:   eth0: ethernet@1c50000, eth1: usb_ether
Hit any key to stop autoboot:  0
switch to partitions #0, OK
mmc1(part 0) is current device
Scanning mmc 1:1...
Found U-Boot script /boot/boot.scr
2287 bytes read in 2 ms (1.1 MiB/s)
## Executing script at 43100000
gpio: pin 128 (gpio 128) value is 1
Boot script loaded from mmc
Checking for /uEnv.txt...
Checking for /boot/uEnv.txt...
494 bytes read in 2 ms (241.2 KiB/s)
Loaded environment from /boot/uEnv.txt
Loading FIT image...
15952091 bytes read in 871 ms (17.5 MiB/s)
## Loading kernel from FIT Image at 58000000 ...
   Using 'config-9789' configuration
   Trying 'kernel-1' kernel subimage
     Description:  Linux kernel 5.10.23-olimex
     Type:         Kernel Image
     Compression:  uncompressed
     Data Start:   0x580000d0
     Data Size:    6474528 Bytes = 6.2 MiB
     Architecture: ARM
     OS:           Linux
     Load Address: 0x40080000
     Entry Point:  0x40080000
     Hash algo:    crc32
     Hash value:   c3a7077e
     Hash algo:    sha1
     Hash value:   1785e13f643a6ad9df3f4f3bb4274c6477053b52
   Verifying Hash Integrity ... crc32+ sha1+ OK
## Loading ramdisk from FIT Image at 58000000 ...
   Using 'config-9789' configuration
   Trying 'ramdisk-1' ramdisk subimage
     Description:  Ramdisk for kernel 5.10.23-olimex
     Type:         RAMDisk Image
     Compression:  Unknown Compression
     Data Start:   0x5862cd24
     Data Size:    9022808 Bytes = 8.6 MiB
     Architecture: ARM
     OS:           Linux
     Load Address: 0x4fe00000
     Entry Point:  0x4fe00000
     Hash algo:    crc32
     Hash value:   341e2d70
     Hash algo:    sha1
     Hash value:   acedf355fe3f257ba55cd7332a1211085ed87d29
   Verifying Hash Integrity ... crc32+ sha1+ OK
   Loading ramdisk from 0x5862cd24 to 0x4fe00000
WARNING: 'compression' nodes for ramdisks are deprecated, please fix your .its file!
## Loading fdt from FIT Image at 58000000 ...
   Using 'config-9789' configuration
   Trying 'fdt-6' fdt subimage
     Description:  unavailable
     Type:         Flat Device Tree
     Compression:  uncompressed
     Data Start:   0x58efd088
     Data Size:    44458 Bytes = 43.4 KiB
     Architecture: ARM
     Load Address: 0x4fa00000
     Hash algo:    crc32
     Hash value:   ad3cdfd4
     Hash algo:    sha1
     Hash value:   aa8d951112cfb80d18935ffd3aaeebe459136908
   Verifying Hash Integrity ... crc32+ sha1+ OK
   Loading fdt from 0x58efd088 to 0x4fa00000
## Loading fdt from FIT Image at 58000000 ...
   Trying 'overlay-1' fdt subimage
     Description:  unavailable
     Type:         Flat Device Tree
     Compression:  uncompressed
     Data Start:   0x58f33278
     Data Size:    1001 Bytes = 1001 Bytes
     Architecture: ARM
     Load Address: 0x4fa10000
     Hash algo:    crc32
     Hash value:   d1d51f29
     Hash algo:    sha1
     Hash value:   fa0c14efb55dbe4bdf8aa7241a3e600b486e3ef6
   Verifying Hash Integrity ... crc32+ sha1+ OK
   Loading fdt from 0x58f33278 to 0x4fa10000
## Loading fdt from FIT Image at 58000000 ...
   Trying 'overlay-2' fdt subimage
     Description:  unavailable
     Type:         Flat Device Tree
     Compression:  uncompressed
     Data Start:   0x58f33744
     Data Size:    436 Bytes = 436 Bytes
     Architecture: ARM
     Load Address: 0x4fa20000
     Hash algo:    crc32
     Hash value:   00f3a93c
     Hash algo:    sha1
     Hash value:   efa518e1ffcc7c09a7d8010de6a7b363f1345b30
   Verifying Hash Integrity ... crc32+ sha1+ OK
   Loading fdt from 0x58f33744 to 0x4fa20000
   Booting using the fdt blob at 0x4fa00000
   Loading Kernel Image
   Loading Ramdisk to 49765000, end 49fffd58 ... OK
   Loading Device Tree to 49757000, end 49764f68 ... OK
## Error: Can't overwrite "ethaddr"
## Error inserting "ethaddr" variable, errno=1
## Error: Can't overwrite "serial#"
## Error inserting "serial#" variable, errno=1
Applying overlay: '/usr/lib/olinuxino-overlays/sun7i-a20/micro-lcd-olinuxino-7ts.dtbo'...
2317 bytes read in 5 ms (452.1 KiB/s)

Starting kernel ...

[    0.003941] /cpus/cpu@0 missing clock-frequency property
[    0.003986] /cpus/cpu@1 missing clock-frequency property
[    0.949881] sun4i-usb-phy 1c13400.phy: Couldn't request ID GPIO
Loading, please wait...
Starting version 241
[    2.521041] sunxi-mmc 1c11000.mmc: data error, sending stop command
[    2.527473] sunxi-mmc 1c11000.mmc: send stop command failed
[    2.538703] sunxi-mmc 1c11000.mmc: data error, sending stop command
[    3.541959] sunxi-mmc 1c11000.mmc: send stop command failed


lombyp

Hello JohnS and thanks for your answer.
QuoteIt is not possible to boot directly from the eMMC since that part of the boot process does not work well with newest 5.1 eMMC memories. The eMMC boot code is old and only for older eMMC (up to 5.0), unfortunately such memories are not easy to find anymore.

Hence SPI->eMMC boot. All Olimex boards that have eMMC also have SPI.

could you explain me step by step what to do and/or enable?