Automatic Activation, Hotplug and UDEV, Configuration
Post Reply
linrox
Posts: 2
Joined: 15 Aug 2014, 17:15

manual setup walkthrough (non-udev)

Post by linrox » 15 Aug 2014, 17:22

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!

Josh
Site Admin
Posts: 6570
Joined: 03 Nov 2007, 00:30

Re: manual setup walkthrough (non-udev)

Post by Josh » 16 Aug 2014, 08:52

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.

Post Reply