Re: [gentoo-user] 4G Stick Huawei E3276

2013-04-03 Thread Mick
On Tuesday 02 Apr 2013 16:48:26 Stefan G. Weichinger wrote:
 Am 02.04.2013 16:27, schrieb Stefan G. Weichinger:
  Am 02.04.2013 15:52, schrieb Stefan G. Weichinger:
  So I am back on cdc_ncm now. And I removed all the stuff I installed
  when testing that huawei-driver-package.
  
  phew.
  
  Next small steps (but somehow promising):
  
  I was able to connect via wvdial and pull an IPv4-IP-adress via dhcpcd
  ...
  
  but the connection only lasted for maybe 10 seconds. Wrong parameters?
  
  After that I have to re-plug the modem to get it working again.
 
 Update:
 
 It works. Although rather un-polished:
 
 I run wvdial ... it connects ... in a second terminal I pull an
 IP-adress via dhcpcd and then started a ping to some remote IP immediately.
 
 The wvdial-session then somehow loses connection to the modem or
 something (I have to retry and provide the logs ... right now I am so
 happy to have it working that I don't want to stop the connection  )
  this mislead me all the times as I thought it lost connectivity.
 
 But it still pings and works thereafter.
 
 So it is somehow useable for me as an admin ... not so much for an
 end-user.
 
 Contacted the dev from the thread ... he told me that the modules coming
 with linux 3.8.5 should work just fine.
 
 So it's more of a UI-issue right now ;-)
 
 connectivity is good so far ...
 
 phew!

Glad to hear to you got somewhere with this effort!  :-)

If you configure your /etc/conf.d/net for wwan0 (or whatever it is now called) 
to use dhcpcd you should not need to manually attempt getting an IP address:

  config_wwan0=dhcpc

Don't forget to create a symlink for your interface in /etc/init.d/net.lo:

  cd /etc/init.d

  ln -s net.lo net.wwan0

  rc-update add net.wwan0 default

PS.  No idea if NM will barf with these settings, but this is the vanilla 
gentoo approach to network configuration and it will deal with the non-admin 
user problem.
-- 
Regards,
Mick


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] 4G Stick Huawei E3276

2013-04-03 Thread Stefan G. Weichinger
Am 03.04.2013 08:07, schrieb Mick:

 Glad to hear to you got somewhere with this effort!  :-)

Yes, all the precious time spent :-)

 If you configure your /etc/conf.d/net for wwan0 (or whatever it is
 now called) to use dhcpcd you should not need to manually attempt
 getting an IP address:
 
 config_wwan0=dhcpc
 
 Don't forget to create a symlink for your interface in
 /etc/init.d/net.lo:
 
 cd /etc/init.d
 
 ln -s net.lo net.wwan0
 
 rc-update add net.wwan0 default
 
 PS.  No idea if NM will barf with these settings, but this is the
 vanilla gentoo approach to network configuration and it will deal
 with the non-admin user problem.

Thanks for the reminder/suggestion ... for now it's enough to get it
working in the mentioned way as that stick is here for some weeks
only. It's only a a test drive and I have to return it if I don't
decide to do sign a contract (which is pretty expensive ...). I
research if we have good enough LTE-coverage at a customer's numerous
sites as we consider to back up their insufficient internet
connectivity somehow.

I would have to get it running with some router-distro like ipfire or
pfsense to be able to use it ... - some more work ahead ;-)

Thanks, Stefan




Re: [gentoo-user] 4G Stick Huawei E3276

2013-04-02 Thread Stefan G. Weichinger
Am 30.03.2013 12:36, schrieb Stefan G. Weichinger:

 But small progress, yes.

I am close, I feel it :-)

Switched to wvdial to rule out NM etc.

wvdialconf etc 

I now have:

[Dialer Defaults]
Modem Type = Analog Modem
Dial Attempts = 1
ISDN = 0
New PPPD = yes
Init1 = ATZ
Init3 = ATQ0 V1 E1 S0=0
Modem = /dev/ttyUSB0
Baud = 9600

[Dialer pin]
Init2 = AT+CPIN=3451

[Dialer eins]
Init4 = AT+CGDCONT=1,IP,A1.net,,0,0,0,0
Username = p...@a1plus.at
Password = ppp
Dial Command = ATDT
Dial Attempts = 3
Phone = *99#
Stupid Mode = 1

 I first run wvdial pin then :


