June-15th-2021, 12:03 PM
(June-15th-2021, 11:24 AM)Armin@netPI Wrote: The question with "netFIELD Connect" gateway running our original netFIELD OS with Hilschers original SD card the answer is very very easy:
Code:docker run -d --privileged --network=host --restart=always -e SSHPORT=22 -p 22:22/tcp hilschernetpi/netpi-raspbian
Since netFIELD Connect gateway is supporting 100% orginial Docker without any limits just using the flag "--privileged" is enough to map ALL devices from the host machine into the container automatically. This is a 1:1 relationship. This makes using devices on netFIELD Connect very very easy since there is no need to map discrete /DEV/... manually any more as with netPI.
So call the list command "ls /DEV/" on the host Linux and then call the list command in the container "ls /DEV/" and you will receive both times the very same result and you will see all devices mapped in the container. This is all you need to do.
Thanks. its working.
Now I am able to work with my device from inside the container in a netfield connect device.
Question remains how can I enable the same device on Netpi ? modifying config.txt in boot partition is not ehough.
Regards,
Roy