GithubHelp home page GithubHelp logo

anaelorlinski / openwrt-nanopi-r2s-r4s-builds Goto Github PK

View Code? Open in Web Editor NEW
166.0 11.0 54.0 277 KB

OpenWRT Builds for NanoPi R2S & R4S from official Openwrt source code with minimal set of patches

License: MIT License

Makefile 35.12% Shell 48.84% C 16.04%
openwrt nanopi-r2s nanopi-r4s

openwrt-nanopi-r2s-r4s-builds's Introduction

OpenWrt Builds for NanoPi R2S & NanoPi R4S

Automated builds of OpenWrt for FriendlyARM NanoPi R2S & R4S boards

⚠️ Since OpenWrt 23.05, those devices are supported by vanilla OpenWrt. You might want to use regular builds instead of this one, especially if you plan to add extra kernel modules for usb wifi support.

Other Models : R5S

NanoPi Build

If you like this project you can gift me a coffee ! paypal

OpenWrt 22.03.5 (stable)

Download 22.03 Releases Changelog Supported Models : R2S / R4S(1Gb & 4Gb) / R2C (Untested)

OpenWrt 23.05.3

Download 23.05 Releases Changelog Supported Models : R2S / R4S(1Gb & 4Gb)

⚠ Warning: No support / Use at your own risk ⚠

License

MIT

openwrt-nanopi-r2s-r4s-builds's People

Contributors

anaelorlinski avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

openwrt-nanopi-r2s-r4s-builds's Issues

no IPSEC tab in LUCI

Hello!
flashed image for NanoPI R4S.
It works great and fast
but i have some issue
i need ipsec site-to-site tunnel
installed strongswan-full
but at LUCI i see only VPN - OpenVPN tab.

StrongSwan/LibreSwan support

Hi there! Cool project, thanks! I made something similar but yours is better :)

I was wondering, if you would be opposed to adding a few kernel modules, needed for IPsec.
The following kernel modules would need adding:

  • kmod-ip6-vti
  • kmod-ipsec6
  • kmod-ipt-ipsec
  • kmod-ip-vti
  • kmod-iptunnel4
  • kmod-ipsec4
  • kmod-xfrm-interface

I'll happily make a PR to do this - just wanting to check if it will be accepted if I do so!

Crypto

Openssl devcrypto engine shows that used software driver for Cipher and Digest. AF-ALG interface does not work at all

dnsmasq is built with HAVE_BROKEN_RTC, leading to Lease Time remaining always showing 'expired'

Currently Luci in 21.02 is expecting dhcp.leases to have an actual timestamp in the first column, otherwise all leases will show up as expired. Your config is building dnsmasq with HAVE_BROKEN_RTC, which puts the lease duration in seconds in the first column, never updating it to reflect the remaining time. To fix this, you'll need to remove this in your seed files:

CONFIG_PACKAGE_dnsmasq_full_broken_rtc=n

Otherwise, thanks for your great work... running perfectly fine on an r4s as main router!

Login?

Hi!

What is the login for your OpenWrt?
When I use root with empty password it does not login.

Regards!

stangri_repo is misconfigured

On the latest images, out of the box the opkg update is broken due to bad configuration on the image.

https://docs.openwrt.melmac.net << is the repo that seems to be the goal to include. In their docs they recommend to store the additional repo config inside /etc/opkg/customfeeds.conf

I would recommend a fix, I had to do this manually today.

  1. Remove broken repo stangri from /etc/opkg/customfeeds.conf
  2. Configure repo properly via /etc/opkg/customfeeds.conf
  3. Ensure the signature key exists echo -e -n 'untrusted comment: OpenWrt usign key of Stan Grishin\nRWR//HUXxMwMVnx7fESOKO7x8XoW4/dRidJPjt 91hAAU2L59mYvHy0Fa\n' > /etc/opkg/keys/7ffc7517c4cc0c56

This should make your image OPKG manager work again and setup the repository properly.

thermal sensors

Hello,

I installed OpenWrt-AO-21.02-20211011.2318-NanoPi-r4s-ext4-full firmware on my R4S and tried to activate the thermal sensors, as they don't seems to work out of the box after installing the firmware.

I installed lm-sensors-detect but the detection didn't find any sensor.
Do you have an idea how to activate the thermal sensors ? It's seems to work with FriendlyWRT.

Thank you.

Support for branch 23.05

Hello,

As OpenWrt branch 23.05 is created and is being prepared for stable release, could you please add support for it?

Thanks

Expand root partition

Is it safe to expand root partition? I'm afraid about the update process. *** R4S/4GB/full/ext4

Possible to update LuaLanes or add patch in support of sqm-autorate?

Hello,

Thanks for your work in supporting the NanoPi's! I've came across sqm-autorate which I'd like to use, but it seems there's an issue with pthreads and LuaLanes in the current package available to OpenWRT.

There's a patch listed that I'm wondering if can be evaluated for inclusion in the AO builds to let us have a functioning autorate? Or perhaps an update of LuaLanes as described here?

Be great for those of us with variable pools (read: Cable) connections!

Thanks for considering!

R5S support

Hi,
do you see the chance to add R5S to your build?

Cheers

Broken r8168 and gpio-button-hotplug

Broken r8168 and gpio-button-hotplug packages.

For r8168, all openwrt source was missing
https://sources.cdn.openwrt.org/r8168-8.049.02.tar.xz
https://sources.openwrt.org/r8168-8.049.02.tar.xz
https://mirror2.openwrt.org/sources/r8168-8.049.02.tar.xz
curl: (22) The requested URL returned error: 404

For gpio-button-hotplug, error msg as below.

make[2]: *** No rule to make target '/openwrt/build_dir/target-aarch64_generic_musl/linux-rockchip_armv8/linux-5.4.182/.config', needed by '/openwrt/build_dir/target-aarch64_generic_musl/linux-rockchip_armv8/gpio-button-hotplug/.built'. Stop.
make[2]: Leaving directory '/openwrt/package/kernel/gpio-button-hotplug'
time: package/kernel/gpio-button-hotplug/compile#0.17#0.05#0.20
ERROR: package/kernel/gpio-button-hotplug failed to build.
make[1]: *** [package/Makefile:116: package/kernel/gpio-button-hotplug/compile] Error 1
make[1]: Leaving directory '/openwrt'
make: *** [/openwrt/include/toplevel.mk:230: package/kernel/gpio-button-hotplug/compile] Error 2

Resetting settings on reboot

In the last version (OpenWrt 21.02 2022.05.01) every time I reboot (via LUCI) the settings are reset to default.
This does not occur in OpenWrt 21.02 2022.04.28 version.
I don't have log, sorry.
Device: NanoPi R4S 4GB

Issues resizing root partition

Hello there,

I've been taking a look at your builds for the NanoPi R4S. I seem to be having issues resizing the root partition that are specific to the image OpenWrt-AO-21.02-20211224.0120-NanoPi-r2s-squashfs-mini.zip

I've attempted resizing locally using the fdisk and resize2fs method. It's unable to perform the online resize. So I also tried resizing the partition using the SD card in another machine using Gparted and it gives me a similar error as well. I've tried running fsck on it as well, which gave me errors related to the superblock.

I've used these two methods successfully with other builds, but for some reason it doesn't seem to be working here. I was wondering if you have noticed this issue.

22.03.5 full on R4S - can't install wireless USB card driver

Hello,
installation of your latest 22.03.5 full version for R4S and few extra packages (apcupsd, unbound, banip) worked fine.
Today I received my new USB wifi adaptor (mt7612u based ALFA AWUS036ACM) so I tried to install missing module kmod-mt76-usb via Luci, but received following error:
The installed version of package kernel is not compatible, require 5.10.176-1-9ba0cc12… while 5.10.176-1-39f97d6e… is installed.
opkg also refused to install kmod-mt76-usb because of kernel version.

