summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Harvey <tharvey@gateworks.com>2016-05-24 11:03:45 -0700
committerStefano Babic <sbabic@denx.de>2016-05-31 17:22:56 +0200
commit543a4aba7fa88452e7749af5aad7e4b676901f57 (patch)
tree22a69699b498ffc2725c847868db8f00e7d8f9e0
parent1b7400011e62188734814df6b28e8d55f2bf752d (diff)
downloadu-boot-imx-543a4aba7fa88452e7749af5aad7e4b676901f57.zip
u-boot-imx-543a4aba7fa88452e7749af5aad7e4b676901f57.tar.gz
u-boot-imx-543a4aba7fa88452e7749af5aad7e4b676901f57.tar.bz2
imx: ventana: config: use fs env var for block dev filesystem type
In order to make the default boot scripts more flexible, use the variable 'fs' to specify the filesystem type to use for block storage devices (USB/MMC/SATA) when loading files. Additionally default this to ext4 and enable ext4 filesystem support (which encompasses ext2 support) instead of just ext2 support. Signed-off-by: Tim Harvey <tharvey@gateworks.com>
-rw-r--r--include/configs/gw_ventana.h15
1 files changed, 8 insertions, 7 deletions
diff --git a/include/configs/gw_ventana.h b/include/configs/gw_ventana.h
index dff4303..fe81cbd 100644
--- a/include/configs/gw_ventana.h
+++ b/include/configs/gw_ventana.h
@@ -302,6 +302,7 @@
"run fixfdt; " \
"fi\0" \
\
+ "fs=ext4\0" \
"script=6x_bootscript-ventana\0" \
"loadscript=" \
"if ${fsload} ${loadaddr} ${bootdir}/${script}; then " \
@@ -309,14 +310,14 @@
"fi\0" \
\
"uimage=uImage\0" \
- "mmc_root=/dev/mmcblk0p1 rootfstype=ext4 rootwait rw\0" \
+ "mmc_root=/dev/mmcblk0p1 rootfstype=${fs} rootwait rw\0" \
"mmc_boot=" \
- "setenv fsload \"ext2load mmc ${disk}:${part}\"; " \
+ "setenv fsload \"${fs}load mmc ${disk}:${part}\"; " \
"mmc dev ${disk} && mmc rescan && " \
"setenv dtype mmc; run loadscript; " \
"if ${fsload} ${loadaddr} ${bootdir}/${uimage}; then " \
"setenv bootargs console=${console},${baudrate} " \
- "root=/dev/mmcblk0p1 rootfstype=ext4 " \
+ "root=/dev/mmcblk0p1 rootfstype=${fs} " \
"rootwait rw ${video} ${extra}; " \
"if run loadfdt; then " \
"bootm ${loadaddr} - ${fdt_addr}; " \
@@ -326,12 +327,12 @@
"fi\0" \
\
"sata_boot=" \
- "setenv fsload \"ext2load sata ${disk}:${part}\"; " \
+ "setenv fsload \"${fs}load sata ${disk}:${part}\"; " \
"sata init && " \
"setenv dtype sata; run loadscript; " \
"if ${fsload} ${loadaddr} ${bootdir}/${uimage}; then " \
"setenv bootargs console=${console},${baudrate} " \
- "root=/dev/sda1 rootfstype=ext4 " \
+ "root=/dev/sda1 rootfstype=${fs} " \
"rootwait rw ${video} ${extra}; " \
"if run loadfdt; then " \
"bootm ${loadaddr} - ${fdt_addr}; " \
@@ -340,12 +341,12 @@
"fi; " \
"fi\0" \
"usb_boot=" \
- "setenv fsload \"ext2load usb ${disk}:${part}\"; " \
+ "setenv fsload \"${fs}load usb ${disk}:${part}\"; " \
"usb start && usb dev ${disk} && " \
"setenv dtype usb; run loadscript; " \
"if ${fsload} ${loadaddr} ${bootdir}/${uimage}; then " \
"setenv bootargs console=${console},${baudrate} " \
- "root=/dev/sda1 rootfstype=ext4 " \
+ "root=/dev/sda1 rootfstype=${fs} " \
"rootwait rw ${video} ${extra}; " \
"if run loadfdt; then " \
"bootm ${loadaddr} - ${fdt_addr}; " \