Skip to contentSkip to conversation

RFC; Building multiple u-boot images for a single board

DISCUSSION Ulf Samuelsson 6 participants 8 messages Feb 26, 2010

lore
Share & tools
lore
#0 lore raw

If you want to support multiple boot memories, you have to have multiple boards in the conf/machine directory

I currently testing a change to at91bootstrap, where a defconfig is not provided by openembedded.
Instead you provide a list of defconfig's in your machine description:

I.E: in conf/machien/at91sam9g45ek.conf you have:

AT91BOOTSTRAP_BOARD = "at91sam9g45df at91sam9g45ek at91sam9g45nf"

when at91bootstrap is built it will loop through all the boards. and build three versions.

I think it would make sense to do the same for u-boot, so that you can build u-boot for several configurations.

This change would happen from u-boot-2009.11 an onwards.

In your machine conf you would supply:
UBOOT_MACHINES = "at91sam9g45ekes_nandflash at91sam9g45ekes_dataflash"

A loop goes through the list
and runs make on each element in the list.

make at91sam9g45ekes_nandflash_config
make
make at91sam9g45ekes_dataflash_config
make

if UBOOT_MACHINES is not set, then a single build is done using UBOOT_MACHINE as usual.

This will allow u_boot to be built for every boot configuration without having to add a lot of files.

Signature · 2 lines
Best Regards
Ulf Samuelsson
#1 lore raw

+1 on it as it really saves times.

I have at91sam9263ek board which can boot (read: load u-boot) from dataflash or from nand (if you have newer revision of board then I) so two uboots needs to be built for it.

Regards,

Signature · 3 lines
JID:      [email protected]
Website:  http://marcin.juszkiewicz.com.pl/
LinkedIn: http://www.linkedin.com/in/marcinjuszkiewicz
#2 lore raw
In reply to Ulf Samuelsson

2010/2/26 Ulf Samuelsson <[email protected]>:

Quoted 30 lines

If you want to support multiple boot memories, you have to have multiple boards in the conf/machine directory

I currently testing a change to at91bootstrap, where a defconfig is not provided by openembedded.
Instead you provide a list of defconfig's in your machine description:

I.E: in conf/machien/at91sam9g45ek.conf you have:

AT91BOOTSTRAP_BOARD = "at91sam9g45df at91sam9g45ek at91sam9g45nf"

when at91bootstrap is built it will loop through all the boards. and build three versions.

I think it would make sense to do the same for u-boot, so that you can build u-boot for several configurations.

This change would happen from u-boot-2009.11 an onwards.

In your machine conf you would supply:
UBOOT_MACHINES = "at91sam9g45ekes_nandflash at91sam9g45ekes_dataflash"

A loop goes through the list
and runs make on each element in the list.

make at91sam9g45ekes_nandflash_config
make
make at91sam9g45ekes_dataflash_config
make

Quoted 6 lines

if UBOOT_MACHINES is not set, then a single build is done using UBOOT_MACHINE as usual.

This will allow u_boot to be built for every boot configuration without having to add a lot of files.

I fully agree (as I also need two different versions for my board, one for flash, one for sd).

#3 lore raw
In reply to Ulf Samuelsson

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Quoted 9 lines · Ulf Samuelsson

If you want to support multiple boot memories, you have to have multiple boards in the conf/machine directory

I currently testing a change to at91bootstrap, where a defconfig is not provided by openembedded.
Instead you provide a list of defconfig's in your machine description:

I.E: in conf/machien/at91sam9g45ek.conf you have:

Quoted 7 lines

AT91BOOTSTRAP_BOARD = "at91sam9g45df at91sam9g45ek at91sam9g45nf"

when at91bootstrap is built it will loop through all the boards. and build three versions.

I think it would make sense to do the same for u-boot, so that you can build u-boot for several configurations.

Not about u-boot, but slightly related:

I need something similar for uImages due to hardware limitations (daughtercards requiring conflicting pinmux) and I have created this for kernel builds:

http://dominion.thruhere.net/git/cgit.cgi/openembedded/tree/recipes/linux/multi-kernel.inc?h=ti/staging

It's working nicely for my usecase (validate hardware configs with multiple kernels, validate software with only one kernel).

regards,

Koen
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)

iD8DBQFLh8VOMkyGM64RGpERAi62AKCMoAAQyfLYmsU9NfD7+MI7o3m4bwCdHqS6 Ub+2N46Sd2Q/t+nHlfzjDE8=
=9/62
-----END PGP SIGNATURE-----

#4 lore raw
Quoted 23 lines · Koen Kooi

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Quoted 9 lines · Ulf Samuelsson

If you want to support multiple boot memories, you have to have multiple boards in the conf/machine directory

I currently testing a change to at91bootstrap, where a defconfig is not provided by openembedded.
Instead you provide a list of defconfig's in your machine description:

I.E: in conf/machien/at91sam9g45ek.conf you have:

Quoted 7 lines

AT91BOOTSTRAP_BOARD = "at91sam9g45df at91sam9g45ek at91sam9g45nf"

when at91bootstrap is built it will loop through all the boards. and build three versions.

I think it would make sense to do the same for u-boot, so that you can build u-boot for several configurations.

Not about u-boot, but slightly related:

Quoted 8 lines

I need something similar for uImages due to hardware limitations (daughtercards requiring conflicting pinmux) and I have created this for kernel builds:

http://dominion.thruhere.net/git/cgit.cgi/openembedded/tree/recipes/linux/multi-kernel.inc?h=ti/staging