# wvdial eins
-- WvDial: Internet dialer version 1.61
-- Initializing modem.
-- Sending: ATZ
ATZ
OK
-- Sending: ATQ0 V1 E1 S0=0
ATQ0 V1 E1 S0=0
OK
-- Sending: AT+CGDCONT=1,IP,A1.net,,0,0,0,0
AT+CGDCONT=1,IP,A1.net,,0,0,0,0
OK
-- Modem initialized.
-- Sending: ATDT*99#
-- Waiting for carrier.
ATDT*99#
CONNECT
-- Carrier detected.  Starting PPP immediately.
-- Starting pppd at Tue Apr  2 14:09:43 2013
-- Pid of pppd: 24968
-- Using interface ppp0
-- Disconnecting at Tue Apr  2 14:10:13 2013
-- The PPP daemon has died: A modem hung up the phone (exit code = 16)
-- man pppd explains pppd error codes in more detail.
-- Try again and look into /var/log/messages and the wvdial and pppd
man pages for more information.
-- Auto Reconnect will be attempted in 5 seconds
-- Initializing modem.
-- Sending: ATZ
^CCaught signal 2:  Attempting to exit gracefully...
-- Sending: ATQ0
-- Re-Sending: ATZ


Doesn't come up!

Played with options, even read the APN from the device via putty etc.

Something is still missing ...

Do I have to set up ppp as well?

Stefan



Re: [gentoo-user] 4G Stick Huawei E3276

2013-04-02 Thread Mick
On Tuesday 02 Apr 2013 13:13:26 Stefan G. Weichinger wrote:
 Am 30.03.2013 12:36, schrieb Stefan G. Weichinger:
  But small progress, yes.
 
 I am close, I feel it :-)
 
 Switched to wvdial to rule out NM etc.
 
 wvdialconf etc 
 
 I now have:
 
 [Dialer Defaults]
 Modem Type = Analog Modem

Are you sure it is an analogue modem?  Is this entry needed?

 Dial Attempts = 1
 ISDN = 0
 New PPPD = yes
 Init1 = ATZ
 Init3 = ATQ0 V1 E1 S0=0
 Modem = /dev/ttyUSB0

The driver should create a number of devices, ttyUSB0/ttyUSB1/ttyUSB2/...  Try 
them all in turn, only some may allow PPP connections.


 Baud = 9600

Unless you are just trying to dial out over a PSTN number (which you are not) 
you should be able to increase the baud to a higher number; e.g. 115200


 [Dialer pin]
 Init2 = AT+CPIN=3451
 
 [Dialer eins]
 Init4 = AT+CGDCONT=1,IP,A1.net,,0,0,0,0
 Username = p...@a1plus.at
 Password = ppp
 Dial Command = ATDT
 Dial Attempts = 3
 Phone = *99#
 Stupid Mode = 1
 
  I first run wvdial pin then :
 
 
 # wvdial eins
 -- WvDial: Internet dialer version 1.61
 -- Initializing modem.
 -- Sending: ATZ
 ATZ
 OK
 -- Sending: ATQ0 V1 E1 S0=0
 ATQ0 V1 E1 S0=0
 OK
 -- Sending: AT+CGDCONT=1,IP,A1.net,,0,0,0,0
 AT+CGDCONT=1,IP,A1.net,,0,0,0,0
 OK
 -- Modem initialized.
 -- Sending: ATDT*99#
 -- Waiting for carrier.
 ATDT*99#
 CONNECT
 -- Carrier detected.  Starting PPP immediately.
 -- Starting pppd at Tue Apr  2 14:09:43 2013
 -- Pid of pppd: 24968
 -- Using interface ppp0
 -- Disconnecting at Tue Apr  2 14:10:13 2013
 -- The PPP daemon has died: A modem hung up the phone (exit code = 16)
 -- man pppd explains pppd error codes in more detail.

Did you get anything more detailed in your logs?

Do you have a pap-secrets file even if empty?  If not:

touch /etc/ppp/pap-secrets; chmod 600 /etc/ppp/pap-secrets

If it still fails try adding something like this:

# Secrets for authentication using PAP
# clientserver  secret  IP addresses
user  *   


HOWEVER ... 

I thought that the whole idea is to use this modem to connect on a 4G (LTE) 
network ... yes?

In which case PPP is not the correct protocol.  If this Huawei is using 
Qualcomm chipset you should be using the qmi protocol and the cdc_ncm driver 
ought to do all the dialling using this device (from your dmesg):

[22765.769603] cdc_ncm 1-1.1:1.1 wwan0: register 'cdc_ncm' at
usb-:00:1a.0-1.1, Mobile Broadband Network Device, 0c:5b:8f:27:9a:64

Other driver/protocols that can achieve high speeds of 4G are cdc-ether, cdc-
acm, but your card ought to pick out the correct available protocol from the 
corresponding kernel module.  PPP incurs an overhead (due to packet 
encapsulation) and throughput speeds will be slower.

That's how I understand these devices to work, but unfortunately I can't 
verify any of this because I do not have access to such a device or a 4G 
network.  :-(

I hope someone else who does can chime in.
-- 
Regards,
Mick


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] 4G Stick Huawei E3276

2013-04-02 Thread Mick
On Tuesday 02 Apr 2013 14:06:37 you wrote:

 That's how I understand these devices to work, but unfortunately I can't
 verify any of this because I do not have access to such a device or a 4G
 network.  :-(

Yep, you are meant to see an ethernet interface coming up, which network 
manager will pick up and you should be able to configure and connect.  
However, you may need the latest drivers - have a look at this looong thread:

http://lists.freedesktop.org/archives/libqmi-devel/2012-November/000301.html

-- 
Regards,
Mick


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] 4G Stick Huawei E3276

2013-04-02 Thread Stefan G. Weichinger
Am 02.04.2013 15:19, schrieb Mick:
 On Tuesday 02 Apr 2013 14:06:37 you wrote:
 
 That's how I understand these devices to work, but unfortunately I 
 can't verify any of this because I do not have access to such a 
 device or a 4G network.  :-(
 
 Yep, you are meant to see an ethernet interface coming up, which 
 network manager will pick up and you should be able to configure and 
 connect. However, you may need the latest drivers - have a look at 
 this looong thread:
 
 http://lists.freedesktop.org/archives/libqmi-devel/2012-November/000301.html


Found
and read that thread already today ... I will see how to get
those drivers working.
For now I disabled PIN at least ...

S




Re: [gentoo-user] 4G Stick Huawei E3276

2013-04-02 Thread Stefan G. Weichinger
Am 02.04.2013 15:06, schrieb Mick:
 On Tuesday 02 Apr 2013 13:13:26 Stefan G. Weichinger wrote:
 Modem Type = Analog Modem
 Are you sure it is an analogue modem?  Is this entry needed?

Dunno. Removed. No difference.

 The driver should create a number of devices,
 ttyUSB0/ttyUSB1/ttyUSB2/...  Try them all in turn, only some may
 allow PPP connections.

Checked that before, only ttyUSB0 speaks to me as a modem.

 Baud = 9600
 
 Unless you are just trying to dial out over a PSTN number (which
 you are not) you should be able to increase the baud to a higher
 number; e.g. 115200

This was detected by wvdialconf.



 Did you get anything more detailed in your logs?
 
 Do you have a pap-secrets file even if empty?  If not:
 
 touch /etc/ppp/pap-secrets; chmod 600 /etc/ppp/pap-secrets
 
 If it still fails try adding something like this:
 
 # Secrets for authentication using PAP # clientserver
 secret  IP addresses user  *   

pap-secrets exists and contains the credentials I entered in
wvdial.conf (or was set via NM before maybe?).

 HOWEVER ...
 
 I thought that the whole idea is to use this modem to connect on a
 4G (LTE) network ... yes?

That is the goal, right!

 In which case PPP is not the correct protocol.  If this Huawei is
 using Qualcomm chipset you should be using the qmi protocol and the
 cdc_ncm driver ought to do all the dialling using this device (from
 your dmesg):
 
 [22765.769603] cdc_ncm 1-1.1:1.1 wwan0: register 'cdc_ncm' at 
 usb-:00:1a.0-1.1, Mobile Broadband Network Device,
 0c:5b:8f:27:9a:64
 
 Other driver/protocols that can achieve high speeds of 4G are
 cdc-ether, cdc- acm, but your card ought to pick out the correct
 available protocol from the corresponding kernel module.  PPP
 incurs an overhead (due to packet encapsulation) and throughput
 speeds will be slower.

Your mentioned thread says:

 Huawei E3276 does not have QMI interface so that cdc-wdm +
 qmi_wwan is not working on this device.  I tried to use Huawei
 hw_cdc_driver and cdc_ncm driver on Huawei E3276.  Both drivers are
 working good.

see
http://lists.freedesktop.org/archives/libqmi-devel/2012-November/000310.html

So I am back on cdc_ncm now. And I removed all the stuff I installed
when testing that huawei-driver-package.

Rather hard to solve ...






Re: [gentoo-user] 4G Stick Huawei E3276

2013-04-02 Thread Stefan G. Weichinger
Am 02.04.2013 15:52, schrieb Stefan G. Weichinger:

 So I am back on cdc_ncm now. And I removed all the stuff I installed
 when testing that huawei-driver-package.

phew.

Next small steps (but somehow promising):

I was able to connect via wvdial and pull an IPv4-IP-adress via dhcpcd ...

but the connection only lasted for maybe 10 seconds. Wrong parameters?

After that I have to re-plug the modem to get it working again.

This is with the modules coming with gentoo-sources-3.8.5 ... I assume
that the mentioned thread used older versions of this.

Gotta dig further.

Now time for a coffee!

S





Re: [gentoo-user] 4G Stick Huawei E3276

2013-04-02 Thread Stefan G. Weichinger

forgot my current lsmod:

 # lsmod 
Module  Size  Used by
ppp_async   6157  0
crc_ccitt   1565  1 ppp_async
ppp_generic17250  1 ppp_async
slhc4443  1 ppp_generic
option 26658  0
usb_wwan6870  1 option
cdc_ncm10023  0
usbserial  23422  2 option,usb_wwan
usbnet 19300  1 cdc_ncm
crc32c_intel   13975  0
i2c_i8018749  0




Re: [gentoo-user] 4G Stick Huawei E3276

2013-04-02 Thread Stefan G. Weichinger
Am 02.04.2013 16:27, schrieb Stefan G. Weichinger:
 Am 02.04.2013 15:52, schrieb Stefan G. Weichinger:
 
 So I am back on cdc_ncm now. And I removed all the stuff I installed
 when testing that huawei-driver-package.
 
 phew.
 
 Next small steps (but somehow promising):
 
 I was able to connect via wvdial and pull an IPv4-IP-adress via dhcpcd ...
 
 but the connection only lasted for maybe 10 seconds. Wrong parameters?
 
 After that I have to re-plug the modem to get it working again.

Update:

It works. Although rather un-polished:

I run wvdial ... it connects ... in a second terminal I pull an
IP-adress via dhcpcd and then started a ping to some remote IP immediately.

The wvdial-session then somehow loses connection to the modem or
something (I have to retry and provide the logs ... right now I am so
happy to have it working that I don't want to stop the connection  )
 this mislead me all the times as I thought it lost connectivity.

But it still pings and works thereafter.

So it is somehow useable for me as an admin ... not so much for an end-user.

Contacted the dev from the thread ... he told me that the modules coming
with linux 3.8.5 should work just fine.

So it's more of a UI-issue right now ;-)

connectivity is good so far ...

phew!

Stefan




Re: [gentoo-user] 4G Stick Huawei E3276

2013-03-30 Thread Mick
On Friday 29 Mar 2013 23:40:18 Stefan G. Weichinger wrote:
 Am 29.03.2013 22:40, schrieb Stefan G. Weichinger:
  Am 29.03.2013 22:03, schrieb Stefan G. Weichinger:
  I don't know about NM's preferences ... I just assume this could be
  the problem.
  
  Gotta dig up some udev-ruling for this, any quick pointers anyone?
  
  even easier:
  
  You can change the device name using ifrename from package
  wireless_tools.
  
  Now I have device wwan0 but still NM does not care about it.
  
  I really don't want to rant ... but ... you know.
 
 Just an observation:
 
 Started a VM on my main workstation ... Windows XP inside of VMware Player.
 Not even KVM or something ...
 
 Connected that funny stick to that very VM ... and connected to funky
 internet on first try ...

Don't you lve OS automation?  Especially when it works!  ;-)

If you look at the device manager you will probably find different strings 
describing the USB device interfaces that WinXP detects/assigns compared to 
your Linux OS + udevd + systemd.

When you tried adding the new module you should see a load more interfaces 
coming up in dmesg, through usbserial_generic and then cdc_wdm and qmi_wann, 
like this:

  http://www.spinics.net/lists/linux-usb/msg64061.html

This guys seems to be getting 3 x ttyUSBX popping up.

Once you get to this stage with an appropriate udev rule if need be, then 
apparently you need to emerge this:

$ eix -l libqmi
* net-libs/libqmi
 Available versions:  
~   1.0.0   [doc static-libs test]
**  [doc static-libs test]
 Homepage:http://cgit.freedesktop.org/libqmi/
 Description: QMI modem protocol helper library


and see if that with its qmicli utility allows you to manage your connection.

HTH.
-- 
Regards,
Mick


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] 4G Stick Huawei E3276

2013-03-30 Thread Stefan G. Weichinger
Am 30.03.2013 08:54, schrieb Mick:

 Don't you lve OS automation?  Especially when it works!  ;-)

;-)

 If you look at the device manager you will probably find different
 strings describing the USB device interfaces that WinXP
 detects/assigns compared to your Linux OS + udevd + systemd.
 
 When you tried adding the new module you should see a load more
 interfaces coming up in dmesg, through usbserial_generic and then
 cdc_wdm and qmi_wann, like this:
 
 http://www.spinics.net/lists/linux-usb/msg64061.html
 
 This guys seems to be getting 3 x ttyUSBX popping up.
 
 Once you get to this stage with an appropriate udev rule if need
 be, then apparently you need to emerge this:
 
 $ eix -l libqmi * net-libs/libqmi Available versions: ~   1.0.0   [doc
 static-libs test] **  [doc static-libs test] Homepage:
 http://cgit.freedesktop.org/libqmi/ Description: QMI modem
 protocol helper library
 
 
 and see if that with its qmicli utility allows you to manage your
 connection.

