LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-21-2015, 09:07 AM   #1
Giladl
LQ Newbie
 
Registered: Jun 2015
Posts: 2

Rep: Reputation: Disabled
mounting a usb net stick as CDROM (mdev & hotplug)


Hi All,

i've been trying to use a Huawei 3G net stick with a device running embedded linux (2.6.31).
it seems that most of the "howto" out there is for systems using udev.
i've tried using usb modeswitch, but it's not working properly with mdev. after looking online, i found a script that creates the path "/dev/bus/usb" and the files in it required for running usb_modeswitch.
now that i have this script, and added usb_modeswitch, libusb & libusb-compat, i need to add them to the hotplug script so that they will be called when I plug in the net stick. (automation)

It seems that the part calling the hotplag when connecting the net stick, is not installed/working.
does anyone have an idea on how to enable proper mounting of the net stick (as CD ROM) and get the hot-plug to react to it?

here is a trace of the usb enumeration:

[82289.430000] usb 2-1: new full speed USB device using bcm5892-ohci:PORT-2 and address 6
[82289.640000] usb 2-1: not running at top speed; connect to a high speed hub
[82289.660000] usb 2-1: New USB device found, idVendor=12d1, idProduct=1f1c
[82289.670000] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[82289.680000] usb 2-1: Product: HUAWEI Mobile
[82289.690000] usb 2-1: Manufacturer: Vodafone(Huawei)
[82289.690000] usb 2-1: SerialNumber: FFFFFFFFFFFFFFFF
[82289.720000] usb 2-1: configuration #1 chosen from 2 choices
[82289.790000] scsi2 : SCSI emulation for USB Mass Storage devices
[82294.840000] scsi 2:0:0:0: CD-ROM HUAWEI Mass Storage 2.31 PQ: 0 ANSI: 2

thank you in advance,
Gilad
 
Old 06-23-2015, 03:27 PM   #2
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,184

Rep: Reputation: 3648Reputation: 3648Reputation: 3648Reputation: 3648Reputation: 3648Reputation: 3648Reputation: 3648Reputation: 3648Reputation: 3648Reputation: 3648Reputation: 3648
Hello and welcome to LQ.

Seems the stupid deal has some mass storage in it. I had a CF wifi that was like that too. Not a deal breaker but a pesky issue.

See this for some ideas. https://wiki.archlinux.org/index.php...E1550_3G_modem
 
Old 06-25-2015, 06:30 AM   #3
Giladl
LQ Newbie
 
Registered: Jun 2015
Posts: 2

Original Poster
Rep: Reputation: Disabled
Smile Found the solution

thank you for the help!
I've actually figured it out, the MOD_SR flag was not enabled.
once I've enabled it, and loaded the mod_sr.ko, the hotplug recognized that a "cd-rom" was plugged in.
 
Old 06-25-2015, 05:25 PM   #4
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,184

Rep: Reputation: 3648Reputation: 3648Reputation: 3648Reputation: 3648Reputation: 3648Reputation: 3648Reputation: 3648Reputation: 3648Reputation: 3648Reputation: 3648Reputation: 3648
Thanks for the update and solution.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] mdev not updating from hotplug xerox Linux - Newbie 1 07-13-2012 06:49 AM
[SOLVED] mounting pendrive (USB) via /sbin/hotplug NevemTeve Linux - Hardware 1 02-15-2012 04:36 PM
may install from cdrom to USB FLASH DRIVE(to get it a USB stick bootable) the ubuntu lse123 Linux - Newbie 5 01-02-2009 05:56 PM
/sbin/hotplug not being executed when hotplugging usb stick monk576 Linux - Hardware 1 11-26-2008 02:30 AM
mounting usb from command line - hotplug? FogSwimmer Ubuntu 4 09-28-2006 04:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:14 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration