Mini jack port disable

I have a need to disable communications on the mini-jack USB port on the BBB. We’ve had some folks actually epoxy the port to make sure no one could use it (a security thing). However, I’d like to just disable it through software. Note, I still need to use the full sized USB port for other things so disabling all USB activity isn’t an option.

Possible approaches:

  1. Disable serial port and networking comms through this port – HOW?
  2. Disable the hardware port altogether (best option) – HOW?

FYI – I’d like to build a feature to allow one to programmatically select to enable or disable the port, so continuing to fill the port with JB Weld isn’t going to work.

Thanks!
Bryan

  1. Disable serial port and networking comms through this port – HOW?

The driver that accomplishes serial and USB networking is known as g_multi. You simply make sure the module does not load.

  1. Disable the hardware port altogether (best option) – HOW?

This part, I’m not so sure about. But might possibly involve editing uboot and kernel source to exclude the hardware.