summaryrefslogtreecommitdiff
path: root/recipes-bsp/u-boot
diff options
context:
space:
mode:
authorMax Krummenacher <max.krummenacher@toradex.com>2020-11-26 18:22:43 +0100
committerMax Krummenacher <max.krummenacher@toradex.com>2020-11-26 18:24:45 +0100
commitbddf19691f67257c30d14cc1d17300316a5fbb0c (patch)
treeda8853842e82613a7201a63de1903d029a6ca7d3 /recipes-bsp/u-boot
parent61f5657f8b1fb9c2f8d49bbbab198e1fcdcf494f (diff)
u-boot: fw_env.config: use stable symlink to the emmc
Unify the file used for the modules which use eMMC to store the U-Boot environmant. Change to use the stable symlink to the emmc boot area to specify the location of the U-Boot environment. Related-to: ELB-3293 Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
Diffstat (limited to 'recipes-bsp/u-boot')
-rw-r--r--recipes-bsp/u-boot/files/apalis-imx6/fw_env.config17
-rw-r--r--recipes-bsp/u-boot/files/colibri-imx6/fw_env.config17
-rw-r--r--recipes-bsp/u-boot/files/colibri-imx7-emmc/fw_env.config15
-rw-r--r--recipes-bsp/u-boot/files/fw_env.config29
-rw-r--r--recipes-bsp/u-boot/files/mx8/fw_env.config15
5 files changed, 13 insertions, 80 deletions
diff --git a/recipes-bsp/u-boot/files/apalis-imx6/fw_env.config b/recipes-bsp/u-boot/files/apalis-imx6/fw_env.config
deleted file mode 100644
index be25811..0000000
--- a/recipes-bsp/u-boot/files/apalis-imx6/fw_env.config
+++ /dev/null
@@ -1,17 +0,0 @@
-# Configuration file for fw_(printenv/setenv) utility.
-# Up to two entries are valid, in this case the redundant
-# environment sector is assumed present.
-# Device offset must be prefixed with 0x to be parsed as a hexadecimal value.
-# On a block device a negative offset is treated as a backwards offset from the
-# end of the device/partition, rather than a forwards offset from the start.
-
-# Colibri iMX6/Apalis iMX6
-# U-Boot environment is stored at the end of the first eMMC boot partition
-# hence use a negative value. The environment is just in front of the config
-# block which occupies the last sector (hence -0x200)
-# Note that /dev/mmcblk0boot0 by default is read only
-# To use fw_setenv you have to first make it writeable, on the cmdline e.g. by
-# $ echo 0 > /sys/block/mmcblk0boot0/force_ro
-
-# Block device name Device offset Env. size
-/dev/mmcblk2boot0 -0x2200 0x2000
diff --git a/recipes-bsp/u-boot/files/colibri-imx6/fw_env.config b/recipes-bsp/u-boot/files/colibri-imx6/fw_env.config
deleted file mode 100644
index a9e724e..0000000
--- a/recipes-bsp/u-boot/files/colibri-imx6/fw_env.config
+++ /dev/null
@@ -1,17 +0,0 @@
-# Configuration file for fw_(printenv/setenv) utility.
-# Up to two entries are valid, in this case the redundant
-# environment sector is assumed present.
-# Device offset must be prefixed with 0x to be parsed as a hexadecimal value.
-# On a block device a negative offset is treated as a backwards offset from the
-# end of the device/partition, rather than a forwards offset from the start.
-
-# Colibri iMX6/Apalis iMX6
-# U-Boot environment is stored at the end of the first eMMC boot partition
-# hence use a negative value. The environment is just in front of the config
-# block which occupies the last sector (hence -0x200)
-# Note that /dev/mmcblk0boot0 by default is read only
-# To use fw_setenv you have to first make it writeable, on the cmdline e.g. by
-# $ echo 0 > /sys/block/mmcblk0boot0/force_ro
-
-# Block device name Device offset Env. size
-/dev/mmcblk0boot0 -0x2200 0x2000
diff --git a/recipes-bsp/u-boot/files/colibri-imx7-emmc/fw_env.config b/recipes-bsp/u-boot/files/colibri-imx7-emmc/fw_env.config
deleted file mode 100644
index 00f21bf..0000000
--- a/recipes-bsp/u-boot/files/colibri-imx7-emmc/fw_env.config
+++ /dev/null
@@ -1,15 +0,0 @@
-# Configuration file for fw_(printenv/setenv) utility.
-# Up to two entries are valid, in this case the redundant
-# environment sector is assumed present.
-# Device offset must be prefixed with 0x to be parsed as a hexadecimal value.
-# On a block device a negative offset is treated as a backwards offset from the
-# end of the device/partition, rather than a forwards offset from the start.
-
-# Colibri iMX7 Dual 1GB (eMMC)
-# U-Boot environment is stored at the end of the first eMMC boot partition
-# hence use a negative value. The environment is just in front of the config
-# block which occupies the last sector (hence -0x200)
-
-# Block device name Device offset Env. size
-/dev/mmcblk0boot0 -0x2200 0x2000
-
diff --git a/recipes-bsp/u-boot/files/fw_env.config b/recipes-bsp/u-boot/files/fw_env.config
index e054ccb..9f78e4c 100644
--- a/recipes-bsp/u-boot/files/fw_env.config
+++ b/recipes-bsp/u-boot/files/fw_env.config
@@ -1,22 +1,19 @@
# Configuration file for fw_(printenv/setenv) utility.
# Up to two entries are valid, in this case the redundant
# environment sector is assumed present.
-# Notice, that the "Number of sectors" is not required on NOR and SPI-dataflash.
-# Futhermore, if the Flash sector size is ommitted, this value is assumed to
-# be the same as the Environment size, which is valid for NOR and SPI-dataflash
+# Device offset must be prefixed with 0x to be parsed as a hexadecimal value.
+# On a block device a negative offset is treated as a backwards offset from the
+# end of the device/partition, rather than a forwards offset from the start.
-# NOR example
-# MTD device name Device offset Env. size Flash sector size Number of sectors
-#/dev/mtd1 0x0000 0x4000 0x4000
-#/dev/mtd2 0x0000 0x4000 0x4000
+# Toradex modules with eMMC
+# The U-Boot environment is stored at the end of the first eMMC boot partition
+# hence use a negative value. The environment is just in front of the config
+# block which occupies the last sector (hence -0x200)
+# Note that the eMMC boot areas (e.g. /dev/mmcblk0boot0) by default is read
+# only. To make it writeable, execute on the cmdline e.g.
+# $ echo 0 > /sys/block/mmcblk0boot0/force_ro
+# The fw_setenv tool provided by libubootenv does this automatically.
-# MTD SPI-dataflash example
-# MTD device name Device offset Env. size Flash sector size Number of sectors
-#/dev/mtd5 0x4200 0x4200
-#/dev/mtd6 0x4200 0x4200
+# Block device name Device offset Env. size
+/dev/emmc-boot0 -0x2200 0x2000
-# NAND example
-#/dev/mtd0 0x4000 0x4000 0x20000 2
-
-# Block device example
-#/dev/mmcblk0 0xc0000 0x20000
diff --git a/recipes-bsp/u-boot/files/mx8/fw_env.config b/recipes-bsp/u-boot/files/mx8/fw_env.config
deleted file mode 100644
index 00f21bf..0000000
--- a/recipes-bsp/u-boot/files/mx8/fw_env.config
+++ /dev/null
@@ -1,15 +0,0 @@
-# Configuration file for fw_(printenv/setenv) utility.
-# Up to two entries are valid, in this case the redundant
-# environment sector is assumed present.
-# Device offset must be prefixed with 0x to be parsed as a hexadecimal value.
-# On a block device a negative offset is treated as a backwards offset from the
-# end of the device/partition, rather than a forwards offset from the start.
-
-# Colibri iMX7 Dual 1GB (eMMC)
-# U-Boot environment is stored at the end of the first eMMC boot partition
-# hence use a negative value. The environment is just in front of the config
-# block which occupies the last sector (hence -0x200)
-
-# Block device name Device offset Env. size
-/dev/mmcblk0boot0 -0x2200 0x2000
-