Skip to content

Commit 8794f8b

Browse files
committed
RK3588: Switch to mainline Linux
1 parent dfc4254 commit 8794f8b

File tree

1 file changed

+14
-18
lines changed

1 file changed

+14
-18
lines changed

.build/images/dietpi-installer

100755100644
Lines changed: 14 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -708,20 +708,15 @@ setenv rootuuid "true"' /boot/boot.cmd
708708
# Overlay prefix
709709
case $G_HW_MODEL in
710710
73) G_CONFIG_INJECT 'overlay_prefix=' 'overlay_prefix=rk3308' /boot/dietpiEnv.txt;;
711-
92) G_CONFIG_INJECT 'overlay_prefix=' 'overlay_prefix=nanopi-m6' /boot/dietpiEnv.txt;; # For DSI disploy port overlays
712-
78|79|80|82|85|91|93) G_CONFIG_INJECT 'overlay_prefix=' 'overlay_prefix=rk3588' /boot/dietpiEnv.txt;; # ToDo: There are multiple other prefixes used in the kernel package, "rock-5b", "rock-5ab", "rockchip" (for fixup), so the boot.cmd need heavy adjustments (eliminate the prefix entirely) to work with all overlays.
711+
93) G_CONFIG_INJECT 'overlay_prefix=' 'overlay_prefix=rk3588' /boot/dietpiEnv.txt;; # ToDo: There are multiple other prefixes used in the kernel package, "rock-5b", "rock-5ab", "rockchip" (for fixup), so the boot.cmd need heavy adjustments (eliminate the prefix entirely) to work with all overlays.
712+
78|79|80|82|85|91|92|94) G_CONFIG_INJECT 'overlay_prefix=' 'overlay_prefix=rockchip-rk3588' /boot/dietpiEnv.txt;;
713713
*) G_CONFIG_INJECT 'overlay_prefix=' 'overlay_prefix=rockchip' /boot/dietpiEnv.txt;;
714714
esac
715-
# Overlays
716-
case $G_HW_MODEL in
717-
92) G_CONFIG_INJECT 'overlays=' 'overlays=display-dsi1-yx35' /boot/dietpiEnv.txt;; # Enable builtin LCD of official case
718-
*) :;;
719-
esac
720715
# Console args
721716
case $G_HW_MODEL in
722717
73) G_CONFIG_INJECT 'consoleargs=' 'consoleargs=console=ttyS0,1500000' /boot/dietpiEnv.txt;; # headless
723718
47|55|56) G_CONFIG_INJECT 'consoleargs=' 'consoleargs=console=ttyS2,1500000' /boot/dietpiEnv.txt;; # headless
724-
78|79|80|82|85|91|92|93) G_EXEC sed --follow-symlinks -i 's/ttyAML0,115200/ttyFIQ0,1500000/' /boot/dietpiEnv.txt;; # RK3588
719+
93) G_EXEC sed --follow-symlinks -i 's/ttyAML0,115200/ttyFIQ0,1500000/' /boot/dietpiEnv.txt;; # RK3588
725720
*) G_EXEC sed --follow-symlinks -i 's/ttyAML0,115200/ttyS2,1500000/' /boot/dietpiEnv.txt;;
726721
esac
727722

@@ -1135,25 +1130,26 @@ _EOF_
11351130
*) model='nanopi-r5s';;
11361131
esac;;
11371132
77) model='rock-3a' kernel='rockchip64';;
1138-
78) model='rock-5b' kernel='rk35xx' branch='vendor';;
1139-
79) kernel='rk35xx' branch='vendor'
1133+
78) model='rock-5b' kernel='rockchip64';;
1134+
79) kernel='rockchip64'
11401135
case $HW_VARIANT in
11411136
2) model='nanopi-r6c';;
11421137
3) model='nanopct6';;
11431138
*) model='nanopi-r6s';;
11441139
esac;;
1145-
80) model='orangepi5' kernel='rk35xx' branch='vendor';;
1146-
82) model='orangepi5-plus' kernel='rk35xx' branch='vendor';;
1140+
80) model='orangepi5' kernel='rockchip64';;
1141+
82) model='orangepi5-plus' kernel='rockchip64';;
11471142
83) model='orangepizero3' kernel='sunxi64';;
1148-
85) model='rock-5a' kernel='rk35xx' branch='vendor';;
1143+
85) model='rock-5a' kernel='rockchip64';;
11491144
86) model='tinkerboard-2' kernel='rockchip64';;
11501145
87) model='orangepi3b' kernel='rockchip64';;
11511146
88) model='orangepizero2w' kernel='sunxi64';;
11521147
89) model='orangepi3-lts' kernel='sunxi64';;
1153-
90) model='radxa-zero3' kernel='rk35xx' branch='vendor';;
1154-
91) model='orangepi5-max' kernel='rk35xx' branch='vendor';;
1155-
92) model='nanopi-m6' kernel='rk35xx' branch='vendor';;
1148+
90) model='radxa-zero3' kernel='rockchip64';;
1149+
91) model='orangepi5-max' kernel='rockchip64';;
1150+
92) model='nanopi-m6' kernel='rockchip64';;
11561151
93) model='orangepi5pro' kernel='rk35xx' branch='vendor';;
1152+
94) model='orangepi5-ultra' kernel='rockchip64';;
11571153
*) :;;
11581154
esac
11591155

@@ -2035,12 +2031,12 @@ _EOF_'
20352031
/boot/dietpi/func/dietpi-set_hardware serialconsole enable ttyS0
20362032

20372033
# Rockchip mainline
2038-
elif [[ $G_HW_MODEL =~ ^(42|43|46|47|49|52|55|56|58|68|72|76|77|86|87)$ ]]
2034+
elif [[ $kernel == 'rockchip' || $kernel == 'rockchip64' ]]
20392035
then
20402036
/boot/dietpi/func/dietpi-set_hardware serialconsole enable ttyS2
20412037

20422038
# Rockchip vendor
2043-
elif [[ $G_HW_MODEL =~ ^(78|79|80|82|85|90|91|92|93|94|95)$ ]]
2039+
elif [[ $kernel == 'rk35xx' ]]
20442040
then
20452041
/boot/dietpi/func/dietpi-set_hardware serialconsole enable ttyFIQ0
20462042

0 commit comments

Comments
 (0)