Browse Source

rockpi4-plus: add data partition

Waldemar Brodkorb 1 year ago
parent
commit
9663a7c30c
2 changed files with 9 additions and 1 deletions
  1. 1 1
      scripts/install.sh
  2. 8 0
      target/aarch64/Makefile

+ 1 - 1
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)

+ 8 - 0
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:"