summaryrefslogtreecommitdiffstats
path: root/meta-agl-bsp/wic/sdimage-bootpart-uuid.wks
blob: 1f51a0bd4b06224e67f99f2d6e8307a115774978 (plain)
1
2
3
4
5
6
# short-description: Create SD card image with a boot partition
# long-description: Creates a partitioned SD card image. Boot files
# are located in the first vfat partition.

part /boot --source bootimg-partition --fstype=vfat --label boot --use-uuid --active --align 4 --size 16
part / --source rootfs --fstype=ext4 --label root --align 4 --use-uuid
$fdt_addr_r; fdt get value bootargs_fdt /chosen bootargs bootcmd_otenv=ext2load mmc 0:2 $loadaddr /boot/loader/uEnv.txt; env import -t $loadaddr $filesize bootcmd_args=setenv bootargs "$bootargs $bootargs_fdt ostree_root=/dev/mmcblk0p2 root=/dev/ram0 rw rootwait rootdelay=2 ramdisk_size=8192" bootcmd_load=ext2load mmc 0:2 $kernel_addr_r "/boot"$kernel_image; ext2load mmc 0:2 $ramdisk_addr_r "/boot"$ramdisk_image bootcmd_run=bootm $kernel_addr_r $ramdisk_addr_r $fdt_addr_r bootcmd=run bootcmd_dtb; run bootcmd_otenv; run bootcmd_args; run bootcmd_load; run bootcmd_run