Browse Source

fix genimage cfg to support sd boot

Signed-off-by: Jianlong Huang <jianlong.huang@starfivetech.com>
Jianlong Huang 1 year ago
parent
commit
b19e955ad0
3 changed files with 7 additions and 7 deletions
  1. 1 1
      Makefile
  2. 3 3
      conf/genimage-vf2.cfg
  3. 3 3
      conf/genimage.cfg

+ 1 - 1
Makefile

@@ -445,7 +445,7 @@ else
 	@echo Error: Could not find bootloader partition for $(DISK)
 	@exit 1
 endif
-#	sudo dd if=$(spl_bin_normal_out) of=$(PART1) bs=4096
+	sudo dd if=$(spl_bin_normal_out) of=$(PART1) bs=4096
 	sudo dd if=$(uboot_fit)          of=$(PART2) bs=4096
 	sudo dd if=$(vfat_image)         of=$(PART3) bs=4096
 	sync; sleep 1;

+ 3 - 3
conf/genimage-vf2.cfg

@@ -4,15 +4,15 @@ image sdcard.img {
 	}
 
 	partition spl {
-		# image = "u-boot-spl.bin.normal.out"
-		partition-type-uuid = 5B193300-FC78-40CD-8002-E86C45580B47
+		image = "work/u-boot-spl.bin.normal.out"
+		partition-type-uuid = 2E54B353-1271-4842-806F-E436D6AF6985
 		offset = 1M
 		size = 2M
 	}
 
 	partition uboot {
 		image = "work/visionfive2_fw_payload.img"
-		partition-type-uuid = 2E54B353-1271-4842-806F-E436D6AF6985
+		partition-type-uuid = 5B193300-FC78-40CD-8002-E86C45580B47
 		offset = 3M
 		size = 5M
 	}

+ 3 - 3
conf/genimage.cfg

@@ -4,15 +4,15 @@ image sdcard.img {
 	}
 
 	partition spl {
-		# image = "u-boot-spl.bin.normal.out"
-		partition-type-uuid = 5B193300-FC78-40CD-8002-E86C45580B47
+		image = "work/u-boot-spl.bin.normal.out"
+		partition-type-uuid = 2E54B353-1271-4842-806F-E436D6AF6985
 		offset = 1M
 		size = 2M
 	}
 
 	partition uboot {
 		image = "work/evb_fw_payload.img"
-		partition-type-uuid = 2E54B353-1271-4842-806F-E436D6AF6985
+		partition-type-uuid = 5B193300-FC78-40CD-8002-E86C45580B47
 		offset = 3M
 		size = 5M
 	}