Skip to content
Snippets Groups Projects
Commit d5d2488b authored by Andreas Gnau's avatar Andreas Gnau :speech_balloon:
Browse files

brcm63xx-arm: Add extra /data partition to mount

Add extra /data partition to system_layout.json and remove manual
mounting from the wifi_bringup-script.
parent 5bda4244
Branches
Tags
No related merge requests found
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
"/dev/mmcblk0p4": { "/dev/mmcblk0p4": {
"standby_root_mount" : "mount /dev/mmcblk0p6", "standby_root_mount" : "mount /dev/mmcblk0p6",
"dev_links" : "emmc_dev_links", "dev_links" : "emmc_dev_links",
"extra_mounts" : "emmc_extra_mounts",
"overlay_mount" : "mount -t ext4 /dev/mmcblk0p9 /overlay", "overlay_mount" : "mount -t ext4 /dev/mmcblk0p9 /overlay",
"standby_overlay_mount" : "mount -t ext4 /dev/mmcblk0p10 /tmp/standby_overlay", "standby_overlay_mount" : "mount -t ext4 /dev/mmcblk0p10 /tmp/standby_overlay",
"overlay_pivot" : "yes", "overlay_pivot" : "yes",
...@@ -14,6 +15,7 @@ ...@@ -14,6 +15,7 @@
"/dev/mmcblk0p6": { "/dev/mmcblk0p6": {
"standby_root_mount" : "mount /dev/mmcblk0p4", "standby_root_mount" : "mount /dev/mmcblk0p4",
"dev_links" : "emmc_dev_links", "dev_links" : "emmc_dev_links",
"extra_mounts" : "emmc_extra_mounts",
"overlay_mount" : "mount -t ext4 /dev/mmcblk0p10 /overlay", "overlay_mount" : "mount -t ext4 /dev/mmcblk0p10 /overlay",
"standby_overlay_mount" : "mount -t ext4 /dev/mmcblk0p9 /tmp/standby_overlay", "standby_overlay_mount" : "mount -t ext4 /dev/mmcblk0p9 /tmp/standby_overlay",
"overlay_pivot" : "yes", "overlay_pivot" : "yes",
...@@ -23,6 +25,7 @@ ...@@ -23,6 +25,7 @@
/* NAND based boards with squashfs */ /* NAND based boards with squashfs */
"/dev/ubiblock0_4": { "/dev/ubiblock0_4": {
"standby_root_mount" : "ubiblock --create /dev/ubi0_6;mount /dev/ubiblock0_6", "standby_root_mount" : "ubiblock --create /dev/ubi0_6;mount /dev/ubiblock0_6",
"extra_mounts" : "ubi_extra_mounts",
"overlay_mount" : "mount -t ubifs ubi0:overlayA /overlay", "overlay_mount" : "mount -t ubifs ubi0:overlayA /overlay",
"standby_overlay_mount" : "mount -t ubifs ubi0:overlayB /tmp/standby_overlay", "standby_overlay_mount" : "mount -t ubifs ubi0:overlayB /tmp/standby_overlay",
"overlay_pivot" : "yes", "overlay_pivot" : "yes",
...@@ -31,6 +34,7 @@ ...@@ -31,6 +34,7 @@
"/dev/ubiblock0_6": { "/dev/ubiblock0_6": {
"standby_root_mount" : "ubiblock --create /dev/ubi0_4;mount /dev/ubiblock0_4", "standby_root_mount" : "ubiblock --create /dev/ubi0_4;mount /dev/ubiblock0_4",
"extra_mounts" : "ubi_extra_mounts",
"overlay_mount" : "mount -t ubifs ubi0:overlayB /overlay", "overlay_mount" : "mount -t ubifs ubi0:overlayB /overlay",
"standby_overlay_mount" : "mount -t ubifs ubi0:overlayA /tmp/standby_overlay", "standby_overlay_mount" : "mount -t ubifs ubi0:overlayA /tmp/standby_overlay",
"overlay_pivot" : "yes", "overlay_pivot" : "yes",
...@@ -40,6 +44,7 @@ ...@@ -40,6 +44,7 @@
/* NAND based boards with ubifs */ /* NAND based boards with ubifs */
"ubi:rootfs1": { "ubi:rootfs1": {
"iopsys_bank_id" : "0", "iopsys_bank_id" : "0",
"extra_mounts" : "ubi_extra_mounts",
"standby_root_mount" : "mount -t ubifs ubi0:rootfs2", "standby_root_mount" : "mount -t ubifs ubi0:rootfs2",
"overlay_mount" : "mount -t ubifs ubi0:overlayA /overlay", "overlay_mount" : "mount -t ubifs ubi0:overlayA /overlay",
...@@ -50,6 +55,7 @@ ...@@ -50,6 +55,7 @@
"ubi:rootfs2": { "ubi:rootfs2": {
"iopsys_bank_id" : "1", "iopsys_bank_id" : "1",
"extra_mounts" : "ubi_extra_mounts",
"standby_root_mount" : "mount -t ubifs ubi0:rootfs1", "standby_root_mount" : "mount -t ubifs ubi0:rootfs1",
"overlay_mount" : "mount -t ubifs ubi0:overlayB /overlay", "overlay_mount" : "mount -t ubifs ubi0:overlayB /overlay",
...@@ -80,4 +86,14 @@ ...@@ -80,4 +86,14 @@
/* impossilbe to add /dev/log is an actual device */ /* impossilbe to add /dev/log is an actual device */
//"log" : "/dev/mmcblk0p13" //"log" : "/dev/mmcblk0p13"
}, },
"emmc_extra_mounts": [
{
"mount_command": "mount -t ext4 /dev/data /data"
},
],
"ubi_extra_mounts": [
{
"mount_command": "mount -t ubifs ubi0:data /data"
},
],
} }
...@@ -6,9 +6,6 @@ ...@@ -6,9 +6,6 @@
START=18 START=18
boot() { boot() {
# always use the data partition as data
mountpoint -q /data || mount -t ubifs ubi:data /data
BOARDID=$(cat /proc/nvram/boardid) BOARDID=$(cat /proc/nvram/boardid)
NVM_FILE="${BOARDID}.nvm" NVM_FILE="${BOARDID}.nvm"
......
...@@ -6,9 +6,6 @@ ...@@ -6,9 +6,6 @@
START=18 START=18
boot() { boot() {
# always use the data partition as data
mountpoint -q /data || mount -t ext4 /dev/data /data
BOARDID=$(cat /proc/nvram/boardid) BOARDID=$(cat /proc/nvram/boardid)
NVM_FILE="${BOARDID}.nvm" NVM_FILE="${BOARDID}.nvm"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment