Initial commit
Some checks failed
Build Kernel / Build all affected Kernels (push) Has been cancelled
Build all core packages / Build all core packages for selected target (push) Has been cancelled
Build and Push prebuilt tools container / Build and Push all prebuilt containers (push) Has been cancelled
Build Toolchains / Build Toolchains for each target (push) Has been cancelled
Build host tools / Build host tools for linux and macos based systems (push) Has been cancelled
Coverity scan build / Coverity x86/64 build (push) Has been cancelled

This commit is contained in:
domenico
2025-06-24 14:35:53 +02:00
commit c06fb25d1f
9263 changed files with 1750214 additions and 0 deletions

View File

@@ -0,0 +1,40 @@
set_preinit_iface() {
case $(board_name) in
cudy,m3000-v1|\
cudy,tr3000-v1|\
glinet,gl-mt3000)
ip link set eth1 up
ifname=eth1
;;
cudy,ap3000outdoor-v1|\
cudy,re3000-v1|\
ubnt,unifi-6-lr|\
zyxel,nwa50ax-pro)
ip link set eth0 up
ifname=eth0
;;
smartrg,sdg-841-t6|\
smartrg,sdg-8622|\
smartrg,sdg-8632|\
smartrg,sdg-8733a)
ip link set lan up
ifname=lan
;;
xiaomi,mi-router-ax3000t|\
xiaomi,mi-router-ax3000t-ubootmod|\
xiaomi,mi-router-wr30u-stock|\
xiaomi,mi-router-wr30u-ubootmod|\
xiaomi,redmi-router-ax6000-stock|\
xiaomi,redmi-router-ax6000-ubootmod)
ip link set eth0 up
ifname=lan4
;;
*)
ip link set eth0 up
ifname=lan1
;;
esac
}
boot_hook_add preinit_main set_preinit_iface

View File

@@ -0,0 +1,6 @@
set_rps_sock_flow() {
echo 1024 > /proc/sys/net/core/rps_sock_flow_entries
}
boot_hook_add preinit_main set_rps_sock_flow

View File

@@ -0,0 +1,16 @@
#!/bin/sh
trigger_fip_scrubbing() {
local vol voltype volname
for vol in /sys/class/ubi/ubi*_*; do
[ -e "$vol" ] || continue
voltype="$(cat "$vol"/type)"
volname="$(cat "$vol"/name)"
if [ "$voltype" = "static" ] && [ "$volname" = "fip" ]; then
cat "/dev/${vol##*/}" > /dev/null
break
fi
done
}
boot_hook_add preinit_main trigger_fip_scrubbing