Hi, On Thu, Mar 23, 2017 at 04:15:53PM +0100, Lucas Stach wrote: > Hi, > > Am Donnerstag, den 23.03.2017, 16:04 +0100 schrieb gianluca: > > But I do not found any switch between choosing one Soc or another. > > Where is done the startup entry? > > If you want a single binary, you need build a 2 stage barebox. First > stage needs to be loaded into SRAM, then you can look at which board you > are running and do the specific DRAM setup. Then you can load the bigger > 2nd stage into DRAM, where you again need to look at the board you are > running at and select the correct devicetree for barebox to use. For an example how this can be done look at the wandboard support: arch/arm/boards/technexion-wandboard/lowlevel.c The wandboard doesn't have QuadPLus support, but the principle is the same. It comes with different device trees and DRAMs. Both are selected depending on the SoC type. Sascha -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox