From 9663a7c30c22676a64bd2ae3abc137b27a8cb8ec Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Fri, 27 Jan 2023 10:13:32 +0100 Subject: rockpi4-plus: add data partition --- scripts/install.sh | 2 +- target/aarch64/Makefile | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/scripts/install.sh b/scripts/install.sh index 4a90c28e2..f62486155 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -586,7 +586,7 @@ if (( datafssz )); then (raspberry-pi|raspberry-pi0|raspberry-pi2|raspberry-pi3|raspberry-pi3-64|raspberry-pi4|raspberry-pi4-64|phytec-wega) echo "/dev/mmcblk0p3 /data ext4 rw 0 0" >> "$R"/etc/fstab ;; - (banana-pro|orange-pi0|solidrun-clearfog) + (banana-pro|orange-pi0|solidrun-clearfog|rockpi4-plus) echo "/dev/mmcblk0p2 /data ext4 rw 0 0" >> "$R"/etc/fstab ;; (solidrun-imx6|phytec-imx6) diff --git a/target/aarch64/Makefile b/target/aarch64/Makefile index a6741fe8d..81d0ff4d8 100644 --- a/target/aarch64/Makefile +++ b/target/aarch64/Makefile @@ -25,9 +25,17 @@ ifeq ($(ADK_TARGET_BOARD_BCM28XX),y) @echo "sudo ./scripts/install.sh $(ADK_TARGET_SYSTEM) /dev/sdX $(FW_DIR)/$(ROOTFSTARBALL)" endif ifeq ($(ADK_TARGET_SYSTEM_ROCKPI4_PLUS),y) +ifeq ($(ADK_RUNTIME_DATA_PARTITION),y) + @echo "Use following command to install with a writable data partition" + @echo "sudo ./scripts/install.sh -d 256 $(ADK_TARGET_SYSTEM) /dev/sdX $(FW_DIR)/$(ROOTFSTARBALL)" + @echo "If you want to update a card without loosing existing data on the writable partition use:" + @echo "sudo ./scripts/install.sh -k -d 256 $(ADK_TARGET_SYSTEM) /dev/sdX $(FW_DIR)/$(ROOTFSTARBALL)" + @echo "In both cases the cfgfs partition is _not_ removed!" +else @echo "Use following command to install it on SD card:" @echo "sudo ./scripts/install.sh $(ADK_TARGET_SYSTEM) /dev/sdX $(FW_DIR)/$(ROOTFSTARBALL)" endif +endif ifeq ($(ADK_TARGET_QEMU),y) @echo 'The kernel file is: $(FW_DIR)/${TARGET_KERNEL}' @echo "Use following command to create a QEMU Image:" -- cgit v1.2.3