Unknown package 'kmod-mt76-usb'.
Collected errors:
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 5.10.176-1-9ba0cc12a8e6bbf68463d91f0091bf15) for kmod-cfg80211
 * pkg_hash_fetch_best_installation_candidate: Packages for kmod-cfg80211 found, but incompatible with the architectures configured
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 5.10.176-1-9ba0cc12a8e6bbf68463d91f0091bf15) for kmod-mac80211
 * pkg_hash_fetch_best_installation_candidate: Packages for kmod-mac80211 found, but incompatible with the architectures configured
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 5.10.176-1-9ba0cc12a8e6bbf68463d91f0091bf15) for kmod-mt76-core
 * pkg_hash_fetch_best_installation_candidate: Packages for kmod-mt76-core found, but incompatible with the architectures configured
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 5.10.176-1-9ba0cc12a8e6bbf68463d91f0091bf15) for kmod-mt76-usb
 * pkg_hash_fetch_best_installation_candidate: Packages for kmod-mt76-usb found, but incompatible with the architectures configured
 * opkg_install_cmd: Cannot install package kmod-mt76-usb.

Was under impression your build is based on 22.03.5 stable kernel so I haven't expected complications.
What can I do to install the required modules? I don't know how to compile own modules :(
Thank you in advance for help.

PPPOE ?

There is no pppoe as connection protocol. Full version.
Is this on purpose or a mistake?

And, by the way, what are the differences between full and lite version?

Thanks!

Docker is not working on R4S

Is docker working in the latest build? I got the following error message from dockerd on R4S.

Thu May 20 16:05:29 2021 daemon.err dockerd[7612]: main.(*DaemonCli).start(0x4000c8d170, 0x40007fc5a0, 0x0, 0x0) Thu May 20 16:05:29 2021 daemon.err dockerd[7612]: /home/runner/work/OpenWrt-NanoPi-R2S-R4S-Builds/OpenWrt-NanoPi-R2S-R4S-Builds/build/openwrt/build_dir/target-aarch64_generic_musl/dockerd-20.10.6/.go_work/build/src/github.com/docker/docker/cmd/dockerd/daemon.go:195 +0x588 Thu May 20 16:05:29 2021 daemon.err dockerd[7612]: main.runDaemon(...) Thu May 20 16:05:29 2021 daemon.err dockerd[7612]: /home/runner/work/OpenWrt-NanoPi-R2S-R4S-Builds/OpenWrt-NanoPi-R2S-R4S-Builds/build/openwrt/build_dir/target-aarch64_generic_musl/dockerd-20.10.6/.go_work/build/src/github.com/docker/docker/cmd/dockerd/docker_unix.go:13 Thu May 20 16:05:29 2021 daemon.err dockerd[7612]: main.newDaemonCommand.func1(0x4000cc0000, 0x40007fad30, 0x0, 0x1, 0x0, 0x0) Thu May 20 16:05:29 2021 daemon.err dockerd[7612]: /home/runner/work/OpenWrt-NanoPi-R2S-R4S-Builds/OpenWrt-NanoPi-R2S-R4S-Builds/build/openwrt/build_dir/target-aarch64_generic_musl/dockerd-20.10.6/.go_work/build/src/github.com/docker/docker/cmd/dockerd/docker.go:34 +0x78 Thu May 20 16:05:29 2021 daemon.err dockerd[7612]: github.com/docker/docker/vendor/github.com/spf13/cobra.(*Command).execute(0x4000cc0000, 0x400004e050, 0x1, 0x1, 0x4000cc0000, 0x400004e050) Thu May 20 16:05:29 2021 daemon.err dockerd[7612]: /home/runner/work/OpenWrt-NanoPi-R2S-R4S-Builds/OpenWrt-NanoPi-R2S-R4S-Builds/build/openwrt/build_dir/target-aarch64_generic_musl/dockerd-20.10.6/.go_work/build/src/github.com/docker/docker/vendor/github.com/spf13/cobra/command.go:850 +0x320 Thu May 20 16:05:29 2021 daemon.err dockerd[7612]: github.com/docker/docker/vendor/github.com/spf13/cobra.(*Command).ExecuteC(0x4000cc0000, 0x0, 0x0, 0x10) Thu May 20 16:05:29 2021 daemon.err dockerd[7612]: /home/runner/work/OpenWrt-NanoPi-R2S-R4S-Builds/OpenWrt-NanoPi-R2S-R4S-Builds/build/openwrt/build_dir/target-aarch64_generic_musl/dockerd-20.10.6/.go_work/build/src/github.com/docker/docker/vendor/github.com/spf13/cobra/command.go:958 +0x258 Thu May 20 16:05:29 2021 daemon.err dockerd[7612]: github.com/docker/docker/vendor/github.com/spf13/cobra.(*Command).Execute(...) Thu May 20 16:05:29 2021 daemon.err dockerd[7612]: /home/runner/work/OpenWrt-NanoPi-R2S-R4S-Builds/OpenWrt-NanoPi-R2S-R4S-Builds/build/openwrt/build_dir/target-aarch64_generic_musl/dockerd-20.10.6/.go_work/build/src/github.com/docker/docker/vendor/github.com/spf13/cobra/command.go:895 Thu May 20 16:05:29 2021 daemon.err dockerd[7612]: main.main() Thu May 20 16:05:29 2021 daemon.err dockerd[7612]: /home/runner/work/OpenWrt-NanoPi-R2S-R4S-Builds/OpenWrt-NanoPi-R2S-R4S-Builds/build/openwrt/build_dir/target-aarch64_generic_musl/dockerd-20.10.6/.go_work/build/src/github.com/docker/docker/cmd/dockerd/docker.go:97 +0x188

cpu crashes after couple running speed test

i run a few speedtest on speedify on terminal, and it crashed, won't load up or restart,
here is the log, when testing, I check CPU, loading only about jumping from 2% to 26% that's it.
Running on RK3399 latest build 4GB

