mirror of
https://github.com/Fishwaldo/meta-riscv.git
synced 2025-03-15 11:31:43 +00:00
wic: visionfive2: Add wks for Visionfive2
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>
This commit is contained in:
parent
9d5b57ae99
commit
2294b6ced3
1 changed files with 22 additions and 0 deletions
22
wic/visionfive2.wks
Normal file
22
wic/visionfive2.wks
Normal file
|
@ -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
|
Loading…
Add table
Reference in a new issue