• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Static mapping of USB-devices
#7
I started testing. I created the simplest udev you can think of

Code:
SUBSYSTEM=="tty", SYMLINK+="/usb/%k"

While I was inserting now my serial USB to RS232 converter into my netPI with this ruleset active I saw next to the standard /dev/ttyUSB0 device now also a device under /dev/usb/ttyUSB0. So it is pretty much what we want to see.

But then it came to disillution. I loaded a Raspbian Container with mapped device /dev/usb/ can guess what ... docker does not start and reports "/dev/usb: not a device node".

I searched on the internet for the reason and found the hint https://docs.docker.com/engine/reference...dline/run/ that using the --device option cannot be used for ephemeral devices. Others have that problem too. The reason is that SYMLINK creates just a symbolik link and seems not to have the same properties as the real device.


Armin
You never fail until you stop trying.“, Albert Einstein (1879 - 1955)

  Reply


Messages In This Thread
Static mapping of USB-devices - by deme - May-11th-2019, 10:55 AM
RE: Static mapping of USB-devices - by Armin@netPI - May-11th-2019, 11:20 AM
RE: Static mapping of USB-devices - by deme - May-13th-2019, 09:23 AM
RE: Static mapping of USB-devices - by Armin@netPI - May-13th-2019, 10:06 AM
RE: Static mapping of USB-devices - by deme - May-13th-2019, 10:51 AM
RE: Static mapping of USB-devices - by Armin@netPI - May-13th-2019, 02:52 PM
RE: Static mapping of USB-devices - by Armin@netPI - May-13th-2019, 04:23 PM
RE: Static mapping of USB-devices - by deme - May-15th-2019, 10:06 AM
RE: Static mapping of USB-devices - by Armin@netPI - May-15th-2019, 11:17 AM
RE: Static mapping of USB-devices - by Armin@netPI - May-15th-2019, 11:29 AM
RE: Static mapping of USB-devices - by deme - May-15th-2019, 12:08 PM
RE: Static mapping of USB-devices - by Armin@netPI - May-15th-2019, 04:02 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  USB Port Mapping DSongra 5 4,001 March-10th-2022, 09:20 AM
Last Post: Armin@netPI
  Ethercat master mapping SteP 1 2,350 March-2nd-2020, 12:42 PM
Last Post: Armin@netPI
  [SOLVED] Faulty devices description file from Github Whatzittoya13 5 3,609 March-11th-2019, 11:58 AM
Last Post: Armin@netPI
  Updating of many devices remotely Johannes 6 4,789 November-1st-2018, 12:35 PM
Last Post: Johannes
  [SOLVED] USB Serial device mapping into Container hannes 12 13,801 August-27th-2018, 04:50 PM
Last Post: Armin@netPI

Forum Jump:


Users browsing this thread: 1 Guest(s)