Olimex Lime 2 don't boot

Started by Julien, June 05, 2023, 04:28:37 PM

Previous topic - Next topic

Julien

Hello all,

We have received four Olimex Lime 2 boards and not one of them will start.

We have tried several SD cards.
The cards do not boot, even on the official SD card supplied by Olimex.

On another Olimex Lime 2, these SD cards boot. This problem only affects these four boards, which were recently received.

Received boards : T2-OLinuXino-LIME2-e16Gs16M-IND (in fact, we never ordered this reference but the T2-OLinuXino-LIME2-e8Gs16M-IND)

Other boards (where is working) : T2-OLinuXino-LIME2-e8Gs16M-IND


Here, the U-Boot logs :

switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
Found U-Boot script /boot/boot.scr
2274 bytes read in 5 ms (443.4 KiB/s)
## Executing script at 43100000
Boot script loaded from mmc
Checking for /uEnv.txt...
Checking for /boot/uEnv.txt...
400 bytes read in 3 ms (129.9 KiB/s)
Loaded environment from /boot/uEnv.txt
Loading FIT image...
16195639 bytes read in 890 ms (17.4 MiB/s)
## Loading kernel from FIT Image at 58000000 ...
Could not find configuration node
ERROR: can't get kernel image!
SCRIPT FAILED: continuing...
libfdt fdt_check_header(): FDT_ERR_BADMAGIC
Scanning disk [email protected]...
Card did not respond to voltage select! : -110
Scanning disk [email protected]...
Disk [email protected] not ready
Found 2 disks
No EFI system partition
Could not get PHY for ethernet@1c50000: addr -1
BootOrder not defined
EFI boot manager: Cannot load any image
scanning bus for devices...
SATA link 0 timeout.
AHCI 0001.0100 32 slots 1 ports 3 Gbps 0x1 impl SATA mode
flags: ncq stag pm led clo only pmp pio slum part ccc apst

Device 0: unknown device

Device 0: unknown device
Could not get PHY for ethernet@1c50000: addr -1
Could not get PHY for ethernet@1c50000: addr -1
Could not get PHY for ethernet@1c50000: addr -1
Could not get PHY for ethernet@1c50000: addr -1
No ethernet found.

Julien

#1
Ok, I finally found the problem.

I am using the "A20-OLinuXino-bullseye-minimal" image.
With "A20-OLinuXino-bullseye-base" it works fine.

So to solve the problem, I copied the boot from "base" to "minimal" image.
This allows me to continue using the "minimal" image.

I also updating uboot, I just copied uboot sectors from base image to minimal.

But the main problem is that we ordered e8Gs16M and we received e16Gs16M boards.

LubOlimex

So the board doesn't boot when using the Linux image from this archive "A20-OLinuXino-bullseye-minimal-20230515-130040.img.7z"? Hmm...
Technical support and documentation manager at Olimex

Julien

I think that "A20-OLinuXino-bullseye-minimal-20230515-130040.img.7z" works fine.

Just I use a modified distribution based on an old minimal version. The problem seems to be this old version (with uboot and kernel not updated).

lombyp

I have the same problem, but with T2-OLinuXino-MICRO-e16Gs16M-IND, I tried both minimal and base.
Anyone have an idea how to fix it?
with T2-OLinuXino-MICRO-e8Gs16M-IND I have never had any problems

U-Boot 2021.04+olimex-1-20230515.123927 (May 15 2023 - 12:40:34 +0000) Allwinner Technology

CPU:  Allwinner A20 (SUN7I)
ID:    T2-OLinuXino-MICRO-e16Gs16M-IND Rev.M
SN:    FFFFFFFF
MAC:  02:04:03:C1:81:68
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... *** Warning - bad CRC, using default environment

