Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NanoPi R2S: traffic LEDs on eth1 (LAN) not working #274

Closed
troglobit opened this issue Jan 23, 2024 · 3 comments · Fixed by #551
Closed

NanoPi R2S: traffic LEDs on eth1 (LAN) not working #274

troglobit opened this issue Jan 23, 2024 · 3 comments · Fixed by #551

Comments

@troglobit
Copy link
Contributor

While porting to Infix I'm sure I had the LEDs on both ports working fine at some point. Went from Linux 5.16, and while trying out various WiFi USB plugs, I went as high as 6.7.1 before landing on 6.5.11, which Infix is currently is on. So current linux_defconfig works on that newer kernels, but we have some patches that don't apply, so no way of testing before relocating them to a subdirectory.

From discussion in #271 (comment)

@wkz
Copy link
Contributor

wkz commented Jan 23, 2024

Is this on the LAN and/or WAN port?

Had a quick look at the schematic: the LEDs on both ports are controlled by the respective PHY.

The WAN port's PHY driver does not have any support for controlling the chip's LEDs, so it ought to run with the default settings.

The USB-to-Ethernet controller on the LAN port, messes about with some LED registers, by the looks of it, but that code hasn't changed since 5.13 🤷‍♂️

Are you running the original bootloader or the one you built? Sometimes vendors will configure things like LEDs in U-Boot and then trust Linux not to mess with them. Maybe you're missing some vendor patch to U-Boot?

@troglobit
Copy link
Contributor Author

You guessed it, the LAN port LEDs.

I've used the same U-Boot as is in the Buildroot default recipe. Dunno of any vendor specific U-Boot, the device can only boot from SD-card (no NOR flash or eMMC available onboard).

Only major difference I can think of: I did the initial bringup and testing on myLinux, which uses a much newer Buildroot base than Infix currently does. So we can table this one until we've bumped Buildroot (and the kernel?). Like @minexn says in #271, the port still works, so just an annoyance atm.

@troglobit
Copy link
Contributor Author

Found it, the driver was not setting up the LED register. Fixed in kkit-linux-6.10-y @ daba70e7.

Patch ported to upcoming r2s branch.

troglobit added a commit that referenced this issue Aug 11, 2024
Only the most important bridge and usb fixes have been ported in this
commit, and a new patch for the r8153 link/traffic LEDs, ported from
the FriendlyELEC/Rockchip kernel tree.

Fixes #274

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
@troglobit troglobit mentioned this issue Aug 11, 2024
13 tasks
@wkz wkz closed this as completed in #551 Aug 16, 2024
wkz pushed a commit that referenced this issue Aug 16, 2024
Only the most important bridge and usb fixes have been ported in this
commit, and a new patch for the r8153 link/traffic LEDs, ported from
the FriendlyELEC/Rockchip kernel tree.

Fixes #274

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants