NanoPI R6S with OpenWRT

Warning: Spectulation ahead

From the CNX article:

This section is not coming from Collabora, it’s just some information I got from a few trustee third parties and some speculation. It should be taken with a grain of salt, and I’ll update it if I get feedback from Rockchip or companies using RK3588. I was told Rockchip no longer considers RK3588 to be an “open source” chip. In practice, that means Rockchip no longer contributes RK3588 code to open-source projects (not sure when the TF-A code mentioned above was released) and they also decided not to sell RK3588 directly to SBC vendors. The latter is not a big issue, since they may be able to source chips from resellers, but it may increase prices. You may also have read that Joshua Riek who worked on Ubuntu Rockchip decided to take a break. While the reason given is mostly burnout and lack of funding, what we are discussing here may potentially explain why he was not able to get access to the Rockchip SDK.

1 Like

Hi,

I am running OpenWRT snapshot:

root@np2:~# cat /etc/openwrt_release
DISTRIB_ID='OpenWrt'
DISTRIB_RELEASE='SNAPSHOT'
DISTRIB_REVISION='r28363-f10ee1e209'
DISTRIB_TARGET='rockchip/armv8'
DISTRIB_ARCH='aarch64_generic'
DISTRIB_DESCRIPTION='OpenWrt SNAPSHOT r28363-f10ee1e209'
DISTRIB_TAINTS=''
root@np2:~#

I have noted kernel panic in last 5 days:

root@np2:~# dmesg -T
...
[Mon Dec 23 10:01:25 2024] Unable to handle kernel paging request at virtual address ffff00010be6aa2c
[Mon Dec 23 10:01:25 2024] Mem abort info:
[Mon Dec 23 10:01:25 2024]   ESR = 0x0000000096000021
[Mon Dec 23 10:01:25 2024]   EC = 0x25: DABT (current EL), IL = 32 bits
[Mon Dec 23 10:01:25 2024]   SET = 0, FnV = 0
[Mon Dec 23 10:01:25 2024]   EA = 0, S1PTW = 0
[Mon Dec 23 10:01:25 2024]   FSC = 0x21: alignment fault
[Mon Dec 23 10:01:25 2024] Data abort info:
[Mon Dec 23 10:01:25 2024]   ISV = 0, ISS = 0x00000021, ISS2 = 0x00000000
[Mon Dec 23 10:01:25 2024]   CM = 0, WnR = 0, TnD = 0, TagAccess = 0
[Mon Dec 23 10:01:25 2024]   GCS = 0, Overlay = 0, DirtyBit = 0, Xs = 0
[Mon Dec 23 10:01:25 2024] swapper pgtable: 4k pages, 48-bit VAs, pgdp=0000000003e76000
[Mon Dec 23 10:01:25 2024] [ffff00010be6aa2c] pgd=18000002ffff8003, p4d=18000002ffff8003, pud=18000002ff879003, pmd=18000002ff819003, pte=006800010be6a707
[Mon Dec 23 10:01:25 2024] Internal error: Oops: 0000000096000021 [#4] PREEMPT SMP
[Mon Dec 23 10:01:25 2024] Modules linked in: pppoe ppp_async nft_fib_inet nf_flow_table_inet wireguard pppox ppp_generic nft_reject_ipv6 nft_reject_ipv4 nft_reject_inet nft_reject nft_redir nft_quota nft_numgen nft_nat nft_masq nft_log nft_limit nft_hash nft_flow_offload nft_fib_ipv6 nft_fib_ipv4 nft_fib nft_ct nft_compat nft_chain_nat nf_tables nf_nat nf_flow_table nf_conntrack libchacha20poly1305 iptable_mangle iptable_filter ipt_REJECT ipt_ECN ip_tables chacha_neon xt_time xt_tcpudp xt_tcpmss xt_statistic xt_multiport xt_mark xt_mac xt_limit xt_length xt_hl xt_ecn xt_dscp xt_comment xt_TCPMSS xt_LOG xt_HL xt_DSCP xt_CLASSIFY x_tables slhc sch_cake r8125(O) poly1305_neon nfnetlink nf_reject_ipv6
nf_reject_ipv4 nf_log_syslog nf_defrag_ipv6 nf_defrag_ipv4 libcurve25519_generic libchacha crc_ccitt sch_tbf sch_ingress sch_htb sch_hfsc em_u32 cls_u32 cls_route cls_matchall cls_fw cls_flow cls_basic act_skbedit act_mirred act_gact msdos ifb ip6_udp_tunnel udp_tunnel sit tunnel4 ip_tunnel tun ntfs autofs4 nls_utf8 nls_cp437 kpp fuse uas
[Mon Dec 23 10:01:25 2024]  fsl_mph_dr_of ehci_fsl gpio_button_hotplug(O) vfat fat
[Mon Dec 23 10:01:25 2024] CPU: 2 PID: 8969 Comm: kworker/u16:14 Tainted: G      D    O       6.6.67 #0
[Mon Dec 23 10:01:25 2024] Hardware name: FriendlyElec NanoPi R6S (DT)
[Mon Dec 23 10:01:25 2024] Workqueue: events_power_efficient nft_offload_exit [nf_tables]
[Mon Dec 23 10:01:25 2024] pstate: 20400009 (nzCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
[Mon Dec 23 10:01:25 2024] pc : nft_offload_exit+0xcb0/0x55d4 [nf_tables]
[Mon Dec 23 10:01:25 2024] lr : nft_offload_exit+0xbf0/0x55d4 [nf_tables]
[Mon Dec 23 10:01:25 2024] sp : ffff800088c2bd00
[Mon Dec 23 10:01:25 2024] x29: ffff800088c2bd00 x28: ffff00010be6aa2c x27: ffff000106bfd2f0
[Mon Dec 23 10:01:25 2024] x26: ffff0001057e8b40 x25: ffff000106bf5378 x24: 000000000000040c
[Mon Dec 23 10:01:25 2024] x23: ffff000101f3c000 x22: 0000000000000010 x21: ffff000106bfd378
[Mon Dec 23 10:01:25 2024] x20: ffff00010be6aa54 x19: ffff00010be6aa20 x18: 0000000000000000
[Mon Dec 23 10:01:25 2024] x17: 000000040044ffff x16: 000000b2b5503510 x15: 0000000000000000
[Mon Dec 23 10:01:25 2024] x14: ffffffffffffffff x13: 0000000000000030 x12: ffff000106bfd2f0
[Mon Dec 23 10:01:25 2024] x11: ffff00010b000000 x10: ffff800088c2bd70 x9 : 000000000000513c
[Mon Dec 23 10:01:25 2024] x8 : 0000000000000000 x7 : ffff800088c2bd90 x6 : 0000000000000000
[Mon Dec 23 10:01:25 2024] x5 : 0000000000000000 x4 : ffff800088c2bd90 x3 : 0000000000000010
[Mon Dec 23 10:01:25 2024] x2 : ffff00010be6aa2c x1 : 00000001008c39b0 x0 : 00000001008c3985
[Mon Dec 23 10:01:25 2024] Call trace:
[Mon Dec 23 10:01:25 2024]  nft_offload_exit+0xcb0/0x55d4 [nf_tables]
[Mon Dec 23 10:01:25 2024]  process_one_work+0x178/0x2a4
[Mon Dec 23 10:01:25 2024]  worker_thread+0x35c/0x480
[Mon Dec 23 10:01:25 2024]  kthread+0x110/0x114
[Mon Dec 23 10:01:25 2024]  ret_from_fork+0x10/0x20
[Mon Dec 23 10:01:25 2024] Code: eb00003f 54fffa24 91003262 f9800051 (c85f7c40)
[Mon Dec 23 10:01:25 2024] ---[ end trace 0000000000000000 ]---

I believe this is related with firewall4: update to Git HEAD (2024-12-18).

Maybe somebody can verify this error.

Has anyone encountered intermittent XHR timeout in luci? I have been getting it even when I was on friendlyWRT. Flashed RC4 last night and I am still having that issue. No ping drops to the device but somehow getting that XHR timeout issues. I dont see anything suspect in the logs as well

already have uhttpd connection reuse set to 0. But :frowning:

If this information is confirmed then rk3588 will become not “open source” chip like N100. I still hope that it is not true.

From another post I saw someone quoted that RockChip has upstreamed another patch about 10 days ago, so it doesn't look like they are stopping open source?

https://lore.kernel.org/linux-rockchip/20241219080604.1423600-1-damon.ding@rock-chips.com/

Are any proprietary BLOBs required for the r6s or is everything available as open source?
In any case, the two 2.5 GBe NICs are supported as OpenSource.

Only talking about the 2x2.5GbE NIC here means nothing.

The NICs are using PCI-E from RK3588, so the first thing is to find a driver to enable PCI-E driver otherwise nothing will work, folks are still working hard to get things open source as much as possible but it's not there yet (quite a number of devices usable but "not everything")

1 Like

Ok. That's right. I was not aware of this.

Some queries on my setup

I plan to use r6s between isp and my current router orbi rbk50 which would be used as AP once setup is done.

Would openwrt provide traffic/bandwidth stats for each device connected to my orbi or it would show stats on just at orbi level? I need to monitor traffic on each wireless device as well.

Vnstat monitors traffic at the interface level and can display usage per hour, per day, and per month. Nlbwmon monitors traffic per MAC address but only displays charts per “accounting period”. The accounting period defaults to monthly, but is reconfigurable.

https://openwrt.org/docs/guide-user/services/network_monitoring/bwmon

Assuming orbi is operating in ap mode, openwrt would show per client; you could think of the ap as a switch in this setup where it just provides physical layer connectivity (maybe L2 as well…it’s been a while). Openwrt would be issuing IP addresses and in turn be aware of all MAC addresses. If the orbi is setup to operate as a router or otherwise put its devices behind a NAT it would likely hide the downstream devices connected to it (I’d avoid this).

1 Like

Thanks for the help will order r5s or r6c as r6s is out of stock with metal Case

Can the metal case be ordered seperately?

Is now in stock

I'm using OpenWrt 24.10.0-rc5 with my Nano PI R6S

So far I'm very happy with it. Thank you OpenWRT team.

I have question related with back LED from Ethernet sockets.

Is there any option to turn them OFF ?

I managed to turn off all front led.

Tried to more led action with all remined led sources and turn them off but it didn't work.

My point is to make this device 100% dark.