mirror of
https://github.com/linux-sunxi/meta-sunxi.git
synced 2024-12-27 05:28:22 +01:00
19 lines
978 B
Plaintext
19 lines
978 B
Plaintext
|
# short-description: Create SD card image with a boot partition
|
||
|
# long-description:
|
||
|
# Create an image that can be written onto a SD card using dd for use
|
||
|
# with Allwinner arm (32-bit) SoC family
|
||
|
#
|
||
|
# The disk layout used is:
|
||
|
# - --------------------------- -------------- --------------
|
||
|
# | | u-boot-sunxi-with-spl.bin | boot | rootfs |
|
||
|
# - --------------------------- -------------- --------------
|
||
|
# ^ ^ ^ ^ ^
|
||
|
# | | | | |
|
||
|
# 0 | 2MiB ${SUNXI_BOOT_SPACE}MiB ${SUNXI_BOOT_SPACE}MiB + rootfs + IMAGE_EXTRA_SPACE
|
||
|
# 8KiB
|
||
|
#
|
||
|
|
||
|
part u-boot --source rawcopy --sourceparams="file=${SPL_BINARY}" --ondisk mmcblk0 --no-table --align 8
|
||
|
part /boot --source bootimg-partition --ondisk mmcblk0 --fstype=vfat --label boot --active --align 2048 --fixed-size ${SUNXI_BOOT_SPACE}
|
||
|
part / --source rootfs --ondisk mmcblk0 --fstype=ext4 --align 2048
|