Sunxi target broken in Master?

I'm eager to try the 5.10 kernel in the Sunxi target. Specifically, I'm using the most recent (Oct 31) image from snapshot for the xunlong_orangepi-zero-plus device.

However, the device seems to get stuck at boot. The ethernet LED blinks at a static interval, but nothing else happens. I'm unsure how to troubleshoot any further without any output from the device? 21.02.1 works flawlessly, so the fault isn't in the device.

sunxi has recently been updated to Linux 5.10, and that has most likely broken something for your device. Please connect serial console and report back whatever is shown there.
You will need a 3.3V TTL level serial adapter and connect RX, TX and GND to the debug console of the board. Serial settings should be 115200 baud, 8 data bits, no parity, 1 stop bit, no flow control.

1 Like

Below the output based on the November 12 snapshot:

U-Boot SPL 2020.04 (Nov 12 2021 - 12:15:44 +0000)
DRAM: 512 MiB
Trying to boot from MMC1
NOTICE:  BL31: v2.4(release):reboot-18072-g959a0308e5
NOTICE:  BL31: Built : 12:15:44, Nov 12 2021
NOTICE:  BL31: Detected Allwinner H5 SoC (1718)
NOTICE:  BL31: Found U-Boot DTB at 0x408b2c0, model: Xunlong Orange Pi Zero Plus
NOTICE:  PMIC: Assuming H5 reference regulator design
NOTICE:  PSCI: System suspend is unavailable


U-Boot 2020.04 (Nov 12 2021 - 12:15:44 +0000) Allwinner Technology

CPU:   Allwinner H5 (SUN50I)
Model: Xunlong Orange Pi Zero Plus
DRAM:  512 MiB
MMC:   mmc@1c0f000: 0, mmc@1c10000: 1
Loading Environment from FAT... *** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
Net:   phy interface7
Could not get PHY for ethernet@1c30000: addr 1
No ethernet found.

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.scr
482 bytes read in 2 ms (235.4 KiB/s)
## Executing script at 4fc00000
12179464 bytes read in 1010 ms (11.5 MiB/s)
20747 bytes read in 5 ms (4 MiB/s)
## Flattened Device Tree blob at 4fa00000
   Booting using the fdt blob at 0x4fa00000
EHCI failed to shut down host controller.
   Loading Device Tree to 0000000049ff7000, end 0000000049fff10a ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[    0.000000] Linux version 5.10.78 (builder@buildhost) (aarch64-openwrt-linux-musl-gcc (OpenWrt GCC 11.2.0 r18072-959a0308e5) 11.2.                                                                                        0, GNU ld (GNU Binutils) 2.37) #0 SMP Fri Nov 12 12:15:44 2021
