Page 1 of 1

manual setup walkthrough (non-udev)

Posted: 15 Aug 2014, 17:22
by linrox
i'm using an embedded linux with busybox/mdev and no udev on it, and from reading the usb-modeswitch manpage/online documentation (maybe i didnt find the right page yet though), it's completely non-obvious for me how to get it working without udev.

so my question: is there such a walkthrough, or if not, could someone please write a short how-to ?
thanks!

Re: manual setup walkthrough (non-udev)

Posted: 16 Aug 2014, 08:52
by Josh
Without udev, there is still the manual call to usb_modeswitch. You'll find many examples in the forum; basically you give the default USB ID on the command line (mandatory) plus a method of mode-switching. either one of the 'special' methods or a bulk message:

usb_modeswitch -v 12d1 -p 1446 -J

usb_modeswitch -v 1c9e -p f000 -M "555342431234567800000000000001ff000000000000000000000000000000"

You can also put the parameters in a text file of your choice and provide its path:

usb_modeswitch -c <your_file>

Besides the man page, see the REFERENCE file in the data source package for parameter explanations.


Any possible automatization depends on your hotplug mechanism obviously.