Loading Environment from FAT... ** No device specified **
In:    serial
Out:  serial
Err:  serial
Allwinner mUSB OTG (Peripheral)
Net:  eth0: ethernet@1c50000, eth1: usb_ether
starting USB...
Bus usb@1c14000: USB EHCI 1.00
Bus usb@1c14400: USB OHCI 1.0
Bus usb@1c1c000: USB EHCI 1.00
Bus usb@1c1c400: USB OHCI 1.0
scanning bus usb@1c14000 for devices... 1 USB Device(s) found
scanning bus usb@1c14400 for devices... 1 USB Device(s) found
scanning bus usb@1c1c000 for devices... 1 USB Device(s) found
scanning bus usb@1c1c400 for devices... 1 USB Device(s) found
      scanning usb for storage devices... 0 Storage Device(s) found
Hit any key to stop autoboot:  0
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
Found U-Boot script /boot/boot.scr
2274 bytes read in 2 ms (1.1 MiB/s)
## Executing script at 43100000
Boot script loaded from mmc
Checking for /uEnv.txt...
Checking for /boot/uEnv.txt...
1160 bytes read in 2 ms (566.4 KiB/s)
Loaded environment from /boot/uEnv.txt
Loading FIT image...
16195735 bytes read in 885 ms (17.5 MiB/s)
## Loading kernel from FIT Image at 58000000 ...
  Using 'config-11449' configuration
  Trying 'kernel-1' kernel subimage
    Description:  Linux kernel 5.10.105-olimex
    Type:        Kernel Image
    Compression:  uncompressed
    Data Start:  0x580000d4
    Data Size:    6535968 Bytes = 6.2 MiB
    Architecture: ARM
    OS:          Linux
    Load Address: 0x40080000
    Entry Point:  0x40080000
    Hash algo:    crc32
    Hash value:  590959da
    Hash algo:    sha1
    Hash value:  ef137d47aae3d822bd16fdfc8eadc3ae7ffbbb1e
  Verifying Hash Integrity ... crc32+ sha1+ OK
## Loading ramdisk from FIT Image at 58000000 ...
  Using 'config-11449' configuration
  Trying 'ramdisk-1' ramdisk subimage
    Description:  Ramdisk for kernel 5.10.105-olimex
    Type:        RAMDisk Image
    Compression:  Unknown Compression
    Data Start:  0x5863bd28
    Data Size:    9203548 Bytes = 8.8 MiB
    Architecture: ARM
    OS:          Linux
    Load Address: 0x4fe00000
    Entry Point:  0x4fe00000
    Hash algo:    crc32
    Hash value:  5803848c
    Hash algo:    sha1
    Hash value:  c14616654b54b6535a09bc046d28faff4fa31336
  Verifying Hash Integrity ... crc32+ sha1+ OK
  Loading ramdisk from 0x5863bd28 to 0x4fe00000
WARNING: 'compression' nodes for ramdisks are deprecated, please fix your .its file!
## Loading fdt from FIT Image at 58000000 ...
  Using 'config-11449' configuration
  Trying 'fdt-6' fdt subimage
    Description:  unavailable
    Type:        Flat Device Tree
    Compression:  uncompressed
    Data Start:  0x58f38298
    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 0x58f38298 to 0x4fa00000
## Loading fdt from FIT Image at 58000000 ...
  Trying 'overlay-1' fdt subimage
    Description:  unavailable
    Type:        Flat Device Tree
    Compression:  uncompressed
    Data Start:  0x58f6e488
    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 0x58f6e488 to 0x4fa10000
## Loading fdt from FIT Image at 58000000 ...
  Trying 'overlay-2' fdt subimage
    Description:  unavailable
    Type:        Flat Device Tree
    Compression:  uncompressed
    Data Start:  0x58f6e954
    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 0x58f6e954 to 0x4fa20000
  Booting using the fdt blob at 0x4fa00000
EHCI failed to shut down host controller.
  Loading Kernel Image
  Loading Ramdisk to 49739000, end 49ffff5c ... OK
  Loading Device Tree to 4972b000, end 49738f68 ... OK
