Jump to content

Recommended Posts

Posted (edited)

Hi.

I have RockPi E v1.21 and I found, that I'm not able to boot image with new kernel 6.12 (tried minimal images 25.2.1 and 24.11.1, USBImager and Balena Etcher, 3 SD cards, different power supplies). With image 24.8.3 it boots normally.
Also I found, that after upgrading 24.8.3 to kernel 6.12 the RockPi boots, but Ethernet doesn't work (even LEDs are dead).
Another thing which I notice is, that I didn't find any option to disable kernel upgrades, but what I googled, it should be present in armbian-config->system->kernel->Y203. But this Y203 option is missing.

 

Here is successful boot log of 24.8.3: https://paste.armbian.com/ixuvimofis.sql
here is boot log of 24.8.3 upgraded to 6.12: https://paste.armbian.com/ahezanixol.sql

Here is failing boot of 25.2.1:  https://paste.armbian.com/onuhumomob.yaml


P.S. on the successful boot of 24.8.3 I didn't have ETH cable connected, that's why there is Network connection timeout!, but it works fine after connecting.
What's weird, that both 24.8.3 boots says on the beginning Net: Could not get PHY for ethernet@ff540000: addr -1 No ethernet found.
But I assume that's problem only of u-boot, because it's before kernel boot.

 

Thanks!

Edited by Benik3
Posted

It looks like the problem with not working ethernet after upgrade is after 24.11.1 version, because I now noticed, that I have one device upgraded to 24.11.1 and ethernet is working...

Posted

Confirmed, many thanks for reporting.

 

6.12.y has troubles with one of the NICs, but as regressions at major kernel upgrades are totally normal and expected in embedded Linux, we are providing you this: https://docs.armbian.com/User-Guide_Armbian-Config/System/#install-alternative-kernels

 

Use older kernels:

 

image.png

 

On 3/14/2025 at 4:56 PM, Benik3 said:

Another thing which I notice is, that I didn't find any option to disable kernel upgrades, but what I googled, it should be present in armbian-config->system->kernel->Y203. But this Y203 option is missing.

 

Make sure you update armbian-config package before doing that, then proceed with "Disable Armbian upgrades"

https://docs.armbian.com/User-Guide_Armbian-Config/System/#enable-armbian-firmware-upgrades

 

It was moved to armbian-config -> system -> updates

Spoiler

image.png

 

Spoiler

image.png

 

 

Verify in CLI:

 

igorp@rockpi-e:~$ sudo apt-mark showhold
linux-dtb-current-rockchip64
linux-image-current-rockchip64

 

 

Posted

Hi and thanks for reply.

I tried to dig more into the ethernet problem.
I found that there was already similar problem: https://forum.radxa.com/t/rock-pi-e-board-version-1-21-ethhernet-not-working-in-armbian/15061/4

There are 2 boards of RockPi-E 1.2 (using RTL8211E) and 1.21 (using RTL8211F).

So I tested the provided dts and it really helped. After sme trial-tests I found, that the real thing which helps is the compatible = "ethernet-phy-id001c.c916";

 

So using dts:
 

/dts-v1/;
/ {
	compatible = "rockchip,rk3328";
	fragment@0 {
		target-path = "/ethernet@ff540000/mdio";
		__overlay__ {
			ethernet-phy@1 {
				compatible = "ethernet-phy-id001c.c916";
			};
		};
	};
};

 

ethernet 0 is working fine.

 

Problem is, that with this dts the older RTL8211E will probably stop to work...

 

Thanks for pointing to the System updates. On 25 Armbian I see it, but on 24.8.3 when I updated only armbian-config, the Updates option is missing:
image.png.1b2d26277c5cf9cb6ffbb1ddcd9903c5.png

Posted
2 hours ago, Benik3 said:

Problem is, that with this dts the older RTL8211E will probably stop to work...


Probably. This can be solved by adding an overlay, so user can enable this at will, manually or via armbian-config.

 

2 hours ago, Benik3 said:

On 25 Armbian I see it, but on 24.8.3 when I updated only armbian-config, the Updates option is missing:

 

armbian-config lives in its own repository. Always make sure your packages are up2date / latest. Or at least armbian-config.

Posted (edited)
On 4/2/2025 at 3:37 PM, Benik3 said:

Problem is, that with this dts the older RTL8211E will probably stop to work...


Use of the RTL8211F phy-id in a compatible will stop it from properly being detected as a RTL8211E, so not a good idea.

 

Mainline Linux will not always handle a reset of the RTL8211F Ethernet PHY, at least on Rockchip boards when reset- properties is defined in the PHY-node, so you will end up with a "Could not get PHY" error unless the RTL8211F PHY has been reset by the bootloader prior to Linux.

Newer versions of U-Boot does this correctly, older versions like the U-Boot 2022.07-armbian-2022.07 version as seen in your logs does not even try to reset the Ethernet PHY.

Upgrading to a newer (and safer) version of U-Boot should solve your issue (and similar issues when Rockchip and RTL8211F is involved for other boards).

 

Using vanilla mainline U-Boot 2025.01 and vanilla mainline Linux 6.12 on a ROCK Pi E v1.21 does not have any issues to identify the Ethernet PHY:

 

U-Boot 2025.01 (Apr 03 2025 - 06:04:07 +0000)

Model: Radxa ROCK Pi E
DRAM:  1 GiB (effective 1022 MiB)
PMIC:  RK805 (on=0x40, off=0x00)
Core:  247 devices, 30 uclasses, devicetree: separate
MMC:   mmc@ff500000: 1, mmc@ff520000: 0
Loading Environment from MMC... Reading from MMC(1)... *** Warning - bad CRC, using default environment

In:    serial@ff130000
Out:   serial@ff130000
Err:   serial@ff130000
Model: Radxa ROCK Pi E
Net:   eth0: ethernet@ff540000
Hit any key to stop autoboot:  0


~ # ip link set eth0 up
[   27.617316] rk_gmac-dwmac ff550000.ethernet eth0: Register MEM_TYPE_PAGE_POOL RxQ-0
[   27.679150] rk_gmac-dwmac ff550000.ethernet eth0: PHY [stmmac-1:00] driver [Rockchip integrated EPHY] (irq=POLL)
[   27.690181] rk_gmac-dwmac ff550000.ethernet eth0: No Safety Features support found
[   27.690902] rk_gmac-dwmac ff550000.ethernet eth0: PTP not supported by HW
[   27.692259] rk_gmac-dwmac ff550000.ethernet eth0: configuring for phy/rmii link mode


~ # ip link set eth1 up
[   32.070210] rk_gmac-dwmac ff540000.ethernet eth1: Register MEM_TYPE_PAGE_POOL RxQ-0
[   32.153078] rk_gmac-dwmac ff540000.ethernet eth1: PHY [stmmac-0:01] driver [RTL8211F Gigabit Ethernet] (irq=53)
[   32.165523] rk_gmac-dwmac ff540000.ethernet eth1: No Safety Features support found
[   32.166268] rk_gmac-dwmac ff540000.ethernet eth1: PTP not supported by HW
[   32.167621] rk_gmac-dwmac ff540000.ethernet eth1: configuring for phy/rgmii link mode

 

Edited by Kwiboo
Posted

BTW I found also another weird behavior.
I have more of the RockPi E boards. All are 1.21 version and bought in one batch.
I have SD card with the trunk 316 Pluck Armbian, and on one board the ethernet doesn't work, but on another 2 yes...
Also even more weird thing, on the working board when I install 24.8.3 and the do full-upgrade, it also doesn't work...
So maybe it's also some time race of the reset?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines