Skip to content

Commit

Permalink
wic: visionfive2: Add wks for Visionfive2
Browse files Browse the repository at this point in the history
Add wks with the layout similar to the Starfive SDK from here:
https://github.com/starfive-tech/VisionFive2/blob/JH7110_VisionFive2_devel/conf/genimage-vf2.cfg

Signed-off-by: Alexey Firago <alexey.firago@gmail.com>
  • Loading branch information
a-firago committed Mar 6, 2023
1 parent f54951b commit e6453a8
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions wic/visionfive2.wks
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# 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 boot --part-type 0FC63DAF-8483-4772-8E79-3D69D8477DE4 --active --label root --align 4096
bootloader --ptable gpt

0 comments on commit e6453a8

Please sign in to comment.