Skip to contentSkip to conversation

beaglebone: use the am335x_boneblack u-boot configuration

PATCH In review Alexandre Belloni 4 participants 7 messages Aug 4, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 beaglebone: use the am335x_boneblack u-boot configuration

Using the am335x_boneblack configuration for u-boot allows to save the environment to the emmc. Else, it is not possible to save the environment at all.

---
 conf/machine/beaglebone.conf | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
conf/machine/beaglebone.conf +1 -1
index 8a83a1aeb569..0b4dce3ad647 100644
@@ -11,4 +11,4 @@ IMAGE_FSTYPES += "tar.gz"
 
 SERIAL_CONSOLE = "115200 ttyO0"
 
-UBOOT_MACHINE = "am335x_evm_config"
+UBOOT_MACHINE = "am335x_boneblack"
Signature · 1 line
1.9.1
#1 lore raw

How does this config work on the Beaglebone white?

Quoted 29 lines · Alexandre Belloni

Using the am335x_boneblack configuration for u-boot allows to save the environment to the emmc. Else, it is not possible to save the environment at all.

---
conf/machine/beaglebone.conf | 2 +-

1 file changed, 1 insertion(+), 1 deletion(-)
conf/machine/beaglebone.conf +0 -0
index 8a83a1aeb569..0b4dce3ad647 100644
@@ -11,4 +11,4 @@ IMAGE_FSTYPES += "tar.gz"
 

SERIAL_CONSOLE = "115200 ttyO0"

conf/machine/beaglebone.conf +1 -1
-UBOOT_MACHINE = "am335x_evm_config"
+UBOOT_MACHINE = "am335x_boneblack"
Signature · 7 lines
1.9.1

-- 
_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti
#2 lore raw
Quoted 19 lines · Franklin

How does this config work on the Beaglebone white?

Quoted 17 lines · Alexandre Belloni

Using the am335x_boneblack configuration for u-boot allows to save the environment to the emmc. Else, it is not possible to save the environment at all.

---
conf/machine/beaglebone.conf | 2 +-

1 file changed, 1 insertion(+), 1 deletion(-)
conf/machine/beaglebone.conf +0 -0
index 8a83a1aeb569..0b4dce3ad647 100644
@@ -11,4 +11,4 @@ IMAGE_FSTYPES += "tar.gz"
 
Quoted 5 lines

conf/machine/beaglebone.conf IMAGE_FSTYPES += "tar.gz"

Quoted 5 lines

SERIAL_CONSOLE = "115200 ttyO0"

conf/machine/beaglebone.conf +1 -2
-UBOOT_MACHINE = "am335x_evm_config"
+UBOOT_MACHINE = "am335x_boneblack"
--

Perhaps it would be better to let this assignment be soft, i.e.
UBOOT_MACHINE ?= "am335x_boneblack"

That way, either choice would be possible.

Signature · 4 lines
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------
#3 lore raw
In reply to Cooper Jr., Franklin

Hi,

Quoted 2 lines · Franklin

How does this config work on the Beaglebone white?

I didn't test but I don't think it will change anything has it doesn't have any NAND or emmc and the only change is that the am335x_boneblack uses emmc to save the environment instead of trying (and failing) to save to NAND.

Quoted 29 lines
Quoted 29 lines · Alexandre Belloni

Using the am335x_boneblack configuration for u-boot allows to save the environment to the emmc. Else, it is not possible to save the environment at all.

---
conf/machine/beaglebone.conf | 2 +-

1 file changed, 1 insertion(+), 1 deletion(-)
conf/machine/beaglebone.conf +0 -0
index 8a83a1aeb569..0b4dce3ad647 100644
@@ -11,4 +11,4 @@ IMAGE_FSTYPES += "tar.gz"
 

SERIAL_CONSOLE = "115200 ttyO0"

conf/machine/beaglebone.conf +1 -1
-UBOOT_MACHINE = "am335x_evm_config"
+UBOOT_MACHINE = "am335x_boneblack"
Signature · 7 lines
1.9.1

