* [U-Boot] [PATCH v2 1/3] am335x-evm: enable ext4
@ 2013-02-12 17:15 Koen Kooi
2013-02-12 17:15 ` [U-Boot] [PATCH v2 2/3] am335x-evm: add support for BeagleBone Black DT name Koen Kooi
` (2 more replies)
0 siblings, 3 replies; 10+ messages in thread
From: Koen Kooi @ 2013-02-12 17:15 UTC (permalink / raw)
To: u-boot
The kernel is loaded from an ext4 partition, not ext2 on beaglebone boards.
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
---
include/configs/am335x_evm.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/include/configs/am335x_evm.h b/include/configs/am335x_evm.h
index 72459d8..2190a7d 100644
--- a/include/configs/am335x_evm.h
+++ b/include/configs/am335x_evm.h
@@ -144,6 +144,7 @@
#define CONFIG_DOS_PARTITION
#define CONFIG_CMD_FAT
#define CONFIG_CMD_EXT2
+#define CONFIG_CMD_EXT4
#define CONFIG_SPI
#define CONFIG_OMAP3_SPI
--
1.8.1.2
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [U-Boot] [PATCH v2 2/3] am335x-evm: add support for BeagleBone Black DT name
2013-02-12 17:15 [U-Boot] [PATCH v2 1/3] am335x-evm: enable ext4 Koen Kooi
@ 2013-02-12 17:15 ` Koen Kooi
2013-02-17 20:06 ` Peter Korsgaard
2013-02-12 17:15 ` [U-Boot] [PATCH v2 3/3] am335x-evm: switch to DT boot Koen Kooi
2013-02-17 20:03 ` [U-Boot] [PATCH v2 1/3] am335x-evm: enable ext4 Peter Korsgaard
2 siblings, 1 reply; 10+ messages in thread
From: Koen Kooi @ 2013-02-12 17:15 UTC (permalink / raw)
To: u-boot
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
---
include/configs/am335x_evm.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/include/configs/am335x_evm.h b/include/configs/am335x_evm.h
index 2190a7d..951422c 100644
--- a/include/configs/am335x_evm.h
+++ b/include/configs/am335x_evm.h
@@ -86,6 +86,8 @@
"findfdt="\
"if test $board_name = A335BONE; then " \
"setenv fdtfile am335x-bone.dtb; fi; " \
+ "if test $board_name = A335BNLT; then " \
+ "setenv fdtfile am335x-bonelt.dtb; fi; " \
"if test $board_name = A33515BB; then " \
"setenv fdtfile am335x-evm.dtb; fi; " \
"if test $board_name = A335X_SK; then " \
--
1.8.1.2
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [U-Boot] [PATCH v2 3/3] am335x-evm: switch to DT boot
2013-02-12 17:15 [U-Boot] [PATCH v2 1/3] am335x-evm: enable ext4 Koen Kooi
2013-02-12 17:15 ` [U-Boot] [PATCH v2 2/3] am335x-evm: add support for BeagleBone Black DT name Koen Kooi
@ 2013-02-12 17:15 ` Koen Kooi
2013-02-17 20:08 ` Peter Korsgaard
2013-02-17 20:03 ` [U-Boot] [PATCH v2 1/3] am335x-evm: enable ext4 Peter Korsgaard
2 siblings, 1 reply; 10+ messages in thread
From: Koen Kooi @ 2013-02-12 17:15 UTC (permalink / raw)
To: u-boot
The findfdt method is being used to locate the right .dtb for the board and load it from /boot.
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
---
include/configs/am335x_evm.h | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/include/configs/am335x_evm.h b/include/configs/am335x_evm.h
index 951422c..67f04c4 100644
--- a/include/configs/am335x_evm.h
+++ b/include/configs/am335x_evm.h
@@ -79,7 +79,7 @@
"loaduimage=ext2load mmc ${mmcdev}:2 ${loadaddr} ${bootfile}\0" \
"mmcboot=echo Booting from mmc ...; " \
"run mmcargs; " \
- "bootm ${loadaddr}\0" \
+ "bootm ${loadaddr} - ${fdtaddr}\0" \
"ramboot=echo Booting from ramdisk ...; " \
"run ramargs; " \
"bootm ${loadaddr}\0" \
@@ -93,7 +93,9 @@
"if test $board_name = A335X_SK; then " \
"setenv fdtfile am335x-evmsk.dtb; fi\0" \
+
#define CONFIG_BOOTCOMMAND \
+ "run findfdt; " \
"mmc dev ${mmcdev}; if mmc rescan; then " \
"echo SD/MMC found on device ${mmcdev};" \
"if run loadbootenv; then " \
@@ -105,6 +107,7 @@
"run uenvcmd;" \
"fi;" \
"if run loaduimage; then " \
+ "ext2load mmc ${mmcdev}:2 ${fdtaddr} /boot/${fdtfile}; " \
"run mmcboot;" \
"fi;" \
"fi;" \
--
1.8.1.2
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [U-Boot] [PATCH v2 1/3] am335x-evm: enable ext4
2013-02-12 17:15 [U-Boot] [PATCH v2 1/3] am335x-evm: enable ext4 Koen Kooi
2013-02-12 17:15 ` [U-Boot] [PATCH v2 2/3] am335x-evm: add support for BeagleBone Black DT name Koen Kooi
2013-02-12 17:15 ` [U-Boot] [PATCH v2 3/3] am335x-evm: switch to DT boot Koen Kooi
@ 2013-02-17 20:03 ` Peter Korsgaard
2013-02-17 22:50 ` Koen Kooi
2 siblings, 1 reply; 10+ messages in thread
From: Peter Korsgaard @ 2013-02-17 20:03 UTC (permalink / raw)
To: u-boot
>>>>> "Koen" == Koen Kooi <koen@dominion.thruhere.net> writes:
Koen> The kernel is loaded from an ext4 partition, not ext2 on beaglebone boards.
Koen> Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Koen> ---
Koen> include/configs/am335x_evm.h | 1 +
Koen> 1 file changed, 1 insertion(+)
Koen> diff --git a/include/configs/am335x_evm.h b/include/configs/am335x_evm.h
Koen> index 72459d8..2190a7d 100644
Koen> --- a/include/configs/am335x_evm.h
Koen> +++ b/include/configs/am335x_evm.h
Koen> @@ -144,6 +144,7 @@
Koen> #define CONFIG_DOS_PARTITION
Koen> #define CONFIG_CMD_FAT
Koen> #define CONFIG_CMD_EXT2
Koen> +#define CONFIG_CMD_EXT4
Shouldn't the bootcmd then also be changed to use ext4load instead? Why
keep CMD_EXT2 enabled?
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 10+ messages in thread
* [U-Boot] [PATCH v2 2/3] am335x-evm: add support for BeagleBone Black DT name
2013-02-12 17:15 ` [U-Boot] [PATCH v2 2/3] am335x-evm: add support for BeagleBone Black DT name Koen Kooi
@ 2013-02-17 20:06 ` Peter Korsgaard
2013-02-17 22:49 ` Koen Kooi
0 siblings, 1 reply; 10+ messages in thread
From: Peter Korsgaard @ 2013-02-17 20:06 UTC (permalink / raw)
To: u-boot
>>>>> "Koen" == Koen Kooi <koen@dominion.thruhere.net> writes:
Koen> Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Koen> ---
Koen> include/configs/am335x_evm.h | 2 ++
Koen> 1 file changed, 2 insertions(+)
Koen> diff --git a/include/configs/am335x_evm.h b/include/configs/am335x_evm.h
Koen> index 2190a7d..951422c 100644
Koen> --- a/include/configs/am335x_evm.h
Koen> +++ b/include/configs/am335x_evm.h
Koen> @@ -86,6 +86,8 @@
Koen> "findfdt="\
Koen> "if test $board_name = A335BONE; then " \
Koen> "setenv fdtfile am335x-bone.dtb; fi; " \
Koen> + "if test $board_name = A335BNLT; then " \
Koen> + "setenv fdtfile am335x-bonelt.dtb; fi; " \
Where does the 'bonelt' name come from? Seems quite far from bone black
to me.
Other than that it looks fine.
Acked-by: Peter Korsgaard <jacmet@sunsite.dk>
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 10+ messages in thread
* [U-Boot] [PATCH v2 3/3] am335x-evm: switch to DT boot
2013-02-12 17:15 ` [U-Boot] [PATCH v2 3/3] am335x-evm: switch to DT boot Koen Kooi
@ 2013-02-17 20:08 ` Peter Korsgaard
0 siblings, 0 replies; 10+ messages in thread
From: Peter Korsgaard @ 2013-02-17 20:08 UTC (permalink / raw)
To: u-boot
>>>>> "Koen" == Koen Kooi <koen@dominion.thruhere.net> writes:
Koen> The findfdt method is being used to locate the right .dtb for the
Koen> board and load it from /boot.
Acked-by: Peter Korsgaard <jacmet@sunsite.dk>
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 10+ messages in thread
* [U-Boot] [PATCH v2 2/3] am335x-evm: add support for BeagleBone Black DT name
2013-02-17 20:06 ` Peter Korsgaard
@ 2013-02-17 22:49 ` Koen Kooi
0 siblings, 0 replies; 10+ messages in thread
From: Koen Kooi @ 2013-02-17 22:49 UTC (permalink / raw)
To: u-boot
Op 17 feb. 2013 om 14:06 heeft Peter Korsgaard <jacmet@sunsite.dk> het volgende geschreven:
>>>>>> "Koen" == Koen Kooi <koen@dominion.thruhere.net> writes:
>
> Koen> Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
> Koen> ---
> Koen> include/configs/am335x_evm.h | 2 ++
> Koen> 1 file changed, 2 insertions(+)
>
> Koen> diff --git a/include/configs/am335x_evm.h b/include/configs/am335x_evm.h
> Koen> index 2190a7d..951422c 100644
> Koen> --- a/include/configs/am335x_evm.h
> Koen> +++ b/include/configs/am335x_evm.h
> Koen> @@ -86,6 +86,8 @@
> Koen> "findfdt="\
> Koen> "if test $board_name = A335BONE; then " \
> Koen> "setenv fdtfile am335x-bone.dtb; fi; " \
> Koen> + "if test $board_name = A335BNLT; then " \
> Koen> + "setenv fdtfile am335x-bonelt.dtb; fi; " \
>
> Where does the 'bonelt' name come from? Seems quite far from bone black
> to me.
It's the old name for it, it's also used in the eeprom
>
> Other than that it looks fine.
>
> Acked-by: Peter Korsgaard <jacmet@sunsite.dk>
>
> --
> Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 10+ messages in thread
* [U-Boot] [PATCH v2 1/3] am335x-evm: enable ext4
2013-02-17 20:03 ` [U-Boot] [PATCH v2 1/3] am335x-evm: enable ext4 Peter Korsgaard
@ 2013-02-17 22:50 ` Koen Kooi
2013-02-18 6:26 ` Peter Korsgaard
0 siblings, 1 reply; 10+ messages in thread
From: Koen Kooi @ 2013-02-17 22:50 UTC (permalink / raw)
To: u-boot
Op 17 feb. 2013 om 14:03 heeft Peter Korsgaard <jacmet@sunsite.dk> het volgende geschreven:
>>>>>> "Koen" == Koen Kooi <koen@dominion.thruhere.net> writes:
>
> Koen> The kernel is loaded from an ext4 partition, not ext2 on beaglebone boards.
> Koen> Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
> Koen> ---
> Koen> include/configs/am335x_evm.h | 1 +
> Koen> 1 file changed, 1 insertion(+)
>
> Koen> diff --git a/include/configs/am335x_evm.h b/include/configs/am335x_evm.h
> Koen> index 72459d8..2190a7d 100644
> Koen> --- a/include/configs/am335x_evm.h
> Koen> +++ b/include/configs/am335x_evm.h
> Koen> @@ -144,6 +144,7 @@
> Koen> #define CONFIG_DOS_PARTITION
> Koen> #define CONFIG_CMD_FAT
> Koen> #define CONFIG_CMD_EXT2
> Koen> +#define CONFIG_CMD_EXT4
>
> Shouldn't the bootcmd then also be changed to use ext4load instead? Why
> keep CMD_EXT2 enabled?
that will be a followup patch
>
> --
> Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 10+ messages in thread
* [U-Boot] [PATCH v2 1/3] am335x-evm: enable ext4
2013-02-17 22:50 ` Koen Kooi
@ 2013-02-18 6:26 ` Peter Korsgaard
2013-03-04 20:08 ` Tom Rini
0 siblings, 1 reply; 10+ messages in thread
From: Peter Korsgaard @ 2013-02-18 6:26 UTC (permalink / raw)
To: u-boot
>>>>> "Koen" == Koen Kooi <koen@dominion.thruhere.net> writes:
Koen> #define CONFIG_CMD_EXT2
Koen> +#define CONFIG_CMD_EXT4
>>
>> Shouldn't the bootcmd then also be changed to use ext4load instead? Why
>> keep CMD_EXT2 enabled?
Koen> that will be a followup patch
Ok. It imho makes sense to do both changes at once as they are strongly
related and in the same file.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 10+ messages in thread
* [U-Boot] [PATCH v2 1/3] am335x-evm: enable ext4
2013-02-18 6:26 ` Peter Korsgaard
@ 2013-03-04 20:08 ` Tom Rini
0 siblings, 0 replies; 10+ messages in thread
From: Tom Rini @ 2013-03-04 20:08 UTC (permalink / raw)
To: u-boot
On Mon, Feb 18, 2013 at 07:26:42AM +0100, Peter Korsgaard wrote:
> >>>>> "Koen" == Koen Kooi <koen@dominion.thruhere.net> writes:
>
> Koen> #define CONFIG_CMD_EXT2
> Koen> +#define CONFIG_CMD_EXT4
> >>
> >> Shouldn't the bootcmd then also be changed to use ext4load instead? Why
> >> keep CMD_EXT2 enabled?
>
> Koen> that will be a followup patch
>
> Ok. It imho makes sense to do both changes at once as they are strongly
> related and in the same file.
And we ought to add CONFIG_CMD_FS_GENERIC and just 'load' so that this
can more easily work with folks still using FAT for boot.
--
Tom
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2013-03-04 20:08 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-12 17:15 [U-Boot] [PATCH v2 1/3] am335x-evm: enable ext4 Koen Kooi
2013-02-12 17:15 ` [U-Boot] [PATCH v2 2/3] am335x-evm: add support for BeagleBone Black DT name Koen Kooi
2013-02-17 20:06 ` Peter Korsgaard
2013-02-17 22:49 ` Koen Kooi
2013-02-12 17:15 ` [U-Boot] [PATCH v2 3/3] am335x-evm: switch to DT boot Koen Kooi
2013-02-17 20:08 ` Peter Korsgaard
2013-02-17 20:03 ` [U-Boot] [PATCH v2 1/3] am335x-evm: enable ext4 Peter Korsgaard
2013-02-17 22:50 ` Koen Kooi
2013-02-18 6:26 ` Peter Korsgaard
2013-03-04 20:08 ` Tom Rini
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox