Chardev & Netdev devices on one system
Posted: Mon 17. Oct 2016, 04:55
Hello,
Is it possible to have two CAN interfaces on one system; one chardev and the other netdev?
One possible way I can see is:
* have two different USB devices, one with a different device ID
* compile two kernel modules, renaming one (eg pcan_char)
* use modalias and udev to force one of the device IDs to use a particular driver
But perhaps there's an easier way (or perhaps having two almost identical kernel modules loaded will cause problems).
Any advice welcome.
Thanks,
Thomas
Is it possible to have two CAN interfaces on one system; one chardev and the other netdev?
One possible way I can see is:
* have two different USB devices, one with a different device ID
* compile two kernel modules, renaming one (eg pcan_char)
* use modalias and udev to force one of the device IDs to use a particular driver
But perhaps there's an easier way (or perhaps having two almost identical kernel modules loaded will cause problems).
Any advice welcome.
Thanks,
Thomas