-- 
_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti
Signature · 3 lines
Alexandre Belloni, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
#4 lore raw
In reply to Alexandre Belloni
Quoted 5 lines · Alexandre Belloni

Using the am335x_boneblack configuration for u-boot allows to save the environment to the emmc. Else, it is not possible to save the environment at all.

There's two ways to go about improving the out of box experience. One of which would be to switch "beaglebone" to am335x_boneblack config which will switch env saving to eMMC and leave BBW just as unable to have persisent env (outside of uEnv.txt) as today. Another would be to bring in http://patchwork.ozlabs.org/patch/375824/ (which will be merged to mainline) and
https://git.ti.com/ti-u-boot/ti-u-boot/commit/b8fce957880e6c4194614260f70be4e7f2c9f469
(which will not, we'll instead get env location migrated to Kconfig choices and leave it to the user to pick where they want things to be) which puts everything in a binary file on the FAT partition of the SD card which is also pretty frequently available.

Either one is honestly a fine improvement.

Signature · 1 line
Tom
#5 lore raw

Hi,

Quoted 8 lines · Tom Rini
Quoted 5 lines · Alexandre Belloni

Using the am335x_boneblack configuration for u-boot allows to save the environment to the emmc. Else, it is not possible to save the environment at all.

Quoted 11 lines

There's two ways to go about improving the out of box experience. One of which would be to switch "beaglebone" to am335x_boneblack config which will switch env saving to eMMC and leave BBW just as unable to have persisent env (outside of uEnv.txt) as today. Another would be to bring in http://patchwork.ozlabs.org/patch/375824/ (which will be merged to mainline) and
https://git.ti.com/ti-u-boot/ti-u-boot/commit/b8fce957880e6c4194614260f70be4e7f2c9f469
(which will not, we'll instead get env location migrated to Kconfig choices and leave it to the user to pick where they want things to be) which puts everything in a binary file on the FAT partition of the SD card which is also pretty frequently available.

Do you have a branch with both patches applied? Or maybe it is simpler to wait for the first one to hit mainline and upgrade the u-boot recipe at that time.

I'm a bit concerned that the second patch will actually change the behaviour of the am335x_evm config, switching from reading the env in nand to that file in the first FAT partition. Do you want to change that?

Signature · 3 lines
Alexandre Belloni, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
#6 lore raw
Quoted 23 lines · Alexandre Belloni

Hi,

Quoted 8 lines · Tom Rini
Quoted 5 lines · Alexandre Belloni

Using the am335x_boneblack configuration for u-boot allows to save the environment to the emmc. Else, it is not possible to save the environment at all.

Quoted 11 lines

There's two ways to go about improving the out of box experience. One of which would be to switch "beaglebone" to am335x_boneblack config which will switch env saving to eMMC and leave BBW just as unable to have persisent env (outside of uEnv.txt) as today. Another would be to bring in http://patchwork.ozlabs.org/patch/375824/ (which will be merged to mainline) and
https://git.ti.com/ti-u-boot/ti-u-boot/commit/b8fce957880e6c4194614260f70be4e7f2c9f469
(which will not, we'll instead get env location migrated to Kconfig choices and leave it to the user to pick where they want things to be) which puts everything in a binary file on the FAT partition of the SD card which is also pretty frequently available.

Quoted 8 lines

Do you have a branch with both patches applied? Or maybe it is simpler to wait for the first one to hit mainline and upgrade the u-boot recipe at that time.

I'm a bit concerned that the second patch will actually change the behaviour of the am335x_evm config, switching from reading the env in nand to that file in the first FAT partition. Do you want to change that?

In terms of general out of box experience, yes, I wanted to change everyone over. Of all the boards am335x_evm supports (GP EVM, IDK EVM, EVM SK, BBW, BBB) only GP EVM and maybe IDK EVM (not seen one myself) have NAND normally. All of them have SD card support 'tho.

Signature · 1 line
Tom