FATAL: Module usbserial not found

Asked by alifdalya

Hi all..

when i try to switch usb win modem to linmodem.. i use this command:

adie@alifdalya:~$ sudo modprobe usbserial vendor=0x1c9e product=0x6061
FATAL: Module usbserial not found.
adie@alifdalya:~$

but before this when im using kernel 2.6.27-11 its just ok.. i think this is a bug about the new kernel

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu linux Edit question
Assignee:
No assignee Edit question
Solved by:
Philip Muškovac
Solved:
Last query:
Last reply:

This question was originally filed as bug #347754.

Revision history for this message
Philip Muškovac (yofel) said :
#1

Thank you for taking the time to make Ubuntu better. Please give us the kernel version you are using be posting the output of 'uname -a' . If you mean 2.6.28 then in 2.6.28-11-generic (and previous versions afaik) usbserial is compiled into the kernel and cannot be un- / loaded with modprobe any more. You'll have to use the submodules.

Revision history for this message
alifdalya (alifdalya81) said :
#2

adie@alifdalya:~$ uname -a
Linux alifdalya 2.6.28-11-generic #37-Ubuntu SMP Mon Mar 23 16:40:23 UTC 2009 i686 GNU/Linux

by the way im newbie here.. so what do you mean by to use the submodules, tq

Revision history for this message
alifdalya (alifdalya81) said :
#3

adie@alifdalya:~$ sudo modprobe -r uhci_hcd
FATAL: Module uhci_hcd not found.

this also happen when i try to use uhci_hcd

Revision history for this message
wouter (wouter-xlocal) said :
#4

Hey Alifdalya and others,

I have the same issue over here: trying to connect my asus 901 with Ubuntu Netbook Remix on it to a Toshiba G450 external modem. I got Ubuntu to recognise the G450 as a modem instead of a CD, created a config file for the G450 but now loading the usbserial doesn't work.

$ sudo modprobe g450 produces the same as you have:
FATAL: Module usbserial not found

My kernel is a 2.6.28-11.generic #36-Ubuntu SMP

How is that exactly "to use the submodules"?

any help is appreciated.

best,

W

Revision history for this message
Jordi (jordiroigibiza) said :
#5

Hola wouter! Yo tengo el mismo modem y el mismo problema. Antes con ubuntu 8.10 iba de maravilla pero ahora he instalado la beta de 9.04 y bueno, lo mismo que a tí. Bueno si te encuentras solución te pediria por favor que me la remitieras al correo. Yo intentaré hacer lo mismo pero yo tardo más pq tengo que ir de ciber en ciber..

Bueno, a ver si hay suerte. Gracias !!

Revision history for this message
Best Philip Muškovac (yofel) said :
#6

Sorry for my late answer, had to look some things up.
First of all: I mixed some things up.
It is true that you cannot use the 'modprobe usbserial vendor=... product=...' command any more since the driver is built into the kernel now.
Now to my mixup: You don't need to use a submodule but use your parameters on the kernel command line.
First an explanation: The Kernel command line is the command that the grub boot manager uses to load the kernel.
And now to what you have to do to use usbserial with 2.6.28:
The kernel command is set in the grub configuration in the file /boot/grub/menu.lst . At the bottom of the file you will find the default startup entry created by ubuntu (taken from my menu.lst):

title Ubuntu jaunty (development branch), kernel 2.6.28-11-generic
uuid 44daa138-39e6-450f-b840-76940da90d1f
kernel /vmlinuz-2.6.28-11-generic root=UUID=f2441938-7359-49d7-95eb-81f36a166757 ro quiet splash
initrd /initrd.img-2.6.28-11-generic
quiet

the part that interests us is the line that starts with 'kernel'. To use the usbserial driver you have to add your parameters to this line so start editing the file by opening it in a texteditor with admin-rights by typing in a terminal:
for gnome: 'gksu gedit /boot/grub/menu.lst'
kde: 'kdesudo kate /boot/grub/menu.lst'
others: 'sudo nano -w /boot/grub/menu.lst'
Now go to the end of the File and Copy&Paste the block obove so that you have the same boot config twice, like this you always have the original boot config if your configuration refuses to work (make sure not to change anything in the original configuration or you might get an unbootable system!):

title Ubuntu jaunty (development branch), kernel 2.6.28-11-generic
uuid 44daa138-39e6-450f-b840-76940da90d1f
kernel /vmlinuz-2.6.28-11-generic root=UUID=f2441938-7359-49d7-95eb-81f36a166757 ro quiet splash
initrd /initrd.img-2.6.28-11-generic
quiet