I have my udev-rule to get wwan0 ... but I don't get that /dev/cdc-wdm
device :-(

This is rather frustrating 

S






Re: [gentoo-user] 4G Stick Huawei E3276

2013-03-30 Thread Stefan G. Weichinger

my udev-rule:

# cat /etc/udev/rules.d/10-network.rules

SUBSYSTEM==net, ACTION==add, ATTR{address}==0c:5b:8f:27:9a:64,
NAME=wwan0

What I get:

# lsusb
Bus 001 Device 043: ID 12d1:1506 Huawei Technologies Co., Ltd. E398
LTE/UMTS/GSM Modem/Networkcard

# lsmod
Module  Size  Used by
qmi_wwan6931  0
cdc_wdm 8744  1 qmi_wwan
option 26697  0
usb_wwan6886  1 option
cdc_ncm 9365  0
usbserial  23426  2 option,usb_wwan
usbnet 19268  2 qmi_wwan,cdc_ncm
crc32c_intel   13975  0
i2c_i8018765  0
btusb  11699  0


# dmesg

[22590.544358] usb 1-1.1: new high-speed USB device number 40 using ehci-pci
[22590.673777] scsi74 : usb-storage 1-1.1:1.0
[22590.674803] scsi75 : usb-storage 1-1.1:1.1
[22591.389956] usb 1-1.1: USB disconnect, device number 40
[22591.594997] usb 1-1.1: new high-speed USB device number 41 using ehci-pci
[22591.683754] scsi76 : usb-storage 1-1.1:1.2
[22591.684223] scsi77 : usb-storage 1-1.1:1.3
[22591.689635] usbcore: registered new interface driver usbserial
[22591.689803] usbcore: registered new interface driver usbserial_generic
[22591.689960] usbserial: USB Serial support registered for generic
[22591.691066] usbcore: registered new interface driver option
[22591.691159] usbserial: USB Serial support registered for GSM modem
(1-port)
[22591.691162] usb 1-1.1: MAC-Address: 0c:5b:8f:27:9a:64
[22591.692096] cdc_ncm 1-1.1:1.1 wwan0: register 'cdc_ncm' at
usb-:00:1a.0-1.1, Mobile Broadband Network Device, 0c:5b:8f:27:9a:64
[22591.692147] usbcore: registered new interface driver cdc_ncm
[22591.692674] option 1-1.1:1.0: GSM modem (1-port) converter detected
[22591.692823] usb 1-1.1: GSM modem (1-port) converter now attached to
ttyUSB0
[22592.685651] scsi 76:0:0:0: CD-ROMHUAWEI   Mass Storage
  2.31 PQ: 0 ANSI: 2
[22592.685673] scsi 77:0:0:0: Direct-Access HUAWEI   TF CARD Storage
 2.31 PQ: 0 ANSI: 2
[22592.689637] sr1: scsi-1 drive
[22592.690530] sr 76:0:0:0: Attached scsi CD-ROM sr1
[22592.701874] sd 77:0:0:0: [sdb] Attached SCSI removable disk
[22627.149043] usbcore: registered new interface driver cdc_wdm
[22627.151412] usbcore: registered new interface driver qmi_wwan
[22749.903886] usb 1-1.1: USB disconnect, device number 41
[22749.904440] option1 ttyUSB0: GSM modem (1-port) converter now
disconnected from ttyUSB0
[22749.904556] option 1-1.1:1.0: device disconnected
[22749.904779] cdc_ncm 1-1.1:1.1 wwan0: unregister 'cdc_ncm'
usb-:00:1a.0-1.1, Mobile Broadband Network Device
[22749.917266] systemd[1]: Collecting
dev-disk-by\x2dpath-pci\x2d:00:1a.0\x2dusb\x2d0:1.1:1.3\x2dscsi\x2d0:0:0:0.device
[22749.917275] systemd[1]: Collecting
sys-devices-pci:00-:00:1a.0-usb1-1\x2d1-1\x2d1.1-1\x2d1.1:1.1-net-wwan0.device
[22749.917281] systemd[1]: Collecting sys-subsystem-net-devices-wwan0.device
[22749.917288] systemd[1]: Collecting
sys-devices-pci:00-:00:1a.0-usb1-1\x2d1-1\x2d1.1-1\x2d1.1:1.2-host76-target76:0:0-76:0:0:0-block-sr1.device
[22749.917294] systemd[1]: Collecting dev-sr1.device
[22749.917301] systemd[1]: Collecting
dev-disk-by\x2did-usb\x2dHUAWEI_Mass_Storage\x2d0:0.device
[22749.917307] systemd[1]: Collecting
dev-disk-by\x2dlabel-Mobile\x5cx20Partner.device
[22749.917314] systemd[1]: Collecting
dev-disk-by\x2dpath-pci\x2d:00:1a.0\x2dusb\x2d0:1.1:1.2\x2dscsi\x2d0:0:0:0.device
[22749.917321] systemd[1]: Collecting
dev-disk-by\x2duuid-2012\x2d08\x2d20\x2d10\x2d00\x2d00\x2d00.device
[22749.917327] systemd[1]: Collecting
sys-devices-pci:00-:00:1a.0-usb1-1\x2d1-1\x2d1.1-1\x2d1.1:1.0-ttyUSB0-tty-ttyUSB0.device
[22749.917333] systemd[1]: Collecting dev-ttyUSB0.device
[22749.917340] systemd[1]: Collecting
dev-serial-by\x2did-usb\x2dHUAWEI_Technology_HUAWEI_Mobile\x2dif00\x2dport0.device
[22749.917347] systemd[1]: Collecting
dev-serial-by\x2dpath-pci\x2d:00:1a.0\x2dusb\x2d0:1.1:1.0\x2dport0.device
[22764.654002] usb 1-1.1: new high-speed USB device number 42 using ehci-pci
[22764.783891] scsi78 : usb-storage 1-1.1:1.0
[22764.784457] scsi79 : usb-storage 1-1.1:1.1
[22765.499601] usb 1-1.1: USB disconnect, device number 42
[22765.677723] usb 1-1.1: new high-speed USB device number 43 using ehci-pci
[22765.766646] option 1-1.1:1.0: GSM modem (1-port) converter detected
[22765.767012] usb 1-1.1: GSM modem (1-port) converter now attached to
ttyUSB0
[22765.768979] usb 1-1.1: MAC-Address: 0c:5b:8f:27:9a:64
[22765.769603] cdc_ncm 1-1.1:1.1 wwan0: register 'cdc_ncm' at
usb-:00:1a.0-1.1, Mobile Broadband Network Device, 0c:5b:8f:27:9a:64
[22765.769961] scsi80 : usb-storage 1-1.1:1.2
[22765.770692] scsi81 : usb-storage 1-1.1:1.3
[22766.772145] scsi 81:0:0:0: Direct-Access HUAWEI   TF CARD Storage
 2.31 PQ: 0 ANSI: 2
[22766.772174] scsi 80:0:0:0: CD-ROMHUAWEI   Mass Storage
  2.31 PQ: 0 ANSI: 2
[22766.776568] sr1: scsi-1 drive
[22766.778814] sd 81:0:0:0: [sdb] Attached SCSI 

Re: [gentoo-user] 4G Stick Huawei E3276

2013-03-30 Thread Stefan G. Weichinger

next steps:

Pulled HUAWEI Data Cards Linux Driver from

http://www.huaweidevice.com/worldwide/downloadCenter.do?method=toDownloadFileflay=softwaresoftid=NDcwMzU=

With this I was able to enter the PIN and get mobile broadband in NM
... although still no connection.

The install-process of this driver-set is a bit problematic with gentoo
... some things don't fit too well and I assume that linux 3.8.4 doesn't
fit exactly as well.

But small progress, yes.

Stefan



Re: [gentoo-user] 4G Stick Huawei E3276

2013-03-29 Thread Stefan G. Weichinger
forgot to add:

lsusb:

Bus 001 Device 006: ID 12d1:1506 Huawei Technologies Co., Ltd. E398
LTE/UMTS/GSM Modem/Networkcard

it shows as E398 here but is labeled as E3276




Re: [gentoo-user] 4G Stick Huawei E3276

2013-03-29 Thread Mick
On Friday 29 Mar 2013 14:10:02 Stefan G. Weichinger wrote:
 Greets!
 
 I have a new and shiny Huawei E3276 stick here and want to test it with
 my gentoo thinkpad running Gnome.
 
 I managed to get some /dev/ttyUSB0 .. the device is usb_modeswitch-ed
 automatically.
 
 I also added the modules option and cdc_ncm to my kernel config and
 the dmesg looks ok:
 
 # lsmod
 Module  Size  Used by
 option 26697  0
 usb_wwan6886  1 option
 cdc_ncm 9365  0
 usbserial  23426  2 option,usb_wwan
 usbnet 19268  1 cdc_ncm
 crc32c_intel   13975  0
 i2c_i8018765  0
 btusb  11699  0

You're missing module 'qmi_wwan'.

Trying adding this to your kernel and replug the device (or use modprobe -v 
qmi_wwan).

PS.  I don't have such a device to test here, so hope this will get you in the 
right ball park.
-- 
Regards,
Mick


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] 4G Stick Huawei E3276

