Skip to content

Commit 9ad482f

Browse files
committed
dietpi-installer: use current branch for mainline on RK35xx
Also assign correct NanoPi Zero2 device tree in that case and simplify ZSTD compressed initramfs logic, not that all supported kernel versions support it.
1 parent 1c8494c commit 9ad482f

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

.build/images/dietpi-installer

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -728,7 +728,7 @@ setenv rootuuid "true"' /boot/boot.cmd
728728
esac
729729
;;
730730
85) G_CONFIG_INJECT 'fdtfile=' 'fdtfile=rockchip/rk3588s-rock-5a.dtb' /boot/dietpiEnv.txt;;
731-
104) G_CONFIG_INJECT 'fdtfile=' 'fdtfile=rockchip/rk3528-nanopi-rev01.dtb' /boot/dietpiEnv.txt;;
731+
104) [[ $RK35XX_MAINLINE == 1 ]] && G_CONFIG_INJECT 'fdtfile=' 'fdtfile=rockchip/rk3528-nanopi-zero2.dtb' /boot/dietpiEnv.txt || G_CONFIG_INJECT 'fdtfile=' 'fdtfile=rockchip/rk3528-nanopi-rev01.dtb' /boot/dietpiEnv.txt;;
732732
*) :;;
733733
esac
734734
# Overlay prefix
@@ -1189,7 +1189,7 @@ _EOF_
11891189
esac
11901190

11911191
# Override with mainline kernel if wanted
1192-
[[ $RK35XX_MAINLINE == 1 && $kernel == 'rk35xx' ]] && kernel='rockchip64' branch='edge'
1192+
[[ $RK35XX_MAINLINE == 1 && $kernel == 'rk35xx' ]] && kernel='rockchip64' branch='current'
11931193

11941194
# NanoPi R2S/NEO3
11951195
if [[ $G_HW_MODEL =~ ^(55|56)$ ]]
@@ -1225,10 +1225,9 @@ fi' /boot/boot.cmd
12251225
/boot/dietpi/func/dietpi-set_software apt clean
12261226
G_AGUP
12271227

1228-
# Install initramfs-tools first to have an initramfs generated on kernel install, and configure it to use zstd if supported for better compression and faster decompression
1229-
[[ $kernel == 's5p6818' ]] || zstd=('zstd')
1230-
G_AGI initramfs-tools u-boot-tools armbian-firmware "${zstd[@]}"
1231-
[[ ${zstd[0]} ]] && G_CONFIG_INJECT 'COMPRESS=' 'COMPRESS=zstd' /etc/initramfs-tools/initramfs.conf
1228+
# Install initramfs-tools first to have an initramfs generated on kernel install, and configure it to use zstd for better compression and faster decompression
1229+
G_AGI initramfs-tools zstd armbian-firmware u-boot-tools
1230+
G_CONFIG_INJECT 'COMPRESS=' 'COMPRESS=zstd' /etc/initramfs-tools/initramfs.conf
12321231

12331232
# Install testing kernel build if requested
12341233
if (( $TEST_KERNEL ))

0 commit comments

Comments
 (0)