am335x-pru0-fw

57 views
Skip to first unread message

Paul Beam

unread,
Jul 27, 2020, 5:56:44 PM7/27/20
to BeagleBoard
Can someone tell me where am335x-pru0-fw and am335x-pru1-fw come from or when they get loaded?  I'm trying to load my own firmware into the pru's on boot via systemd, and it's not working.  I can do it manually, but on boot it seems to load this default firmware from somewhere.  Or, is it better that I rename my pru firmware to these names and put it in some magical place so it is automatically loaded?

Robert Nelson

unread,
Jul 27, 2020, 6:06:39 PM7/27/20
to Beagle Board, rpau...@gmail.com
On Mon, Jul 27, 2020 at 4:57 PM Paul Beam <rpau...@gmail.com> wrote:
>
> Can someone tell me where am335x-pru0-fw and am335x-pru1-fw come from or when they get loaded? I'm trying to load my own firmware into the pru's on boot via systemd, and it's not working. I can do it manually, but on boot it seems to load this default firmware from somewhere. Or, is it better that I rename my pru firmware to these names and put it in some magical place so it is automatically loaded?

I assume you have it copied under /lib/firmware/ ?

Also just run:

sudo /opt/scripts/tools/developers/update_initrd.sh

This will update the initramfs so your versions are included..

Regards,

--
Robert Nelson
https://rcn-ee.com/

Paul Beam

unread,
Jul 27, 2020, 8:11:50 PM7/27/20
to BeagleBoard
Robert,

My firmware for the PRUs is in /lib/firmware, but it has different names.  It is unclear to me whether a mechanism exists in the PocketBeagle for it to automatically load firmware into the PRUs or whether I need to create my own service.  I have been, until today, loading them manually.  If my systemd service waits until generic-board-setup is complete, then it loads my firmware.  I can, of course, rename my firmware files.  When I do a search for am335x-pru0-fw I don't find anything.  To reduce boot time, I have deleted the initrd.  

Robert Nelson

unread,
Jul 27, 2020, 10:02:32 PM7/27/20
to Beagle Board
On Mon, Jul 27, 2020 at 7:12 PM Paul Beam <rpau...@gmail.com> wrote:
>
> Robert,
>
> My firmware for the PRUs is in /lib/firmware, but it has different names. It is unclear to me whether a mechanism exists in the PocketBeagle for it to automatically load firmware into the PRUs or whether I need to create my own service. I have been, until today, loading them manually. If my systemd service waits until generic-board-setup is complete, then it loads my firmware. I can, of course, rename my firmware files. When I do a search for am335x-pru0-fw I don't find anything. To reduce boot time, I have deleted the initrd.

There is a default name specified in the device-tree..

https://github.com/beagleboard/bb.org-overlays/blob/master/src/arm/AM335X-PRU-RPROC-4-19-TI-00A0.dts#L109

am335x-pru0-fw and am335x-pru1-fw

As long as it's called that, a copy saved in teh initramfs, it'll get
auto-loaded on bootup..

We don't ship any default firmware.
Reply all
Reply to author
Forward
0 new messages