Applying overlay: '/usr/lib/olinuxino-overlays/sun7i-a20/spi1-spidev.dtbo'...
408 bytes read in 6 ms (66.4 KiB/s)
Applying overlay: '/usr/lib/olinuxino-overlays/sun7i-a20/spi2-spidev.dtbo'...
408 bytes read in 7 ms (56.6 KiB/s)
Applying overlay: '/usr/lib/olinuxino-overlays/sun7i-a20/sun7i-a20-i2c2.dtbo'...
726 bytes read in 7 ms (100.6 KiB/s)
Applying overlay: '/usr/lib/olinuxino-overlays/sun7i-a20/sun7i-a20-spi0.dtbo'...
1001 bytes read in 7 ms (139.6 KiB/s)
Applying overlay: '/usr/lib/olinuxino-overlays/sun7i-a20/sun7i-a20-spi1.dtbo'...
1005 bytes read in 7 ms (139.6 KiB/s)
Applying overlay: '/usr/lib/olinuxino-overlays/sun7i-a20/sun7i-a20-spi2.dtbo'...
1005 bytes read in 7 ms (139.6 KiB/s)
Applying overlay: '/usr/lib/olinuxino-overlays/sun7i-a20/sun7i-a20-uart3.dtbo'...
863 bytes read in 7 ms (120.1 KiB/s)
Applying overlay: '/usr/lib/olinuxino-overlays/sun7i-a20/sun7i-a20-uart4.dtbo'...
867 bytes read in 7 ms (120.1 KiB/s)
Applying overlay: '/usr/lib/olinuxino-overlays/sun7i-a20/sun7i-a20-uart5.dtbo'...
867 bytes read in 7 ms (120.1 KiB/s)
Applying overlay: '/usr/lib/olinuxino-overlays/sun7i-a20/sun7i-a20-uart6.dtbo'...
867 bytes read in 7 ms (120.1 KiB/s)
Applying overlay: '/usr/lib/olinuxino-overlays/sun7i-a20/sun7i-a20-uart7.dtbo'...
867 bytes read in 8 ms (105.5 KiB/s)
Applying overlay: '/usr/lib/olinuxino-overlays/sun7i-a20/sun7i-a20-can.dtbo'...
732 bytes read in 7 ms (101.6 KiB/s)
Applying overlay: '/usr/lib/olinuxino-overlays/sun7i-a20/micro-lcd-olinuxino-7ts.dtbo'...
2317 bytes read in 6 ms (377 KiB/s)

Starting kernel ...

[    0.004170] /cpus/cpu@0 missing clock-frequency property
[    0.004216] /cpus/cpu@1 missing clock-frequency property
[    0.989981] sun4i-usb-phy 1c13400.phy: Couldn't request ID GPIO
[    1.433519] sunxi-mmc 1c11000.mmc: data error, sending stop command
[    1.439873] sunxi-mmc 1c11000.mmc: send stop command failed
[    1.473596] sunxi-mmc 1c11000.mmc: data error, sending stop command
[    2.476747] sunxi-mmc 1c11000.mmc: send stop command failed
Loading, please wait...
Starting version 247.3-7+deb11u2
Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... done.


LubOlimex

I received your e-mails will respond in detail there but I took a T2-OLinuXino-MICRO-e16Gs16M-IND board from the shop, downloaded the same A20-OLinuXino-bullseye-minimal-20230515-130040.img Linux image from the FTP and checked how it goes here. Board boots fine. I also tried wiping the SN (so I got "FFFFFF" like in your log) but it still boots fine.
Technical support and documentation manager at Olimex

emeraldfeliz

Quote from: Julien on June 05, 2023, 06:23:35 PMOk, I finally found the problem.

I am using the "A20-OLinuXino-bullseye-minimal" image.
With "A20-OLinuXino-bullseye-base" it works fine.
So to solve the problem, I copied the boot from "base" to "minimal" image.
This allows me to continue using the "minimal" image.

I also updating uboot, I just copied uboot sectors from base image to minimal.

But the main problem is that we ordered e8Gs16M and we received e16Gs16M boards.
I had the same problem when using minimal image. Thanks for this feedback.