Skip to content

Commit b43848e

Browse files
committed
armbian-update: wxy-oect: Handle kernel updates based on special model numbers
1 parent 978f126 commit b43848e

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

build-armbian/armbian-files/common-files/etc/model_database.conf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,10 +243,10 @@ r215 :MMBox-Anas3035 :rk3568 :rk3568-mmbox-ana
243243
r301 :Panther-X2 :rk3566 :rk3566-panther-x2.dtb :NA :u-boot.itb :idbloader.img :4GB-LPDDR4,32G-eMMC,64G-TF,2x1Gb-Nic :stable/6.1.y :rockchip :rk3566 :armbianEnv.txt :tdleiyao :panther-x2 :yes
244244
r302 :JP-TvBox :rk3566 :rk3566-jp-tvbox.dtb :NA :u-boot.itb :idbloader.img :8GB-LPDDR4,32G-eMMC,SATA,1Gb-Nic :stable/6.1.y :rockchip :rk3566 :armbianEnv.txt :unifreq :jp-tvbox :yes
245245
r303 :LCKFB-Taishan-Pi :rk3566 :rk3566-taishanpi-v10.dtb :NA :u-boot.itb :idbloader.img :2GB-LPDDR4,16G-eMMC,SATA,1Gb-Nic :rk35xx/6.1.y :rockchip :rk3566 :armbianEnv.txt :ccu6 :lckfb-tspi :yes
246-
r304 :WXY-OEC-turbo-4g(Replaced-Chip-and-eMMC) :rk3566 :rk3566-wxy-oec-turbo-4g.dtb :NA :u-boot.itb :idbloader.img :4GB-LPDDR4,Replaced-eMMC,1xSATA,1Gb-Nic :stable/6.12.y :rockchip :rk3566 :extlinux.conf :andyfanybo,dd-ray :wxy-oec-replaced :yes
246+
r304 :♥,WXY-OEC-turbo-4g(Replaced-Chip-and-eMMC) :rk3566 :rk3566-wxy-oec-turbo-4g.dtb :NA :u-boot.itb :idbloader.img :4GB-LPDDR4,Replaced-eMMC,1xSATA,1Gb-Nic :stable/6.12.y :rockchip :rk3566 :extlinux.conf :andyfanybo,dd-ray :wxy-oec-replaced :yes
247247
r305 :Station-M2 :rk3566 :rk3566-roc-pc.dtb :NA :NA :u-boot-rockchip.bin :2GB-LPDDR4,32G-eMMC,NVMe,TF,1Gb-Nic :stable/6.12.y :rockchip :rk3566 :armbianEnv.txt :Kwonelee :station-m2 :yes
248248
#-------+--------------------------------------------+---------+---------------------------------------+-----------------------------+------------------------------------+--------------------------------+-------------------------------------------+----------------+------------+-------------+----------------+-----------------------------------------------------+--------------------+----------
249-
r306 :WXY-OEC-turbo-4g(Original-Edition) :rk3566 :rk3566-wxy-oec-turbo-4g.dtb :NA :NA :bootloader.bin :4GB-LPDDR4,8G-eMMC,1xSATA,1Gb-Nic :stable/6.12.y :rockchip :rk3566 :extlinux.conf :dd-ray,hoiw :wxy-oect :yes
249+
r306 :♥,WXY-OEC-turbo-4g(Original-Edition) :rk3566 :rk3566-wxy-oec-turbo-4g.dtb :NA :NA :bootloader.bin :4GB-LPDDR4,8G-eMMC,1xSATA,1Gb-Nic :stable/6.12.y :rockchip :rk3566 :extlinux.conf :dd-ray,hoiw :wxy-oect :yes
250250

251251

252252
# Rockchip RK3399 Family

build-armbian/armbian-files/common-files/usr/sbin/armbian-update

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,13 +116,13 @@ check_disk() {
116116

117117
# Find the disk where the partition is located, only supports mmcblk?p? sd?? hd?? vd?? and other formats
118118
case "${ROOT_PTNAME}" in
119-
mmcblk?p[1-4])
119+
mmcblk?p[1-9])
120120
DISK_NAME="${ROOT_PTNAME:0:-2}"
121121
;;
122-
[hsv]d[a-z][1-4])
122+
[hsv]d[a-z][1-9])
123123
DISK_NAME="${ROOT_PTNAME:0:-1}"
124124
;;
125-
nvme?n?p[1-4])
125+
nvme?n?p[1-9])
126126
DISK_NAME="${ROOT_PTNAME:0:-2}"
127127
;;
128128
*)
@@ -156,6 +156,7 @@ init_var() {
156156
# Get values
157157
source "${ophub_release_file}"
158158
PLATFORM="${PLATFORM}"
159+
MODEL_ID="${MODEL_ID}"
159160
UBOOT_OVERLOAD="${UBOOT_OVERLOAD}"
160161
MAINLINE_UBOOT="${MAINLINE_UBOOT}"
161162
KERNEL_REPO="${KERNEL_REPO}"
@@ -503,6 +504,8 @@ update_kernel() {
503504
[[ "${PLATFORM}" == "amlogic" ]] && (cd /boot && cp -f uInitrd-${kernel_name} uInitrd && cp -f vmlinuz-${kernel_name} zImage)
504505
[[ "${PLATFORM}" == "rockchip" ]] && (cd /boot && ln -sf uInitrd-${kernel_name} uInitrd && ln -sf vmlinuz-${kernel_name} Image)
505506
[[ "${PLATFORM}" == "allwinner" ]] && (cd /boot && cp -f uInitrd-${kernel_name} uInitrd && cp -f vmlinuz-${kernel_name} Image)
507+
# wxy-oect: MODEL_ID numbers r304 and r306, require special handling of uInitrd
508+
[[ "${MODEL_ID}" == "r304" || "${MODEL_ID}" == "r306" ]] && (cd /boot && rm -f uInitrd && ln -sf initrd.img-${kernel_name} uInitrd)
506509
[[ "$(ls /boot/*${kernel_name}* -l 2>/dev/null | grep "^-" | wc -l)" -ge "4" ]] || error_msg "The /boot files is missing."
507510
echo -e "${INFO} (1/4) Unpacking [ boot-${kernel_name}.tar.gz ] succeeded."
508511

0 commit comments

Comments
 (0)