How to enable option module

Started by Harun, December 20, 2012, 03:23:33 PM

Previous topic - Next topic

Harun

Hello,

I have an iMX233-OLinuXino-MAXI with Arch Linux and I need to enable "option module". When I run the "modprobe option" command, I get an error message saying "FATAL: Module option not found.".

Can you please let me know how to enable this module?

Thanks, Harun


Christian Jann

#1
Hi,

If you want to be able to load kernel modules you need a kernel with "loadable module support", it is likely that you are using a kernel where this was not enabled. So you have to rebuild your kernel with "loadable module support":


Loadable module support  --->
  [*] Enable loadable module support
  [*]   Module unloading
  [ ]   Module versioning support (EXPERIMENTAL)
  [*]   Automatic kernel module loading


I've tested it on my laptop:


[chris@thinkpad ~]$ sudo modprobe option
[chris@thinkpad ~]$ lsmod |grep option
option                 34230  0
usb_wwan               19189  1 option
[chris@thinkpad ~]$ locate option.ko
/usr/lib/modules/3.6.10-2.fc17.x86_64/kernel/drivers/usb/serial/option.ko
/usr/lib/modules/3.6.8-2.fc17.x86_64/kernel/drivers/usb/serial/option.ko
/usr/lib/modules/3.6.9-2.fc17.x86_64/kernel/drivers/usb/serial/option.ko


You probably also need to enable:


Device Drivers  --->
  [*] USB support  --->
    <*>   USB Modem (CDC ACM) support
    <*>   USB Serial Converter support  --->
      [*]   USB Generic Serial Driver
      <*>   USB driver for GSM and CDMA modems
  [*] Network device support  --->
    <*>   PPP (point-to-point protocol) support
    <*>     PPP support for async serial ports


What do you want to do, maybe there is another way to achieve this, where do you have read that you should run "modprobe option".

I think it is the better to rebuild the kernel with the needed modules built-in and not as a module e.g. you select [ * ] instead of [M] when configuring your kernel.


Harun

Hi,
I work on connecting my Olinuxino-Maxi to internet using a 3G dongle but it is a Huawei HiLink modem, it acts as an ethernet interface, not usb. It requires option module enabled.

Harun


Christian Jann

This is also a USB 3G modem I'm sure you can skip the modeprobe step when build the drivers not as modules, e.g. select:


Device Drivers  --->
  [*] USB support  --->
    <*>   USB Modem (CDC ACM) support
    <*>   USB Serial Converter support  --->
      [*]   USB Generic Serial Driver
      <*>   USB driver for GSM and CDMA modems
  [*] Network device support  --->
    <*>   PPP (point-to-point protocol) support
    <*>     PPP support for async serial ports


when configuring your kernel.

Than you use wvdial to set up your network connection.

http://ubuntuforums.org/showthread.php?t=2076601

If you do not post all commands that are necessary to configure your modem or a link to the guide where you have read them than I can't help you how to do it on the olinuxino. Also the output of every command is very helpful.

What does happen when you insert your 3G modem, do you see something like this:


[  162.480000] usb 1-1: new high-speed USB device number 2 using ci_hdrc
[  162.660000] scsi0 : usb-storage 1-1:1.0
[  163.700000] scsi 0:0:0:0: CD-ROM            USBModem Disk             2.31 PQ: 0 ANSI: 2
[  165.490000] usb 1-1: USB disconnect, device number 2
[  165.890000] usb 1-1: new high-speed USB device number 3 using ci_hdrc
[  166.070000] option 1-1:1.0: GSM modem (1-port) converter detected
[  166.090000] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB0
[  166.100000] option 1-1:1.1: GSM modem (1-port) converter detected
[  166.120000] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB1
[  166.130000] option 1-1:1.2: GSM modem (1-port) converter detected
[  166.150000] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB2
[  166.160000] scsi1 : usb-storage 1-1:1.3
[  167.170000] scsi 1:0:0:0: Direct-Access     USBModem Disk             2.31