@@ -708,20 +708,15 @@ setenv rootuuid "true"' /boot/boot.cmd
708
708
# Overlay prefix
709
709
case $G_HW_MODEL in
710
710
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;;
713
713
* ) G_CONFIG_INJECT ' overlay_prefix=' ' overlay_prefix=rockchip' /boot/dietpiEnv.txt;;
714
714
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
720
715
# Console args
721
716
case $G_HW_MODEL in
722
717
73) G_CONFIG_INJECT ' consoleargs=' ' consoleargs=console=ttyS0,1500000' /boot/dietpiEnv.txt;; # headless
723
718
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
725
720
* ) G_EXEC sed --follow-symlinks -i ' s/ttyAML0,115200/ttyS2,1500000/' /boot/dietpiEnv.txt;;
726
721
esac
727
722
@@ -1135,25 +1130,26 @@ _EOF_
1135
1130
* ) model=' nanopi-r5s' ;;
1136
1131
esac ;;
1137
1132
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 '
1140
1135
case $HW_VARIANT in
1141
1136
2) model=' nanopi-r6c' ;;
1142
1137
3) model=' nanopct6' ;;
1143
1138
* ) model=' nanopi-r6s' ;;
1144
1139
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 ' ;;
1147
1142
83) model=' orangepizero3' kernel=' sunxi64' ;;
1148
- 85) model=' rock-5a' kernel=' rk35xx ' branch= ' vendor ' ;;
1143
+ 85) model=' rock-5a' kernel=' rockchip64 ' ;;
1149
1144
86) model=' tinkerboard-2' kernel=' rockchip64' ;;
1150
1145
87) model=' orangepi3b' kernel=' rockchip64' ;;
1151
1146
88) model=' orangepizero2w' kernel=' sunxi64' ;;
1152
1147
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 ' ;;
1156
1151
93) model=' orangepi5pro' kernel=' rk35xx' branch=' vendor' ;;
1152
+ 94) model=' orangepi5-ultra' kernel=' rockchip64' ;;
1157
1153
* ) : ;;
1158
1154
esac
1159
1155
@@ -2035,12 +2031,12 @@ _EOF_'
2035
2031
/boot/dietpi/func/dietpi-set_hardware serialconsole enable ttyS0
2036
2032
2037
2033
# 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 ' ]]
2039
2035
then
2040
2036
/boot/dietpi/func/dietpi-set_hardware serialconsole enable ttyS2
2041
2037
2042
2038
# Rockchip vendor
2043
- elif [[ $G_HW_MODEL =~ ^(78 | 79 | 80 | 82 | 85 | 90 | 91 | 92 | 93 | 94 | 95)$ ]]
2039
+ elif [[ $kernel == ' rk35xx ' ]]
2044
2040
then
2045
2041
/boot/dietpi/func/dietpi-set_hardware serialconsole enable ttyFIQ0
2046
2042
0 commit comments