[    0.000000] Machine model: Xunlong Orange Pi Zero Plus
[    0.000000] earlycon: uart0 at MMIO32 0x0000000001c28000 (options '')
[    0.000000] printk: bootconsole [uart0] enabled
[    0.000000] Zone ranges:
[    0.000000]   DMA      [mem 0x0000000040000000-0x000000005fffffff]
[    0.000000]   DMA32    empty
[    0.000000]   Normal   empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000040000000-0x000000005fffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000040000000-0x000000005fffffff]
[    0.000000] psci: probing for conduit method from DT.
[    0.000000] psci: PSCIv1.1 detected in firmware.
[    0.000000] psci: Using standard PSCI v0.2 function IDs
[    0.000000] psci: MIGRATE_INFO_TYPE not supported.
[    0.000000] psci: SMC Calling Convention v1.2
[    0.000000] percpu: Embedded 20 pages/cpu s44696 r8192 d29032 u81920
[    0.000000] Detected VIPT I-cache on CPU0
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 129024
[    0.000000] Kernel command line: console=ttyS0,115200 earlyprintk root=PARTUUID=5452574f-02 rootwait earlycon=uart,mmio32,0x01c280                                                                                        00
[    0.000000] Dentry cache hash table entries: 65536 (order: 7, 524288 bytes, linear)
[    0.000000] Inode-cache hash table entries: 32768 (order: 6, 262144 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 493436K/524288K available (7934K kernel code, 1206K rwdata, 2240K rodata, 448K init, 313K bss, 30852K reserved                                                                                        , 0K cma-reserved)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=4.
[    0.000000]  Tracing variant of Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4
[    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[    0.000000] GIC: Using split EOI/Deactivate mode
[    0.000000] random: get_random_bytes called from start_kernel+0x344/0x488 with crng_init=0
[    0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[    0.000005] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.008111] Console: colour dummy device 80x25
[    0.012583] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.022928] pid_max: default: 32768 minimum: 301
[    0.027665] Mount-cache hash table entries: 1024 (order: 1, 8192 bytes, linear)
[    0.034973] Mountpoint-cache hash table entries: 1024 (order: 1, 8192 bytes, linear)
[    0.044223] rcu: Hierarchical SRCU implementation.
[    0.049178] dyndbg: Ignore empty _ddebug table in a CONFIG_DYNAMIC_DEBUG_CORE build
[    0.057120] smp: Bringing up secondary CPUs ...
[    0.062571] Detected VIPT I-cache on CPU1
[    0.062634] CPU1: Booted secondary processor 0x0000000001 [0x410fd034]
[    0.063233] Detected VIPT I-cache on CPU2
[    0.063268] CPU2: Booted secondary processor 0x0000000002 [0x410fd034]
[    0.063814] Detected VIPT I-cache on CPU3
[    0.063846] CPU3: Booted secondary processor 0x0000000003 [0x410fd034]
[    0.063911] smp: Brought up 1 node, 4 CPUs
[    0.099563] SMP: Total of 4 processors activated.
[    0.104259] CPU features: detected: 32-bit EL0 Support
[    0.109394] CPU features: detected: CRC32 instructions
[    0.114562] CPU features: emulated: Privileged Access Never (PAN) using TTBR0_EL1 switching
[    0.122908] CPU: All CPU(s) started at EL2
[    0.127012] alternatives: patching kernel code
[    0.136229] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.146093] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[    0.153148] pinctrl core: initialized pinctrl subsystem
[    0.159549] NET: Registered protocol family 16
[    0.164491] DMA: preallocated 128 KiB GFP_KERNEL pool for atomic allocations
[    0.171587] DMA: preallocated 128 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
[    0.179344] DMA: preallocated 128 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[    0.187879] thermal_sys: Registered thermal governor 'step_wise'
[    0.188472] ASID allocator initialised with 65536 entries
[    0.222763] SCSI subsystem initialized
[    0.226984] usbcore: registered new interface driver usbfs
[    0.232551] usbcore: registered new interface driver hub
[    0.237893] usbcore: registered new device driver usb
[    0.243251] pps_core: LinuxPPS API ver. 1 registered
[    0.248220] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.257370] PTP clock support registered
[    0.261601] Advanced Linux Sound Architecture Driver Initialized.
[    0.268623] clocksource: Switched to clocksource arch_sys_counter
[    0.279999] NET: Registered protocol family 2
[    0.284555] IP idents hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.292636] tcp_listen_portaddr_hash hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.301023] TCP established hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    0.308813] TCP bind hash table entries: 4096 (order: 4, 65536 bytes, linear)
[    0.316019] TCP: Hash tables configured (established 4096 bind 4096)
[    0.322511] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.329058] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.336186] NET: Registered protocol family 1
[    0.342270] workingset: timestamp_bits=46 max_order=17 bucket_order=0
[    0.353073] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.359012] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.369825] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
[    0.378018] sun4i-usb-phy 1c19400.phy: Couldn't request ID GPIO
[    0.386717] sun8i-h3-r-pinctrl 1f02c00.pinctrl: initialized sunXi PIO driver
[    0.397274] sun50i-h5-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.410691] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[    0.419576] sun50i-h5-pinctrl 1c20800.pinctrl: supply vcc-pa not found, using dummy regulator
[    0.428550] printk: console [ttyS0] disabled
[    0.432907] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 32, base_baud = 1500000) is a 16550A
[    0.441641] printk: console [ttyS0] enabled
[    0.441641] printk: console [ttyS0] enabled
[    0.449997] printk: bootconsole [uart0] disabled
[    0.449997] printk: bootconsole [uart0] disabled
[    0.460336] cacheinfo: Unable to detect cache hierarchy for CPU 0
[    0.470573] loop: module loaded
[    0.474039] Loading iSCSI transport class v2.0-870.
[    0.480317] sun50i-h5-pinctrl 1c20800.pinctrl: supply vcc-pc not found, using dummy regulator
[    0.489839] spi-nor spi0.0: mx25l1606e (2048 Kbytes)
[    0.496662] libphy: Fixed MDIO Bus: probed
[    0.502522] sun50i-h5-pinctrl 1c20800.pinctrl: supply vcc-pd not found, using dummy regulator
[    0.511287] dwmac-sun8i 1c30000.ethernet: IRQ eth_wake_irq not found
[    0.517639] dwmac-sun8i 1c30000.ethernet: IRQ eth_lpi not found
[    0.524608] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.531167] ehci-platform: EHCI generic platform driver
[    0.536577] ehci-platform 1c1a000.usb: EHCI Host Controller
[    0.542180] ehci-platform 1c1a000.usb: new USB bus registered, assigned bus number 1
[    0.550034] ehci-platform 1c1a000.usb: irq 20, io mem 0x01c1a000
[    0.588622] ehci-platform 1c1a000.usb: USB 2.0 started, EHCI 1.00
[    0.594875] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.10
[    0.603146] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    0.610375] usb usb1: Product: EHCI Host Controller
[    0.615247] usb usb1: Manufacturer: Linux 5.10.78 ehci_hcd
[    0.620732] usb usb1: SerialNumber: 1c1a000.usb
[    0.625652] hub 1-0:1.0: USB hub found
[    0.629436] hub 1-0:1.0: 1 port detected
[    0.633994] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.640206] ohci-platform: OHCI generic platform driver
[    0.645617] ohci-platform 1c1a400.usb: Generic Platform OHCI controller
[    0.652250] ohci-platform 1c1a400.usb: new USB bus registered, assigned bus number 2
[    0.660104] ohci-platform 1c1a400.usb: irq 21, io mem 0x01c1a400
[    0.732775] usb usb2: New USB device found, idVendor=1d6b, idProduct=0001, bcdDevice= 5.10
[    0.741045] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    0.748257] usb usb2: Product: Generic Platform OHCI controller
[    0.754176] usb usb2: Manufacturer: Linux 5.10.78 ohci_hcd
[    0.759660] usb usb2: SerialNumber: 1c1a400.usb
[    0.764543] hub 2-0:1.0: USB hub found
[    0.768317] hub 2-0:1.0: 1 port detected
[    0.772981] usbcore: registered new interface driver usb-storage
[    0.779515] mousedev: PS/2 mouse device common for all mice
[    0.785357] i2c /dev entries driver
[    0.789845] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    0.798446] sun50i-h5-pinctrl 1c20800.pinctrl: supply vcc-pf not found, using dummy regulator
[    0.798450] sun8i-h3-r-pinctrl 1f02c00.pinctrl: supply vcc-pl not found, using dummy regulator
[    0.798511] sun50i-h5-pinctrl 1c20800.pinctrl: supply vcc-pg not found, using dummy regulator
[    0.807641] NET: Registered protocol family 10
[    0.816256] sunxi-mmc 1c0f000.mmc: Got CD GPIO
[    0.825031] Segment Routing with IPv6
[    0.836817] NET: Registered protocol family 17
[    0.841318] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if                                                                                         you need this.
[    0.844031] sunxi-mmc 1c10000.mmc: initialized, max. request size: 16384 KB, uses new timings mode
[    0.854265] can: controller area network core
[    0.854320] NET: Registered protocol family 29
[    0.863674] sunxi-mmc 1c0f000.mmc: initialized, max. request size: 16384 KB, uses new timings mode
[    0.867599] 8021q: 802.1Q VLAN Support v1.8
[    0.893230] mmc1: new high speed SDIO card at address 0001
[    0.893528] sun50i-h5-pinctrl 1c20800.pinctrl: supply vcc-pd not found, using dummy regulator
[    0.909144] dwmac-sun8i 1c30000.ethernet: IRQ eth_wake_irq not found
[    0.915504] dwmac-sun8i 1c30000.ethernet: IRQ eth_lpi not found
[    0.921725] dwmac-sun8i 1c30000.ethernet: PTP uses main clock
[    0.926857] mmc0: host does not support reading read-only switch, assuming write-enable
[    0.927482] dwmac-sun8i 1c30000.ethernet: Current syscon value is not the default 50006 (expect 58000)
[    0.935588] mmc0: new SD card at address 91c2
[    0.949932] mmcblk0: mmc0:91c2 SU02G 1.84 GiB
[    0.955970]  mmcblk0: p1 p2
[    1.058786] dwmac-sun8i 1c30000.ethernet: No HW DMA feature register supported
[    1.066009] dwmac-sun8i 1c30000.ethernet: RX Checksum Offload Engine supported
[    1.073234] dwmac-sun8i 1c30000.ethernet: COE Type 2
[    1.078191] dwmac-sun8i 1c30000.ethernet: TX Checksum insertion supported
[    1.084978] dwmac-sun8i 1c30000.ethernet: Normal descriptors
[    1.090637] dwmac-sun8i 1c30000.ethernet: Chain mode enabled
[    1.096739] libphy: stmmac: probed
[    1.101430] dwmac-sun8i 1c30000.ethernet: Found internal PHY node
[    1.107940] libphy: mdio_mux: probed
[    1.111564] dwmac-sun8i 1c30000.ethernet: Switch mux to internal PHY
[    1.117915] dwmac-sun8i 1c30000.ethernet: Powering internal PHY
[    1.124896] libphy: mdio_mux: probed
[    1.128481] dwmac-sun8i 1c30000.ethernet: Switch mux to external PHY
[    1.136498] ehci-platform 1c1b000.usb: EHCI Host Controller
[    1.142110] ehci-platform 1c1b000.usb: new USB bus registered, assigned bus number 3
[    1.149962] ehci-platform 1c1b000.usb: irq 22, io mem 0x01c1b000
[    1.188620] ehci-platform 1c1b000.usb: USB 2.0 started, EHCI 1.00
[    1.194864] usb usb3: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.10
[    1.203131] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.2(squashfs filesystem) readonly on device 179:2.
[    1.397750] Freeing unused kernel memory: 448K
[    1.488691] Run /sbin/init as init process
[    1.753621] init: Console is alive
[    1.757188] init: - watchdog -
[    1.908248] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    1.915198] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    1.932130] init: - preinit -
[    2.456322] random: jshn: uninitialized urandom read (4 bytes read)
[    2.531836] random: jshn: uninitialized urandom read (4 bytes read)
[    2.549345] random: jshn: uninitialized urandom read (4 bytes read)
[    2.629880] dwmac-sun8i 1c30000.ethernet eth0: PHY [0.2:01] driver [RTL8211E Gigabit Ethernet] (irq=POLL)
[    2.640320] dwmac-sun8i 1c30000.ethernet eth0: No Safety Features support found
[    2.647625] dwmac-sun8i 1c30000.ethernet eth0: No MAC Management Counters available
[    2.655282] dwmac-sun8i 1c30000.ethernet eth0: PTP not supported by HW
[    2.662586] dwmac-sun8i 1c30000.ethernet eth0: configuring for phy/rgmii link mode
Press the [f] key and hit [enter] to enter failsafe mode
Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level
[    4.769451] dwmac-sun8i 1c30000.ethernet eth0: Link is Up - 10Mbps/Full - flow control off
[    4.777760] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[    6.849615] dwmac-sun8i 1c30000.ethernet eth0: Link is Down
[    7.426256] F2FS-fs (loop0): Mounted with checkpoint version = 5ccce27e
[    7.433718] mount_root: switching to f2fs overlay
[    7.439537] overlayfs: "xino" feature enabled using 32 upper inode bits.
[    7.498378] random: fast init done
[    7.545751] urandom-seed: Seeding with /etc/urandom.seed
[    7.631319] procd: - early -
[    7.634297] procd: - watchdog -
[    8.223545] procd: - watchdog -
[    8.290771] procd: - ubus -
[    8.336032] urandom_read: 5 callbacks suppressed
[    8.336038] random: ubusd: uninitialized urandom read (4 bytes read)
[    8.347739] random: ubusd: uninitialized urandom read (4 bytes read)
[    8.355725] procd: - init -
Please press Enter to activate this console.
[    8.685871] kmodloader: loading kernel modules from /etc/modules.d/*
[    8.699189] urngd: v1.0.2 started.
[    8.738894] random: crng init done
[    8.779821] xt_time: kernel timezone is -0000
[    8.794730] PPP generic driver version 2.4.2
[    8.799993] NET: Registered protocol family 24
[    8.811343] kmodloader: done loading kernel modules from /etc/modules.d/*
[   11.862124] dwmac-sun8i 1c30000.ethernet eth0: PHY [0.2:01] driver [RTL8211E Gigabit Ethernet] (irq=POLL)
[   11.872710] dwmac-sun8i 1c30000.ethernet eth0: No Safety Features support found
[   11.880220] dwmac-sun8i 1c30000.ethernet eth0: No MAC Management Counters available
[   11.887923] dwmac-sun8i 1c30000.ethernet eth0: PTP not supported by HW
[   11.894644] dwmac-sun8i 1c30000.ethernet eth0: configuring for phy/rgmii link mode
[   11.903560] br-lan: port 1(eth0) entered blocking state
[   11.908924] br-lan: port 1(eth0) entered disabled state
[   11.914472] device eth0 entered promiscuous mode
[   16.039439] dwmac-sun8i 1c30000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off
[   16.047665] br-lan: port 1(eth0) entered blocking state
[   16.052912] br-lan: port 1(eth0) entered forwarding state
[   16.058872] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready

That looks pretty good, I can't spot any problem there.
Please test if networking works (ping, ssh).

If you are missing the web-interface (LuCI) note that it is not installed by default in snapshot/nightly images. If you wan LuCI, connect the device to the Internet and run opkg install luci.

1 Like

I know my way around OpenWRT :wink: The device doesn't offer a DHCP lease, nor can I ping/ssh when I set a static address.

Can you login on the serial console and see in ifconfig if packets arrive?

Yes both eth0 and br-lan show RX/TX packets and bytes.

Ok. Please validate that packets are actually sent out properly as TX may well work from Linux point of view but not actually arrive in the physical world.

ping6 ff02::1%br-lan

any replies?

I'm not sure how to verify this?

Yes:

--- ff02::1%br-lan ping statistics ---
11 packets transmitted, 11 packets received, 0% packet loss
round-trip min/avg/max = 0.129/0.170/0.353 ms

Having no duplicate replies means you only got replies from localhost. So something is wrong in the TX path of the stmmac or the communication with the PHY was not setup correctly (tx-delay may be needed?).
As you said it was working with Linux 5.4, it'd be interesting to find out what exactly broke it...

FWIW, here's the serial output for 21.02.1

U-Boot SPL 2020.04 (Oct 24 2021 - 09:01:35 +0000)
DRAM: 512 MiB
Trying to boot from MMC1
NOTICE:  BL31: v2.0(release):v21.02.1
NOTICE:  BL31: Built : 09:01:35, Oct 24 2021
NOTICE:  BL31: Detected Allwinner H5 SoC (1718)
NOTICE:  BL31: STUB PMIC setup code called


U-Boot 2020.04 (Oct 24 2021 - 09:01:35 +0000) Allwinner Technology

CPU:   Allwinner H5 (SUN50I)
Model: Xunlong Orange Pi Zero Plus
DRAM:  512 MiB
MMC:   mmc@1c0f000: 0, mmc@1c10000: 1
Loading Environment from FAT... *** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
Net:   phy interface7
Could not get PHY for ethernet@1c30000: addr 1
No ethernet found.

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.scr
482 bytes read in 2 ms (235.4 KiB/s)
## Executing script at 4fc00000
10684424 bytes read in 886 ms (11.5 MiB/s)
18579 bytes read in 5 ms (3.5 MiB/s)
## Flattened Device Tree blob at 4fa00000
   Booting using the fdt blob at 0x4fa00000
EHCI failed to shut down host controller.
   Loading Device Tree to 0000000049ff8000, end 0000000049fff892 ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[    0.000000] Linux version 5.4.154 (builder@buildhost) (gcc version 8.4.0 (OpenWrt GCC 8.4.0 r16325-88151b8303)) #0 SMP Sun Oct 24 09:01:35 2021
[    0.000000] Machine model: Xunlong Orange Pi Zero Plus
[    0.000000] earlycon: uart0 at MMIO32 0x0000000001c28000 (options '')
[    0.000000] printk: bootconsole [uart0] enabled
[    0.000000] psci: probing for conduit method from DT.
[    0.000000] psci: PSCIv1.1 detected in firmware.
[    0.000000] psci: Using standard PSCI v0.2 function IDs
[    0.000000] psci: MIGRATE_INFO_TYPE not supported.
[    0.000000] psci: SMC Calling Convention v1.1
[    0.000000] percpu: Embedded 21 pages/cpu s46872 r8192 d30952 u86016
[    0.000000] Detected VIPT I-cache on CPU0
[    0.000000] Speculative Store Bypass Disable mitigation not required
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 129024
[    0.000000] Kernel command line: console=ttyS0,115200 earlyprintk root=PARTUUID=5452574f-02 rootwait earlycon=uart,mmio32,0x01c28000
[    0.000000] Dentry cache hash table entries: 65536 (order: 7, 524288 bytes, linear)
[    0.000000] Inode-cache hash table entries: 32768 (order: 6, 262144 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 494904K/524288K available (7678K kernel code, 706K rwdata, 1432K rodata, 576K init, 299K bss, 29384K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000] rcu:     CONFIG_RCU_FANOUT set to non-default value of 32.
[    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=4.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
[    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4
[    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[    0.000000] GIC: Using split EOI/Deactivate mode
[    0.000000] random: get_random_bytes called from 0xffffffc010970b98 with crng_init=0
[    0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[    0.000005] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.008101] Console: colour dummy device 80x25
[    0.012577] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=96000)
[    0.022831] pid_max: default: 32768 minimum: 301
[    0.027573] Mount-cache hash table entries: 1024 (order: 1, 8192 bytes, linear)
[    0.034881] Mountpoint-cache hash table entries: 1024 (order: 1, 8192 bytes, linear)
[    0.044028] ASID allocator initialised with 32768 entries
[    0.049517] rcu: Hierarchical SRCU implementation.
[    0.054736] smp: Bringing up secondary CPUs ...
[    0.060406] Detected VIPT I-cache on CPU1
[    0.060460] CPU1: Booted secondary processor 0x0000000001 [0x410fd034]
[    0.061290] Detected VIPT I-cache on CPU2
[    0.061320] CPU2: Booted secondary processor 0x0000000002 [0x410fd034]
[    0.062073] Detected VIPT I-cache on CPU3
[    0.062100] CPU3: Booted secondary processor 0x0000000003 [0x410fd034]
[    0.062164] smp: Brought up 1 node, 4 CPUs
[    0.097815] SMP: Total of 4 processors activated.
[    0.102516] CPU features: detected: 32-bit EL0 Support
[    0.107651] CPU features: detected: CRC32 instructions
[    0.112822] CPU features: emulated: Privileged Access Never (PAN) using TTBR0_EL1 switching
[    0.121168] CPU: All CPU(s) started at EL2
[    0.125278] alternatives: patching kernel code
[    0.134196] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.143960] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[    0.151013] pinctrl core: initialized pinctrl subsystem
[    0.157073] NET: Registered protocol family 16
[    0.161899] DMA: preallocated 256 KiB pool for atomic allocations
[    0.183091] SCSI subsystem initialized
[    0.187281] usbcore: registered new interface driver usbfs
[    0.192826] usbcore: registered new interface driver hub
[    0.198226] usbcore: registered new device driver usb
[    0.203431] videodev: Linux video capture interface: v2.00
[    0.208952] pps_core: LinuxPPS API ver. 1 registered
[    0.213914] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.223051] PTP clock support registered
[    0.227290] Advanced Linux Sound Architecture Driver Initialized.
[    0.233484] workqueue: max_active 576 requested for napi_workq is out of range, clamping between 1 and 512
[    0.243990] clocksource: Switched to clocksource arch_sys_counter
[    0.254623] thermal_sys: Registered thermal governor 'step_wise'
[    0.254951] NET: Registered protocol family 2
[    0.265497] IP idents hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.273344] tcp_listen_portaddr_hash hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.281711] TCP established hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    0.289505] TCP bind hash table entries: 4096 (order: 4, 65536 bytes, linear)
[    0.296722] TCP: Hash tables configured (established 4096 bind 4096)
[    0.303173] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.309715] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.316838] NET: Registered protocol family 1
[    0.321684] kvm [1]: IPA Size Limit: 40 bits
[    0.326298] kvm [1]: vgic interrupt IRQ1
[    0.330364] kvm [1]: Hyp mode initialized successfully
[    0.336484] workingset: timestamp_bits=46 max_order=17 bucket_order=0
[    0.348363] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.354331] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.365303] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
[    0.373488] sun4i-usb-phy 1c19400.phy: Couldn't request ID GPIO
[    0.381978] sun8i-h3-r-pinctrl 1f02c00.pinctrl: initialized sunXi PIO driver
[    0.392389] sun50i-h5-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.404833] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[    0.413209] sun50i-h5-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pa not found, using dummy regulator
[    0.423485] printk: console [ttyS0] disabled
[    0.447893] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 23, base_baud = 1500000) is a U6_16550A
[    0.456879] printk: console [ttyS0] enabled
[    0.456879] printk: console [ttyS0] enabled
[    0.465232] printk: bootconsole [uart0] disabled
[    0.465232] printk: bootconsole [uart0] disabled
[    0.475311] cacheinfo: Unable to detect cache hierarchy for CPU 0
[    0.484995] loop: module loaded
[    0.488413] Loading iSCSI transport class v2.0-870.
[    0.494304] sun50i-h5-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pc not found, using dummy regulator
[    0.505236] spi-nor spi0.0: mx25l1606e (2048 Kbytes)
[    0.511748] libphy: Fixed MDIO Bus: probed
[    0.517301] sun50i-h5-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pd not found, using dummy regulator
[    0.527391] dwmac-sun8i 1c30000.ethernet: IRQ eth_wake_irq not found
[    0.533748] dwmac-sun8i 1c30000.ethernet: IRQ eth_lpi not found
[    0.539770] dwmac-sun8i 1c30000.ethernet: PTP uses main clock
[    0.546193] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.552726] ehci-platform: EHCI generic platform driver
[    0.558092] ehci-platform 1c1a000.usb: EHCI Host Controller
[    0.563683] ehci-platform 1c1a000.usb: new USB bus registered, assigned bus number 1
[    0.571524] ehci-platform 1c1a000.usb: irq 11, io mem 0x01c1a000
[    0.595998] ehci-platform 1c1a000.usb: USB 2.0 started, EHCI 1.00
[    0.602266] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.04
[    0.610531] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    0.617751] usb usb1: Product: EHCI Host Controller
[    0.622629] usb usb1: Manufacturer: Linux 5.4.154 ehci_hcd
[    0.628114] usb usb1: SerialNumber: 1c1a000.usb
[    0.633014] hub 1-0:1.0: USB hub found
[    0.636799] hub 1-0:1.0: 1 port detected
[    0.641298] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.647503] ohci-platform: OHCI generic platform driver
[    0.652877] ohci-platform 1c1a400.usb: Generic Platform OHCI controller
[    0.659505] ohci-platform 1c1a400.usb: new USB bus registered, assigned bus number 2
[    0.667352] ohci-platform 1c1a400.usb: irq 12, io mem 0x01c1a400
[    0.736161] usb usb2: New USB device found, idVendor=1d6b, idProduct=0001, bcdDevice= 5.04
[    0.744428] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    0.751648] usb usb2: Product: Generic Platform OHCI controller
[    0.757568] usb usb2: Manufacturer: Linux 5.4.154 ohci_hcd
[    0.763054] usb usb2: SerialNumber: 1c1a400.usb
[    0.767925] hub 2-0:1.0: USB hub found
[    0.771706] hub 2-0:1.0: 1 port detected
[    0.776296] usbcore: registered new interface driver usb-storage
[    0.782496] mousedev: PS/2 mouse device common for all mice
[    0.788373] i2c /dev entries driver
[    0.792387] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    0.800892] sun50i-h5-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pf not found, using dummy regulator
[    0.811313] sunxi-mmc 1c0f000.mmc: Got CD GPIO
[    0.841131] sunxi-mmc 1c0f000.mmc: initialized, max. request size: 16384 KB, uses new timings mode
[    0.850356] sun50i-h5-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pg not found, using dummy regulator
[    0.885936] sunxi-mmc 1c10000.mmc: initialized, max. request size: 16384 KB, uses new timings mode
[    0.895304] sun8i-h3-r-pinctrl 1f02c00.pinctrl: 1f02c00.pinctrl supply vcc-pl not found, using dummy regulator
[    0.914479] NET: Registered protocol family 10
[    0.919733] Segment Routing with IPv6
[    0.923498] NET: Registered protocol family 17
[    0.927992] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[    0.940930] can: controller area network core (rev 20170425 abi 9)
[    0.947155] NET: Registered protocol family 29
[    0.951605] 8021q: 802.1Q VLAN Support v1.8
[    0.964099] sun50i-h5-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pd not found, using dummy regulator
[    0.975739] dwmac-sun8i 1c30000.ethernet: IRQ eth_wake_irq not found
[    0.982110] dwmac-sun8i 1c30000.ethernet: IRQ eth_lpi not found
[    0.988130] dwmac-sun8i 1c30000.ethernet: PTP uses main clock
[    0.997854] mmc0: host does not support reading read-only switch, assuming write-enable
[    1.005997] mmc0: new SD card at address 91c2
[    1.011100] mmcblk0: mmc0:91c2 SU02G 1.84 GiB
[    1.017012]  mmcblk0: p1 p2
[    1.033678] mmc1: new high speed SDIO card at address 0001
[    1.100149] dwmac-sun8i 1c30000.ethernet: Current syscon value is not the default 50006 (expect 58000)
[    1.109474] dwmac-sun8i 1c30000.ethernet: No HW DMA feature register supported
[    1.116695] dwmac-sun8i 1c30000.ethernet: RX Checksum Offload Engine supported
[    1.123915] dwmac-sun8i 1c30000.ethernet: COE Type 2
[    1.128880] dwmac-sun8i 1c30000.ethernet: TX Checksum insertion supported
[    1.135666] dwmac-sun8i 1c30000.ethernet: Normal descriptors
[    1.141325] dwmac-sun8i 1c30000.ethernet: Chain mode enabled
[    1.147125] libphy: stmmac: probed
[    1.151191] dwmac-sun8i 1c30000.ethernet: Found internal PHY node
[    1.157388] libphy: mdio_mux: probed
[    1.160983] dwmac-sun8i 1c30000.ethernet: Switch mux to internal PHY
[    1.167342] dwmac-sun8i 1c30000.ethernet: Powering internal PHY
[    1.173971] libphy: mdio_mux: probed
[    1.177563] dwmac-sun8i 1c30000.ethernet: Switch mux to external PHY
[    1.185211] ehci-platform 1c1b000.usb: EHCI Host Controller
[    1.190808] ehci-platform 1c1b000.usb: new USB bus registered, assigned bus number 3
[    1.198656] ehci-platform 1c1b000.usb: irq 13, io mem 0x01c1b000
[    1.219999] ehci-platform 1c1b000.usb: USB 2.0 started, EHCI 1.00
[    1.226274] usb usb3: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.04
[    1.234539] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.241759] usb usb3: Product: EHCI Host Controller
[    1.246637] usb usb3: Manufacturer: Linux 5.4.154 ehci_hcd
[    1.252121] usb usb3: SerialNumber: 1c1b000.usb
[    1.257000] hub 3-0:1.0: USB hub found
[    1.260785] hub 3-0:1.0: 1 port detected
[    1.265413] ohci-platform 1c1b400.usb: Generic Platform OHCI controller
[    1.272049] ohci-platform 1c1b400.usb: new USB bus registered, assigned bus number 4
[    1.279896] ohci-platform 1c1b400.usb: irq 14, io mem 0x01c1b400
[    1.348144] usb usb4: New USB device found, idVendor=1d6b, idProduct=0001, bcdDevice= 5.04
[    1.356411] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.363632] usb usb4: Product: Generic Platform OHCI controller
[    1.369552] usb usb4: Manufacturer: Linux 5.4.154 ohci_hcd
[    1.375037] usb usb4: SerialNumber: 1c1b400.usb
[    1.379904] hub 4-0:1.0: USB hub found
[    1.383691] hub 4-0:1.0: 1 port detected
[    1.387962] hctosys: unable to open rtc device (rtc0)
[    1.393424] ALSA device list:
[    1.396400]   No soundcards found.
[    1.407194] VFS: Mounted root (squashfs filesystem) readonly on device 179:2.
[    1.414752] Freeing unused kernel memory: 576K
[    1.436037] Run /sbin/init as init process
[    1.665973] init: Console is alive
[    1.669550] init: - watchdog -
[    1.778826] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    1.785752] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    1.794032] init: - preinit -
[    2.306396] random: jshn: uninitialized urandom read (4 bytes read)
[    2.360621] random: jshn: uninitialized urandom read (4 bytes read)
[    2.378113] random: jshn: uninitialized urandom read (4 bytes read)
[    2.422815] dwmac-sun8i 1c30000.ethernet eth0: PHY [0.2:01] driver [RTL8211E Gigabit Ethernet]
[    2.432323] dwmac-sun8i 1c30000.ethernet eth0: No Safety Features support found
[    2.439636] dwmac-sun8i 1c30000.ethernet eth0: No MAC Management Counters available
[    2.447291] dwmac-sun8i 1c30000.ethernet eth0: PTP not supported by HW
[    2.453822] dwmac-sun8i 1c30000.ethernet eth0: configuring for phy/rgmii link mode
Press the [f] key and hit [enter] to enter failsafe mode
Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level
[    4.504629] dwmac-sun8i 1c30000.ethernet eth0: Link is Up - 10Mbps/Full - flow control off
[    4.512950] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[    5.528262] dwmac-sun8i 1c30000.ethernet eth0: Link is Down
[    6.581140] urandom_read: 2 callbacks suppressed
[    6.581146] random: procd: uninitialized urandom read (4 bytes read)
[    6.601295] mount_root: rootdisk overlay filesystem has not been formatted yet
[    6.715839] random: mkfs.f2fs: uninitialized urandom read (16 bytes read)
[    7.266341] random: fast init done
[    8.600607] dwmac-sun8i 1c30000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off
[   10.159933] F2FS-fs (loop0): Found nat_bits in checkpoint
[   10.179963] F2FS-fs (loop0): Mounted with checkpoint version = 5ccce271
[   10.187104] mount_root: overlay filesystem has not been fully initialized yet
[   10.194628] mount_root: switching to f2fs overlay
[   10.203264] overlayfs: "xino" feature enabled using 32 upper inode bits.
[   10.282803] urandom-seed: Seed file not found (/etc/urandom.seed)
[   10.350449] dwmac-sun8i 1c30000.ethernet eth0: Link is Down
[   10.361268] procd: - early -
[   10.364275] procd: - watchdog -
[   10.928934] procd: - watchdog -
[   10.940985] procd: - ubus -
[   11.005628] random: ubusd: uninitialized urandom read (4 bytes read)
[   11.012862] random: ubusd: uninitialized urandom read (4 bytes read)
[   11.019464] random: ubusd: uninitialized urandom read (4 bytes read)
[   11.026981] procd: - init -
Please press Enter to activate this console.
[   11.281060] kmodloader: loading kernel modules from /etc/modules.d/*
[   11.308497] urngd: v1.0.2 started.
[   11.312679] xt_time: kernel timezone is -0000
[   11.324867] PPP generic driver version 2.4.2
[   11.329918] NET: Registered protocol family 24
[   11.339369] kmodloader: done loading kernel modules from /etc/modules.d/*
[   11.349969] random: crng init done
[   19.409751] dwmac-sun8i 1c30000.ethernet eth0: PHY [0.2:01] driver [RTL8211E Gigabit Ethernet]
[   19.419357] dwmac-sun8i 1c30000.ethernet eth0: No Safety Features support found
[   19.426722] dwmac-sun8i 1c30000.ethernet eth0: No MAC Management Counters available
[   19.434421] dwmac-sun8i 1c30000.ethernet eth0: PTP not supported by HW
[   19.440995] dwmac-sun8i 1c30000.ethernet eth0: configuring for phy/rgmii link mode
[   19.449154] br-lan: port 1(eth0) entered blocking state
[   19.454473] br-lan: port 1(eth0) entered disabled state
[   19.460087] device eth0 entered promiscuous mode
[   22.520596] dwmac-sun8i 1c30000.ethernet eth0: Link is Up - 10Mbps/Full - flow control off
[   22.528915] br-lan: port 1(eth0) entered blocking state
[   22.534154] br-lan: port 1(eth0) entered forwarding state
[   22.540147] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[   23.544261] dwmac-sun8i 1c30000.ethernet eth0: Link is Down
[   23.551026] br-lan: port 1(eth0) entered disabled state
[   26.616590] dwmac-sun8i 1c30000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off
[   26.624829] br-lan: port 1(eth0) entered blocking state
[   26.630068] br-lan: port 1(eth0) entered forwarding state

It potentially looks like this:
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/drivers/net/phy/realtek.c?h=v5.10.79&id=bbc4d71d63549bcd003a430de18a72a742d8c91e

I would just try changing the rgmii to rgmii-id to add delays, as its really really rare that no delays need to be added

2 Likes

Is there a way to test this myself? I guess this requires a kernel setting?

Yeah, just change the phy-mode from rgmii to rgmii-id in the DTS

1 Like

I've been tinkering with this all evening, but it's a bit above my skillset. Whatever I do in the DTS, the bootlog keeps giving configuring for phy/rgmii link mode as output. If you or anyone else could generate an image with the rgmii-id setting I'd be happy to test.

The easiest way would be to edit the DTS under the build_dir/target*/linux-/linux-5.10.

