NI Linux Real-Time Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

Disable RTLinux usb

I'm using an RTLinux board in a product and I want to disable the USB ports. I realize I should be able to disable the USB ethernet functionality with "ifconfig usb0 down" I can prevent physical access with some super glue in the port, but I want to completely eliminate the use of all USB ports in software.

Short of recompiling the kernel without usb support what are my options?

Thanks,

Richard

0 Kudos
Message 1 of 3
(3,664 Views)

The USB subsystem can be disabled using the 'nousb' kernel parameter.

How to pass the parameter via the kernel boot command line varies based on the controller:

  • On Linux ARM based controllers you can add it to the 'othbootargs' variable using the fw_printenv/fw_setenv command line utilities.
  • On Linux x86 controllers look for a file called bootimage.cfg in '/boot/runmode' and add it to the end of the 'otherbootargs' variable.
0 Kudos
Message 2 of 3
(3,246 Views)

I tried this out on a myRIO, and it seems to disable the USB host functionality, not the OTG/device functionality.

I'm afraid your options are to rebuild the kernel or to muck around with some of the scripts that control the networking system on the targets. Let us know which of these two less-than-awesome approaches sounds more palatable and we can assist from there

0 Kudos
Message 3 of 3
(3,246 Views)