wic: Update the sdcard generation

Update the SD card generation to follow a more standard sdcard boot
flow. At the moment we don't use this new boot flow, but let's at least
have it ready for future use.

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
This commit is contained in:
Alistair Francis
2019-04-22 15:37:08 -07:00
committed by Khem Raj
parent b9e9d6942e
commit ef0189f2d8
3 changed files with 8 additions and 5 deletions
+4 -2
View File
@@ -33,8 +33,6 @@ IMAGE_FSTYPES_append = " wic.gz ext4"
# Do not update fstab file when using wic images
WIC_CREATE_EXTRA_ARGS ?= "--no-fstab-update"
IMAGE_BOOT_FILES = ""
### wic default support
WKS_FILE_DEPENDS ?= " \
opensbi \
@@ -42,6 +40,10 @@ WKS_FILE_DEPENDS ?= " \
bmap-tools-native \
"
IMAGE_BOOT_FILES ?= " \
Image \
"
WKS_FILE ?= "freedom-u540-opensbi.wks"
BAD_RECOMMENDATIONS += "\
@@ -17,7 +17,7 @@ CONFIG_BPF_SYSCALL=y
CONFIG_EMBEDDED=y
CONFIG_SMP=y
CONFIG_HZ_100=y
CONFIG_CMDLINE="earlycon=sbi root=/dev/mmcblk0p2 rootwait"
CONFIG_CMDLINE="earlycon=sbi root=/dev/mmcblk0p3 rootwait"
CONFIG_MODULES=y
CONFIG_MODULE_UNLOAD=y
# CONFIG_BLK_DEV_BSG is not set
+3 -2
View File
@@ -1,6 +1,7 @@
# short-description: Create SD card image for HiFive Unleashed development board
part opensbi --source rawcopy --sourceparams="file=fw_payload.bin" --ondisk mmcblk --size 32M --align 1 --part-type 2e54b353-1271-4842-806f-e436d6af6985
part / --source rootfs --ondisk mmcblk --fstype=ext4 --label root --align 4096 --size 5G
part opensbi --source rawcopy --sourceparams="file=fw_payload.bin" --ondisk mmcblk0 --size 32M --align 1 --part-type 2e54b353-1271-4842-806f-e436d6af6985
part /boot --source bootimg-partition --ondisk mmcblk0 --fstype=vfat --label boot --active --size=100M --align 4096
part / --source rootfs --ondisk mmcblk0 --fstype=ext4 --label root --align 4096 --size 5G
bootloader --ptable gpt