Report about Amlogic S905X4 HK1 RBOX X4

I have some good news for all CE users that has a box with JL2101 phy: I’ve ported the JL2101 PHY driver to CE’s kernel, and it works perfectly fine!

CoreELEC:~ # find /usr/lib/modules/4.9.269 -name jl*
/usr/lib/modules/4.9.269/kernel/drivers/net/phy/jl2xx1.ko
CoreELEC:~ # ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue qlen 1
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP8000> mtu 1500 qdisc fq_codel qlen 1000
    link/ether 00:e5:00:00:18:c1 brd ff:ff:ff:ff:ff:ff
    inet 192.168.7.145/24 brd 192.168.7.255 scope global eth0
       valid_lft forever preferred_lft forever
3: wlan0: <NO-CARRIER,BROADCAST,MULTICAST,UP,LOWER_UP8000> mtu 1500 qdisc fq_codel qlen 1000
    link/ether d0:22:be:ea:1a:f1 brd ff:ff:ff:ff:ff:ff
    inet6 fe80::d222:beff:feea:1af1/64 scope link
       valid_lft forever preferred_lft forever

Backstory: Even I was lucky to get a non-JL2101 HK1 RBOX X4, I was still hit by it as I bought another S905X3 HK1 BOX for tinkering and without any surprise it came with the notorious JL2101.

The driver is not directly available on JLsemi’s website but I managed to find it in the format of patches in embedfire’s LubanCatWrt (an OpenWrt fork) repo for their DoorNet2 for the Rockchip 5.4 kernel they are using. The driver was ported to some other OpenWrt forks as well. After porting the driver and backporting some macros from newer kernels and the driver successfully builds and loads and works with high load for several hours.

I’ll clean up the code a little bit and opened a PR tomorrow to merge this driver into CE’s kernel : )

3 Likes