From cc2579a92a9a9500c421701acfa26ba53e8bac19 Mon Sep 17 00:00:00 2001 From: Raphael <68374617+raphaelscholle@users.noreply.github.com> Date: Sun, 17 Mar 2024 20:58:27 +0100 Subject: [PATCH 1/7] test --- .github/workflows/build_for_x20.yml | 2 +- build_chroot.sh | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build_for_x20.yml b/.github/workflows/build_for_x20.yml index 9224be8..262f9b1 100644 --- a/.github/workflows/build_for_x20.yml +++ b/.github/workflows/build_for_x20.yml @@ -1,4 +1,4 @@ -name: build on x86 lunar +name: build on x20 on: [push] diff --git a/build_chroot.sh b/build_chroot.sh index 40b09c2..075f978 100644 --- a/build_chroot.sh +++ b/build_chroot.sh @@ -28,6 +28,7 @@ if [[ -e /etc/os-release && $(grep -c "Raspbian" /etc/os-release) -gt 0 ]]; then elif [[ -e /etc/os-release && $(grep -c "Armbian" /etc/os-release) -gt 0 ]]; then echo "building for the x20" sudo apt update + sudo apt list |grep linux-headers sudo apt install -y build-essential flex bc bison dkms linux-headers-5.8.0-29-generic echo "---------------" echo "_____________________________________________" From 6408c5a567fec838941c5cff66835bc4a176ede4 Mon Sep 17 00:00:00 2001 From: Raphael <68374617+raphaelscholle@users.noreply.github.com> Date: Sun, 17 Mar 2024 21:17:07 +0100 Subject: [PATCH 2/7] Update build_chroot.sh --- build_chroot.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/build_chroot.sh b/build_chroot.sh index 075f978..2fa920f 100644 --- a/build_chroot.sh +++ b/build_chroot.sh @@ -28,11 +28,13 @@ if [[ -e /etc/os-release && $(grep -c "Raspbian" /etc/os-release) -gt 0 ]]; then elif [[ -e /etc/os-release && $(grep -c "Armbian" /etc/os-release) -gt 0 ]]; then echo "building for the x20" sudo apt update - sudo apt list |grep linux-headers - sudo apt install -y build-essential flex bc bison dkms linux-headers-5.8.0-29-generic + sudo apt install -y build-essential flex bc bison dkms git + wget https://sby.mirror.bignet.id/ubuntu-ports/pool/main/l/linux-hwe-5.8/linux-headers-5.8.0-29-generic_5.8.0-29.31~20.04.1_armhf.deb + dpkg -i *.deb echo "---------------" echo "_____________________________________________" - ls -a /usr/src/ + make + make install else sudo apt update From 904dab7bcf97b49343cd3838eb42a0ab2db94598 Mon Sep 17 00:00:00 2001 From: Raphael <68374617+raphaelscholle@users.noreply.github.com> Date: Sun, 17 Mar 2024 21:24:37 +0100 Subject: [PATCH 3/7] Update build_chroot.sh --- build_chroot.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/build_chroot.sh b/build_chroot.sh index 2fa920f..508baa0 100644 --- a/build_chroot.sh +++ b/build_chroot.sh @@ -29,6 +29,9 @@ elif [[ -e /etc/os-release && $(grep -c "Armbian" /etc/os-release) -gt 0 ]]; the echo "building for the x20" sudo apt update sudo apt install -y build-essential flex bc bison dkms git + wget https://sby.mirror.bignet.id/ubuntu-ports/pool/main/l/linux-hwe-5.8/linux-hwe-5.8-headers-5.8.0-29_5.8.0-29.31~20.04.1_all.deb + dpkg -i *.deb + rm -Rf *.deb wget https://sby.mirror.bignet.id/ubuntu-ports/pool/main/l/linux-hwe-5.8/linux-headers-5.8.0-29-generic_5.8.0-29.31~20.04.1_armhf.deb dpkg -i *.deb echo "---------------" From 65ed223e46bf0cfd07935fb2b7dbe7b7c7d5ba74 Mon Sep 17 00:00:00 2001 From: Raphael <68374617+raphaelscholle@users.noreply.github.com> Date: Sun, 17 Mar 2024 21:35:21 +0100 Subject: [PATCH 4/7] Update build_chroot.sh --- build_chroot.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/build_chroot.sh b/build_chroot.sh index 508baa0..e262afd 100644 --- a/build_chroot.sh +++ b/build_chroot.sh @@ -36,8 +36,11 @@ elif [[ -e /etc/os-release && $(grep -c "Armbian" /etc/os-release) -gt 0 ]]; the dpkg -i *.deb echo "---------------" echo "_____________________________________________" - make - make install + make KSRC=/usr/src/linux-headers-5.8.0-29-generic O="" modules + mkdir -p package/lib/modules/5.8.0/kernel/drivers/net/wireless/ + cp *.ko package/lib/modules/5.8.0/kernel/drivers/net/wireless/ + ls -a + fpm -a armhf -s dir -t deb -n rtl8812au-x20 -v 2.5-evo-$(date '+%m%d%H%M') -C package -p rtl8812au-x20.deb --before-install before-install.sh --after-install after-install.sh else sudo apt update From f983aa7e3d357ef76f9b7d62e77905aef1be71e3 Mon Sep 17 00:00:00 2001 From: Raphael <68374617+raphaelscholle@users.noreply.github.com> Date: Sun, 17 Mar 2024 21:56:49 +0100 Subject: [PATCH 5/7] upload-test --- build_chroot.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/build_chroot.sh b/build_chroot.sh index e262afd..81c2d6f 100644 --- a/build_chroot.sh +++ b/build_chroot.sh @@ -41,6 +41,12 @@ elif [[ -e /etc/os-release && $(grep -c "Armbian" /etc/os-release) -gt 0 ]]; the cp *.ko package/lib/modules/5.8.0/kernel/drivers/net/wireless/ ls -a fpm -a armhf -s dir -t deb -n rtl8812au-x20 -v 2.5-evo-$(date '+%m%d%H%M') -C package -p rtl8812au-x20.deb --before-install before-install.sh --after-install after-install.sh +echo "push to cloudsmith" +git describe --exact-match HEAD >/dev/null 2>&1 +echo "Pushing the package to OpenHD 2.5 repository" +ls -a +cloudsmith push deb --api-key "$API_KEY" openhd/release/debian/bullseye rtl8812au-x20.deb || exit 1 +fi else sudo apt update From f27969a32159d0eec5986f4908f86acecb7e442f Mon Sep 17 00:00:00 2001 From: Raphael <68374617+raphaelscholle@users.noreply.github.com> Date: Sun, 17 Mar 2024 22:44:24 +0100 Subject: [PATCH 6/7] Update build_chroot.sh --- build_chroot.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/build_chroot.sh b/build_chroot.sh index 81c2d6f..86747f6 100644 --- a/build_chroot.sh +++ b/build_chroot.sh @@ -26,6 +26,7 @@ if [[ -e /etc/os-release && $(grep -c "Raspbian" /etc/os-release) -gt 0 ]]; then echo "_____________________________________________" ls -a /usr/src/ elif [[ -e /etc/os-release && $(grep -c "Armbian" /etc/os-release) -gt 0 ]]; then + sudo pip3 install --upgrade cloudsmith-cli echo "building for the x20" sudo apt update sudo apt install -y build-essential flex bc bison dkms git From 2a45ce922f960a68f2a6e9fc6328a8066f9e4334 Mon Sep 17 00:00:00 2001 From: Raphael <68374617+raphaelscholle@users.noreply.github.com> Date: Sun, 17 Mar 2024 23:15:16 +0100 Subject: [PATCH 7/7] Update build_chroot.sh --- build_chroot.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/build_chroot.sh b/build_chroot.sh index 86747f6..45c42fd 100644 --- a/build_chroot.sh +++ b/build_chroot.sh @@ -47,7 +47,6 @@ git describe --exact-match HEAD >/dev/null 2>&1 echo "Pushing the package to OpenHD 2.5 repository" ls -a cloudsmith push deb --api-key "$API_KEY" openhd/release/debian/bullseye rtl8812au-x20.deb || exit 1 -fi else sudo apt update