Skip to content

Commit

Permalink
testing pi
Browse files Browse the repository at this point in the history
  • Loading branch information
raphaelscholle committed Jan 27, 2024
1 parent 2402cf3 commit a8e2f17
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 3 deletions.
16 changes: 16 additions & 0 deletions before-install-pi.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/bin/bash
if [ -e "/lib/modules/6.1.21-v7+/kernel/drivers/net/wireless/88XXau_wfb.ko" ]; then
sudo rm -Rf "/lib/modules/6.1.21-v7+/kernel/drivers/net/wireless/88XXau_wfb.ko"
fi
if [ -e "/lib/modules/6.1.21-v7+/kernel/drivers/net/wireless/88XXau_ohd.ko" ]; then
sudo rm -Rf "/lib/modules/6.1.21-v7+/kernel/drivers/net/wireless/88XXau_ohd.ko"
fi
if [ -e "/lib/modules/6.1.21-v7l+/kernel/drivers/net/wireless/88XXau_wfb.ko" ]; then
sudo rm -Rf "/lib/modules/6.1.21-v7l+/kernel/drivers/net/wireless/88XXau_wfb.ko"
fi
if [ -e "/lib/modules/6.1.21-v7l+/kernel/drivers/net/wireless/88XXau_ohd.ko" ]; then
sudo rm -Rf "/lib/modules/6.1.21-v7+/kernel/drivers/net/wireless/88XXau_ohd.ko"
fi
if [ -e "/lib/modules/6.1.21-v7l+/kernel/drivers/net/wireless/realtek/" ]; then
sudo rm -Rf "/lib/modules/6.1.21-v7+/kernel/drivers/net/wireless/realtek/*"
fi
13 changes: 10 additions & 3 deletions build_chroot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,16 @@ if [[ -e /etc/os-release && $(grep -c "Raspbian" /etc/os-release) -gt 0 ]]; then
echo "building for the raspberry pi"
sudo apt update
sudo apt install -y build-essential flex bc bison dkms raspberrypi-kernel-headers
echo "---------------"
echo "_____________________________________________"
ls -a /usr/src/
echo "___________________BUILDING-DRIVER______PI4_____________"
make KSRC=/usr/src/linux-headers-6.1.21-v7l+ O="" modules
mkdir -p package/lib/modules/6.1.21-v7l+/kernel/drivers/net/wireless/
cp *.ko package/lib/modules/6.1.21-v7l+/kernel/drivers/net/wireless/
ls -a
make clean
make KSRC=/usr/src/linux-headers-6.1.21-v7+ O="" modules
mkdir -p package/lib/modules/6.1.21-v7+/kernel/drivers/net/wireless/
cp *.ko package/lib/modules/6.1.21-v7+/kernel/drivers/net/wireless/
fpm -a amd64 -s dir -t deb -n rtl8812au-rpi -v 2.5-evo-$(date '+%m%d%H%M') -C package -p rtl8812au-rpi.deb --before-install before-install.sh --after-install after-install-pi.sh
else

sudo apt update
Expand Down

0 comments on commit a8e2f17

Please sign in to comment.