Skip to content
Snippets Groups Projects
Commit c28d5033 authored by Davide Cardillo's avatar Davide Cardillo
Browse files

[WIC] Update disk layout with etc,var,home as exteral folder

In this layout, the rootfs partition doesn't have the follow folders:

EXTERNAL_ROOTFS_FOLDERS = " \
    var/ \
    etc/ \
    home/ \
"

With the follow partitions:
- datafs -> contains etc/ and var/ folder
- varfs -> contains var/ fodler

part / --source edgehog-system-partition --ondisk mmcblk --fstype=ext4 --label datafs  --size 128M --align 4
part / --source rootfs --rootfs-dir=${IMAGE_ROOTFS}/var --ondisk mmcblk --fstype=ext4 --label varfs  --size 128M --align 4
part / --ondisk mmcblk --fstype=ext4 --label appfs  --size 32M --align 4

Note: var/ is not used like the other because it doesn't work that way.
From empirical evidence, we have a working rootfs if the content of the
var folder is placed directly into the root folder of an external
partition.
parent 6d0c4de6
No related branches found
No related tags found
1 merge request!20[WIC][CLASS] Add EgehogSystemPartitionPlugin class
......@@ -3,7 +3,7 @@
INITRAMFS_IMAGE ?= "seco-edgehog-initramfs"
WKS_FILE ?= "none"
WKS_FILE:mx6 = "sdimage-rauc-imx6.wks"
WKS_FILE:mx6 = "sdimage-rauc-imx6.wks.in"
WKS_FILE:mx8 = "sdimage-rauc-imx8.wks.in"
WKS_FILE:rockchip = "sdimage-rauc-rk.wks.in"
......@@ -18,3 +18,9 @@ IMAGE_EDGEHOG_BOOT_FILES ?= " \
seco_boot.scr \
ramfs.img \
"
EXTERNAL_ROOTFS_FOLDERS = " \
var/ \
etc/ \
home/ \
"
......@@ -10,12 +10,13 @@ part / --source rawcopy --sourceparams="file=u-boot.imx" --ondisk mmcblk --align
part / --source edgehog-bootimg-partition --ondisk mmcblk --fstype=vfat --label boot --active --align 4096 --size 16
# a partitions
part /boot --source bootimg-partition --ondisk mmcblk --fstype=vfat --label bootfs_A --active --align 4096 --size 16
part / --source rootfs --ondisk mmcblk --fstype=ext4 --label rootfs_A --align 4096
part /boot --source bootimg-partition --ondisk mmcblk --fstype=vfat --label bootfs_A --active --align 4096 --size 16
part / --source rootfs --ondisk mmcblk --fstype=ext4 --label rootfs_A --align 4096 --exclude-path #${EXTERNAL_ROOTFS_FOLDERS}
# b partitions
part /boot --source bootimg-partition --ondisk mmcblk --fstype=vfat --label bootfs_B --active --align 4096 --size 16
part / --source rootfs --ondisk mmcblk --fstype=ext4 --label rootfs_B --align 4096
part / --source rootfs --ondisk mmcblk --fstype=ext4 --label rootfs_B --align 4096 --exclude-path ${EXTERNAL_ROOTFS_FOLDERS}
# system partitions
part / --ondisk mmcblk --fstype=ext4 --label datafs --size 32M --align 4
part / --ondisk mmcblk --fstype=ext4 --label appfs --size 32M --align 4
part / --source edgehog-system-partition --ondisk mmcblk --fstype=ext4 --label datafs --size 128M --align 4
part / --source rootfs --rootfs-dir=${IMAGE_ROOTFS}/var --ondisk mmcblk --fstype=ext4 --label varfs --size 128M --align 4
part / --ondisk mmcblk --fstype=ext4 --label appfs --size 32M --align 4
......@@ -10,12 +10,13 @@ part u-boot --source rawcopy --sourceparams="file=imx-boot" --ondisk mmcblk --no
part / --source edgehog-bootimg-partition --ondisk mmcblk --fstype=vfat --label boot --active --align 8192
# a partitions
part /boot --source bootimg-partition --ondisk mmcblk --fstype=vfat --label bootfs_A --active --align 8192
part / --source rootfs --ondisk mmcblk --fstype=ext4 --label rootfs_A --align 8192
part / --source bootimg-partition --ondisk mmcblk --fstype=vfat --label bootfs_A --active --align 4096 --size 16
part / --source rootfs --ondisk mmcblk --fstype=ext4 --label rootfs_A --align 4096 --exclude-path ${EXTERNAL_ROOTFS_FOLDERS}
# b partitions
part /boot --source bootimg-partition --ondisk mmcblk --fstype=vfat --label bootfs_B --active --align 8192
part / --source rootfs --ondisk mmcblk --fstype=ext4 --label rootfs_B --align 8192
part / --source bootimg-partition --ondisk mmcblk --fstype=vfat --label bootfs_B --active --align 4096 --size 16
part / --source rootfs --ondisk mmcblk --fstype=ext4 --label rootfs_B --align 4096 --exclude-path ${EXTERNAL_ROOTFS_FOLDERS}
# system partitions
part / --ondisk mmcblk --fstype=ext4 --label datafs --size 32M --align 8192
part / --source edgehog-system-partition --ondisk mmcblk --fstype=ext4 --label datafs --size 128M --align 4
part / --source rootfs --rootfs-dir=${IMAGE_ROOTFS}/var --ondisk mmcblk --fstype=ext4 --label varfs --size 128M --align 4
part / --ondisk mmcblk --fstype=ext4 --label appfs --size 32M --align 8192
......@@ -8,12 +8,13 @@ part / --source edgehog-bootimg-partition --ondisk mmcblk --fstype=vfat --label
# a partitions
part / --source bootimg-partition --ondisk mmcblk --fstype=vfat --label bootfs_A --active --align 8192
part / --source rootfs --ondisk mmcblk --fstype=ext4 --label rootfs_A --align 8192
part / --source rootfs --ondisk mmcblk --fstype=ext4 --label rootfs_A --align 8192 --exclude-path ${EXTERNAL_ROOTFS_FOLDERS}
# b partitions
part / --source bootimg-partition --ondisk mmcblk --fstype=vfat --label bootfs_B --active --align 8192
part / --source rootfs --ondisk mmcblk --fstype=ext4 --label rootfs_B --align 8192
part / --source rootfs --ondisk mmcblk --fstype=ext4 --label rootfs_B --align 8192 --exclude-path ${EXTERNAL_ROOTFS_FOLDERS}
# system partitions
part / --ondisk mmcblk --fstype=ext4 --label datafs --size 32M --align 8192
part / --source edgehog-system-partition --ondisk mmcblk --fstype=ext4 --label datafs --size 128M --align 8192
part / --source rootfs --rootfs-dir=${IMAGE_ROOTFS}/var --ondisk mmcblk --fstype=ext4 --label varfs --size 128M --align 8192
part / --ondisk mmcblk --fstype=ext4 --label appfs --size 32M --align 8192
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment