fix: ubnthal cleaning

Removing these fully now as we do not need to rely on them anymore.
This commit is contained in:
Chris Blake 2024-06-16 14:11:19 -05:00
parent 02258ae02f
commit 7c35890137
2 changed files with 4 additions and 1 deletions

View file

@ -3,7 +3,6 @@
case "$1" in
start)
# Load our kernel modules
# /usr/sbin/modprobe ubnthal # No longer needed, ubnteeprom replaced it in userspace
/usr/sbin/modprobe ubnt-mtd-lock # Force our /dev/mtd* as RO
/usr/sbin/modprobe btrfs

View file

@ -24,6 +24,10 @@ chroot "${build_path}/rootfs" /debootstrap/debootstrap --second-stage
mv -f "${build_path}/fw-extract/${BOARD}-rootfs/lib/modules" "${build_path}/rootfs/lib"
cp "${build_path}/fw-extract/${firmware_filename%.bin}/kernel.bin" "${build_path}/rootfs/boot/uImage"
# We can burn ubnt's proprietary modules, so we don't bundle in this IP!
rm "${build_path}/rootfs/lib/modules/4.19.152-alpine-unvr/extra/ubnt_common.ko" \
"${build_path}/rootfs/lib/modules/4.19.152-alpine-unvr/extra/ubnthal.ko"
# Now, for the old kernel we built, pull in our extra modules we need! (depmod is done in bootstrap)
cp "${build_path}/kernel/kernel-modules/lib/modules/4.19.152-alpine-unvr/kernel/lib/zstd/zstd_compress.ko" "${build_path}/rootfs/lib/modules/4.19.152-alpine-unvr/extra/"
cp "${build_path}/kernel/kernel-modules/lib/modules/4.19.152-alpine-unvr/kernel/fs/btrfs/btrfs.ko" "${build_path}/rootfs/lib/modules/4.19.152-alpine-unvr/extra/"