Can't start mainline image on Olinuxino A64-OLinuXino-2Ge8G-IND

Started by mossroy, May 08, 2020, 12:57:11 PM

Previous topic - Next topic

mossroy

I did not manage to start the new mainline image
http://images.olimex.com/release/a64/A64-OLinuXino-buster-base-20200417-124909.img.7z on my A64-OLinuXino-2Ge8G-IND boards.

After copying the image to the microSD card, and starting the board, it never reaches the login prompt.
I first thought it was a hardware issue (faulty microSD card, or broken board).
But I tested with 2 different boards, and 2 different microSD cards (8GB and 16GB), with the same result.

If I copy the https://dl.armbian.com/lime-a64/archive/Armbian_20.02.7_Lime-a64_buster_current_5.4.28.7z image instead (on the same microSD card), it works.

There is the following console output with the mainline image :

U-Boot SPL 2020.01+olimex-1-20200414.120156 (Jan 30 2020 - 11:10:18 +0000)
DRAM: 2048 MiB
Trying to boot from MMC1
NOTICE:  BL31: v2.2(debug):v2.2-6-g9a04ccc-dirty
NOTICE:  BL31: Built : 19:42:23, Mar 20 2020
NOTICE:  BL31: Detected Allwinner A64/H64/R18 SoC (1689)
NOTICE:  BL31: Found U-Boot DTB at 0x40ab2b8, model: Olimex A64-Olinuxino
INFO:    ARM GICv2 driver initialized
INFO:    Configuring SPC Controller
NOTICE:  BL31: PMIC: Detected AXP803 on RSB.
INFO:    PMIC: AXP803: Enabling DRIVEVBUS
INFO:    PMIC: AXP803: dcdc1 voltage: 3.300V
INFO:    PMIC: AXP803: dcdc5 voltage: 1.360V
INFO:    PMIC: AXP803: dcdc6 voltage: 1.100V
INFO:    PMIC: AXP803: dldo1 voltage: 3.300V
INFO:    PMIC: AXP803: dldo4 voltage: 3.300V
INFO:    BL31: Platform setup done
INFO:    BL31: Initializing runtime services
INFO:    BL31: cortex_a53: CPU workaround for 843419 was applied
INFO:    BL31: cortex_a53: CPU workaround for 855873 was applied
INFO:    BL31: Preparing for EL3 exit to normal world
INFO:    Entry point address = 0x4a000000
INFO:    SPSR = 0x3c9


U-Boot 2020.01+olimex-1-20200414.120156 (Jan 30 2020 - 11:10:18 +0000) Allwinner Technology

CPU:   Allwinner A64 (SUN50I)
Model: Olimex A64-Olinuxino
DRAM:  2 GiB
MMC:   mmc@1c0f000: 0
Loading Environment from EXT4... OK
In:    serial
Out:   serial
Err:   serial
Allwinner mUSB OTG (Peripheral)
Net:   phy interface7
eth0: ethernet@1c30000
Warning: usb_ether using MAC address from ROM
, eth1: usb_ether
starting USB...
Bus usb@1c1a000: USB EHCI 1.00
Bus usb@1c1a400: USB OHCI 1.0
Bus usb@1c1b000: USB EHCI 1.00
Bus usb@1c1b400: USB OHCI 1.0
scanning bus usb@1c1a000 for devices... 1 USB Device(s) found
scanning bus usb@1c1a400 for devices... 1 USB Device(s) found
scanning bus usb@1c1b000 for devices... 1 USB Device(s) found
scanning bus usb@1c1b400 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
1933 bytes read in 4 ms (471.7 KiB/s)
## Executing script at 4fc00000
U-boot loaded from SD
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...
29212195 bytes read in 1255 ms (22.2 MiB/s)
## Loading kernel from FIT Image at 58000000 ...
   Using 'config-8861' configuration
   Trying 'kernel-1' kernel subimage
     Description:  Linux kernel 5.5.9-olimex
     Type:         Kernel Image
     Compression:  uncompressed
     Data Start:   0x580000d0
     Data Size:    22065160 Bytes = 21 MiB
     Architecture: AArch64
     OS:           Linux
     Load Address: 0x40080000
     Entry Point:  0x40080000
     Hash algo:    crc32
     Hash value:   c4dc34da
     Hash algo:    sha1
     Hash value:   e56b99e698d3a9a4915e79a4919e555d325c856d
   Verifying Hash Integrity ... crc32+ sha1+ OK
