Commit d201431 1 parent beb42bd commit d201431 Copy full SHA for d201431
File tree 3 files changed +34
-1
lines changed
3 files changed +34
-1
lines changed Original file line number Diff line number Diff line change @@ -257,6 +257,11 @@ jobs:
257
257
cd project
258
258
./build.sh uboot
259
259
./build.sh kernel
260
+ case ${{ matrix.CPU }} in
261
+ rk3568)
262
+ ../scripts/3rd/add_r8125.sh
263
+ ;;
264
+ esac
260
265
261
266
- name : Build sd image
262
267
id : build_sd_image
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ set -eu
3
+ top_path=$( pwd)
4
+
5
+ # prepare toolchain and get the kernel version
6
+ export PATH=/opt/FriendlyARM/toolchain/11.3-aarch64/bin/:$PATH
7
+ pushd kernel
8
+ kernel_ver=` make CROSS_COMPILE=aarch64-linux-gnu- ARCH=arm64 kernelrelease`
9
+ popd
10
+ modules_dir=$( readlink -f ./out/output_* _kmodules/lib/modules/${kernel_ver} )
11
+ [ -d ${modules_dir} ] || {
12
+ echo " please build kernel first."
13
+ exit 1
14
+ }
15
+
16
+ # build kernel driver
17
+ git clone https://github.com/zeroday0619/r8125 -b main
18
+ pushd r8125/src
19
+ make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- -C ${top_path} /kernel M=$( pwd)
20
+ aarch64-linux-gnu-strip --strip-unneeded r8125.ko
21
+ cp r8125.ko ${modules_dir} /
22
+ popd
23
+
24
+ # prepare rootfs overlay
25
+ tmp_dir=" ${top_path} /r8125-files/etc/modules.d/"
26
+ mkdir ${tmp_dir} -p
27
+ echo " r8125" > ${tmp_dir} /10-r8125
28
+ echo " FRIENDLYWRT_FILES+=(r8125-files)" >> .current_config.mk
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ wget https://github.com/armbian/firmware/blob/master/rtl8852bu_fw -O ${firmware_
25
25
git clone https://github.com/lwfinger/rtw89.git -b main
26
26
(cd rtw89 && {
27
27
git reset 38b8a48d04b8440266db6ea730e9b9cf84463981 --hard
28
- export PATH=/opt/FriendlyARM/toolchain/11.3-aarch64:$PATH
28
+ export PATH=/opt/FriendlyARM/toolchain/11.3-aarch64/bin/ :$PATH
29
29
30
30
if grep ' symbol:backport' ${modules_dir} /modules.symbols > /dev/null; then
31
31
# kernel with backports
You can’t perform that action at this time.
0 commit comments