2022-05-15 21:18:41 --> [ 72.538290] CPU: 3 PID: 2820 Comm: speedify Tainted: G B 5.4.188 #0
2022-05-15 21:18:41 --> [ 72.538948] Hardware name: FriendlyElec NanoPi R4S (DT)
2022-05-15 21:18:41 --> [ 72.539405] Call trace:
2022-05-15 21:18:41 --> [ 72.539629] dump_backtrace+0x0/0x110
2022-05-15 21:18:41 --> [ 72.539952] show_stack+0x14/0x20
2022-05-15 21:18:41 --> [ 72.540246] dump_stack+0xb4/0x110
2022-05-15 21:18:41 --> [ 72.540550] bad_page+0xfc/0x12c
2022-05-15 21:18:41 --> [ 72.540835] get_page_from_freelist+0x4f0/0xf90
2022-05-15 21:18:41 --> [ 72.541231] __alloc_pages_nodemask+0xf0/0xa30
2022-05-15 21:18:41 --> [ 72.541622] kmalloc_order+0x24/0x70
2022-05-15 21:18:41 --> [ 72.541939] __kmalloc_track_caller+0x218/0x25c
2022-05-15 21:18:41 --> [ 72.542339] __alloc_skb+0x84/0x1c4
2022-05-15 21:18:41 --> [ 72.542648] alloc_skb_with_frags+0x4c/0x1e4
2022-05-15 21:18:41 --> [ 72.543023] sock_alloc_send_pskb+0x22c/0x240
2022-05-15 21:18:41 --> [ 72.543409] tun_ptr_free+0x5770/0x67d4 [tun]
2022-05-15 21:18:41 --> [ 72.543792] tun_ptr_free+0x61fc/0x67d4 [tun]
2022-05-15 21:18:41 --> [ 72.544176] new_sync_write+0xd0/0x150
2022-05-15 21:18:41 --> [ 72.544506] __vfs_write+0x2c/0x40
2022-05-15 21:18:41 --> [ 72.544806] vfs_write+0xdc/0x1a0
2022-05-15 21:18:41 --> [ 72.545098] ksys_write+0x54/0xd0
2022-05-15 21:18:41 --> [ 72.545390] __arm64_sys_write+0x18/0x20
2022-05-15 21:18:41 --> [ 72.545738] el0_svc_common.constprop.0+0x60/0x110
2022-05-15 21:18:41 --> [ 72.546158] el0_svc_handler+0x20/0x80
2022-05-15 21:18:41 --> [ 72.546489] el0_svc+0x8/0x600
2022-05-15 21:18:41 --> [ 72.624817] ------------[ cut here ]------------
2022-05-15 21:18:41 --> [ 72.625240] corrupted preempt_count: speedtest/4859/0x3
2022-05-15 21:18:41 --> [ 72.625714] WARNING: CPU: 1 PID: 4859 at kernel/sched/core.c:3302 finish_task_switch+0x1c8/0x1d0
2022-05-15 21:18:41 --> [ 72.626480] Modules linked in: ath9k_htc ath9k_common xt_connlimit nf_conncount iptable_nat ath9k_hw ath xt_state xt_nat xt_helper xt_conntrack xt_connmark xt_connbytes xt_REDIRECT xt_MASQUERADE xt_FLOWOFFLOAD xt_CT wireguard nf_nat nf_flow_table_hw nf_flow_table nf_conntrack_netlink nf_conntrack mac80211 libchacha20poly1305 libblake2s ipt_REJECT chacha_neon cfg80211 ax88179_178a xt_time xt_tcpudp xt_tcpmss xt_statistic xt_recent 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 usbnet sch_cake rtl8150 r8168 r8152 poly1305_neon nf_reject_ipv4 nf_log_ipv4 nf_defrag_ipv6 nf_defrag_ipv4 macvlan libcurve25519_generic libchacha libblake2s_generic iptable_raw iptable_mangle iptable_filter ipt_ECN ip_tables compat sch_tbf sch_ingress sch_htb sch_hfsc em_u32 cls_u32 cls_tcindex cls_route cls_matchall cls_fw cls_flow cls_basic act_skbedit act_mirred act_gact xt_set ip_set_list_set ip_set_hash_netportnet ip_set_hash_netport
2022-05-15 21:18:41 --> [ 72.626583] ip_set_hash_netnet ip_set_hash_netiface ip_set_hash_net ip_set_hash_mac ip_set_hash_ipportnet ip_set_hash_ipportip ip_set_hash_ipport ip_set_hash_ipmark ip_set_hash_ip ip_set_bitmap_port ip_set_bitmap_ipmac ip_set_bitmap_ip ip_set nfnetlink nf_log_ipv6 nf_log_common ip6table_mangle ip6table_filter ip6_tables ip6t_REJECT x_tables nf_reject_ipv6 ifb ip_tunnel tun vxlan udp_tunnel ip6_udp_tunnel gpio_button_hotplug
2022-05-15 21:18:41 --> [ 72.637416] CPU: 1 PID: 4859 Comm: speedtest Tainted: G B 5.4.188 #0
2022-05-15 21:18:41 --> [ 72.638083] Hardware name: FriendlyElec NanoPi R4S (DT)
2022-05-15 21:18:41 --> [ 72.638540] pstate: 40000085 (nZcv daIf -PAN -UAO)
2022-05-15 21:18:41 --> [ 72.638963] pc : finish_task_switch+0x1c8/0x1d0
2022-05-15 21:18:41 --> [ 72.639359] lr : finish_task_switch+0x1c8/0x1d0
2022-05-15 21:18:41 --> [ 72.639755] sp : ffff800019353a70
2022-05-15 21:18:41 --> [ 72.640046] x29: ffff800019353a70 x28: 0000000000000001
2022-05-15 21:18:41 --> [ 72.640511] x27: 0000000000000020 x26: ffff800019353b08
2022-05-15 21:18:41 --> [ 72.640976] x25: ffff0000eded4e90 x24: ffff8000107f2400
2022-05-15 21:18:41 --> [ 72.641441] x23: ffff0000eded4980 x22: ffff8000107f210c
2022-05-15 21:18:41 --> [ 72.641906] x21: ffff0000f2228c40 x20: ffff0000edf37480
2022-05-15 21:18:41 --> [ 72.642371] x19: ffff0000f6f89840 x18: 0000000000000030
2022-05-15 21:18:41 --> [ 72.642836] x17: 0000000000000000 x16: 0000000000000000
2022-05-15 21:18:41 --> [ 72.643301] x15: ffff0000eded4d80 x14: 0000000000000005
2022-05-15 21:18:41 --> [ 72.643765] x13: ffff800099353787 x12: ffff80001935378f
2022-05-15 21:18:41 --> [ 72.644230] x11: ffff800010c21000 x10: ffff80001095a188
2022-05-15 21:18:41 --> [ 72.644696] x9 : 00000000ffffffd0 x8 : 342f747365746465
2022-05-15 21:18:41 --> [ 72.645161] x7 : 657073203a746e75 x6 : 00000000000001f6
2022-05-15 21:18:41 --> [ 72.645625] x5 : ffff0000f6f80810 x4 : 0000000000000001
2022-05-15 21:18:41 --> [ 72.646090] x3 : ffff0000f6f80810 x2 : 0000000000000007
2022-05-15 21:18:41 --> [ 72.646555] x1 : ffff0000eded4980 x0 : 000000000000002b
2022-05-15 21:18:41 --> [ 72.647020] Call trace:
2022-05-15 21:18:41 --> [ 72.647239] finish_task_switch+0x1c8/0x1d0
2022-05-15 21:18:41 --> [ 72.647609] __schedule+0x1ec/0x4a0
2022-05-15 21:18:41 --> [ 72.647917] schedule+0x40/0xe0
2022-05-15 21:18:41 --> [ 72.648197] schedule_timeout+0x6c/0xc4
2022-05-15 21:18:41 --> [ 72.648535] wait_woken+0x64/0x7c
2022-05-15 21:18:41 --> [ 72.648830] sk_wait_data+0x178/0x1a0
2022-05-15 21:18:41 --> [ 72.649153] tcp_recvmsg+0x4f4/0x920
2022-05-15 21:18:41 --> [ 72.649468] inet_recvmsg+0x50/0xe4
2022-05-15 21:18:41 --> [ 72.649776] __sys_recvfrom+0xa8/0x120
2022-05-15 21:18:41 --> [ 72.650106] __arm64_sys_recvfrom+0x20/0x30
2022-05-15 21:18:41 --> [ 72.650476] el0_svc_common.constprop.0+0x60/0x110
2022-05-15 21:18:41 --> [ 72.650896] el0_svc_handler+0x20/0x80
2022-05-15 21:18:41 --> [ 72.651227] el0_svc+0x8/0x600
2022-05-15 21:18:41 --> [ 72.651497] ---[ end trace 0272b0966c57c569 ]---

SQM upload and download mixed

Latest full version for Nanopi R4S.
So i just installed it yesterday and noticed that upload and download speed settings are mixed.
If i put them correctly for my 1000/500 connection (900000 for dl and 490000 for up) i get 470/470 and if i set them other way around i get 870/470.

