Files
meta-riscv/wic/visionfive2.wks
Leonard Anderweit bdd0297be6 wic: visionfive2: Fix root partition name
Rename the root partition from 'boot' to 'root'.

Signed-off-by: Leonard Anderweit <leonard.anderweit@gmail.com>
2023-04-17 15:30:42 -07:00

23 lines
1.2 KiB
Plaintext

# short-description: Create a bootable SD card image for Starfive Visionfive2 board
# long-description:
# Create a bootable image that can be written onto a SD card using dd for use
# with Starfive Visionfive2 board
# It uses SPL and u-boot
#
# The disk layout used is:
# - ----- --------- -------------- --------------
# | | SPL | u-boot | boot | rootfs |
# - ----- --------- -------------- --------------
# ^ ^ ^ ^ ^
# | | | | |
# 0 2MiB 4MiB 8MiB 300MiB + rootfs + IMAGE_EXTRA_SPACE
#
part spl --source rawcopy --sourceparams="file=u-boot-spl.bin.normal.out" --part-name spl --offset 4096S --size 2M --part-type 2E54B353-1271-4842-806F-E436D6AF6985
part uboot --source rawcopy --sourceparams="file=visionfive2_fw_payload.img" --part-name uboot --offset 8192S --size 4M --part-type 5B193300-FC78-40CD-8002-E86C45580B47
part /boot --source bootimg-partition --ondisk mmcblk --fstype=vfat --label boot --use-uuid --part-name boot --part-type EBD0A0A2-B9E5-4433-87C0-68B6B72699C7 --align 4096 --size 292M
part /root --source rootfs --ondisk mmcblk --fstype=ext4 --part-name root --part-type 0FC63DAF-8483-4772-8E79-3D69D8477DE4 --active --label root --align 4096
bootloader --ptable gpt