## Loading ramdisk from FIT Image at 58000000 ...
   Using 'config-8861' configuration
   Trying 'ramdisk-1' ramdisk subimage
     Description:  Ramdisk for kernel 5.5.9-olimex
     Type:         RAMDisk Image
     Compression:  Unknown Compression
     Data Start:   0x5950b20c
     Data Size:    7067778 Bytes = 6.7 MiB
     Architecture: AArch64
     OS:           Linux
     Load Address: 0x4fe00000
     Entry Point:  0x4fe00000
     Hash algo:    crc32
     Hash value:   c455c3e0
     Hash algo:    sha1
     Hash value:   4ad31e34485bf3a6c2dee4d3646ed0be4c357acb
   Verifying Hash Integrity ... crc32+ sha1+ OK
   Loading ramdisk from 0x5950b20c to 0x4fe00000
WARNING: 'compression' nodes for ramdisks are deprecated, please fix your .its file!
## Loading fdt from FIT Image at 58000000 ...
   Using 'config-8861' configuration
   Trying 'fdt-1' fdt subimage
     Description:  unavailable
     Type:         Flat Device Tree
     Compression:  uncompressed
     Data Start:   0x59bc8b80
     Data Size:    37736 Bytes = 36.9 KiB
     Architecture: AArch64
     Load Address: 0x4fa00000
     Hash algo:    crc32
     Hash value:   f767d757
     Hash algo:    sha1
     Hash value:   5d7185d871c8513d1db09bd636b81c3454759688
   Verifying Hash Integrity ... crc32+ sha1+ OK
   Loading fdt from 0x59bc8b80 to 0x4fa00000
   Booting using the fdt blob at 0x4fa00000
   Loading Kernel Image
   Loading Ramdisk to 49942000, end 49fff882 ... OK
   Loading Device Tree to 0000000049935000, end 0000000049941367 ... OK

Starting kernel ...

[    3.287139] sun50i-de2-bus 1000000.bus: Error couldn't map SRAM to device
[    3.287627] sun4i-usb-phy 1c19400.phy: Couldn't request ID GPIO
[    3.558444] sun8i-dw-hdmi 1ee0000.hdmi: Couldn't get regulator
[    3.558464] sun4i-drm display-engine: failed to bind 1ee0000.hdmi (ops 0xffff800010ec86c0): -517
[    3.558793] sun4i-drm display-engine: Couldn't bind all pipelines components
[    3.569916] sun4i-usb-phy 1c19400.phy: Couldn't request ID GPIO
[    3.660712] dwmac-sun8i 1c30000.ethernet: IRQ eth_wake_irq not found
[    3.667074] dwmac-sun8i 1c30000.ethernet: IRQ eth_lpi not found
[    3.809449] sunxi-mmc 1c11000.mmc: data error, sending stop command
[    4.812373] sunxi-mmc 1c11000.mmc: send stop command failed
Loading, please wait...
Starting version 241
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.


mossroy

That's right.
Olimex suggested that in their blog comments : https://olimex.wordpress.com/2020/04/21/olimage-mainline-linux-images-building-script-for-all-of-our-olinuxino-and-som-boards/

I tested too, and these testing images are booting fine.
But there are still a few issues with them (see my latest comments on their blog)

LubOlimex

Thanks for the feedback mossroy, we are looking into it. The DHCP problem had been reported by a few other people too.
Technical support and documentation manager at Olimex

mossroy

Regarding DHCP, I would suggest to configure uboot so that the default MAC Address can be overridden with /boot/uEnv.txt.