2013-03-29 Thread Stefan G. Weichinger
Am 29.03.2013 16:05, schrieb Mick:

 You're missing module 'qmi_wwan'.
 
 Trying adding this to your kernel and replug the device (or use
 modprobe -v qmi_wwan).

Should I rmmod the others before?

I compiled and loaded that module ... no real difference to see ...
still no mobile broadband offered.

When I rmmod them all and plug in again, I get option loaded again.
Should I remove this one from my .config?

Even when I rmmod option, modprobe qmi_wwan and then plugin option
gets loaded (and no mobile broadband in NM).

Could it be related to our friend systemd which renames wwan0 to
wwp0s26u1u1i1 according to dmesg?

 PS.  I don't have such a device to test here, so hope this will get
 you in the right ball park.

Thanks for your help ...





Re: [gentoo-user] 4G Stick Huawei E3276

2013-03-29 Thread Mick
On Friday 29 Mar 2013 15:23:41 Stefan G. Weichinger wrote:
 Am 29.03.2013 16:05, schrieb Mick:
  You're missing module 'qmi_wwan'.
  
  Trying adding this to your kernel and replug the device (or use
  modprobe -v qmi_wwan).
 
 Should I rmmod the others before?
 
 I compiled and loaded that module ... no real difference to see ...
 still no mobile broadband offered.

When you say no real difference ... dmesg should show that the module is 
loading.  /var/log/messages should show the same.

ifconfig should show a new device has been activated.

Yes?


 When I rmmod them all and plug in again, I get option loaded again.
 Should I remove this one from my .config?
 
 Even when I rmmod option, modprobe qmi_wwan and then plugin option
 gets loaded (and no mobile broadband in NM).

I would get NM troubleshooted after the device is recognised by the kernel and 
the relevant modules are loaded.


 Could it be related to our friend systemd which renames wwan0 to
 wwp0s26u1u1i1 according to dmesg?

I thought that this is a udev issue, rather than systemd.  I don't know 
anything about systemd (not tried it yet) and on a stable Gentoo install you 
should be able to see the wwan0 device in ifconfig.

PS. I should also say that I don't use NM on my machines ... so someone else 
should hopefully be able to help with NM issues.  I use symlinks in 
/etc/init.d/ for my NICs.

-- 
Regards,
Mick


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] 4G Stick Huawei E3276

2013-03-29 Thread Stefan G. Weichinger
Am 29.03.2013 19:51, schrieb Mick:

 ifconfig should show a new device has been activated.
 
 Yes?

see below ...

 When I rmmod them all and plug in again, I get option loaded
 again. Should I remove this one from my .config?
 
 Even when I rmmod option, modprobe qmi_wwan and then plugin
 option gets loaded (and no mobile broadband in NM).
 
 I would get NM troubleshooted after the device is recognised by the
 kernel and the relevant modules are loaded.
 
 
 Could it be related to our friend systemd which renames wwan0
 to wwp0s26u1u1i1 according to dmesg?
 
 I thought that this is a udev issue, rather than systemd.