Build failing, can you check if yours fails too?

I cloned your repo, i was using it to run some builds... but the past few days they are failing when building a determinate package can you check if yours will fail too?

Amazing work here btw, thx.

NanoPi R2S - CPU Speed Setting

I am wanting to know if this build includes the ability to set the clock speed of the CPU on the R2S. I only get around 500 megabit on this one, but I tried another nanopi openwrt build where I could set CPU speed to its max (overclock) and I was able to get around 910 megabit (I have proper cooling).

Thanks!

Support for build failure

Hello,
I've forked your repo and tried to build R4S full seed on 22.03 branch.
I tried against main and the tagged version for 22.03.5.

The only update I did was to set CONFIG_TARGET_ROOTFS_PARTSIZE=31744 to extend to rootfs partion on a Micro SD Card of 32 GB.

I don't understanrd what could cause the difference.
It seems related to include/config/auto.conf.cmd

SYNC    include/config/auto.conf.cmd
Error in reading or end of file.

My build where it fails
https://github.com/Mincka/OpenWrt-NanoPi-R2S-R4S-Builds/actions/runs/5984628256/job/16235981702#step:18:79

Yours at the same step
https://github.com/anaelorlinski/OpenWrt-NanoPi-R2S-R4S-Builds/actions/runs/5942047886/job/16114172364#step:23:79

Thanks!

Downloads failing (R4S full build)

If I had hair I would pull it out 😂
The problem that I have is that when I download firmware when let's say.
https://www.asus.com/nl/Networking-IoT-Servers/WiFi-Routers/ASUS-Gaming-Routers/RT-AX86U/HelpDesk_BIOS/
The download starts but then I get a network error. This is on both wired and wireless. I thought that it was site related but I also get this error on
the Asus Merlin download site https://sourceforge.net/projects/asuswrt-merlin/files/
I reflashed your R4S full build that way it was clean and without changes I made but the issue still persists.
Do you have any idea what could cause this issue?
Hardware wise I have 2 switches from TP-link managed (wireless excluded)

"Want to add this with network error i do not mean the download stops but my whole network stops.
Kids screaming that youtube stops working and the wife complains her game stops working etc hahaha"

Kernel OOPS in clk_change_rate

Hello!

I'm having quite regular OOPS on NanoPi R4S which later make all disk IO stop:

