On Wed, Jul 05, 2023 at 03:24:23PM +0000, Anne Macedo wrote: > On Wed, Jul 05, 2023 at 10:46:25AM -0300, Fabio Estevam wrote: > > Hi Anne, > > > > On Tue, Jul 4, 2023 at 8:52 PM Anne Macedo <retpola...@posteo.net> 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 > > > > > > I saw this other bug report but I couldn't really understand what has > > > been made to fix this issue [1]. > > > > > > More context here [2]. > > > > > > [1] https://lists.denx.de/pipermail/u-boot/2021-June/451357.html > > > > Does it help if you revert 4f0278dac56a658ef1e0967fec0bb95372a875bd ? > > > > Hey! After reverting the commit, but with PMIC disabled: > > => dhcp > mdio_register: non unique device name 'ethernet@5020000' > Could not get PHY for ethernet@5020000: addr 1 > > > I added on CC the folks involved in the previous report. > > Regards, > Anne
I think I'm on the right path :) 1. Included SUNXI_SETUP_REGULATORS=0 to the bl31 make 2. Changed the phy mode on arch/arm/dts/sun50i-h6-orangepi-one-plus.dts From rgmii-id to rgmii More info on [1][2][3] 3. Added this configs to configs/orangepi_one_plus_defconfig: CONFIG_SPL_SPI_SUNXI=y CONFIG_SUNXI_NO_PMIC=y CONFIG_SUN8I_EMAC=y Result: U-Boot 2023.04-gfd4ed6b (Apr 03 2023 - 20:38:50 +0000) Allwinner Technology CPU: Allwinner H6 (SUN50I) Model: OrangePi One Plus DRAM: 1 GiB Core: 55 devices, 17 uclasses, devicetree: separate WDT: Not starting watchdog@7020400 MMC: mmc@4020000: 0 Loading Environment from FAT... Unable to read "uboot.env" from mmc0:1... In: serial@5000000 Out: serial@5000000 Err: serial@5000000 Net: eth0: ethernet@5020000 => dhcp sun8i_emac_eth_start: Timeout => mdio list ethernet@5020000: 1 - Generic PHY <--> ethernet@5020000 Still no interface on Linux, but at least eth0 is detected on u-boot? [1] https://forum.armbian.com/topic/7108-orangepi-zero-plus-ethernet-in-u-boot/ [2] https://forum.openwrt.org/t/sunxi-target-broken-in-master/110643/12 [3] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/drivers/net/phy/realtek.c?h=v5.10.79&id=bbc4d71d63549bcd003a430de18a72a742d8c91e Regards, Anne