Skip to content

Commit

Permalink
ci: update for changed device tree names
Browse files Browse the repository at this point in the history
starfive-tech@1cc2b6a

Signed-off-by: MichaIng <[email protected]>
  • Loading branch information
MichaIng committed May 11, 2024
1 parent 0f707ac commit a4a904e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
make -j$(nproc)
make install INSTALL_PATH='linux-image-visionfive2/boot'
make dtbs_install INSTALL_DTBS_PATH='linux-image-visionfive2/usr/lib/linux-image-visionfive2'
find linux-image-visionfive2/usr/lib/linux-image-visionfive2 -mindepth 1 -regextype egrep \( ! -regex '.*/(starfive|vf2-overlay.*|jh7110-visionfive-v2.*\.dtb)' -o -regex '.*/jh7110-visionfive-v2-A1[01].dtb' \) -exec rm -Rf {} +
find linux-image-visionfive2/usr/lib/linux-image-visionfive2 -mindepth 1 -regextype egrep \( ! -regex '.*/(starfive|vf2-overlay.*|jh7110-starfive-visionfive-2-.*\.dtb)' -o -regex '.*/jh7110-starfive-visionfive-2-A1[01].dtb' \) -exec rm -Rf {} +
make modules_install INSTALL_MOD_PATH='linux-image-visionfive2'
rm linux-image-visionfive2/lib/modules/*/build linux-image-visionfive2/lib/modules/*/source
# WiFi/BT firmware: https://github.com/starfive-tech/buildroot/blob/JH7110_VisionFive2_devel/package/starfive/starfive-firmware/starfive-firmware.mk
Expand Down
2 changes: 2 additions & 0 deletions linux-image-visionfive2/DEBIAN/postinst
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,6 @@ set -e
export DEB_MAINT_PARAMS=$* INITRD=Yes
[ -d '/etc/kernel/postinst.d' ] && run-parts --arg='VERSION' --arg='VERSION' /etc/kernel/postinst.d
sed -Ei '/^[[:blank:]]*(linux|kernel)/c\linux /boot/vmlinuz-VERSION' /boot/extlinux/extlinux.conf
# Post-6.1.86-dietpi1 extlinux.conf migration, due to changed device tree names: https://github.com/starfive-tech/linux/commit/1cc2b6a
dpkg --compare-versions "$2" gt '6.1.86-dietpi1' || sed -i -e 's/jh7110-visionfive-v2/jh7110-starfive-visionfive-2/g' -e 's/jh7110-starfive-visionfive-2\.dtb/jh7110-starfive-visionfive-2-v1.3b\.dtb/g' /boot/extlinux/extlinux.conf
exit 0
2 changes: 1 addition & 1 deletion linux-image-visionfive2/boot/extlinux/extlinux.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
label DietPi
linux /boot/vmlinuz-VERSION
fdt /usr/lib/linux-image-visionfive2/starfive/jh7110-visionfive-v2.dtb
fdt /usr/lib/linux-image-visionfive2/starfive/jh7110-starfive-visionfive-2-v1.3.dtb
append root=/dev/mmcblk1p1 rootfstype=ext4 rootwait earlycon=sbi console=ttyS0,115200 console=tty1 consoleblank=0 net.ifnames=0

0 comments on commit a4a904e

Please sign in to comment.