Add configuration parameter to set boot device for the image
PATCH 1/2 Add configuration parameter to set boot device for the image
From: Sergey 'Jin' Bostandzhyan <[email protected]>
wic modifies /etc/fstab on the root file system during image generation, without the --ondisk parameter it assumes some default device name which leads to an /etc/fstab file populated with /dev/sda entries. This is not correct for the machines in the rockchip layer which use mmcblkX.
This patch introduces an RK_BOOT_DEVICE option which is being set in the machine configuratoin and which is being used in the wks files. The variable expansion in the wks is handled by propagating the variable to the wic environment.
This results in correct /etc/fstab entries and in a correct kernel bootargs root= parameter.
--- conf/machine/include/rk3288.inc | 1 - conf/machine/include/rockchip-defaults.inc | 5 +++++ conf/machine/rock-pi-4.conf | 1 + conf/machine/vyasa-rk3288.conf | 1 + wic/firefly-rk3288.wks | 4 ++-- wic/rk3288-boot.wks | 12 ++++++------ wic/rk3399-boot.wks | 12 ++++++------ wic/rock-pi-4.wks | 4 ++-- wic/tinker-board.wks | 5 +++-- wic/vyasa-rk3288.wks | 4 ++-- 10 files changed, 28 insertions(+), 21 deletions(-)
conf/machine/include/rk3288.inc +0 -1
@@ -14,4 +14,3 @@ SERIAL_CONSOLES = "115200;ttyS2" PREFERRED_PROVIDER_virtual/bootloader ?= "u-boot" SPL_BINARY ?= "idbloader.img" -
conf/machine/include/rockchip-defaults.inc +5 -0
@@ -21,3 +21,8 @@ XSERVER = " \ # misc IMAGE_FSTYPES += "ext4" + +# boot device (sd-card/emmc) +RK_BOOT_DEVICE ??= "mmcblk0" +WICVARS_append = " RK_BOOT_DEVICE" +
conf/machine/rock-pi-4.conf +1 -0
@@ -10,6 +10,7 @@ require conf/machine/include/rk3399.inc KERNEL_DEVICETREE = "rockchip/rk3399-rock-pi-4.dtb" UBOOT_MACHINE = "rock-pi-4-rk3399_defconfig" +RK_BOOT_DEVICE = "mmcblk1" WKS_FILE ?= "rock-pi-4.wks" IMAGE_FSTYPES += "wic wic.bmap"
conf/machine/vyasa-rk3288.conf +1 -0
@@ -13,6 +13,7 @@ KERNEL_EXTRA_ARGS += "LOADADDR=0x02000000" UBOOT_MACHINE = "vyasa-rk3288_defconfig" +RK_BOOT_DEVICE = "mmcblk2" WKS_FILE = "vyasa-rk3288.wks" IMAGE_FSTYPES += "wic wic.bmap"
wic/firefly-rk3288.wks +2 -2
@@ -2,6 +2,6 @@ # Released under the MIT license (see COPYING.MIT for the terms) include rk3288-boot.wks -part / --align 131072 --source rootfs --fstype=ext4 --label root +part / --align 131072 --ondisk ${RK_BOOT_DEVICE} --source rootfs --fstype=ext4 --label root -bootloader --ptable gpt --append="console=tty1 console=ttyS2,115200n8 rw root=/dev/mmcblk0p7 rootfstype=ext4 init=/sbin/init" +bootloader --ptable gpt --append="console=tty1 console=ttyS2,115200n8 rw root=/dev/${RK_BOOT_DEVICE}p7 rootfstype=ext4 init=/sbin/init"
wic/rk3288-boot.wks +6 -6
@@ -15,10 +15,10 @@ # root 262144 - # -part loader1 --align 32 --size 4000K --source rawcopy --sourceparams="file=idbloader.img" -part reserved1 --align 4032 --size 64K -part reserved2 --align 4096 --size 4096K -part loader2 --align 8192 --size 4096K --source rawcopy --sourceparams="file=u-boot.bin" -part atf --align 12288 --size 4096K -part /boot --align 16384 --size=114688K --active --source bootimg-partition --fstype=vfat --label boot --sourceparams="loader=u-boot" +part loader1 --align 32 --size 4000K --ondisk ${RK_BOOT_DEVICE} --source rawcopy --sourceparams="file=idbloader.img" +part reserved1 --align 4032 --size 64K --ondisk ${RK_BOOT_DEVICE} +part reserved2 --align 4096 --size 4096K --ondisk ${RK_BOOT_DEVICE} +part loader2 --align 8192 --size 4096K --ondisk ${RK_BOOT_DEVICE} --source rawcopy --sourceparams="file=u-boot.bin" +part atf --align 12288 --size 4096K --ondisk ${RK_BOOT_DEVICE} +part /boot --align 16384 --size=114688K --active --ondisk ${RK_BOOT_DEVICE} --source bootimg-partition --fstype=vfat --label boot --sourceparams="loader=u-boot"
wic/rk3399-boot.wks +6 -6
@@ -15,10 +15,10 @@ # root 262144 - # -part loader1 --align 32 --size 4000K --source rawcopy --sourceparams="file=idbloader.img" -part reserved1 --align 4032 --size 64K -part reserved2 --align 4096 --size 4096K -part loader2 --align 8192 --size 4096K --source rawcopy --sourceparams="file=u-boot.itb" -part atf --align 12288 --size 4096K -part /boot --align 16384 --size=114688K --active --source bootimg-partition --fstype=vfat --label boot --sourceparams="loader=u-boot" +part loader1 --align 32 --size 4000K --ondisk ${RK_BOOT_DEVICE} --source rawcopy --sourceparams="file=idbloader.img" +part reserved1 --align 4032 --size 64K --ondisk ${RK_BOOT_DEVICE} +part reserved2 --align 4096 --size 4096K --ondisk ${RK_BOOT_DEVICE} +part loader2 --align 8192 --size 4096K --ondisk ${RK_BOOT_DEVICE} --source rawcopy --sourceparams="file=u-boot.itb" +part atf --align 12288 --size 4096K --ondisk ${RK_BOOT_DEVICE} +part /boot --align 16384 --size=114688K --active --ondisk ${RK_BOOT_DEVICE} --source bootimg-partition --fstype=vfat --label boot --sourceparams="loader=u-boot"
wic/rock-pi-4.wks +2 -2
@@ -2,6 +2,6 @@ # Released under the MIT license (see COPYING.MIT for the terms) include rk3399-boot.wks -part / --align 131072 --source rootfs --fstype=ext4 --label root +part / --align 131072 --ondisk ${RK_BOOT_DEVICE} --source rootfs --fstype=ext4 --label root -bootloader --ptable gpt --append="console=tty1 console=ttyS2,1500000n8 rw root=/dev/mmcblk1p7 rootfstype=ext4 init=/sbin/init" +bootloader --ptable gpt --append="console=tty1 console=ttyS2,1500000n8 rw root=/dev/${RK_BOOT_DEVICE}p7 rootfstype=ext4 init=/sbin/init"
wic/tinker-board.wks +3 -2
@@ -2,6 +2,7 @@ # Released under the MIT license (see COPYING.MIT for the terms) include rk3288-boot.wks -part / --align 131072 --source rootfs --fstype=ext4 --label root -bootloader --ptable gpt --append="console=tty1 console=ttyS2,115200n8 rw root=/dev/mmcblk0p7 rootfstype=ext4 init=/sbin/init" +part / --align 131072 --ondisk ${RK_BOOT_DEVICE} --source rootfs --fstype=ext4 --label root + +bootloader --ptable gpt --append="console=tty1 console=ttyS2,115200n8 rw root=/dev/${RK_BOOT_DEVICE}p7 rootfstype=ext4 init=/sbin/init"
wic/vyasa-rk3288.wks +2 -2
@@ -2,7 +2,7 @@ # Released under the MIT license (see COPYING.MIT for the terms) include rk3288-boot.wks -part / --align 131072 --source rootfs --fstype=ext4 --label root +part / --align 131072 --ondisk ${RK_BOOT_DEVICE} --source rootfs --fstype=ext4 --label root -bootloader --ptable gpt --append="console=tty1 console=ttyS2,115200n8 rw root=/dev/mmcblk2p7 rootfstype=ext4 init=/sbin/init" +bootloader --ptable gpt --append="console=tty1 console=ttyS2,115200n8 rw root=/dev/${RK_BOOT_DEVICE}p7 rootfstype=ext4 init=/sbin/init"
Signature · 1 line
2.24.1
PATCH 2/2 Add tinker-board-s machine configuration
From: Sergey 'Jin' Bostandzhyan <[email protected]>
Asus Tinker Board-S has emmc on mmcblk1, this is also the default configuration when building the image. If you need an image for booting from the sd card set RK_BOOT_DEVICE to mmcblk0
--- README | 1 + conf/machine/tinker-board-s.conf | 27 +++++++++++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 conf/machine/tinker-board-s.conf
README +1 -0
@@ -16,6 +16,7 @@ Status of supported boards: builds and boots gpt image: rock-pi-4 tinker-board + tinker-board-s vyasa-rk3288 firefly-rk3288 builds:
conf/machine/tinker-board-s.conf new file +27 -0
@@ -0,0 +1,27 @@ +# Copyright (C) 2018 Trevor Woerner +# Released under the MIT license (see COPYING.MIT for the terms) + +#@TYPE: Machine +#@NAME: Tinker-S RK3288 +#@DESCRIPTION: ASUS Tinker Board is a Raspberry Pi 3 Alternative based on Rockchip RK3288 Processor. + +require conf/machine/include/rk3288.inc + +KERNEL_DEVICETREE = "rk3288-tinker-s.dtb" +UBOOT_MACHINE = "tinker-s-rk3288_defconfig" + +RK_BOOT_DEVICE ?= "mmcblk1" + +WKS_FILE = "tinker-board.wks" +IMAGE_FSTYPES += "wic wic.bmap" + +WKS_FILE_DEPENDS ?= " \ + mtools-native \ + dosfstools-native \ + virtual/bootloader \ + virtual/kernel \ + " +IMAGE_BOOT_FILES ?= "\ + ${KERNEL_IMAGETYPE} \ + ${KERNEL_DEVICETREE} \ + "
Signature · 1 line
2.24.1
Re: [meta-rockchip][PATCH 2/2] Add tinker-board-s machine configuration
Quoted 31 lines · Sergey Bostandzhyan
From: Sergey 'Jin' Bostandzhyan <[email protected]>
Asus Tinker Board-S has emmc on mmcblk1, this is also the default configuration when building the image. If you need an image for booting from the sd card set
RK_BOOT_DEVICEto mmcblk0Signed-off-by Sergey Bostandzhyan <[email protected]>--- README | 1 + conf/machine/tinker-board-s.conf | 27 +++++++++++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 conf/machine/tinker-board-s.confREADME +1
-0@@ -16,6 +16,7 @@ Status of supported boards: builds and boots gpt image: rock-pi-4 tinker-board + tinker-board-s vyasa-rk3288 firefly-rk3288 builds:conf/machine/tinker-board-s.conf new file +0
-0
conf/machine/tinker-board-s.conf line 1
Quoted 1 line
conf/machine/tinker-board-s.conf new file +1
-0@@ -0,0 +1,27 @@ +# Copyright (C) 2018 Trevor Woerner
Oops! Too much copy+pasta? This year and your name should be included above.
Quoted 29 lines
conf/machine/tinker-board-s.conf new file +26
-0+# Released under the MIT license (see COPYING.MIT for the terms) + +#@TYPE: Machine +#@NAME: Tinker-S RK3288 +#@DESCRIPTION: ASUS Tinker Board is a Raspberry Pi 3 Alternative based on Rockchip RK3288 Processor. + +require conf/machine/include/rk3288.inc + +KERNEL_DEVICETREE = "rk3288-tinker-s.dtb" +UBOOT_MACHINE = "tinker-s-rk3288_defconfig" + +RK_BOOT_DEVICE ?= "mmcblk1" + +WKS_FILE = "tinker-board.wks" +IMAGE_FSTYPES += "wic wic.bmap" + +WKS_FILE_DEPENDS ?= " \ + mtools-native \ + dosfstools-native \ + virtual/bootloader \ + virtual/kernel \ + " +IMAGE_BOOT_FILES ?= "\ + ${KERNEL_IMAGETYPE} \ + ${KERNEL_DEVICETREE} \ + "Signature · 1 line
2.24.1
PATCH v2 2/2 Add tinker-board-s machine configuration
From: Sergey 'Jin' Bostandzhyan <[email protected]>
Asus Tinker Board-S has emmc on mmcblk1, this is also the default configuration when building the image. If you need an image for booting from the sd card set RK_BOOT_DEVICE to mmcblk0
--- README | 1 + conf/machine/tinker-board-s.conf | 27 +++++++++++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 conf/machine/tinker-board-s.conf
README +1 -0
@@ -16,6 +16,7 @@ Status of supported boards: builds and boots gpt image: rock-pi-4 tinker-board + tinker-board-s vyasa-rk3288 firefly-rk3288 builds:
conf/machine/tinker-board-s.conf new file +27 -0
@@ -0,0 +1,27 @@ +# Copyright (C) 2020 Sergey Bostandzhyan +# Released under the MIT license (see COPYING.MIT for the terms) + +#@TYPE: Machine +#@NAME: Tinker-S RK3288 +#@DESCRIPTION: ASUS Tinker Board is a Raspberry Pi 3 Alternative based on Rockchip RK3288 Processor. + +require conf/machine/include/rk3288.inc + +KERNEL_DEVICETREE = "rk3288-tinker-s.dtb" +UBOOT_MACHINE = "tinker-s-rk3288_defconfig" + +RK_BOOT_DEVICE ?= "mmcblk1" + +WKS_FILE = "tinker-board.wks" +IMAGE_FSTYPES += "wic wic.bmap" + +WKS_FILE_DEPENDS ?= " \ + mtools-native \ + dosfstools-native \ + virtual/bootloader \ + virtual/kernel \ + " +IMAGE_BOOT_FILES ?= "\ + ${KERNEL_IMAGETYPE} \ + ${KERNEL_DEVICETREE} \ + "
Signature · 1 line
2.24.1
Quoted 35 lines · Sergey Bostandzhyan
From: Sergey 'Jin' Bostandzhyan <[email protected]>
wic modifies
/etc/fstabon the root file system during image generation, without the --ondisk parameter it assumes some default device name which leads to an/etc/fstabfile populated with/dev/sdaentries. This is not correct for the machines in the rockchip layer which use mmcblkX.This patch introduces an
RK_BOOT_DEVICEoption which is being set in the machine configuratoin and which is being used in the wks files. The variable expansion in the wks is handled by propagating the variable to the wic environment.This results in correct
/etc/fstabentries and in a correct kernel bootargs root= parameter.Signed-off-by Sergey Bostandzhyan <[email protected]>--- conf/machine/include/rk3288.inc | 1 - conf/machine/include/rockchip-defaults.inc | 5 +++++ conf/machine/rock-pi-4.conf | 1 + conf/machine/vyasa-rk3288.conf | 1 + wic/firefly-rk3288.wks | 4 ++-- wic/rk3288-boot.wks | 12 ++++++------ wic/rk3399-boot.wks | 12 ++++++------ wic/rock-pi-4.wks | 4 ++-- wic/tinker-board.wks | 5 +++-- wic/vyasa-rk3288.wks | 4 ++-- 10 files changed, 28 insertions(+), 21 deletions(-)conf/machine/include/rk3288.inc +0
-0
conf/machine/include/rk3288.inc SERIAL_CONSOLES = "115200;ttyS2" · line 17
Quoted 4 lines
conf/machine/include/rk3288.inc +0
-1@@ -14,4 +14,3 @@ SERIAL_CONSOLES = "115200;ttyS2" PREFERRED_PROVIDER_virtual/bootloader ?= "u-boot" SPL_BINARY ?= "idbloader.img" -
The above looks like a whitespace change? Can you send a v2 without it, otherwise I can remove it when applying.
Otherwise this patch looks good to me.
Quoted 136 lines
conf/machine/include/rockchip-defaults.inc +5
-0@@ -21,3 +21,8 @@ XSERVER = " \ # misc IMAGE_FSTYPES += "ext4" + +# boot device (sd-card/emmc) +RK_BOOT_DEVICE ??= "mmcblk0" +WICVARS_append = " RK_BOOT_DEVICE" +conf/machine/rock-pi-4.conf +1
-0@@ -10,6 +10,7 @@ require conf/machine/include/rk3399.inc KERNEL_DEVICETREE = "rockchip/rk3399-rock-pi-4.dtb" UBOOT_MACHINE = "rock-pi-4-rk3399_defconfig" +RK_BOOT_DEVICE = "mmcblk1" WKS_FILE ?= "rock-pi-4.wks" IMAGE_FSTYPES += "wic wic.bmap"conf/machine/vyasa-rk3288.conf +1
-0@@ -13,6 +13,7 @@ KERNEL_EXTRA_ARGS += "LOADADDR=0x02000000" UBOOT_MACHINE = "vyasa-rk3288_defconfig" +RK_BOOT_DEVICE = "mmcblk2" WKS_FILE = "vyasa-rk3288.wks" IMAGE_FSTYPES += "wic wic.bmap"wic/firefly-rk3288.wks +2
-2@@ -2,6 +2,6 @@ # Released under the MIT license (see COPYING.MIT for the terms) include rk3288-boot.wks -part / --align 131072 --source rootfs --fstype=ext4 --label root +part / --align 131072 --ondisk ${RK_BOOT_DEVICE} --source rootfs --fstype=ext4 --label root -bootloader --ptable gpt --append="console=tty1 console=ttyS2,115200n8 rw root=/dev/mmcblk0p7 rootfstype=ext4 init=/sbin/init" +bootloader --ptable gpt --append="console=tty1 console=ttyS2,115200n8 rw root=/dev/${RK_BOOT_DEVICE}p7 rootfstype=ext4 init=/sbin/init"wic/rk3288-boot.wks +6
-6@@ -15,10 +15,10 @@ # root 262144 - # -part loader1 --align 32 --size 4000K --source rawcopy --sourceparams="file=idbloader.img" -part reserved1 --align 4032 --size 64K -part reserved2 --align 4096 --size 4096K -part loader2 --align 8192 --size 4096K --source rawcopy --sourceparams="file=u-boot.bin" -part atf --align 12288 --size 4096K -part /boot --align 16384 --size=114688K --active --source bootimg-partition --fstype=vfat --label boot --sourceparams="loader=u-boot" +part loader1 --align 32 --size 4000K --ondisk ${RK_BOOT_DEVICE} --source rawcopy --sourceparams="file=idbloader.img" +part reserved1 --align 4032 --size 64K --ondisk ${RK_BOOT_DEVICE} +part reserved2 --align 4096 --size 4096K --ondisk ${RK_BOOT_DEVICE} +part loader2 --align 8192 --size 4096K --ondisk ${RK_BOOT_DEVICE} --source rawcopy --sourceparams="file=u-boot.bin" +part atf --align 12288 --size 4096K --ondisk ${RK_BOOT_DEVICE} +part /boot --align 16384 --size=114688K --active --ondisk ${RK_BOOT_DEVICE} --source bootimg-partition --fstype=vfat --label boot --sourceparams="loader=u-boot"wic/rk3399-boot.wks +6
-6@@ -15,10 +15,10 @@ # root 262144 - # -part loader1 --align 32 --size 4000K --source rawcopy --sourceparams="file=idbloader.img" -part reserved1 --align 4032 --size 64K -part reserved2 --align 4096 --size 4096K -part loader2 --align 8192 --size 4096K --source rawcopy --sourceparams="file=u-boot.itb" -part atf --align 12288 --size 4096K -part /boot --align 16384 --size=114688K --active --source bootimg-partition --fstype=vfat --label boot --sourceparams="loader=u-boot" +part loader1 --align 32 --size 4000K --ondisk ${RK_BOOT_DEVICE} --source rawcopy --sourceparams="file=idbloader.img" +part reserved1 --align 4032 --size 64K --ondisk ${RK_BOOT_DEVICE} +part reserved2 --align 4096 --size 4096K --ondisk ${RK_BOOT_DEVICE} +part loader2 --align 8192 --size 4096K --ondisk ${RK_BOOT_DEVICE} --source rawcopy --sourceparams="file=u-boot.itb" +part atf --align 12288 --size 4096K --ondisk ${RK_BOOT_DEVICE} +part /boot --align 16384 --size=114688K --active --ondisk ${RK_BOOT_DEVICE} --source bootimg-partition --fstype=vfat --label boot --sourceparams="loader=u-boot"wic/rock-pi-4.wks +2
-2@@ -2,6 +2,6 @@ # Released under the MIT license (see COPYING.MIT for the terms) include rk3399-boot.wks -part / --align 131072 --source rootfs --fstype=ext4 --label root +part / --align 131072 --ondisk ${RK_BOOT_DEVICE} --source rootfs --fstype=ext4 --label root -bootloader --ptable gpt --append="console=tty1 console=ttyS2,1500000n8 rw root=/dev/mmcblk1p7 rootfstype=ext4 init=/sbin/init" +bootloader --ptable gpt --append="console=tty1 console=ttyS2,1500000n8 rw root=/dev/${RK_BOOT_DEVICE}p7 rootfstype=ext4 init=/sbin/init"wic/tinker-board.wks +3
-2@@ -2,6 +2,7 @@ # Released under the MIT license (see COPYING.MIT for the terms) include rk3288-boot.wks -part / --align 131072 --source rootfs --fstype=ext4 --label root -bootloader --ptable gpt --append="console=tty1 console=ttyS2,115200n8 rw root=/dev/mmcblk0p7 rootfstype=ext4 init=/sbin/init" +part / --align 131072 --ondisk ${RK_BOOT_DEVICE} --source rootfs --fstype=ext4 --label root + +bootloader --ptable gpt --append="console=tty1 console=ttyS2,115200n8 rw root=/dev/${RK_BOOT_DEVICE}p7 rootfstype=ext4 init=/sbin/init"wic/vyasa-rk3288.wks +2
-2@@ -2,7 +2,7 @@ # Released under the MIT license (see COPYING.MIT for the terms) include rk3288-boot.wks -part / --align 131072 --source rootfs --fstype=ext4 --label root +part / --align 131072 --ondisk ${RK_BOOT_DEVICE} --source rootfs --fstype=ext4 --label root -bootloader --ptable gpt --append="console=tty1 console=ttyS2,115200n8 rw root=/dev/mmcblk2p7 rootfstype=ext4 init=/sbin/init" +bootloader --ptable gpt --append="console=tty1 console=ttyS2,115200n8 rw root=/dev/${RK_BOOT_DEVICE}p7 rootfstype=ext4 init=/sbin/init"Signature · 1 line
2.24.1
PATCH v2 1/2 Add configuration parameter to set boot device for the image
From: Sergey 'Jin' Bostandzhyan <[email protected]>
wic modifies /etc/fstab on the root file system during image generation, without the --ondisk parameter it assumes some default device name which leads to an /etc/fstab file populated with /dev/sda entries. This is not correct for the machines in the rockchip layer which use mmcblkX.
This patch introduces an RK_BOOT_DEVICE option which is being set in the machine configuratoin and which is being used in the wks files. The variable expansion in the wks is handled by propagating the variable to the wic environment.
This results in correct /etc/fstab entries and in a correct kernel bootargs root= parameter.
--- conf/machine/include/rockchip-defaults.inc | 5 +++++ conf/machine/rock-pi-4.conf | 1 + conf/machine/vyasa-rk3288.conf | 1 + wic/firefly-rk3288.wks | 4 ++-- wic/rk3288-boot.wks | 12 ++++++------ wic/rk3399-boot.wks | 12 ++++++------ wic/rock-pi-4.wks | 4 ++-- wic/tinker-board.wks | 5 +++-- wic/vyasa-rk3288.wks | 4 ++-- 9 files changed, 28 insertions(+), 20 deletions(-)
conf/machine/include/rockchip-defaults.inc +5 -0
@@ -21,3 +21,8 @@ XSERVER = " \ # misc IMAGE_FSTYPES += "ext4" + +# boot device (sd-card/emmc) +RK_BOOT_DEVICE ??= "mmcblk0" +WICVARS_append = " RK_BOOT_DEVICE" +
conf/machine/rock-pi-4.conf +1 -0
@@ -10,6 +10,7 @@ require conf/machine/include/rk3399.inc KERNEL_DEVICETREE = "rockchip/rk3399-rock-pi-4.dtb" UBOOT_MACHINE = "rock-pi-4-rk3399_defconfig" +RK_BOOT_DEVICE = "mmcblk1" WKS_FILE ?= "rock-pi-4.wks" IMAGE_FSTYPES += "wic wic.bmap"
conf/machine/vyasa-rk3288.conf +1 -0
@@ -13,6 +13,7 @@ KERNEL_EXTRA_ARGS += "LOADADDR=0x02000000" UBOOT_MACHINE = "vyasa-rk3288_defconfig" +RK_BOOT_DEVICE = "mmcblk2" WKS_FILE = "vyasa-rk3288.wks" IMAGE_FSTYPES += "wic wic.bmap"
wic/firefly-rk3288.wks +2 -2
@@ -2,6 +2,6 @@ # Released under the MIT license (see COPYING.MIT for the terms) include rk3288-boot.wks -part / --align 131072 --source rootfs --fstype=ext4 --label root +part / --align 131072 --ondisk ${RK_BOOT_DEVICE} --source rootfs --fstype=ext4 --label root -bootloader --ptable gpt --append="console=tty1 console=ttyS2,115200n8 rw root=/dev/mmcblk0p7 rootfstype=ext4 init=/sbin/init" +bootloader --ptable gpt --append="console=tty1 console=ttyS2,115200n8 rw root=/dev/${RK_BOOT_DEVICE}p7 rootfstype=ext4 init=/sbin/init"
wic/rk3288-boot.wks +6 -6
@@ -15,10 +15,10 @@ # root 262144 - # -part loader1 --align 32 --size 4000K --source rawcopy --sourceparams="file=idbloader.img" -part reserved1 --align 4032 --size 64K -part reserved2 --align 4096 --size 4096K -part loader2 --align 8192 --size 4096K --source rawcopy --sourceparams="file=u-boot.bin" -part atf --align 12288 --size 4096K -part /boot --align 16384 --size=114688K --active --source bootimg-partition --fstype=vfat --label boot --sourceparams="loader=u-boot" +part loader1 --align 32 --size 4000K --ondisk ${RK_BOOT_DEVICE} --source rawcopy --sourceparams="file=idbloader.img" +part reserved1 --align 4032 --size 64K --ondisk ${RK_BOOT_DEVICE} +part reserved2 --align 4096 --size 4096K --ondisk ${RK_BOOT_DEVICE} +part loader2 --align 8192 --size 4096K --ondisk ${RK_BOOT_DEVICE} --source rawcopy --sourceparams="file=u-boot.bin" +part atf --align 12288 --size 4096K --ondisk ${RK_BOOT_DEVICE} +part /boot --align 16384 --size=114688K --active --ondisk ${RK_BOOT_DEVICE} --source bootimg-partition --fstype=vfat --label boot --sourceparams="loader=u-boot"
wic/rk3399-boot.wks +6 -6
@@ -15,10 +15,10 @@ # root 262144 - # -part loader1 --align 32 --size 4000K --source rawcopy --sourceparams="file=idbloader.img" -part reserved1 --align 4032 --size 64K -part reserved2 --align 4096 --size 4096K -part loader2 --align 8192 --size 4096K --source rawcopy --sourceparams="file=u-boot.itb" -part atf --align 12288 --size 4096K -part /boot --align 16384 --size=114688K --active --source bootimg-partition --fstype=vfat --label boot --sourceparams="loader=u-boot" +part loader1 --align 32 --size 4000K --ondisk ${RK_BOOT_DEVICE} --source rawcopy --sourceparams="file=idbloader.img" +part reserved1 --align 4032 --size 64K --ondisk ${RK_BOOT_DEVICE} +part reserved2 --align 4096 --size 4096K --ondisk ${RK_BOOT_DEVICE} +part loader2 --align 8192 --size 4096K --ondisk ${RK_BOOT_DEVICE} --source rawcopy --sourceparams="file=u-boot.itb" +part atf --align 12288 --size 4096K --ondisk ${RK_BOOT_DEVICE} +part /boot --align 16384 --size=114688K --active --ondisk ${RK_BOOT_DEVICE} --source bootimg-partition --fstype=vfat --label boot --sourceparams="loader=u-boot"
wic/rock-pi-4.wks +2 -2
@@ -2,6 +2,6 @@ # Released under the MIT license (see COPYING.MIT for the terms) include rk3399-boot.wks -part / --align 131072 --source rootfs --fstype=ext4 --label root +part / --align 131072 --ondisk ${RK_BOOT_DEVICE} --source rootfs --fstype=ext4 --label root -bootloader --ptable gpt --append="console=tty1 console=ttyS2,1500000n8 rw root=/dev/mmcblk1p7 rootfstype=ext4 init=/sbin/init" +bootloader --ptable gpt --append="console=tty1 console=ttyS2,1500000n8 rw root=/dev/${RK_BOOT_DEVICE}p7 rootfstype=ext4 init=/sbin/init"
wic/tinker-board.wks +3 -2
@@ -2,6 +2,7 @@ # Released under the MIT license (see COPYING.MIT for the terms) include rk3288-boot.wks -part / --align 131072 --source rootfs --fstype=ext4 --label root -bootloader --ptable gpt --append="console=tty1 console=ttyS2,115200n8 rw root=/dev/mmcblk0p7 rootfstype=ext4 init=/sbin/init" +part / --align 131072 --ondisk ${RK_BOOT_DEVICE} --source rootfs --fstype=ext4 --label root + +bootloader --ptable gpt --append="console=tty1 console=ttyS2,115200n8 rw root=/dev/${RK_BOOT_DEVICE}p7 rootfstype=ext4 init=/sbin/init"
wic/vyasa-rk3288.wks +2 -2
@@ -2,7 +2,7 @@ # Released under the MIT license (see COPYING.MIT for the terms) include rk3288-boot.wks -part / --align 131072 --source rootfs --fstype=ext4 --label root +part / --align 131072 --ondisk ${RK_BOOT_DEVICE} --source rootfs --fstype=ext4 --label root -bootloader --ptable gpt --append="console=tty1 console=ttyS2,115200n8 rw root=/dev/mmcblk2p7 rootfstype=ext4 init=/sbin/init" +bootloader --ptable gpt --append="console=tty1 console=ttyS2,115200n8 rw root=/dev/${RK_BOOT_DEVICE}p7 rootfstype=ext4 init=/sbin/init"
Signature · 1 line
2.24.1