It's working nicely for my usecase (validate hardware configs with multiple kernels, validate software with only one kernel).

That indeed looks useful. Any chance it'll go in soon? Or what's left to cleanup before it can? Aside from some shellfile for pstaging that is.

Signature · 2 lines
Tom Rini <[email protected]>
Mentor Graphics Corporation
#5 lore raw
Quoted 28 lines · Tom Rini
Quoted 27 lines · Koen Kooi

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Quoted 9 lines · Ulf Samuelsson

If you want to support multiple boot memories, you have to have multiple boards in the conf/machine directory

I currently testing a change to at91bootstrap, where a defconfig is not provided by openembedded.
Instead you provide a list of defconfig's in your machine description:

I.E: in conf/machien/at91sam9g45ek.conf you have:

Quoted 7 lines

AT91BOOTSTRAP_BOARD = "at91sam9g45df at91sam9g45ek at91sam9g45nf"

when at91bootstrap is built it will loop through all the boards. and build three versions.

I think it would make sense to do the same for u-boot, so that you can build u-boot for several configurations.

Not about u-boot, but slightly related:

I need something similar for uImages due to hardware limitations (daughtercards requiring conflicting pinmux) and I have created this for kernel builds:

Quoted 8 lines
Quoted 4 lines

http://dominion.thruhere.net/git/cgit.cgi/openembedded/tree/recipes/linux/multi-kernel.inc?h=ti/staging

It's working nicely for my usecase (validate hardware configs with multiple kernels, validate software with only one kernel).

That indeed looks useful. Any chance it'll go in soon? Or what's left to cleanup before it can? Aside from some shellfile for pstaging that is.

It is also being used in Arago. Hope to see it merged to oe-dev soon! :)

I need to seriosly look into package_stagefile_shell, as it breaks my setup with DEPLOY_DIR outside of TMPDIR - there are some wrong assumptions in that function... :(

Signature · 1 line
Denys
#6 lore raw
In reply to Tom Rini

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Quoted 28 lines · Tom Rini
Quoted 27 lines · Koen Kooi

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Quoted 9 lines · Ulf Samuelsson

If you want to support multiple boot memories, you have to have multiple boards in the conf/machine directory

I currently testing a change to at91bootstrap, where a defconfig is not provided by openembedded.
Instead you provide a list of defconfig's in your machine description:

I.E: in conf/machien/at91sam9g45ek.conf you have:

Quoted 7 lines

AT91BOOTSTRAP_BOARD = "at91sam9g45df at91sam9g45ek at91sam9g45nf"

when at91bootstrap is built it will loop through all the boards. and build three versions.

I think it would make sense to do the same for u-boot, so that you can build u-boot for several configurations.

Not about u-boot, but slightly related:

I need something similar for uImages due to hardware limitations (daughtercards requiring conflicting pinmux) and I have created this for kernel builds:

Quoted 8 lines
Quoted 4 lines

http://dominion.thruhere.net/git/cgit.cgi/openembedded/tree/recipes/linux/multi-kernel.inc?h=ti/staging

It's working nicely for my usecase (validate hardware configs with multiple kernels, validate software with only one kernel).

That indeed looks useful. Any chance it'll go in soon? Or what's left to cleanup before it can? Aside from some shellfile for pstaging that is.

The goal is "next wednesday" provided the tests on monday/tuesday pass, but see Denys' respone about shellfile assumptions.

regards,

Koen

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)

iD8DBQFLiCCNMkyGM64RGpERAsmhAJ9gxCksjNChcO0XetYCagaRKGZIUwCeK2m8 1ySucR0YlvS+CYMA++vIsdI=
=Ms5c
-----END PGP SIGNATURE-----

#7 lore raw
Quoted 37 lines · Koen Kooi

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Quoted 33 lines · Tom Rini
Quoted 31 lines · Koen Kooi

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Quoted 9 lines · Ulf Samuelsson

If you want to support multiple boot memories, you have to have multiple boards in the conf/machine directory

I currently testing a change to at91bootstrap, where a defconfig is not provided by openembedded.
Instead you provide a list of defconfig's in your machine description:

I.E: in conf/machien/at91sam9g45ek.conf you have:

Quoted 7 lines

AT91BOOTSTRAP_BOARD = "at91sam9g45df at91sam9g45ek at91sam9g45nf"

when at91bootstrap is built it will loop through all the boards. and build three versions.

I think it would make sense to do the same for u-boot, so that you can build u-boot for several configurations.

Not about u-boot, but slightly related:

I need something similar for uImages due to hardware limitations (daughtercards requiring conflicting pinmux) and I have created this for kernel builds:

http://dominion.thruhere.net/git/cgit.cgi/openembedded/tree/recipes/linux/multi-kernel.inc?h=ti/staging

It's working nicely for my usecase (validate hardware configs with multiple kernels, validate software with only one kernel).

Quoted 6 lines
Quoted 3 lines

That indeed looks useful. Any chance it'll go in soon? Or what's left to cleanup before it can? Aside from some shellfile for pstaging that is.

The goal is "next wednesday" provided the tests on monday/tuesday pass, but see Denys' respone about shellfile assumptions.

Yeah, DEPLOY_DIR outside of TMPDIR needs some special thought. DEPLOY_DIR_PSTAGING outside of TMPDIR is fine, happily.

Signature · 2 lines
Tom Rini <[email protected]>
Mentor Graphics Corporation