Hi, Cc'ing Michael, who had implemented that feature.
On 18.05.25 19:06, Johannes Roith wrote: > Am Fri, May 16, 2025 at 09:28:03PM +0200 schrieb Ahmad Fatoum: >> Loading OF overlays can already load firmware that way. > > Could you give me an example for an OF overlay to load a firmware? Should look the same as in Linux (with overlay patches applied). Michael, do you happen to have an example to share? > Do I > have to place the firmware at a specific path like with Linux FPGA > manager or can I specify the path in the overlay? Relative file paths are looked up according to $global.firmware.path, which is initialized to /env/firmware by default. You can add extra paths there and if you are using bootloader spec, /lib/firmware on the partition containing the entries is temporarily prepended to the search path. The symbols in question are firmware_(set|get)_searchpath. Cheers, Ahmad > > Thanks and best regards, > Johannes > >> >> Cheers, >> Ahmad >> >>>> That said I wouldn't mind helping with getting the missing bits added >>>> by reviewing/testing patches. :) >>>> >>>> Regards, >>>> Lucas >>>> >>>> Hey Lucas, >>>> >>>> "That said I wouldn't mind helping with getting the missing bits added >>>> by reviewing/testing patches. :)" >>>> >>>> Did you made any attempts to do this? >>>> >>>> As far as I can see there are basicly two ways. >>>> The "Xilinx-Way" by packing everything in Boot.bin. >>>> https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/18841976/Prepare+boot+image >>>> and the "Linux-Way" >>>> https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/18841645/Solution+Zynq+PL+Programming+With+FPGA+Manager >>>> using the FPGA manager >>>> https://elixir.bootlin.com/linux/latest/source/drivers/fpga/zynq-fpga.c >>>> >>>> Best regards >>>> Michael >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> _______________________________________________ >>>> barebox mailing list >>>> barebox@lists.infradead.org >>>> http://lists.infradead.org/mailman/listinfo/barebox >>> >>> Best regards, >>> Johannes >>> >>> >> >> >> -- >> 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 | > -- 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 |