Yes I've changed the file sun50i-h5-orangepi-zero-plus.dts under build_dir\target-aarch64_cortex-a53_musl\linux-sunxi_cortexa53\linux-5.10.79\arch\arm64\boot\dts\allwinner into this:

&emac {
	pinctrl-names = "default";
	pinctrl-0 = <&emac_rgmii_pins>;
	phy-supply = <&reg_gmac_3v3>;
	phy-handle = <&ext_rgmii_phy>;
	phy-mode = "rgmii-id";
	status = "okay";
};

But that seems not to have any effect...

Hmm, this is weird.
Can you try removing the image-sun50i-h5-orangepi-zero-plus.dtb and then reruning make.

If I remove the .dtb the imagebuilder fails:

/home/ubuntu/Downloads/openwrt-imagebuilder-sunxi-cortexa53.Linux-x86_64/build_dir/target-aarch64_cortex-a53_musl/linux-sunxi_cortexa53/linux-5.10.79/arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-zero-plus.dtb: No such file or directory

So for whatever reason, it's not rebuilding the DTS at all.
Can you then add this patch to the patches-5.10 folder in the sunxi target:

From 2586de34d5eb18cb23440acd0ff84e06a05fcfbb Mon Sep 17 00:00:00 2001
From: Robert Marko <robimarko@gmail.com>
Date: Mon, 15 Nov 2021 10:49:18 +0100
Subject: [PATCH] arm64: dts: orangepi-zero-plus: use RGMII-ID

Try fixing traffic via adding delays by the PHY.

Signed-off-by: Robert Marko <robimarko@gmail.com>
---
 arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-zero-plus.dts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-zero-plus.dts b/arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-zero-plus.dts
index ef5ca6444220..de448ca51e21 100644
--- a/arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-zero-plus.dts
+++ b/arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-zero-plus.dts
@@ -69,7 +69,7 @@ &emac {
 	pinctrl-0 = <&emac_rgmii_pins>;
 	phy-supply = <&reg_gmac_3v3>;
 	phy-handle = <&ext_rgmii_phy>;
-	phy-mode = "rgmii";
+	phy-mode = "rgmii-id";
 	status = "okay";
 };
 
-- 
2.33.1
1 Like