Hi, On 1/6/26 2:10 PM, Konstantin Kletschke wrote: > Hello Ahmad! > > On Tue, Jan 06, 2026 at 12:33:21PM +0100, Ahmad Fatoum wrote: > >> When enabled, the same barebox build generates two images: >> barebox-am33xx-beaglebone-mlo.mmc.img -> MLO >> barebox-am33xx-beaglebone.img -> barebox.bin >> >> Both are placed in the VFAT. > > I do not necessaryly need two images, if booting is now done with a > combined one, which is new, if I understood this correct.
There must be a separate MLO image that is small enough to fit into SRAM. So you still need two images, the only difference is if you build barebox twice with two different configs or build it only once. Both are possible, you just need to adapt your recipe(s) accordingly. For you old way of doing things, you need two recipes, each with its own config. > In my images deploy dir the following images showed up after my > migration to walnascar away from the meta-barebox layer which is not > used anymore. > > barebox-am33xx-afi-gf.img > barebox-am33xx-baltos.img > barebox-am33xx-beaglebone.img > barebox-am33xx-myirtech.img > barebox-am33xx-phytec-phycard.img > barebox-am33xx-phytec-phycore-emmc.img > barebox-am33xx-phytec-phycore-no-eeprom.img > barebox-am33xx-phytec-phycore-no-spi-no-eeprom.img > barebox-am33xx-phytec-phycore-no-spi.img > barebox-am33xx-phytec-phycore.img > barebox-am33xx-phytec-phyflex-no-eeprom.img > barebox-am33xx-phytec-phyflex-no-spi-no-eeprom.img > barebox-am33xx-phytec-phyflex-no-spi.img > barebox-am33xx-phytec-phyflex.img > barebox-am35xx-pfc-750-820x.img > barebox-beagleboard.img > barebox-dt-2nd.img These are all second stage barebox images (barebox.bin). To use the MLO as you did before, you need a second recipe where you build am335x_mlo_defconfig or w/e your config is. > And that is, when I wondered myself, if - in our case - > barebox-am33xx-beaglebone.img > is going to be named MLO and put into the vfat boot partition or if I > have something missing or done wrong, which is absolutely possible, of > course! The MLO files have mlo in their name. > So, no *mlo* file. > >> For your old setup, you will need two recipes. Just define your own >> barebox.bb and barebox-pbl.bb recipes and inherit barebox in each and >> use different configs. All the core logic is in a barebox.bbclass to >> allow you to easily create your own recipes. > > So only using this approach with two barebox.bb and barebox-pbl.bb I > would get an additional *mlo* file, right? > As said, if I can omit this approach this is fine by me. Given that eMMC doesn't work yet for the approach with a single recipe, I'd suggest you just add two recipes for now. Cheers, Ahmad > > Regards > Konsti > > > -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