Sure, udev.

I don't know
 anything about systemd (not tried it yet) and on a stable Gentoo
 install you should be able to see the wwan0 device in ifconfig.

I get no wwan0 but this:

# ifconfig wwp0s26u1u2i1
wwp0s26u1u2i1: flags=4098BROADCAST,MULTICAST  mtu 1500
ether 0c:5b:8f:27:9a:64  txqueuelen 1000  (Ethernet)
RX packets 0  bytes 0 (0.0 B)
RX errors 0  dropped 0  overruns 0  frame 0
TX packets 0  bytes 0 (0.0 B)
TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

Just read the posting by Diego Petteno on this issue:

http://blog.flameeyes.eu/2013/03/predictably-non-persistent-names

 PS. I should also say that I don't use NM on my machines ... so
 someone else should hopefully be able to help with NM issues.  I
 use symlinks in /etc/init.d/ for my NICs.

NM sometimes is very comfortable on notebooks etc. ... so why not ...

I don't know if NM *should* detect that fuzzy interface-name now ...
maybe I should do some udev-rule to get wwan0 back? At least for a test.

Stefan





Re: [gentoo-user] 4G Stick Huawei E3276

2013-03-29 Thread Mick
On Friday 29 Mar 2013 19:01:15 Stefan G. Weichinger wrote:

 I get no wwan0 but this:
 
 # ifconfig wwp0s26u1u2i1
 wwp0s26u1u2i1: flags=4098BROADCAST,MULTICAST  mtu 1500
 ether 0c:5b:8f:27:9a:64  txqueuelen 1000  (Ethernet)
 RX packets 0  bytes 0 (0.0 B)
 RX errors 0  dropped 0  overruns 0  frame 0
 TX packets 0  bytes 0 (0.0 B)
 TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

