ARM: imx6: mx6sabre-common: Replace fatload with FS_GENERIC load
PATCH 1/2 ARM: imx6: mx6sabre-common: Replace fatload with FS_GENERIC load
Replace filesystem specific fatload command with a filesystem agnostic load command, so the board can boot from e.g. ext4 too.
--- include/configs/mx6sabre_common.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
include/configs/mx6sabre_common.h +3 -3
@@ -73,11 +73,11 @@"mmcargs=setenv bootargs console=${console},${baudrate} " \"root=PARTUUID=${uuid} rootwait rw\0" \"loadbootscript=" \ -"fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${script};\0" \ +"load mmc ${mmcdev}:${mmcpart} ${loadaddr} ${script};\0" \"bootscript=echo Running bootscript from mmc ...; " \"source\0" \ -"loadimage=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${image}\0" \ -"loadfdt=fatload mmc ${mmcdev}:${mmcpart} ${fdt_addr} ${fdtfile}\0" \ +"loadimage=load mmc ${mmcdev}:${mmcpart} ${loadaddr} ${image}\0" \ +"loadfdt=load mmc ${mmcdev}:${mmcpart} ${fdt_addr} ${fdtfile}\0" \"mmcboot=echo Booting from mmc ...; " \"run finduuid; " \"run mmcargs; " \
Signature · 1 line
2.29.2
PATCH 2/2 ARM: imx6: mx6sabre-common: Search for boot components in /boot too
Some root filesystem configurations do not have separate /boot partition, but rather place kernel, DT, scripts into /boot directory. Search the /boot directory for these boot components in case they are not found in /, which is the old behavior.
--- include/configs/mx6sabre_common.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-)
include/configs/mx6sabre_common.h +6 -3
@@ -73,11 +73,14 @@"mmcargs=setenv bootargs console=${console},${baudrate} " \"root=PARTUUID=${uuid} rootwait rw\0" \"loadbootscript=" \ -"load mmc ${mmcdev}:${mmcpart} ${loadaddr} ${script};\0" \ +"load mmc ${mmcdev}:${mmcpart} ${loadaddr} ${script} || " \ +"load mmc ${mmcdev}:${mmcpart} ${loadaddr} boot/${script};\0" \"bootscript=echo Running bootscript from mmc ...; " \"source\0" \ -"loadimage=load mmc ${mmcdev}:${mmcpart} ${loadaddr} ${image}\0" \ -"loadfdt=load mmc ${mmcdev}:${mmcpart} ${fdt_addr} ${fdtfile}\0" \ +"loadimage=load mmc ${mmcdev}:${mmcpart} ${loadaddr} ${image} || " \ +"load mmc ${mmcdev}:${mmcpart} ${loadaddr} boot/${image}\0" \ +"loadfdt=load mmc ${mmcdev}:${mmcpart} ${fdt_addr} ${fdtfile} || " \ +"load mmc ${mmcdev}:${mmcpart} ${fdt_addr} boot/${fdtfile}\0" \"mmcboot=echo Booting from mmc ...; " \"run finduuid; " \"run mmcargs; " \
Signature · 1 line
2.29.2
PATCH 2/2 ARM: imx6: mx6sabre-common: Search for boot components in /boot too
Quoted 8 lines
Subject: [PATCH 2/2] ARM: imx6: mx6sabre-common: Search for boot components in /boot too
Some root filesystem configurations do not have separate /boot partition, but rather place kernel, DT, scripts into /boot directory. Search the /boot directory for these boot components in case they are not found in /, which is the old behavior.
Quoted 6 lines
Signed-off-by Marek Vasut <[email protected]>Cc Fabio Estevam <[email protected]>Cc Peng Fan <[email protected]>Cc Stefano Babic <[email protected]>Cc Ye Li <[email protected]>Cc uboot-imx <[email protected]>
Quoted 31 lines
--- include/configs/mx6sabre_common.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-)include/configs/mx6sabre_common.h +6
-3@@ -73,11 +73,14 @@"mmcargs=setenv bootargs console=${console},${baudrate} " \"root=PARTUUID=${uuid} rootwait rw\0" \"loadbootscript=" \ -"load mmc ${mmcdev}:${mmcpart} ${loadaddr} ${script};\0" \ +"load mmc ${mmcdev}:${mmcpart} ${loadaddr} ${script} || " \ +"load mmc ${mmcdev}:${mmcpart} ${loadaddr} boot/${script};\0" \"bootscript=echo Running bootscript from mmc ...; " \"source\0" \ -"loadimage=load mmc ${mmcdev}:${mmcpart} ${loadaddr} ${image}\0" \ -"loadfdt=load mmc ${mmcdev}:${mmcpart} ${fdt_addr} ${fdtfile}\0" \ +"loadimage=load mmc ${mmcdev}:${mmcpart} ${loadaddr} ${image} || " \ +"load mmc ${mmcdev}:${mmcpart} ${loadaddr} boot/${image}\0" \ +"loadfdt=load mmc ${mmcdev}:${mmcpart} ${fdt_addr} ${fdtfile} || " \ +"load mmc ${mmcdev}:${mmcpart} ${fdt_addr} boot/${fdtfile}\0" \"mmcboot=echo Booting from mmc ...; " \include/configs/mx6sabre_common.h +0
-1"run finduuid; " \"run mmcargs; " \ --2.29.2
PATCH 2/2 ARM: imx6: mx6sabre-common: Search for boot components in /boot too
In reply to Marek VasutQuoted 11 lines
Some root filesystem configurations do not have separate /boot partition, but rather place kernel, DT, scripts into /boot directory. Search the /boot directory for these boot components in case they are not found in /, which is the old behavior.
Signed-off-by Marek Vasut <[email protected]>Cc Fabio Estevam <[email protected]>Cc Peng Fan <[email protected]>Cc Stefano Babic <[email protected]>Cc Ye Li <[email protected]>Cc uboot-imx <[email protected]>Reviewed-by Peng Fan <[email protected]>
Applied to u-boot-imx, master, thanks !
Best regards,
Stefano Babic
Signature · 5 lines
===================================================================== DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de =====================================================================
PATCH 1/2 ARM: imx6: mx6sabre-common: Replace fatload with FS_GENERIC load
In reply to Marek VasutQuoted 6 lines
Subject: [PATCH 1/2] ARM: imx6: mx6sabre-common: Replace fatload with
FS_GENERICloadReplace filesystem specific fatload command with a filesystem agnostic load command, so the board can boot from e.g. ext4 too.
Quoted 6 lines
Signed-off-by Marek Vasut <[email protected]>Cc Fabio Estevam <[email protected]>Cc Peng Fan <[email protected]>Cc Stefano Babic <[email protected]>Cc Ye Li <[email protected]>Cc uboot-imx <[email protected]>
Quoted 28 lines
--- include/configs/mx6sabre_common.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)include/configs/mx6sabre_common.h +3
-3@@ -73,11 +73,11 @@ "mmcargs=setenv bootargs console=${console},${baudrate} " \ "root=PARTUUID=${uuid} rootwait rw\0" \ "loadbootscript=" \ -"fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${script};\0" \ + "load mmc ${mmcdev}:${mmcpart} ${loadaddr} ${script};\0" \ "bootscript=echo Running bootscript from mmc ...; " \ "source\0" \ -"loadimage=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${image}\0" \ -"loadfdt=fatload mmc ${mmcdev}:${mmcpart} ${fdt_addr} ${fdtfile}\0" \ +"loadimage=load mmc ${mmcdev}:${mmcpart} ${loadaddr} ${image}\0" \ +"loadfdt=load mmc ${mmcdev}:${mmcpart} ${fdt_addr} ${fdtfile}\0" \"mmcboot=echo Booting from mmc ...; " \include/configs/mx6sabre_common.h +0
-1"run finduuid; " \"run mmcargs; " \ --2.29.2
PATCH 1/2 ARM: imx6: mx6sabre-common: Replace fatload with FS_GENERIC load
In reply to Marek VasutQuoted 9 lines
Replace filesystem specific fatload command with a filesystem agnostic load command, so the board can boot from e.g. ext4 too.
Signed-off-by Marek Vasut <[email protected]>Cc Fabio Estevam <[email protected]>Cc Peng Fan <[email protected]>Cc Stefano Babic <[email protected]>Cc Ye Li <[email protected]>Cc uboot-imx <[email protected]>Reviewed-by Peng Fan <[email protected]>
Applied to u-boot-imx, master, thanks !
Best regards,
Stefano Babic
Signature · 5 lines
===================================================================== DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de =====================================================================