A20-OLinuXino-LIME2 network regression [Was: [PATCH v2 1/5] sunxi: move non-essential code out of s_init()]

Petr Štetiar ynezz at true.cz
Sun Mar 20 23:10:31 CET 2022


Andre Przywara <andre.przywara at arm.com> [2022-02-01 01:41:12]:

Hi Andre,

> Since we have an SPL, which is called right after s_init(), move those
> calls to our board_init_f() function. As we overwrite this only for
> the SPL, this has the added benefit of not doing this setup *again*
> shortly afterwards, when running U-Boot proper.

something didn't went as expected, since this commit has broken ethernet on my
A20-OLinuXino-LIME2:

 U-Boot SPL 2022.04-rc4-00052-g2a243d9bd62f (Mar 20 2022 - 22:57:07 +0100)
 DRAM: 1024 MiB
 CPU: 912000000Hz, AXI/AHB/APB: 3/2/2
 Trying to boot from FEL


 U-Boot 2022.04-rc4-00052-g2a243d9bd62f (Mar 20 2022 - 22:57:07 +0100) Allwinner Technology

 CPU:   Allwinner A20 (SUN7I)
 Model: Olimex A20-OLinuXino-LIME2-eMMC
 DRAM:  1 GiB
 Core:  38 devices, 19 uclasses, devicetree: separate
 WDT:   Not starting watchdog at 1c20c90
 MMC:   mmc at 1c0f000: 0, mmc at 1c11000: 1
 Loading Environment from FAT... Unable to read "uboot.env" from mmc0:1...
 Unknown monitor
 Unknown monitor
 In:    serial
 Out:   serial
 Err:   serial
 Allwinner mUSB OTG (Peripheral)
 Net:   Could not get PHY for ethernet at 1c50000: addr 1

Reverting this commit fixes it:

 Net:   eth0: ethernet at 1c50000, eth1: usb_ether

Cheers,

Petr


More information about the U-Boot mailing list