UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    USB Serial in libertine container

    Scheduled Pinned Locked Moved Support
    3 Posts 2 Posters 593 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • 0 Offline
      0xPIT
      last edited by 0xPIT

      Hi there,

      new user here, I've just installed ubtouch on my Nexus 7 and I try to setup a development box with PlatformIO.

      For that I require usb serial ports, which register as /dev/usbdev1.1

      What is the best way to get access to a serial port from within a container?

      I've tried adding this to /etc/lxc/default.conf (after issuing sudo mount -o remount,rw /😞

      lxc.mount.entry = /dev/bus/usb dev/bus/usb  none bind,optional,create=dir 0 0
      
      lxc.cgroup.devices.allow = c 189:* rwm
      lxc.mount.entry = /dev/usbdev1.1 dev/usbdev1.1 none bind,optional,create=file 0 0
      lxc.mount.entry = /dev/usbdev1.2 dev/usbdev1.2 none bind,optional,create=file 0 0
      

      That seems to work, but I need to manually chmod 666 the device files.

      To automate that, I've tried to add a script that chmods...

      sudo echo "/sbin/hotplug" > /proc/sys/kernel/hotplug
      -bash: /proc/sys/kernel/hotplug: Permission denied
      

      but that does not work.

      Probably I'd need a user-serial kernel module, but I presume that would not work with the released kernel?
      Any advise hot to set that up properly?

      Thanks

      pit

      1 Reply Last reply Reply Quote 2
      • 0 Offline
        0xPIT
        last edited by

        Reviving this: Anyone's got any input to this? Still have not found a solution. Thanks!

        1 Reply Last reply Reply Quote 0
        • dobeyD Offline
          dobey
          last edited by

          I'm pretty sure the kernel is lacking the FTDI or whatever usb-serial driver your peripheral needs.

          1 Reply Last reply Reply Quote 0

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          • First post
            Last post