Page 1 of 1

Compiling driver for 4G USB Modem

Posted: 21 Apr 2011, 13:45
by karl-petter
Hi,

I have got a Samsung GT-B3730 4G USB modem. I found these linux drivers https://github.com/mkotsbak/Samsung-GT- ... nux-driver and would like to give it a try on my B3 since I can get 4G here but not ADSL it would be perfect to have the USB modem installed all time in the B3 as a WAN.

Installed git and cloned but when I try to build it says:
make: *** /lib/modules/2.6.35.4/build: No such file or directory. Stop.

I checked that directory and its a symlink:
lrwxrwxrwx 1 root root 41 Jan 4 2000 /lib/modules/2.6.35.4/build -> /home/tor/work/b3/2.6.35.4/linux-2.6.35.4

I guess I'm missing the source for the kernel and modules. I looked around and found this article http://forum.excito.net/viewtopic.php?f=8&t=303

It has a couple of years so wanted to check it is still valid to follow and also check if anyone else has successfully installed any drivers for this Samsung 4G USB Modem?

Thanks,
Karl-Petter

Re: Compiling driver for 4G USB Modem

Posted: 21 Apr 2011, 15:20
by Binkem
You might try to mail the Excito-crew and ask them for the source.

Martijn

Re: Compiling driver for 4G USB Modem

Posted: 21 Apr 2011, 15:29
by Ubi
better do this quickly as /home/tor/work may not be around forever

Re: Compiling driver for 4G USB Modem

Posted: 27 Apr 2011, 07:19
by johannes
The kernel source can always be found here:

http://download.excito.net/kernel/

(And all other sources are in our repos).

Re: Compiling driver for 4G USB Modem

Posted: 27 Apr 2011, 07:26
by Ubi
Ah there they are.
So we have an update.excito.com, and a download.excito.net. Neither of these links are easily found on the www.excito.com website (at least not by me). May I suggest these two locations are merged and/or referred to somewhere on the support website?

thanks

Re: Compiling driver for 4G USB Modem

Posted: 27 Apr 2011, 07:40
by johannes
Right, updated excito.com now. Thanks for the pointer.

http://www.excito.com/bubba/support/download.html

Re: Compiling driver for 4G USB Modem

Posted: 27 Apr 2011, 09:21
by Ubi
yes this is excellent!

Re: Compiling driver for 4G USB Modem

Posted: 27 Apr 2011, 16:06
by karl-petter
Johannes, is there some guide to help me install the source etc?

Can I compile stuff on the B3 or do I need another linux machine as described in the article I linked to?

Re: Compiling driver for 4G USB Modem

Posted: 27 Apr 2011, 16:12
by Ubi
yes you can compile on the b3

theres a recipe for another module on the wiki. http://wiki.excito.org/wiki/index.php/U ... _on_the_B3. Please read through that one first and try to adapt it to your needs.

Re: Compiling driver for 4G USB Modem

Posted: 01 May 2011, 14:19
by karl-petter
Hi again.

Thanks for the info!!

I have downloaded the source and applied the patches. And it compiled though with some warnings and I cannot really get it to work:( I'm noob to linux usb stuff and drivers so do not really know what I'm expected to see etc. I followed the instructions in the suggested eCryptFs guide and the one for the driver. One thing I noticed is that when I build I get:

WARNING: Symbol version dump /usr/src/linux-2.6.38/Module.symvers
is missing; modules will have no dependencies and modversions.
which doesnt look good. I tried to google a solution but have not been able to find one. Any tips?


Second question: What am I expected to see when I follow the installation instructions? I thought I would see some activation of the modem but I do not get that.

I get the following in /var/log/messages
May 1 20:10:43 media kernel: [512979.576967] USB Serial support registered for GSM modem (1-port)
May 1 20:10:43 media kernel: [512979.583221] usbcore: registered new interface driver option
May 1 20:10:43 media kernel: [512979.589004] option: v0.7.2:USB Driver for GSM modems
May 1 20:10:43 media kernel: [512979.609941] usbcore: deregistering interface driver option
May 1 20:10:43 media kernel: [512979.615548] USB Serial deregistering driver GSM modem (1-port)
May 1 20:10:57 media kernel: [512993.243509] USB Serial support registered for GSM modem (1-port)
May 1 20:10:57 media kernel: [512993.249833] usbcore: registered new interface driver option
May 1 20:10:57 media kernel: [512993.255575] option: v0.7.2:USB Driver for GSM modems
May 1 20:11:16 media kernel: [513012.564033] usb 1-1.2: new high speed USB device using orion-ehci and address 9
May 1 20:11:16 media kernel: [513012.719038] scsi8 : usb-storage 1-1.2:1.0
May 1 20:11:17 media kernel: [513013.727471] scsi 8:0:0:0: CD-ROM Samsung Install Disk 0.10 PQ: 0 ANSI: 0 CCS
May 1 20:11:17 media kernel: [513013.739165] sr0: scsi3-mmc drive: 0x/0x caddy
May 1 20:11:17 media kernel: [513013.744472] sr 8:0:0:0: Attached scsi generic sg3 type 5
May 1 20:11:17 media kernel: [513013.780522] sr0: Hmm, seems the drive doesn't support multisession CD's
May 1 20:11:46 media kernel: [513042.302084] usbcore: registered new interface driver gt_b3730

The last line I get when I do insmod ./gt_b3730.ko. Shouldnt I see some modem activation after that?

Re: Compiling driver for 4G USB Modem

Posted: 09 May 2011, 17:13
by karl-petter
I was missing the usb-modeswitch and therefore did not see the modem activation! I installed it and along with ppp and now I can run the chatscript to configure and connect with the modem. When I do ifup wwan0 I get:
Internet Systems Consortium DHCP Client 4.1.1-P1
Copyright 2004-2010 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Easyfind: nothing todo.
Firwall rewite, nothing todo.
Listening on LPF/wwan0/60:a1:0a:0d:0c:42
Sending on LPF/wwan0/60:a1:0a:0d:0c:42
Sending on Socket/fallback
DHCPDISCOVER on wwan0 to 255.255.255.255 port 67 interval 4
DHCPOFFER from 217.214.239.1
DHCPREQUEST on wwan0 to 255.255.255.255 port 67
DHCPACK from 217.214.239.1
Reloading /etc/samba/smb.conf: smbd only.
Easyfind: nothing todo.
Firwall rewite, nothing todo.
bound to 217.214.239.245 -- renewal in 37423 seconds.

So it seems to be working just fine. Though I tried to ping the DHCP server(217.214.239.1) to verify the connection but got nothing back:(

Any ideas of what could be wrong?