title Ubuntu jaunty (development branch), kernel 2.6.28-11-generic
uuid 44daa138-39e6-450f-b840-76940da90d1f
kernel /vmlinuz-2.6.28-11-generic root=UUID=f2441938-7359-49d7-95eb-81f36a166757 ro quiet splash
initrd /initrd.img-2.6.28-11-generic
quiet

Now take the first entry and first edit the title so that you can identify which config is yours (you can put anything you want there, I'll simply append custom)

title Ubuntu jaunty (development branch), kernel 2.6.28-11-generic custom
uuid 44daa138-39e6-450f-b840-76940da90d1f
kernel /vmlinuz-2.6.28-11-generic root=UUID=f2441938-7359-49d7-95eb-81f36a166757 ro quiet splash
initrd /initrd.img-2.6.28-11-generic
quiet

Now add your parameters in the form module.option=value :

title Ubuntu jaunty (development branch), kernel 2.6.28-11-generic custom
uuid 44daa138-39e6-450f-b840-76940da90d1f
kernel /vmlinuz-2.6.28-11-generic root=UUID=f2441938-7359-49d7-95eb-81f36a166757 ro quiet splash usbserial.vendor=0x1c9e usbserial.product=0x6061
initrd /initrd.img-2.6.28-11-generic
quiet

Now double check that the settings are in the kernel line and didn't get broken up into a new line and save the file. Now you will have to reboot and select your new configuration on the next boot. (If you put your configuration obove the others it should be the new default.)

A note at the end: You should make yourself a backup of your new menu.lst file since you might loose it when you install a kernel update and select 'use version of maintainer' or something like that from the list that might pop up in the details.

I really hope that will work for you.

Revision history for this message
Jordi (jordiroigibiza) said :
#7

Really thanks Philip !

Revision history for this message
alifdalya (alifdalya81) said :
#8

not work, but thanks anyway

Revision history for this message
javi (javuchi) said :
#9

Something must be wrong with the driver when loaded into the kernel, as the Huawei e220 stops to correctly work, unless it is already plugged BEFORE starting the system.

Please, include usbserial as a module. Lot of complains will happen if you don't, and it is very easy to do... just mark it as a module.

Revision history for this message
alifdalya (alifdalya81) said :
#10

sorry.. sorry.. tq for Philip Muskovac, its works

Revision history for this message
alifdalya (alifdalya81) said :
#11

Thanks Philip Muskovac, that solved my question.

Revision history for this message
Raul (raulofpandora) said :
#12

For Toshiba G450, Is it enough to add:
usbserial.vendor=0x930 usbserial.product=0xd45
?
Thanks.

Revision history for this message
Tycho Quad (tychoquad) said :
#13

Please fix it so my modem will just work like it did under ibex

Revision history for this message
lameleck (marcin-poleszuk) said :
#14

SOLVED!!!! please MODULE.

Revision history for this message
jferna57 (jferna57) said :
#15

Raul I have a toshiba g450 too. Do you solve the problem?

Thanks in advantage.

Revision history for this message
Raul (raulofpandora) said :
#16

Not yet in Jaunty. Investigating.

Revision history for this message
Raul (raulofpandora) said :
#17

Update: I haven't solved the problem with kernel 2.6.28, but yes updated to kernel 2.6.29, using "old mod probe method". Follow http://www.ramoonus.nl/2009/03/24/linux-kernel-2629-installation-guide-for-ubuntu-and-debian-linux/ to install 2.6.29 kernel. Last version is, at time of writing, in http://kernel.ubuntu.com/~kernel-ppa/mainline/v2.6.29.2/

- download three packages, if i386,
linux-headers-2.6.29-02062902-generic_2.6.29-02062902_i386.deb
linux-headers-2.6.29-02062902_2.6.29-02062902_all.deb
linux-image-2.6.29-02062902-generic_2.6.29-02062902_i386.deb
- install dpkg -i linux-*.deb
- reboot

You can get a warning about modprobe and future release , but the module loads.

I also have used http://canx.blogspot.com/2008/12/howto-toshiba-g450-con-ubuntu-810.html to make is run, using also step three, wvdial, from http://canx.blogspot.com/2008/11/howto-toshiba-g450-con-ubuntu-804.html because I wasn't able to see the connection using Network Manager.

Now I'm using G450 :-D

Raúl

Revision history for this message
gonkyouka (taong-palaka-ako) said :
#18

for some reason Philip Muskovac 's solution on adding a line in my grub menu.lst dont work.. so instead i installed another version kernel i.e. 2.6.29 hoping that doing so will help.. but still im stuck in the last point in ubuntu forum's tutorial http://locoteam.ubuntuforums.org/showthread.php?t=976435&page=5&highlight=smartbro it says --> WvDial: Internet dialer version 1.60
--> Cannot open /dev/ttyUSB0: No such file or directory
--> Cannot open /dev/ttyUSB0: No such file or directory
--> Cannot open /dev/ttyUSB0: No such file or directory when running wvdial..

Revision history for this message
Raul (raulofpandora) said :
#19

gonyouka, take a look at URL I've posted (they are in spanish, but easy to understand):

1 Install usb_modeswitch (apt-get install usb-modeswitch) take a look at http://packages.debian.org/search?keywords=usb-modeswitch

It will create a /etc/usb_modeswitch file, if G450 put inside (uncomment the lines deleting the initial character ;), change it to your device.

#######################################################
# # Toshiba G450 # # Contributor: Mijail Anton

DefaultVendor= 0x0930
DefaultProduct= 0x0d46

TargetVendor= 0x0930
TargetProduct= 0x0d45

MessageEndpoint=0x05
MessageContent="5553424312345678000000000000061b000000020000000000000000000000"

2. run sudo usb_modeswitch, you will see the device using lsusb

3. sudo gedit /etc/modprobe.d/toshibag450 -> again, change it to your device

and copy:

# Toshiba G450
alias g450 usbserial
options g450 vendor=0x930 product=0xd45

then sudo modprobe g450

You'll see the warning with the new kernel, but the module is loaded.

4. add the modem to hal:

sudo gedit /usr/share/hal/fdi/information/10freedesktop/10-modem.fdi

and copy:
<!-- *****************************************************
USB devices
***************************************************** -->

<!-- Toshiba G450 -->
<match <email address hidden>:usb.vendor_id" int="0x930">
<match <email address hidden>:usb.product_id" int="0xd45"
<match <email address hidden>:usb.interface.number" int="0">
<append key="modem.command_sets" type="strlist">GSM-07.07</append>
</match>
</match>
</match>

restart HAL:

sudo /etc/init.d/hal restart

Test it:

$ lshal | grep "GSM"
modem.command_sets = {'GSM-07.07'} (string list)

5. In this case, you can use wvdial with USBtty0

Revision history for this message
tonio59 (antonio-francino-bluebottle) said :
#20

I have Xubuntu Jaunty installed, Linux kernel 2.6.28-13-generic with Gnome 2.6.21.
Previously used 8.04 and had a functioning mobile broadband connection with a Toshiba G450 USB-phone/modem.
Well, I've lost my connection, and the trick of editing /boot/grub/menu.lst does not work. It gevis an error at boot-up 'Unknown boot option'...

I dont think it safe nor simple to install a new kernel. Any suggestions, before I wipe out and reinstall the whole system from my well-kept 8.04 installation disk ??

Thanks in advance.

Revision history for this message
GeorgeVita (8-launchpad-mhnyma-com) said :
#21

Hi tonio59,
form kernel 2.6.28-13-generic the usbserial become an external driver again!

You can use it as in the past:
sudo modprobe usbserial vendor=0xAAAA product=0xBBBB

AAAA=vendorID
BBBB=productID

More 'history' at: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/345002

As 9.04 has a newer version of Network Manager you should check if you can use it.

Regards,
George

Revision history for this message
tonio59 (antonio-francino-bluebottle) said :
#22

Ok, I finally managed to connect my Toshiba G450 USB Modem, I'm using also Simyo as my mobile phone company.

Basically I followed the instructions as in the tutorial by Canx
(http://canx.blogspot.com/2008/11/howto-toshiba-g450-con-ubuntu-804.html)

Then I must initialize the system with the Toshiba g450 modem connected and active.

Then I must unmark "Enable wireless" in the NetworkManager applet. (if not, it does not work !)

I do then in a terminal:
sudo modprobe g450
 ... followed by:
sudo wvdial

And it works !
One last point - dont know why, but sometimes Firefox appears to go 'off-line' for no reason. Check that also in case everything works but still cannot connect !

Note: In the tutorial, there is a pair of UDEV rules to automatize the process:

File: /etc/udev/rules.d/85-toshibaG450.rules
SUBSYSTEM=="usb", ATTR{idVendor}=="0930" ATTR{idProduct}=="0d46",
RUN+="/usr/sbin/usb_modeswitch"

FIle: /etc/udev/rules.d/95-toshibaG450.rules
SUBSYSTEM=="usb", ATTR{idVendor}=="0930" ATTR{idProduct}=="0d45"
RUN+="/sbin/modprobe -Qba g450"

but it does not work for me. Don't know why. I have noticed there is a comma at the end of the first line in first rule, and there isn't in the second rule. Could anybody check ? CanX seems to be not very confident with UDEV...

Well, I'm going to write it down right now, just in case I forget ;-))
Thanks all.

Revision history for this message
tonio59 (antonio-francino-bluebottle) said :
#23

I use Xubuntu 9.04, Kernel Linux 2.6.28-13-generic.
Needles to say, I had to use wvdial because NetworkManager did not recognize the USB modem. Not even after usb_modeswitch, and modprobe... It did in version 8.04 (...).

The options proposed for editing /boot/grub/menu.lst still are not recognized.

Revision history for this message
Kunal Basu (reach2kunal) said :
#24

I use Ubuntu Jaunty for my office laptop and in my home computer Linux Mint 7 which has been based on Jaunty again. I am able to successfully configure my Tata Indicom Photon+ modem (ZTE variant) following the suggestions from Philip. (thanks a lot Philip for your detailed explanation). I am a newbie on Linux and so thought of sharing the exact steps I did which may be of interest to other users facing the same problem on Tata Indicom. So, here we go:

1. edit the "grub" config file as mentioned by Philip. My file looks something as below (in Linux Mint):

title Linux Mint 7 Gloria, kernel 2.6.28-11-generic custom
root (hd0,5)
kernel /boot/vmlinuz-2.6.28-11-generic root=/dev/sda6 ro quiet splash usbserial.vendor=0x19d2 usbserial.product=0xffff
initrd /boot/initrd.img-2.6.28-11-generic
quiet

note "usbserial.vendor=0x19d2 usbserial.product=0xffff" added to the end of the line starting with kernel - this is the Tata Indicom supplied ZTE modem specific device details.

2. change the wvdial.conf (use a command like as below: gksu gedit /etc/wvdial.conf) to include the details. my file looks something as below:

[Dialer Defaults]
Phone =
Username =
Password =
New PPPD = yes

[Dialer cdma]

Stupid Mode = 1

Inherits = Modem0

Password = xxx

Username = xxx

Phone = #777

[Modem0]

Init1 = ATZ

Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0

SetVolume = 0

Modem = /dev/ttyUSB0

Modem Type = Analog Modem

;Baud = 9600

Baud = 3686400

FlowControl = Hardware (CRTSCTS)

Dial Command = ATDT

ISDN = 0

and save the above file. Please change the username and password to reflect the correct data.

3. from a terminal issue command: "sudo wvdial cdma" to start the internet session

One obs: the firefox may start in the offline mode, please make it online from the "File" menue path.

In case wvdial is not installed in your system, use "apt-get install wvdial" from a terminal to install it in your system.

Happy surfing...

Revision history for this message
GeorgeVita (8-launchpad-mhnyma-com) said :
#25

Hi Kunal Basu,
please note that when you update and accept to use a new from 2.6.28-13-generic the usbserial will become an external driver again, and the 'grub edit' way will not function. From that point you will have to use the 'standard' method again (as an external driver):

sudo modprobe usbserial vendor=0xAAAA product=0xBBBB

where AAAA=vendorID and BBBB=productID

More 'history' at: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/345002

Regards,
George

Revision history for this message
Kunal Basu (reach2kunal) said :
#26

Thank you GeorgeVita... appreciate your help and guidance. One quick question, is this upgrade already available in the updates now? If I apply all the update in Ubuntu / Mint, will I be automatically be upgraded to the 2.6.28.13-generic kernel please?

Regards.
Kunal

Revision history for this message
GeorgeVita (8-launchpad-mhnyma-com) said :
#27

Hi Kunal Basu,
now Ubuntu 9.04 uses kernel 2.6.28-15-generic #49 so after updating (any method) this or a newer will be installed to your system. I am not sure about 'mint' version, I suppose it will be the same as 'encapsulating usbserial into kernel' supposed to be a 'bug'.

After update, you can still boot your 'old' kernel (via grub) and finalize your settings to use 'sudo modprobe ... ' as a command. Finally you can add this command (without sudo) to /etc/rc.local file and will be executed in every boot:

gksudo /etc/rc.local

and edit contents to include:

#!/bin/sh -e
# rc.local
modprobe usbserial vendor=0x19d2 product=0xffff
exit 0

Regards,
George

Revision history for this message
Kunal Basu (reach2kunal) said :
#28

Thank you so much George.

Revision history for this message
Kunal Basu (reach2kunal) said :
#29

Thank you so much George.

Revision history for this message
Mbogo Kariuki (mbogo-kariuki) said :
#30

Hi
I am running Ubuntu 9.04 Kernel 2.6.28-11-generic and am facing the same problem of "Module usbserial not found". I followed the instructions by Philip and all went well but still the problem persists. My modem is ZTE Ac2726.
I edit the menu.lst to include:

usbserial.vendor=0x19d2 usbserial.product=0xfff1

What could be the problem.

Am still new to linux