I am working with a 4gb RaspberryPI4 and it's running a USB3 Flir Blackfly. Out of the box, the setting of
usbcore.usbfs_memory_mb @ 16 isn't enough to get a stream from the camera. Increasing the value to 1024 manually in
/sys/module/usbcore/parameters/usbfs_memory_mb works as expected but does not persist over power cycles/reboots.
I found some information about setting the value by updating
GRUB_CMDLINE_LINUX_DEFAULT=" ... usbcore.usbfs_memory_mb=XXXX" in grub default, but the device isn't booting from grub. This led me to look for
/boot/cmdline.txt which doesn't exist in the firmware currently on the device. Not a huge deal, I was able to find
btcmd.txt which looks to do the same thing.
After adding either of the following to
setenv bootargs "usbcore.usbfs_memory_mb=1024"
Neither one worked.
I do not want to have to convert the install to grub, and I would like to avoid having to write a start script that updates
/sys/module/usbcore/parameters/usbfs_memory_mb when the desktop boots.
Is there something I'm missing here or is there another place to persistently set this value?