[22511.247464] Unable to handle kernel paging request at virtual address fbff0000f2150160
[22511.248157] Mem abort info:
[22511.248403]   ESR = 0x96000004
[22511.248672]   EC = 0x25: DABT (current EL), IL = 32 bits
[22511.249136]   SET = 0, FnV = 0
[22511.249403]   EA = 0, S1PTW = 0
[22511.249678] Data abort info:
[22511.249962]   ISV = 0, ISS = 0x00000004
[22511.250299]   CM = 0, WnR = 0
[22511.250561] [fbff0000f2150160] address between user and kernel address ranges
[22511.251185] Internal error: Oops: 96000004 [#1] PREEMPT SMP
[22511.251672] Modules linked in: pppoe ppp_async wireguard snd_usb_audio pppox ppp_generic nf_flow_table_ipv6 nf_flow_table_ipv4 nf_flow_table_inet libchacha20poly1305 libblake2s ipt_REJECT ebtable_nat ebtable_filter ebtable_broute chacha_neon zstd xt_u32 xt_time xt_tcpudp xt_tcpmss xt_statistic xt_state xt_socket xt_recent xt_quota xt_policy xt_pkttype xt_physdev xt_owner xt_nat xt_multiport xt_mark xt_mac xt_limit xt_length2 xt_length xt_ipv4options xt_iprange xt_iface xt_hl xt_helper xt_esp xt_ecn xt_dscp xt_conntrack xt_connmark xt_connlimit xt_connlabel xt_connbytes xt_condition xt_comment xt_cluster xt_addrtype xt_TPROXY xt_TCPMSS xt_REDIRECT xt_PROTO xt_NFQUEUE xt_NFLOG xt_NETMAP xt_MASQUERADE xt_LOGMARK xt_LOG xt_IPMARK xt_HL xt_FLOWOFFLOAD xt_DSCP xt_CT xt_CLASSIFY xfrm_interface usbnet snd_usbmidi_lib snd_usb_caiaq slhc sch_cake rockchipdrm rc_core r8168 r8152 poly1305_neon phy_rockchip_inno_hdmi nft_reject_ipv6 nft_reject_ipv4 nft_reject_inet nft_reject_bridge nft_reject nft_redir
[22511.251739]  nft_quota nft_queue nft_objref nft_numgen nft_nat nft_meta_bridge nft_masq nft_log nft_limit nft_hash nft_flow_offload nft_ct nft_counter nft_chain_nat nfnetlink_queue nfnetlink_log nf_tproxy_ipv6 nf_tproxy_ipv4 nf_tables_set nf_tables nf_socket_ipv6 nf_socket_ipv4 nf_reject_ipv4 nf_nat_ftp nf_log_ipv4 nf_flow_table_hw nf_flow_table nf_conntrack_netlink nf_conntrack_ftp nf_conncount macvlan lzo libcurve25519_generic libchacha libblake2s_generic iptable_raw iptable_nat iptable_mangle iptable_filter ipt_rpfilter ipt_ah ipt_ECN ipt_CLUSTERIP ip6table_raw ip6t_rpfilter ip_tables ebtables ebt_vlan ebt_stp ebt_redirect ebt_pkttype ebt_mark_m ebt_mark ebt_limit ebt_among ebt_802_3 dw_mipi_dsi dw_hdmi_cec dw_hdmi drm_kms_helper crc_ccitt compat_xtables cec br_netfilter arptable_filter arpt_mangle arp_tables act_connmark sch_tbf sch_ingress sch_htb sch_hfsc em_u32 cls_u32 cls_tcindex cls_route cls_matchall cls_fw cls_flow cls_basic act_skbedit act_mirred act_gact configs cryptodev
[22511.259374]  xt_set ip_set_list_set ip_set_hash_netportnet ip_set_hash_netport ip_set_hash_netnet ip_set_hash_netiface ip_set_hash_net ip_set_hash_mac ip_set_hash_ipportnet ip_set_hash_ipportip ip_set_hash_ipport ip_set_hash_ipmark ip_set_hash_ip ip_set_bitmap_port ip_set_bitmap_ipmac ip_set_bitmap_ip ip_set nfnetlink ip6table_nat nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 ip6t_NPT ip6t_rt ip6t_mh ip6t_ipv6header ip6t_hbh ip6t_frag ip6t_eui64 ip6t_ah nf_log_ipv6 nf_log_common ip6table_mangle ip6table_filter ip6_tables ip6t_REJECT x_tables nf_reject_ipv6 ifb dummy ip6_vti ip_vti ipcomp6 xfrm6_tunnel esp6 ah6 xfrm4_tunnel ipcomp esp4 ah4 ip6_tunnel tunnel6 tunnel4 ip_tunnel veth tun snd_rawmidi snd_seq_device snd_pcm_oss snd_pcm snd_timer snd_mixer_oss snd_hwdep snd_compress snd soundcore xfrm_user xfrm_ipcomp af_key xfrm_algo vfat fat cifs dm_mirror dm_region_hash dm_log dm_crypt dm_mod dax nls_utf8 nls_cp437 vxlan udp_tunnel ip6_udp_tunnel crypto_user algif_rng algif_aead seqiv md4
[22511.266977]  ghash_generic gcm echainiv des_generic libdes deflate ctr ccm authenc arc4 crypto_acompress sysimgblt sysfillrect syscopyarea fb_sys_fops cfbimgblt cfbfillrect cfbcopyarea fb font drm drm_panel_orientation_quirks dwc2 fsl_mph_dr_of ehci_fsl gpio_button_hotplug btrfs xor zstd_decompress zstd_compress xor_neon raid6_pq lzo_decompress lzo_compress udc_core cbc encrypted_keys trusted tpm
[22511.277614] CPU: 4 PID: 152 Comm: sugov:4 Not tainted 5.4.179 #0
[22511.278137] Hardware name: FriendlyElec NanoPi R4S (DT)
[22511.278593] pstate: a0000005 (NzCv daif -PAN -UAO)
[22511.279021] pc : clk_change_rate+0xd8/0x2b0
[22511.279387] lr : clk_change_rate+0xf0/0x2b0
[22511.279752] sp : ffff8000110c3b50
[22511.280042] x29: ffff8000110c3b50 x28: ffff0000f0f631e0
[22511.280506] x27: ffff0000f0f5ec00 x26: ffff800010ca0f78
[22511.280970] x25: 0000000018519600 x24: 0000000000000000
[22511.281433] x23: ffff0000f6fbe098 x22: 0000000018519600
[22511.281897] x21: 000000006b49d200 x20: fbff0000f21501b8
[22511.282361] x19: ffff0000f2199700 x18: 0000000000000000
[22511.282824] x17: 0000000000000000 x16: 0000000000000000
[22511.283287] x15: 0000000000000000 x14: 0000000000000000
[22511.283751] x13: 0000000000000001 x12: 0000000000000001
[22511.284214] x11: 0000000000000001 x10: 00000000000008c0
[22511.284677] x9 : ffff8000110c3640 x8 : ffff0000f0f34a20
[22511.285140] x7 : 0000000000000000 x6 : 0000000000006808
[22511.285604] x5 : 0000000000000005 x4 : 0000000000000028
[22511.286067] x3 : 0000000000000000 x2 : 0000000000000009
[22511.286530] x1 : 0000000000000008 x0 : fbff0000f2150100
[22511.286994] Call trace:
[22511.287212]  clk_change_rate+0xd8/0x2b0
[22511.287547]  clk_change_rate+0xf0/0x2b0
[22511.287882]  clk_change_rate+0xf0/0x2b0
[22511.288218]  clk_change_rate+0xf0/0x2b0
[22511.288555]  clk_core_set_rate_nolock+0x13c/0x220
[22511.288966]  clk_set_rate+0x34/0x14c
[22511.289282]  dev_pm_opp_set_rate+0x2b0/0x550
[22511.289656]  set_target+0x3c/0x80
[22511.289947]  __cpufreq_driver_target+0x258/0x540
[22511.290352]  sugov_work+0x50/0x6c
[22511.290644]  kthread_worker_fn+0x9c/0x17c
[22511.290995]  kthread+0x14c/0x150
[22511.291279]  ret_from_fork+0x10/0x24
[22511.291597] Code: f102e000 54000061 1400000a 54000120 (f9403001)
[22511.292130] ---[ end trace 915af716f8f8ad2f ]---

After that stuff like "touch 1" hang indefinitely, only a hard reboot helps.

I'm using:

root@OpenWrt:~# cat /etc/openwrt_version
r16485-59e7ae8d65
root@OpenWrt:~# cat /etc/openwrt_release
DISTRIB_ID='OpenWrt'
DISTRIB_RELEASE='21.02-SNAPSHOT'
DISTRIB_REVISION='r16485-59e7ae8d65'
DISTRIB_TARGET='rockchip/armv8'
DISTRIB_ARCH='aarch64_generic'
DISTRIB_TAINTS='no-all'
DISTRIB_DESCRIPTION='AO [email protected]'

Could that be a power issue? Every time that seems to be the clk_change_rate function which is suspicious.

Adblocking through AdGuard Home, broken?

Can't seem to get ad blocking to work since the switch to AdGuard Home. Any instructions on how to get it to work? Have done the initial configuration through port 3000 and followed various guides without any success thus far.

Thanks for the great effort in providing these builds!

Kmod-TCP-BBR

Hello, I wonder if it is possible to add "Kmod-TCP-BBR" to the Build? Because this function is very useful for me,

Can't install pppoe

See screenshot...

Screen Shot 2022-06-17 at 11 45 27 PM

Using latest build on a Nanopi R4S 1gb version.

Thank btw for this build, since the OpenWRT snapshot doesn't support the 1gb version.

Slow pppoe speed on 22.03 from 28.09

I'm using R4S 4GB version. Today I've tried the ext4 release from 28th of september. The transfer speed over 5Ghz wifi is about 90 Mbps up/down. On the older 21.02 I get around 300 Mbps. Tests made on the same server, with speedtest.net.

r8152 crashing on 21.02 2022.10.31 for R2C

I clean flashed the full build of 21.02 release 2022.10.31 on a NanoPi R2C. I disabled docker and most of the extra daemons, then set up SQM for 22.5Mb up and down. I ran it for about 24 hours and I had the r8152 driver crash 3 or 4 times where the connection went down for several minutes and then eventually reset. I'm not running the build anymore so I don't have the exact syslog messages, but it was some error about r8152 and then lan link is down. I've seen similar stability issues with r8152 when running high throughput, but it was crashing at 22.5Mbps throughput.

Boot failure for R2C

I have Nonopi R2C plus and I tried SD card loaded with OpenWrt 23.05 2023.06.28 (full version) and OpenWrt 22.03 2023.05.01 (full version) .
Both failed to boot.

I tried two different SD cards and I got the same result.

23.05.0-rc2 for "Nonopi R2C" downloaded from openwrt.org has no problem booting from said SD cards.

I am not sure whether this is due to my router being "R2C Plus" rather than "R2C",

Weak PPPoE performance

Comparing the max connection speed under PPPoE with stock openwrt and with this build I'm getting a solid 50% more when using the latter, but I'm not yet reaching max speed compared to other builds (namely, almost every chinese build with "ACC center", albeit coming with a bunch of bloatware programs I'm not really interested in).

Is there anything I can do to improve PPPoE performance? I've already turned on software and hw flow offloading, packet steering and irqbalance, but it looks like that, whilst doing a speedtest, just one of 4 cores carries the routing load, thus being under 100% load while all the other ones are under 30% utilisation.

Here is a speedtest with htop on the side. Notice core0 being maxed out.
1657612997_grim

Mini Configured with LuCI?

Not actually an issue, but a question.
Is LuCI supposed to be functional after booting a mini build?
I installed OpenWrt-AO-21.02-20211214.2321-NanoPi-r4s-ext4-mini and after all LEDs were on I see that I do pull an IP via DHCP, but the web interface is just a directory listing showing a single folder that can't be entered.

Thanks for your work, this is a great system for OpenWRT

Booting Issues with Full Squashfs Build

It looked like there're booting issue on the latest full squshfs build. I was able to run sysupgrade using NanoPi-r4s-squashfs-full.zip and made docker working. I decided to run sysupgrade with -n option on the same version without keeping the configuration. It looked like the old configuration never got deleted so I decided to reflash the sd card with the full version. It failed to boot this time. I tried the mini version, it booted. However, when I run sysupgrade again in mini version to upgrade to the full version, it failed to boot again.

I'm currently compiling a local version with the code checked out from Github to see if the problem is on Actions or it's somewhere else.

Is it possible to use your build on the R2C

I ordered a R2C and when compared to the R2S the difference is in the network chip.
I read something about a patch to get the YT8521S working.
Would it be possible to integrate the patch in the R2S build?

WAN ethernet adapter does not show up

I just flashed the latest build on my R4S, but the WAN ethernet adapter (rtl8211e) does not show up in "ifconfig -a".
Is it supposed to work with this build, or does it need another kernel module?

Can't compile on Ubuntu 22.04

Hi,

I cleaned installed a new Ubuntu 22.04 build and installed the necessary dependencies and since then I can't compile OpenWRT anymore... Seems like m4 is causing a bug or something at step 7. All other previous steps are working fine...

$ ./openwrt-22.03/steps/07-all_kmods.sh
/OpenWrt-NanoPi-R2S-R4S-Builds
#
# configuration written to .config
#
make[2]: Entering directory '/OpenWrt-NanoPi-R2S-R4S-Builds/build/openwrt/scripts/config'
make[2]: 'conf' is up to date.
make[2]: Leaving directory '/OpenWrt-NanoPi-R2S-R4S-Builds/build/openwrt/scripts/config'
time: target/linux/prereq#0.08#0.01#0.09
 make[1] target/compile
 make[2] -C target/linux compile
    ERROR: target/linux failed to build.
make -r target/compile: build failed. Please re-run make with -j1 V=s or V=sc for a higher verbosity level to see what's going on
make: *** [/OpenWrt-NanoPi-R2S-R4S-Builds/build/openwrt/include/toplevel.mk:230: target/compile] Error 1
make[2]: Entering directory '/OpenWrt-NanoPi-R2S-R4S-Builds/build/openwrt/scripts/config'
make[2]: 'conf' is up to date.
make[2]: Leaving directory '/OpenWrt-NanoPi-R2S-R4S-Builds/build/openwrt/scripts/config'
make[1]: Entering directory '/OpenWrt-NanoPi-R2S-R4S-Builds/build/openwrt'
cd "/OpenWrt-NanoPi-R2S-R4S-Builds/build/openwrt"; git log --format=%h -1 toolchain > /OpenWrt-NanoPi-R2S-R4S-Builds/build/openwrt/tmp/.ver_check
cmp -s /OpenWrt-NanoPi-R2S-R4S-Builds/build/openwrt/tmp/.ver_check /OpenWrt-NanoPi-R2S-R4S-Builds/build/openwrt/staging_dir/toolchain-aarch64_generic_gcc-11.2.0_musl/stamp/.ver_check || { \
	rm -rf /OpenWrt-NanoPi-R2S-R4S-Builds/build/openwrt/build_dir/target-aarch64_generic_musl /OpenWrt-NanoPi-R2S-R4S-Builds/build/openwrt/staging_dir/target-aarch64_generic_musl /OpenWrt-NanoPi-R2S-R4S-Builds/build/openwrt/staging_dir/toolchain-aarch64_generic_gcc-11.2.0_musl /OpenWrt-NanoPi-R2S-R4S-Builds/build/openwrt/build_dir/toolchain-aarch64_generic_gcc-11.2.0_musl; \
	mkdir -p /OpenWrt-NanoPi-R2S-R4S-Builds/build/openwrt/staging_dir/toolchain-aarch64_generic_gcc-11.2.0_musl/stamp; \
	mv /OpenWrt-NanoPi-R2S-R4S-Builds/build/openwrt/tmp/.ver_check /OpenWrt-NanoPi-R2S-R4S-Builds/build/openwrt/staging_dir/toolchain-aarch64_generic_gcc-11.2.0_musl/stamp/.ver_check; \
}
make[2]: Entering directory '/OpenWrt-NanoPi-R2S-R4S-Builds/build/openwrt/target/linux'
make[3]: Entering directory '/OpenWrt-NanoPi-R2S-R4S-Builds/build/openwrt/target/linux/rockchip'
rm -f /OpenWrt-NanoPi-R2S-R4S-Builds/build/openwrt/build_dir/target-aarch64_generic_musl/linux-rockchip_armv8/linux-5.10.161/localversion
/OpenWrt-NanoPi-R2S-R4S-Builds/build/openwrt/scripts/kconfig.pl  + /OpenWrt-NanoPi-R2S-R4S-Builds/build/openwrt/target/linux/generic/config-5.10 /OpenWrt-NanoPi-R2S-R4S-Builds/build/openwrt/target/linux/rockchip/armv8/config-5.10 > /OpenWrt-NanoPi-R2S-R4S-Builds/build/openwrt/build_dir/target-aarch64_generic_musl/linux-rockchip_armv8/linux-5.10.161/.config.target
awk '/^(#[[:space:]]+)?CONFIG_KERNEL/{sub("CONFIG_KERNEL_","CONFIG_");print}' /OpenWrt-NanoPi-R2S-R4S-Builds/build/openwrt/.config >> /OpenWrt-NanoPi-R2S-R4S-Builds/build/openwrt/build_dir/target-aarch64_generic_musl/linux-rockchip_armv8/linux-5.10.161/.config.target
echo "# CONFIG_KALLSYMS_EXTRA_PASS is not set" >> /OpenWrt-NanoPi-R2S-R4S-Builds/build/openwrt/build_dir/target-aarch64_generic_musl/linux-rockchip_armv8/linux-5.10.161/.config.target
echo "# CONFIG_KALLSYMS_ALL is not set" >> /OpenWrt-NanoPi-R2S-R4S-Builds/build/openwrt/build_dir/target-aarch64_generic_musl/linux-rockchip_armv8/linux-5.10.161/.config.target
echo "CONFIG_KALLSYMS_UNCOMPRESSED=y" >> /OpenWrt-NanoPi-R2S-R4S-Builds/build/openwrt/build_dir/target-aarch64_generic_musl/linux-rockchip_armv8/linux-5.10.161/.config.target
/OpenWrt-NanoPi-R2S-R4S-Builds/build/openwrt/scripts/package-metadata.pl kconfig /OpenWrt-NanoPi-R2S-R4S-Builds/build/openwrt/tmp/.packageinfo /OpenWrt-NanoPi-R2S-R4S-Builds/build/openwrt/.config 5.10 > /OpenWrt-NanoPi-R2S-R4S-Builds/build/openwrt/build_dir/target-aarch64_generic_musl/linux-rockchip_armv8/linux-5.10.161/.config.override
/OpenWrt-NanoPi-R2S-R4S-Builds/build/openwrt/scripts/kconfig.pl 'm+' '+' /OpenWrt-NanoPi-R2S-R4S-Builds/build/openwrt/build_dir/target-aarch64_generic_musl/linux-rockchip_armv8/linux-5.10.161/.config.target /dev/null /OpenWrt-NanoPi-R2S-R4S-Builds/build/openwrt/build_dir/target-aarch64_generic_musl/linux-rockchip_armv8/linux-5.10.161/.config.override > /OpenWrt-NanoPi-R2S-R4S-Builds/build/openwrt/build_dir/target-aarch64_generic_musl/linux-rockchip_armv8/linux-5.10.161/.config.set
mv /OpenWrt-NanoPi-R2S-R4S-Builds/build/openwrt/build_dir/target-aarch64_generic_musl/linux-rockchip_armv8/linux-5.10.161/.config.set /OpenWrt-NanoPi-R2S-R4S-Builds/build/openwrt/build_dir/target-aarch64_generic_musl/linux-rockchip_armv8/linux-5.10.161/.config.old
grep -v INITRAMFS /OpenWrt-NanoPi-R2S-R4S-Builds/build/openwrt/build_dir/target-aarch64_generic_musl/linux-rockchip_armv8/linux-5.10.161/.config.old > /OpenWrt-NanoPi-R2S-R4S-Builds/build/openwrt/build_dir/target-aarch64_generic_musl/linux-rockchip_armv8/linux-5.10.161/.config.set
echo 'CONFIG_INITRAMFS_SOURCE=""' >> /OpenWrt-NanoPi-R2S-R4S-Builds/build/openwrt/build_dir/target-aarch64_generic_musl/linux-rockchip_armv8/linux-5.10.161/.config.set
echo '# CONFIG_INITRAMFS_FORCE is not set' >> /OpenWrt-NanoPi-R2S-R4S-Builds/build/openwrt/build_dir/target-aarch64_generic_musl/linux-rockchip_armv8/linux-5.10.161/.config.set
rm -rf /OpenWrt-NanoPi-R2S-R4S-Builds/build/openwrt/build_dir/target-aarch64_generic_musl/linux-rockchip_armv8/modules
cmp -s /OpenWrt-NanoPi-R2S-R4S-Builds/build/openwrt/build_dir/target-aarch64_generic_musl/linux-rockchip_armv8/linux-5.10.161/.config.set /OpenWrt-NanoPi-R2S-R4S-Builds/build/openwrt/build_dir/target-aarch64_generic_musl/linux-rockchip_armv8/linux-5.10.161/.config.prev || { cp /OpenWrt-NanoPi-R2S-R4S-Builds/build/openwrt/build_dir/target-aarch64_generic_musl/linux-rockchip_armv8/linux-5.10.161/.config.set /OpenWrt-NanoPi-R2S-R4S-Builds/build/openwrt/build_dir/target-aarch64_generic_musl/linux-rockchip_armv8/linux-5.10.161/.config; cp /OpenWrt-NanoPi-R2S-R4S-Builds/build/openwrt/build_dir/target-aarch64_generic_musl/linux-rockchip_armv8/linux-5.10.161/.config.set /OpenWrt-NanoPi-R2S-R4S-Builds/build/openwrt/build_dir/target-aarch64_generic_musl/linux-rockchip_armv8/linux-5.10.161/.config.prev; }
export MAKEFLAGS= ; [ -d /OpenWrt-NanoPi-R2S-R4S-Builds/build/openwrt/build_dir/target-aarch64_generic_musl/linux-rockchip_armv8/linux-5.10.161/user_headers ] || make -C /OpenWrt-NanoPi-R2S-R4S-Builds/build/openwrt/build_dir/target-aarch64_generic_musl/linux-rockchip_armv8/linux-5.10.161 KCFLAGS="-ffile-prefix-map=/OpenWrt-NanoPi-R2S-R4S-Builds/build/openwrt/build_dir/target-aarch64_generic_musl=target-aarch64_generic_musl -fno-caller-saves " HOSTCFLAGS="-O2 -I/OpenWrt-NanoPi-R2S-R4S-Builds/build/openwrt/staging_dir/host/include  -Wall -Wmissing-prototypes -Wstrict-prototypes" CROSS_COMPILE="aarch64-openwrt-linux-musl-" ARCH="arm64" KBUILD_HAVE_NLS=no KBUILD_BUILD_USER="mike" KBUILD_BUILD_HOST="openwrt" KBUILD_BUILD_TIMESTAMP="Tue Jan  3 00:24:21 2023" KBUILD_BUILD_VERSION="0" HOST_LOADLIBES="-L/OpenWrt-NanoPi-R2S-R4S-Builds/build/openwrt/staging_dir/host/lib" KBUILD_HOSTLDLIBS="-L/OpenWrt-NanoPi-R2S-R4S-Builds/build/openwrt/staging_dir/host/lib" CONFIG_SHELL="bash" V=''  cmd_syscalls=  KERNELRELEASE=5.10.161 CC="aarch64-openwrt-linux-musl-gcc" INSTALL_HDR_PATH=/OpenWrt-NanoPi-R2S-R4S-Builds/build/openwrt/build_dir/target-aarch64_generic_musl/linux-rockchip_armv8/linux-5.10.161/user_headers headers_install
grep '=[ym]' /OpenWrt-NanoPi-R2S-R4S-Builds/build/openwrt/build_dir/target-aarch64_generic_musl/linux-rockchip_armv8/linux-5.10.161/.config.set | LC_ALL=C sort | /OpenWrt-NanoPi-R2S-R4S-Builds/build/openwrt/staging_dir/host/bin/mkhash md5 > /OpenWrt-NanoPi-R2S-R4S-Builds/build/openwrt/build_dir/target-aarch64_generic_musl/linux-rockchip_armv8/linux-5.10.161/.vermagic
touch /OpenWrt-NanoPi-R2S-R4S-Builds/build/openwrt/build_dir/target-aarch64_generic_musl/linux-rockchip_armv8/linux-5.10.161/.configured
rm -f /OpenWrt-NanoPi-R2S-R4S-Builds/build/openwrt/build_dir/target-aarch64_generic_musl/linux-rockchip_armv8/linux-5.10.161/vmlinux /OpenWrt-NanoPi-R2S-R4S-Builds/build/openwrt/build_dir/target-aarch64_generic_musl/linux-rockchip_armv8/linux-5.10.161/System.map
make -C /OpenWrt-NanoPi-R2S-R4S-Builds/build/openwrt/build_dir/target-aarch64_generic_musl/linux-rockchip_armv8/linux-5.10.161 KCFLAGS="-ffile-prefix-map=/OpenWrt-NanoPi-R2S-R4S-Builds/build/openwrt/build_dir/target-aarch64_generic_musl=target-aarch64_generic_musl -fno-caller-saves " HOSTCFLAGS="-O2 -I/OpenWrt-NanoPi-R2S-R4S-Builds/build/openwrt/staging_dir/host/include  -Wall -Wmissing-prototypes -Wstrict-prototypes" CROSS_COMPILE="aarch64-openwrt-linux-musl-" ARCH="arm64" KBUILD_HAVE_NLS=no KBUILD_BUILD_USER="mike" KBUILD_BUILD_HOST="openwrt" KBUILD_BUILD_TIMESTAMP="Tue Jan  3 00:24:21 2023" KBUILD_BUILD_VERSION="0" HOST_LOADLIBES="-L/OpenWrt-NanoPi-R2S-R4S-Builds/build/openwrt/staging_dir/host/lib" KBUILD_HOSTLDLIBS="-L/OpenWrt-NanoPi-R2S-R4S-Builds/build/openwrt/staging_dir/host/lib" CONFIG_SHELL="bash" V=''  cmd_syscalls=  KERNELRELEASE=5.10.161 CC="aarch64-openwrt-linux-musl-gcc" Image dtbs modules
make[4]: Entering directory '/OpenWrt-NanoPi-R2S-R4S-Builds/build/openwrt/build_dir/target-aarch64_generic_musl/linux-rockchip_armv8/linux-5.10.161'
make[4]: aarch64-openwrt-linux-musl-gcc: No such file or directory
  SYNC    include/config/auto.conf.cmd
  LEX     scripts/kconfig/lexer.lex.c
flex: fatal internal error, exec of /OpenWrt-NanoPi-R2S-R4S-Builds/build/openwrt/staging_dir/host/bin/m4 failed
make[6]: *** [scripts/Makefile.host:9: scripts/kconfig/lexer.lex.c] Error 141
make[6]: *** Deleting file 'scripts/kconfig/lexer.lex.c'
make[5]: *** [Makefile:606: syncconfig] Error 2
Makefile:701: include/config/auto.conf.cmd: No such file or directory
make[4]: *** [Makefile:724: include/config/auto.conf.cmd] Error 2
make[4]: Leaving directory '/OpenWrt-NanoPi-R2S-R4S-Builds/build/openwrt/build_dir/target-aarch64_generic_musl/linux-rockchip_armv8/linux-5.10.161'
make[3]: *** [Makefile:23: /OpenWrt-NanoPi-R2S-R4S-Builds/build/openwrt/build_dir/target-aarch64_generic_musl/linux-rockchip_armv8/linux-5.10.161/.modules] Error 2
make[3]: Leaving directory '/OpenWrt-NanoPi-R2S-R4S-Builds/build/openwrt/target/linux/rockchip'
make[2]: *** [Makefile:11: compile] Error 2
make[2]: Leaving directory '/OpenWrt-NanoPi-R2S-R4S-Builds/build/openwrt/target/linux'
time: target/linux/compile#0.25#0.01#0.25
    ERROR: target/linux failed to build.
make[1]: *** [target/Makefile:30: target/linux/compile] Error 1
make[1]: Leaving directory '/OpenWrt-NanoPi-R2S-R4S-Builds/build/openwrt'
make: *** [/OpenWrt-NanoPi-R2S-R4S-Builds/build/openwrt/include/toplevel.mk:230: target/compile] Error 2

The error is here: flex: fatal internal error, exec of /OpenWrt-NanoPi-R2S-R4S-Builds/build/openwrt/staging_dir/host/bin/m4 failed. Indeed the m4 shortcut doesn't exist:

$ ls -l /OpenWrt-NanoPi-R2S-R4S-Builds/build/openwrt/staging_dir/host/bin/m4                                                                                                   [main]
ls: cannot access '/OpenWrt-NanoPi-R2S-R4S-Builds/build/openwrt/staging_dir/host/bin/m4': No such file or directory
$ ls -l /OpenWrt-NanoPi-R2S-R4S-Builds/build/openwrt/staging_dir/host/bin
total 32
lrwxrwxrwx 1 mike mike    13 Mar 27 15:16 awk -> /usr/bin/gawk
lrwxrwxrwx 1 mike mike    13 Mar 27 15:16 bash -> /usr/bin/bash
lrwxrwxrwx 1 mike mike    14 Mar 27 15:16 bzip2 -> /usr/bin/bzip2
lrwxrwxrwx 1 mike mike    11 Mar 27 15:16 cp -> /usr/bin/cp
lrwxrwxrwx 1 mike mike    13 Mar 27 15:16 diff -> /usr/bin/diff
lrwxrwxrwx 1 mike mike    14 Mar 27 15:16 egrep -> /usr/bin/egrep
lrwxrwxrwx 1 mike mike    13 Mar 27 15:16 file -> /usr/bin/file
lrwxrwxrwx 1 mike mike    13 Mar 27 15:16 find -> /usr/bin/find
lrwxrwxrwx 1 mike mike    12 Mar 27 15:16 g++ -> /usr/bin/g++
lrwxrwxrwx 1 mike mike    11 Mar 27 15:16 gcc -> /usr/bin/cc
lrwxrwxrwx 1 mike mike    15 Mar 27 15:16 getopt -> /usr/bin/getopt
lrwxrwxrwx 1 mike mike    12 Mar 27 15:16 git -> /usr/bin/git
lrwxrwxrwx 1 mike mike    13 Mar 27 15:16 grep -> /usr/bin/grep
lrwxrwxrwx 1 mike mike    16 Mar 27 15:16 install -> /usr/bin/install
lrwxrwxrwx 1 mike mike     9 Mar 27 15:16 ldconfig -> /bin/true
-rwxrwxr-x 1 mike mike 25384 Mar 27 15:16 mkhash
lrwxrwxrwx 1 mike mike    14 Mar 27 15:16 patch -> /usr/bin/patch
lrwxrwxrwx 1 mike mike    13 Mar 27 15:16 perl -> /usr/bin/perl
lrwxrwxrwx 1 mike mike    19 Mar 27 15:16 python -> /usr/bin/python3.10
lrwxrwxrwx 1 mike mike    19 Mar 27 15:16 python3 -> /usr/bin/python3.10
lrwxrwxrwx 1 mike mike    17 Mar 27 15:16 realpath -> /usr/bin/realpath
lrwxrwxrwx 1 mike mike    14 Mar 27 15:16 rsync -> /usr/bin/rsync
lrwxrwxrwx 1 mike mike    12 Mar 27 15:16 seq -> /usr/bin/seq
lrwxrwxrwx 1 mike mike    13 Mar 27 15:16 stat -> /usr/bin/stat
lrwxrwxrwx 1 mike mike    12 Mar 27 15:16 tar -> /usr/bin/tar
lrwxrwxrwx 1 mike mike    14 Mar 27 15:16 unzip -> /usr/bin/unzip
lrwxrwxrwx 1 mike mike    13 Mar 27 15:16 wget -> /usr/bin/wget
lrwxrwxrwx 1 mike mike    14 Mar 27 15:16 which -> /usr/bin/which
lrwxrwxrwx 1 mike mike    14 Mar 27 15:16 xargs -> /usr/bin/xargs
lrwxrwxrwx 1 mike mike    89 Mar 27 15:16 xxd -> /OpenWrt-NanoPi-R2S-R4S-Builds/build/openwrt/scripts/xxdi.pl

flex and m4 are installed:

$ which m4
/usr/bin/m4
$ m4 --version                                                                                                                                                                 [main]
m4 (GNU M4) 1.4.18
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Rene' Seindal.

Official upgrade method

Hi Anaelorlinski,

Thank you for your project and merry Christmas! :)
A quick question. I have been using the "AO [email protected] / LuCI openwrt-21.02 branch git-21.279.78618-2e0ff79" version for a while.
What is the official method to upgrade to the latest version with keeping the existing configuration?

Thank you,

Peter

Clock speed?

What kind of clock speeds does this firmware offer on R2S/R4S? I'm hesitant to go back to vanilla openwrt; I'm currently using [quintus-lab] fork, because it has 1.6Ghz clock, which just happens to be enough performance to fully saturate 1Gbit WAN.

Local Build

I'd like to know if this can be built locally, meaning on my linux system.
Why? I'd like to remove docker from the config as I do not use or plan to use docker and do not need the additional docker related network items. Also, UDP forwarding problem in kernel with docker seemed to be an issue, but that was back in July, perhaps corrected.

In any event, how can this project be built locally, if at all?

Thanks

No thermal zone for monitoring?

Tried enabling thermal monitoring with collectd and also manually pulling via a script but interfaces don't exist?

https://github.com/friendlyarm/cpu-temperature-test-script

./capture_cpufreq_and_temp.sh: line 14: can't open /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq: no such file
./capture_cpufreq_and_temp.sh: line 18: can't open /sys/class/thermal/thermal_zone0/temp: no such file

#include script

#!/bin/bash

rm -f /tmp/cpufreq.txt
rm -f /tmp/cpu_temperature.txt

for j in $(seq $(grep -c processor /proc/cpuinfo))
do
    dd if=/dev/zero of=/dev/null bs=1 &
done 

ps | grep dd > /tmp/cpufan_testing_started
for i in {1..1800}
do
    awk '{printf ("%0.0f\n",$1/1000); }' </sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq >> /tmp/cpufan_testing_cpu-freq.txt
    if [ -f /sys/devices/system/cpu/cpu4/cpufreq/cpuinfo_cur_freq ]; then
        awk '{printf ("%0.0f\n",$1/1000); }' </sys/devices/system/cpu/cpu4/cpufreq/cpuinfo_cur_freq >> /tmp/cpufan_testing_cpu4-freq.txt
    fi
    awk '{printf ("%0.1f\n",$1/1000); }' </sys/class/thermal/thermal_zone0/temp >> /tmp/cpufan_testing_cpu-temperature.txt
    sleep 1
done
ps | grep dd > /tmp/cpufan_testing_done

for dd in $(jobs -p) ; do kill ${dd} ; done

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.