[bug report] sunxi: H6: no ethernet on Orange Pi One Plus

Anne Macedo retpolanne at posteo.net
Wed Jul 5 14:23:03 CEST 2023


On Wed, Jul 05, 2023 at 12:08:30PM +0000, Anne Macedo wrote:
> On Wed, Jul 05, 2023 at 11:26:45AM +0100, Christopher Obbard wrote:
> > Hi Anne,
> > 
> > [please don't forget to CC the list, in case someone else
> > has the same issue in future they don't miss the context ;-)]
> > 
> > On Wed, 2023-07-05 at 10:12 +0000, Anne Macedo wrote:
> > > On Wed, Jul 05, 2023 at 09:23:35AM +0100, Christopher Obbard wrote:
> > > > Hi Anne,
> > > > 
> > > > On Tue, 2023-07-04 at 23:22 +0000, Anne Macedo wrote:
> > > > > Hey!
> > > > > 
> > > > > I'm trying to bake Linux images for the Orange Pi One Plus using Yocto.
> > > > > Everything works fine, except for Ethernet.
> > > > > 
> > > > > On the u-boot prompt:
> > > > > 
> > > > > => dhcp
> > > > > No ethernet found.
> > > > > 
> > > > > After adding:
> > > > > 
> > > > > CONFIG_SPL_SPI_SUNXI=y
> > > > > CONFIG_SUN8I_EMAC=y
> > > > > 
> > > > > to configs/orangepi_one_plus_defconfig, I started seeing this error:
> > > > > 
> > > > > => dhcp
> > > > > sun8i_emac_eth_start: Timeout
> > > > 
> > > > Can you attempt to change the TF-A target from sun50i_h6 to sun50i_h6_no_pmic?
> > > 
> > > Hello Christopher! I tried this, but it failed. It doesn't seem that
> > > there's any PLAT for sun50i_h6_no_pmic on TF-A:
> > > 
> > > https://github.com/ARM-software/arm-trusted-firmware/tree/master/plat/allwinner
> > > 
> > > This is the error I get: 
> > > 
> > > "Error: Invalid platform. The following platforms are available:
> > > a3700|a5ds|a70x0|a70x0_amc|a70x0_mochabin|a80x0|a80x0_mcbin|a80x0_puzzle|agilex|arm_fpga|axg|corstone1000|corstone700|fvp|fvp_r|fvp_ve|g12a|gxbb|gxl|hikey|hikey960|imx8mm|imx8mn|imx8mp|imx8mq|imx8qm
> > > |imx8qx|juno|k3|ls1028ardb|ls1043ardb|ls1046afrwy|ls1046aqds|ls1046ardb|ls1088aqds|ls1088ardb|lx2160aqds|lx2160ardb|lx2162aqds|morello|msm8916|mt8173|mt8183|mt8186|mt8188|mt8192|mt8195|n1sdp|n5x|pic
> > > opi|poplar|px30|qemu|qemu_sbsa|rcar|rde1edge|rdn1edge|rdn2|rdv1|rdv1mc|rk3288|rk3328|rk3368|rk3399|rpi3|rpi4|rzg|sc7180|sc7280|sgi575|stingray|stm32mp1|stratix10|sun50i_a64|sun50i_h6|sun50i_h616|sun
> > > 50i_r329|synquacer|t9130|t9130_cex7_eval|tc|tegra|uniphier|versal|versal_net|warp7|zynqmp"
> > > > 
> > > 
> > > I also tried adding CONFIG_SUNXI_NO_PMIC=y but it also didn't work :( 
> > > 
> > > I didn't find the sun50i_h6_no_pmic platform being defined anywhere...
> > > https://packages.debian.org/bookworm/arm-trusted-firmware
> > > 
> > > Wow, this is very recent!
> > > https://www.mail-archive.com/debian-bugs-dist@lists.debian.org/msg1911472.html. 
> > > The change was merged a few days ago.
> > 
> > Right, looking at the packaging once more, it seems like this is a custom target
> > just for Debian which sets SUNXI_SETUP_REGULATORS=0
> 
> (Forgot to reply all on the previous message, thanks for replying :)
> Okay, so that seems to be mentioned on the docs and configs: 
> 
> https://github.com/ARM-software/arm-trusted-firmware/blob/master/docs/plat/allwinner.rst
> https://linux-sunxi.org/Xunlong_Orange_Pi_3#Tips.2C_Tricks.2C_Caveats
> 
> I tried it using Yocto, and it generated this (redacted) make:
> 
> make -j 12 LD=aarch64-poky-linux-ld CC=aarch64-poky-linux-gcc V=1 E=0 PLAT=sun50i_h6 SUNXI_SETUP_REGULATORS=0 bl31
> 
> But still:
> 
> => dhcp
> sun8i_emac_eth_start: Timeout
> 

Okay, I verified that I successfully disabled PMIC, but I still get the error.

(I will send a patch afterwards to meta-sunxi adding this information
btw). 

make -j 12 LD=aarch64-poky-linux-ld CC=aarch64-poky-linux-gcc V=1 E=0 PLAT=sun50i_h6 LOG_LEVEL=40 bl31

U-Boot SPL 2023.04-gfd4ed6b (Apr 03 2023 - 20:38:50 +0000)
DRAM: 1024 MiB
Trying to boot from MMC1
NOTICE:  BL31: lts-v2.8.6(release):lts-v2.8.6-dirty
NOTICE:  BL31: Built : 17:57:15, Apr 21 2023
NOTICE:  BL31: Detected Allwinner H6 SoC (1728)
NOTICE:  BL31: Found U-Boot DTB at 0xa095670, model: OrangePi One Plus
INFO:    ARM GICv2 driver initialized
INFO:    Configuring SPC Controller
INFO:    PMIC: Probing AXP805 on RSB
INFO:    PMIC: aldo1 voltage: 3.300V
INFO:    PMIC: aldo2 voltage: 3.300V
INFO:    PMIC: aldo3 voltage: 3.300V
INFO:    PMIC: bldo1 voltage: 1.800V
INFO:    PMIC: bldo2 voltage: 1.800V
INFO:    PMIC: bldo3 voltage: 1.800V
INFO:    PMIC: cldo1 voltage: 3.300V
INFO:    PMIC: cldo2 voltage: 3.300V
INFO:    PMIC: cldo3 voltage: 3.300V
INFO:    PMIC: dcdcd voltage: 0.960V
INFO:    PMIC: dcdce voltage: 1.200V
INFO:    BL31: Platform setup done

make -j 12 LD=aarch64-poky-linux-ld CC=aarch64-poky-linux-gcc V=1 E=0 PLAT=sun50i_h6 SUNXI_SETUP_REGULATORS=0 LOG_LEVEL=40 bl31

U-Boot SPL 2023.04-gfd4ed6b (Apr 03 2023 - 20:38:50 +0000)
DRAM: 1024 MiB
Trying to boot from MMC1
NOTICE:  BL31: lts-v2.8.6(release):lts-v2.8.6-dirty
NOTICE:  BL31: Built : 17:57:15, Apr 21 2023
NOTICE:  BL31: Detected Allwinner H6 SoC (1728)
NOTICE:  BL31: Found U-Boot DTB at 0xa095670, model: OrangePi One Plus
INFO:    ARM GICv2 driver initialized
INFO:    Configuring SPC Controller
INFO:    PMIC: Probing AXP805 on RSB
INFO:    BL31: Platform setup done
INFO:    BL31: Initializing runtime services
INFO:    PSCI: Suspend is unavailable
INFO:    BL31: Preparing for EL3 exit to normal world
INFO:    Entry point address = 0x4a000000
INFO:    SPSR = 0x3c9

> > 
> > 
> > Cheers!
> > 
> > Chris
> 
> Regards,
> Anne

Regards, 
Anne


More information about the U-Boot mailing list