@@ -39,6 +39,7 @@ Status of supported boards:
roc-rk3328-cc
roc
k-3a
rock-4c-plus
+ rock-4d
rock-5a
rock-5b
rock-pi-4a
@@ -122,6 +123,22 @@ Notes:
in the configuration (e.g. conf/local.conf).
+ rk3576 booting:
+ The RK3576 boot ROM cannot load the bootloader from the SD card.
+ For rk3576-based boards (e.g. the rock-4d) the bootloader must be
+ extracted from the wic image and flashed to the SPI flash; the
+ kernel and rootfs then boot from the SD card.
+
+ To extract the SPI bootloader region (first 16 MiB) from a wic
+ image:
+
+ dd if=<image>.wic of=spi.bin bs=1M count=16
+
+ Then flash spi.bin to the SPI flash, e.g. with rkdeveloptool
+ from a host PC with the board in Maskrom mode; see the board
+ vendor's documentation for details:
+ https://docs.radxa.com/en/rock4/rock4d/low-level-dev/spi_flash
+
A/B updates with RAUC
This layer now contains one example of building an A/B update using RAUC.
Users are free to use/test this example, to optionally enable it, to build
nf/machine/rock-4d.conf b/conf/machine/rock-4d.conf
new file mode 100644
@@ -0,0 +1,11 @@
+#@TYPE: Machine
+#@NAME: Radxa Rock 4D
+#@DESCRIPTION: ROCK4D is the latest SBC of serie 4 based on the RK3576 SoC
+#https://radxa.com/products/rock4/4d
+
+require conf/machine/include/rk3576.inc
+
+KERNEL_DEVICETREE = "rockchip/rk3576-rock-4d.dtb"
+MACHINE_EXTRA_RRECOMMENDS += "kernel-modules"
+
+UBOOT_MACHINE = "rock-4d-rk3576_defconfig"
@@ -23,6 +23,7 @@ COMPATIBLE_MACHINE:roc-rk3308-cc = "roc-rk3308-cc"
COMPATIBLE_MACHINE:roc-rk3328-cc = "roc-rk3328-cc"
COMPATIBLE_MACHINE:rock-3a = "rock-3a"
COMPATIBLE_MACHINE:rock-4c-plus = "rock-4c-plus"
+COMPATIBLE_MACHINE:rock-4d = "rock-4d"
COM
PATIBLE_MACHINE:rock-5a = "rock-5a"
COMPATIBLE_MACHINE:rock-5b = "rock-5b"