If when you run ifconfig with no options you do not get wwan0 listed and NM 
likes the conventional device naming scheme, then I suggest you create a udev 
rule to achieve this and see if NM is happy thereafter.

-- 
Regards,
Mick


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] 4G Stick Huawei E3276

2013-03-29 Thread Stefan G. Weichinger
Am 29.03.2013 20:14, schrieb Mick:
 On Friday 29 Mar 2013 19:01:15 Stefan G. Weichinger wrote:
 
 I get no wwan0 but this:
 
 # ifconfig wwp0s26u1u2i1 wwp0s26u1u2i1:
 flags=4098BROADCAST,MULTICAST  mtu 1500 ether 0c:5b:8f:27:9a:64
 txqueuelen 1000  (Ethernet) RX packets 0  bytes 0 (0.0 B) RX
 errors 0  dropped 0  overruns 0  frame 0 TX packets 0  bytes 0
 (0.0 B) TX errors 0  dropped 0 overruns 0  carrier 0  collisions
 0
 
 If when you run ifconfig with no options you do not get wwan0
 listed and NM likes the conventional device naming scheme, then I
 suggest you create a udev rule to achieve this and see if NM is
 happy thereafter.

I don't know about NM's preferences ... I just assume this could be
the problem.

Gotta dig up some udev-ruling for this, any quick pointers anyone?

S




Re: [gentoo-user] 4G Stick Huawei E3276

2013-03-29 Thread Stefan G. Weichinger
Am 29.03.2013 22:03, schrieb Stefan G. Weichinger:
 I don't know about NM's preferences ... I just assume this could be
 the problem.
 
 Gotta dig up some udev-ruling for this, any quick pointers anyone?

even easier:

You can change the device name using ifrename from package wireless_tools.

Now I have device wwan0 but still NM does not care about it.

I really don't want to rant ... but ... you know.

Stefan




Re: [gentoo-user] 4G Stick Huawei E3276

2013-03-29 Thread Stefan G. Weichinger
Am 29.03.2013 22:40, schrieb Stefan G. Weichinger:
 Am 29.03.2013 22:03, schrieb Stefan G. Weichinger:
 I don't know about NM's preferences ... I just assume this could be
 the problem.

 Gotta dig up some udev-ruling for this, any quick pointers anyone?
 
 even easier:
 
 You can change the device name using ifrename from package wireless_tools.
 
 Now I have device wwan0 but still NM does not care about it.
 
 I really don't want to rant ... but ... you know.

Just an observation:

Started a VM on my main workstation ... Windows XP inside of VMware Player.
Not even KVM or something ...

Connected that funny stick to that very VM ... and connected to funky
internet on first try ...

So what about that?

UNIX/Linux runs what percentage of the internet?

ok ok ...

LTE is new

linux has only a small percentage ...

gentoo even less.

I spent my whole afternoon trying to connect this very stick to the
internet ...

via 2 linuxes and 1 bsd  not  ONE connection.

Right now I pull in an ISO at 1100kB/s, via that very stick, into an XP-VM.

(seems I don't have LTE coverage here ... but some UMTS or so )

-

Might be just plain ignorance by the provider. Not telling me access
infos etc.

My ADSL is slower.

*sigh*

Just a bit of feedback :-)

S