Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # The disk layout used is:
- # - ----- ---------------- ------------------ ------ -----------------------------------
- # | | SPL | | rootfs-primary | rootfs-secondary | SWAP | data |
- # - ----- ---------------- ------------------ ------ -----------------------------------
- # ^ ^ ^ ^ ^ ^ ^
- # | | | | | | |
- # 0 1kiB 1500M 1500M 1000M 6000M
- #
- # NOTE: yocto adds 30% padding to the partition.
- # So --size and --fixed-size settings must
- # be 1/1.3 of the desired size.
- #
- # In practical terms, the option to specify this
- # padding is --overhead-factor, which defaults to
- # 1.3, if not specified.
- #
- # The specification below does not specify --overhead-factor.
- # This means that the 1.5G size of rootfs is actually 1.96G,
- # and the 1G size of swap is 1.3G. The entire disk image is
- # (1.5G + 1.5G + 1G + 6G)*1.3 = 13G
- part SPL --ondisk mmcblk0 --source rawcopy --sourceparams="file=SPL" --no-table --align 1
- # Setup rootfs to not be fixed-size
- part / --ondisk mmcblk0 --fixed-size 1500M --align 4096 --label rootfs-primary --fstype=ext4 --source rootfs --exclude-path=data/
- part rootfs-secondary --ondisk mmcblk0 --fixed-size 1500M --align 4096 --label rootfs-secondary --fstype=ext4 --source rootfs --exclude-path=data/
- # Use --size instead of --fixed-size for swap as mkswap
- # appears to require this option. This option acts as
- # a fixed size and shouldn't be resizeable.
- part swap --ondisk mmcblk0 --size 1000M --align 4096 --label swap --fstype=swap
- # Setup data partition to be variable sized
- # to expand/shrink to remaining disk
- part /data --ondisk mmcblk0 --size 6000M --align 4096 --label data --fstype=ext4
- bootloader --ptable msdos
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement