Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
HELP - initrd embedded in kernel - SOLVED
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3  
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Moriah
Advocate
Advocate


Joined: 27 Mar 2004
Posts: 2117
Location: Kentucky

PostPosted: Tue Feb 19, 2019 12:00 pm    Post subject: Reply with quote

Code:

onesimus ~ # dmesg | wgetpaste
Your paste can be seen here: https://paste.pound-python.org/show/WPuWpcOfmE7BxsXBohdZ/
onesimus ~ # cat /usr/src/linux/.config | wgetpaste
Your paste can be seen here: https://paste.pound-python.org/show/l9Z4YEDQiMuwNRYWUAuA/
onesimus ~ #


My cellular modem is a sprint netgear aircard 341u. It worked fine under my old 3.12.21 kernel, but will not compile under the new kernel:
Code:
onesimus /usr/src/GobiNet # make
rm -rf *.o *~ core .depend .*.cmd *.ko *.mod.c .tmp_versions Module.* modules.order
make -C /lib/modules/4.14.83-gentoo/build M=/usr/src/GobiNet modules
make[1]: Entering directory '/usr/src/linux-4.14.83-gentoo'
  CC [M]  /usr/src/GobiNet/GobiUSBNet.o
/usr/src/GobiNet/GobiUSBNet.c: In function 'GobiUSBNetStartXmit':
/usr/src/GobiNet/GobiUSBNet.c:1201:10: error: 'struct net_device' has no member named 'trans_start'; did you mean 'mem_start'?
    pNet->trans_start = jiffies;
          ^~~~~~~~~~~
          mem_start
make[2]: *** [scripts/Makefile.build:329: /usr/src/GobiNet/GobiUSBNet.o] Error 1
make[1]: *** [Makefile:1527: _module_/usr/src/GobiNet] Error 2
make[1]: Leaving directory '/usr/src/linux-4.14.83-gentoo'
make: *** [Makefile:8: all] Error 2
onesimus /usr/src/GobiNet #


Code:

onesimus /usr/src/GobiNet # cd ../GobiSerial/
onesimus /usr/src/GobiSerial # make
rm -rf *.o *~ core .depend .*.cmd *.ko *.mod.c .tmp_versions Module.* modules.order
make -C /lib/modules/4.14.83-gentoo/build SUBDIRS=/usr/src/GobiSerial modules
make[1]: Entering directory '/usr/src/linux-4.14.83-gentoo'
  CC [M]  /usr/src/GobiSerial/GobiSerial.o
/usr/src/GobiSerial/GobiSerial.c:223:2: warning: #warning "Using legacy method of locking disc_mutex" [-Wcp]
 #warning "Using legacy method of locking disc_mutex"
  ^~~~~~~
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /usr/src/GobiSerial/GobiSerial.mod.o
  LD [M]  /usr/src/GobiSerial/GobiSerial.ko
make[1]: Leaving directory '/usr/src/linux-4.14.83-gentoo'
onesimus /usr/src/GobiSerial #


Where would I find cpu temp in /sys/ ? I found the processors, but can't find anything that looks like a temperature.
_________________
The MyWord KJV Bible tool is at http://www.elilabs.com/~myword

Foghorn Leghorn is a Warner Bros. cartoon character.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43184
Location: 56N 3W

PostPosted: Tue Feb 19, 2019 12:55 pm    Post subject: Reply with quote

Moriah,

Please post the info I requested. That you have a sprint netgear aircard 341u, is not useful.
We need to know the actual chipset inside the device.

GobiNet looks like an obsolete out of kernel, kernel module. Its not kept up with the kernel anyway.
Lets see what we can do once we know your chipset.

Depending on your kernel settings, CPU temp may be in /sys/class/thermal/thermal_zoneX/temp X will be an integer starting at 0

Bluetooth does not appear in dmesg.
Your kernel has

Code:
CONFIG_BT=m
CONFIG_BT_BREDR=y
# CONFIG_BT_RFCOMM is not set
# CONFIG_BT_BNEP is not set
CONFIG_BT_HIDP=m
CONFIG_BT_HS=y
CONFIG_BT_LE=y
# CONFIG_BT_LEDS is not set
# CONFIG_BT_SELFTEST is not set

#
# Bluetooth device drivers
#
CONFIG_BT_INTEL=m
CONFIG_BT_BCM=m
CONFIG_BT_RTL=m
CONFIG_BT_HCIBTUSB=m
CONFIG_BT_HCIBTUSB_BCM=y
CONFIG_BT_HCIBTUSB_RTL=y
# CONFIG_BT_HCIUART is not set
CONFIG_BT_HCIBCM203X=m
# CONFIG_BT_HCIBFUSB is not set
# CONFIG_BT_HCIVHCI is not set
# CONFIG_BT_MRVL is not set
# CONFIG_BT_ATH3K is not set
so is the bluetooth module loaded?
Have you built the right driver for your device. We need its Vendor and Device IDs.

Some devices also need # CONFIG_RFKILL is not set, turned on and the userspace net-wireless/rfkill application installed to enable the transmitter.

Given the Vendor and Device IDs of your modem and bluetooth devices, we may be able to fix your kernel for both in one go.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Moriah
Advocate
Advocate


Joined: 27 Mar 2004
Posts: 2117
Location: Kentucky

PostPosted: Tue Feb 19, 2019 2:05 pm    Post subject: Reply with quote

If I plug in the cellular modem, lsusb tells me:
Code:

Bus 002 Device 007: ID 1199:9055 Sierra Wireless, Inc. Gobi 9x15 Multimode 3G/4G LTE Modem (NAT mode)


How do I determine the chipset? I think its is Broadcom, but that's only a vague recollection; I do not remember where I saw that.

Here is the lsusb and lspci output:
Code:

onesimus /usr/src/linux # lsusb               
Bus 002 Device 005: ID 2188:0ae1 
Bus 001 Device 003: ID 0930:6545 Toshiba Corp. Kingston DataTraveler 102/2.0 / HEMA Flash Drive 2 GB / PNY Attache 4GB Stick
Bus 001 Device 005: ID 04f2:b2ea Chicony Electronics Co., Ltd Integrated Camera [ThinkPad]
Bus 001 Device 004: ID 147e:2020 Upek TouchChip Fingerprint Coprocessor (WBF advanced mode)
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 004: ID 062a:0201 MosArt Semiconductor Corp. Defender Office Keyboard (K7310) S Zodiak KM-9010
Bus 002 Device 003: ID 0451:8044 Texas Instruments, Inc.
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
onesimus /usr/src/linux # lspci
00:00.0 Host bridge: Intel Corporation 3rd Gen Core processor DRAM Controller (rev 09)
00:01.0 PCI bridge: Intel Corporation Xeon E3-1200 v2/3rd Gen Core processor PCI Express Root Port (rev 09)
00:14.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family USB xHCI Host Controller (rev 04)
00:16.0 Communication controller: Intel Corporation 7 Series/C216 Chipset Family MEI Controller #1 (rev 04)
00:19.0 Ethernet controller: Intel Corporation 82579LM Gigabit Network Connection (Lewisville) (rev 04)
00:1a.0 USB controller: Intel Corporation 7 Series/C216 Chipset Family USB Enhanced Host Controller #2 (rev 04)
00:1b.0 Audio device: Intel Corporation 7 Series/C216 Chipset Family High Definition Audio Controller (rev 04)
00:1c.0 PCI bridge: Intel Corporation 7 Series/C216 Chipset Family PCI Express Root Port 1 (rev c4)
00:1c.1 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 2 (rev c4)
00:1c.2 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 3 (rev c4)
00:1d.0 USB controller: Intel Corporation 7 Series/C216 Chipset Family USB Enhanced Host Controller #1 (rev 04)
00:1f.0 ISA bridge: Intel Corporation QM77 Express Chipset LPC Controller (rev 04)
00:1f.2 SATA controller: Intel Corporation 7 Series Chipset Family 6-port SATA Controller [AHCI mode] (rev 04)
00:1f.3 SMBus: Intel Corporation 7 Series/C216 Chipset Family SMBus Controller (rev 04)
01:00.0 VGA compatible controller: NVIDIA Corporation GK107GLM [Quadro K1000M] (rev a1)
01:00.1 Audio device: NVIDIA Corporation GK107 HDMI Audio Controller (rev a1)
02:00.0 System peripheral: Ricoh Co Ltd PCIe SDXC/MMC Host Controller (rev 05)
02:00.3 FireWire (IEEE 1394): Ricoh Co Ltd R5C832 PCIe IEEE 1394 Controller (rev 04)
03:00.0 Network controller: Intel Corporation Centrino Advanced-N 6205 [Taylor Peak] (rev 34)
onesimus /usr/src/linux #

_________________
The MyWord KJV Bible tool is at http://www.elilabs.com/~myword

Foghorn Leghorn is a Warner Bros. cartoon character.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43184
Location: 56N 3W

PostPosted: Tue Feb 19, 2019 5:31 pm    Post subject: Reply with quote

Moriah,

You take the vendor and device ID ond plug it into google.
google search:
USB 1199:9055 Linux


One of the first hits (from Scotland) is https://cateee.net/lkddb/web-lkddb/USB_NET_QMI_WWAN.html
https://cateee.net/lkddb/ is well knows for this.

That says
Code:
CONFIG_USB_NET_QMI_WWAN: QMI WWAN driver for Qualcomm MSM based 3G and LTE modems
General informations

The Linux kernel configuration item CONFIG_USB_NET_QMI_WWAN:

    prompt: QMI WWAN driver for Qualcomm MSM based 3G and LTE modems
    type: tristate
    depends on: CONFIG_USB_USBNET
    defined in drivers/net/usb/Kconfig
    found in Linux kernels: 3.4–3.19, 4.0–4.20, 5.0-rc+HEAD
    modules built: qmi_wwan


Further down the page you will find your 1199:9055 device listed.

So you want CONFIG_USB_NET_QMI_WWAN for your modem, which depends on: CONFIG_USB_USBNET, so that mush be on before you can see CONFIG_USB_NET_QMI_WWAN.

Note the found in Linux kernels: 3.4–3.19, 4.0–4.20, 5.0-rc+HEADso its been an in kernel driver for a long time.


Your bluetooth is not listed. Is it disabled in the BIOS, disabled via a function key combination or even not fitted at all?

-- edit --

Your bluetooth was there and its Broadcom.
Your latest kernel contains CONFIG_BT_BCM=m so, is bluetooth enabled and is the kernel module loaded?
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Moriah
Advocate
Advocate


Joined: 27 Mar 2004
Posts: 2117
Location: Kentucky

PostPosted: Wed Feb 20, 2019 1:31 am    Post subject: Reply with quote

Well, bluetooth was there, but it wasn't enabled. I had to do:
Code:

onesimus /usr/src/linux # /etc/init.d/bluetooth status
 * status: stopped
onesimus /usr/src/linux # /etc/init.d/bluetooth start
 * Starting dbus ...                                                                                                                       [ ok ]
 * Starting bluetooth ...                                                                                                                  [ ok ]
onesimus /usr/src/linux # bluetoothctl
Agent registered
[bluetooth]#


I need to fiddle with the blueooth a bit, but I think I will have a working bt mouse before toolong. :)

I'll go back to the cellular modem after I get bluetooth working completely.

So meanwhile, back to bluetooth. With bluetooth started, bluetoothctl doesn't segfault, but I still have a problem:
Code:

onesimus ~ # bluetoothctl       
Agent registered
[bluetooth]# power on
No default controller available
[bluetooth]#


No amount of help bothers to tell me how to establish a default controller, which I assume is the linux device that talks to all the bluetooth devices, such as my bluetooth mouse.

Why do you suppose it is saying "No default controller available", and what can I do about it?

BTW here is the result of /BT_BCM in menuconfig:
Code:

  | Symbol: BT_BCM [=m]                                                                                                                      | 
  | Type  : tristate                                                                                                                         | 
  |   Defined at drivers/bluetooth/Kconfig:10                                                                                                | 
  |   Depends on: NET [=y] && BT [=m]                                                                                                        | 
  |   Selects: FW_LOADER [=y]                                                                                                                | 
  |   Selected by: BT_HCIBTUSB_BCM [=y] && NET [=y] && BT [=m] && BT_HCIBTUSB [=m] || BT_HCIUART_NOKIA [=n] && NET [=y] && BT [=m] && BT_HCI | 


Should any of the modules above be compiled in, or vice versa?

Bluetooth modules seem to be loaded:
Code:

onesimus /usr/src/linux # lsmod
Module                  Size  Used by
GobiSerial             16384  0
usbserial              40960  1 GobiSerial
btusb                  49152  0
btrtl                  16384  1 btusb
btbcm                  16384  1 btusb
btintel                16384  1 btusb
iwldvm                143360  0
bluetooth             376832  11 btrtl,btintel,btbcm,btusb
ecdh_generic           24576  1 bluetooth
nvidiafb               45056  0
psmouse               110592  0
e1000e                208896  0
vgastate               20480  1 nvidiafb
iwlwifi               172032  1 iwldvm
wmi_bmof               16384  0
battery                20480  0
ac                     16384  0
onesimus /usr/src/linux #

_________________
The MyWord KJV Bible tool is at http://www.elilabs.com/~myword

Foghorn Leghorn is a Warner Bros. cartoon character.
Back to top
View user's profile Send private message
Moriah
Advocate
Advocate


Joined: 27 Mar 2004
Posts: 2117
Location: Kentucky

PostPosted: Wed Feb 20, 2019 8:11 pm    Post subject: Reply with quote

Since I was blocked on bluetooth, I played around with the cellular modem. I was able to build the kernel with the help you gave above so that the cell modem shows up. I tried to connect over it, but it is not giving me the gateway address or the name servers. To save space, here are the relevent files via pastebin:
Code:

onesimus ~ # dmesg | wgetpaste
Your paste can be seen here: https://paste.pound-python.org/show/ZuAOj7wMkh5v5JrbiJAQ/
onesimus ~ # cat /home/rj/sprint_modem.txt | wgetpaste
Your paste can be seen here: https://paste.pound-python.org/show/G1xum48hrJ4LZzpMAS7Q/
onesimus ~ # cat /usr/src/linux/.config | wgetpaste
Your paste can be seen here: https://paste.pound-python.org/show/iHHuxYYQhM50j9PfhLhO/
onesimus ~ #

_________________
The MyWord KJV Bible tool is at http://www.elilabs.com/~myword

Foghorn Leghorn is a Warner Bros. cartoon character.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43184
Location: 56N 3W

PostPosted: Wed Feb 20, 2019 8:35 pm    Post subject: Reply with quote

Moriah,

Your cellar modem is
Code:
wwan0: flags=4098<BROADCAST,MULTICAST>  mtu 1500
        inet 169.254.101.112  netmask 255.255.0.0  broadcast 169.254.255.255

That's new to me. Its got a link local address.

I'm not familiar with these things at all. My dongle shows up as a serial port. I authenticate with the remote end (wvdial or chat) over the serial link then start PPP.

I guess you need to authenticate before you can use the interface but I don't know how.
It might not like to start with other interfaces active ... you might have too many default routes. You may have at most, one default route.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Moriah
Advocate
Advocate


Joined: 27 Mar 2004
Posts: 2117
Location: Kentucky

PostPosted: Wed Feb 20, 2019 8:40 pm    Post subject: Reply with quote

I've had this modem for several years. It's rather "fancy", performing NAT internally, has a web server build inot it, which I can't remember the password for. I have used it under w7, w10, and linux 3.12.21 (using the GobiSerial and GobiNet modules that won't compile under 4.14.83-gentoo. The gobi stuff makes it look like eth1. Here's how I used to start it up:
Code:

#!/bin/bash

# sprint_modem.sh -- connect to the internet with sprint 341u modem

# load kernel driver modules for /dev/ttyUSB[012]
modprobe GobiSerial

# load kernel driver modules for sprint broadband ethernet port
modprobe GobiNet

# connect to ethernet port via dhcp
dhcpcd eth1


The nice website you pointed out earlier shows 2 driver for this chip: one in NAT mode, and the other in direct mode. I prefer the NAT mode, since I don't run a server on my laptop when I'm on the road. When I'm home, I only run sshd on it or maybe a vncserver over ssh.
_________________
The MyWord KJV Bible tool is at http://www.elilabs.com/~myword

Foghorn Leghorn is a Warner Bros. cartoon character.


Last edited by Moriah on Mon Mar 04, 2019 1:22 pm; edited 1 time in total
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43184
Location: 56N 3W

PostPosted: Wed Feb 20, 2019 9:09 pm    Post subject: Reply with quote

Moriah,

Other than the name change to wwan0, that should still work.
GobiSerial is listed in lsmod
GobiNet is not in lsmod. Does that matter?
usbserial is used by GobiSerial too, so it appears as a USB serial port.

The kernel says
Code:
$ grep -i GobiNet -R /usr/src/linux
/usr/src/linux/drivers/net/usb/qmi_wwan.c: * GobiNet driver. The requirement has been verified on an MDM9230


So you need whatever kernel options build that file. I won't be able to chase that down until the weekend.
Reading the Kconfig in that dir may help.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Moriah
Advocate
Advocate


Joined: 27 Mar 2004
Posts: 2117
Location: Kentucky

PostPosted: Wed Feb 20, 2019 9:12 pm    Post subject: Reply with quote

GobiSerial probably should not be in lsmod. Maybe I added it manually trying to get the modem to work. Let me reboot and see if it is there aftr a reboot. If so, I need to get rid of it (I *think*). :?
_________________
The MyWord KJV Bible tool is at http://www.elilabs.com/~myword

Foghorn Leghorn is a Warner Bros. cartoon character.
Back to top
View user's profile Send private message
Moriah
Advocate
Advocate


Joined: 27 Mar 2004
Posts: 2117
Location: Kentucky

PostPosted: Thu Feb 21, 2019 12:45 am    Post subject: Reply with quote

So I do have qmi_wwan in lsmod:
Code:

rj@onesimus ~ $ lsmod | grep \[code\]
qmi_wwan               28672  0
cdc_wdm                20480  1 qmi_wwan
usbnet                 40960  1 qmi_wwan
rj@onesimus ~ $


Here's the whole list:
Code:

rj@onesimus ~ $ lsmod
Module                  Size  Used by
ipt_MASQUERADE         16384  0
nf_nat_masquerade_ipv4    16384  1 ipt_MASQUERADE
ipt_REJECT             16384  0
nf_reject_ipv4         16384  1 ipt_REJECT
xt_tcpudp              16384  0
iptable_nat            16384  0
nf_conntrack_ipv4      16384  1
nf_defrag_ipv4         16384  1 nf_conntrack_ipv4
nf_nat_ipv4            16384  1 iptable_nat
nf_nat                 32768  2 nf_nat_masquerade_ipv4,nf_nat_ipv4
nf_conntrack          114688  5 nf_nat_masquerade_ipv4,nf_conntrack_ipv4,nf_nat,ipt_MASQUERADE,nf_nat_ipv4
iptable_filter         16384  0
ip_tables              24576  2 iptable_filter,iptable_nat
x_tables               40960  5 iptable_filter,xt_tcpudp,ipt_MASQUERADE,ipt_REJECT,ip_tables
btusb                  49152  0
btrtl                  16384  1 btusb
btbcm                  16384  1 btusb
iwldvm                143360  0
btintel                16384  1 btusb
qmi_wwan               28672  0
bluetooth             376832  11 btrtl,btintel,btbcm,btusb
cdc_wdm                20480  1 qmi_wwan
psmouse               110592  0
usbnet                 40960  1 qmi_wwan
wmi_bmof               16384  0
nvidiafb               45056  0
ecdh_generic           24576  1 bluetooth
mii                    16384  1 usbnet
iwlwifi               172032  1 iwldvm
e1000e                208896  0
vgastate               20480  1 nvidiafb
battery                20480  0
ac                     16384  0
rj@onesimus ~ $


I can set its ip address using dhcpcd, but dhcpcd doesn't receive a route of gateway. I know this worked with the old GobiNet drive under the 3.12.21 kernel, so its not the hardware. I'm thinking I need another module, or an application program or something. Here is the menuconfig output from /QMI_WWAN:
Code:

  | Symbol: USB_NET_QMI_WWAN [=m]                                                                               | 
  | Type  : tristate                                                                                            | 
  | Prompt: QMI WWAN driver for Qualcomm MSM based 3G and LTE modems                                            | 
  |   Location:                                                                                                 | 
  |     -> Device Drivers                                                                                       | 
  |       -> Network device support (NETDEVICES [=y])                                                           | 
  | (1)     -> USB Network Adapters (USB_NET_DRIVERS [=m])                                                      | 
  |   Defined at drivers/net/usb/Kconfig:519                                                                    | 
  |   Depends on: NETDEVICES [=y] && USB_NET_DRIVERS [=m] && USB_USBNET [=m]                                    | 
  |   Selects: USB_WDM [=m]                                                                                     | 


From https://cateee.net/lkddb/web-lkddb/USB_NET_QMI_WWAN.html we see:
Quote:

General informations

The Linux kernel configuration item CONFIG_USB_NET_QMI_WWAN:

prompt: QMI WWAN driver for Qualcomm MSM based 3G and LTE modems
type: tristate
depends on: CONFIG_USB_USBNET
defined in drivers/net/usb/Kconfig
found in Linux kernels: 3.4–3.19, 4.0–4.20, 5.0-rc+HEAD
modules built: qmi_wwan

Help text

Support WWAN LTE/3G devices based on Qualcomm Mobile Data Modem (MDM) chipsets. Examples of such devices are * Huawei E392/E398

This driver will only drive the ethernet part of the chips. The devices require additional configuration to be usable. Multiple management interfaces with linux drivers are available:

* option: AT commands on /dev/ttyUSBx * cdc-wdm: Qualcomm MSM Interface (QMI) protocol on /dev/cdc-wdmx

A modem manager with support for QMI is recommended.

To compile this driver as a module, choose M here: the module will be called qmi_wwan.


So I am going to go looking for "A modem manager with support for QMI is recommended".

[Moderator edit: fixed [code] tag. Placing a code inside another code can do odd things. -Hu]
_________________
The MyWord KJV Bible tool is at http://www.elilabs.com/~myword

Foghorn Leghorn is a Warner Bros. cartoon character.
Back to top
View user's profile Send private message
Moriah
Advocate
Advocate


Joined: 27 Mar 2004
Posts: 2117
Location: Kentucky

PostPosted: Thu Feb 21, 2019 2:12 am    Post subject: Reply with quote

I found ModemManager, but it uses NetworkManager as a front end. These are pretty fancy tools to manage netwrking.

I installed ModemManager and it was able t see my cellular modem, but apparently one needs NetworkManager as well to actually connect the modem to the internet, so I'm installing that as I type.
_________________
The MyWord KJV Bible tool is at http://www.elilabs.com/~myword

Foghorn Leghorn is a Warner Bros. cartoon character.
Back to top
View user's profile Send private message
Moriah
Advocate
Advocate


Joined: 27 Mar 2004
Posts: 2117
Location: Kentucky

PostPosted: Sun Feb 24, 2019 3:40 am    Post subject: Reply with quote

I have fiddled with mmcli and nmcli till I'm blue in the face, and I still can't get the stupid 341U to connect to Sprint, my cellular provider.

Out of desperation, I pulled the Gentoo boot drive out of my laptop and put in an old windows-7 boot drive. I don't think I've booted that drive for 3 years, so it took 2 hours to update it, but then I was able to connect using the 341u and the sprint provided software that runs under w7. So at least I know the hardware still works.

I will post again tomorrow, after I reboot from the Gentoo boot drive. I'm going to bed now. :mrgreen:
_________________
The MyWord KJV Bible tool is at http://www.elilabs.com/~myword

Foghorn Leghorn is a Warner Bros. cartoon character.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43184
Location: 56N 3W

PostPosted: Sun Feb 24, 2019 10:49 am    Post subject: Reply with quote

Moriah,

When it works, does it use PPP?
Do you have kernel support for PPP ?
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Moriah
Advocate
Advocate


Joined: 27 Mar 2004
Posts: 2117
Location: Kentucky

PostPosted: Sun Feb 24, 2019 12:52 pm    Post subject: Reply with quote

No, it does not use ppp. This device presents an ethernet-like device named wwan0 that gets configured just like a normal eth0 device, with ip addr, netmask, etc. There is a second device that is used to control the connection status, etc. It gets talked to using the qualcom qmi protocol, which is supported by ModemManager and another qmi command line tool (qmcli? I don't remember the name).
_________________
The MyWord KJV Bible tool is at http://www.elilabs.com/~myword

Foghorn Leghorn is a Warner Bros. cartoon character.


Last edited by Moriah on Mon Mar 04, 2019 1:26 pm; edited 1 time in total
Back to top
View user's profile Send private message
Moriah
Advocate
Advocate


Joined: 27 Mar 2004
Posts: 2117
Location: Kentucky

PostPosted: Mon Feb 25, 2019 2:07 pm    Post subject: Reply with quote

I have just split this thread so the bluetooth stuff is now at:

https://forums.gentoo.org/viewtopic-t-1093520-highlight-.html
_________________
The MyWord KJV Bible tool is at http://www.elilabs.com/~myword

Foghorn Leghorn is a Warner Bros. cartoon character.


Last edited by Moriah on Mon Mar 04, 2019 1:28 pm; edited 1 time in total
Back to top
View user's profile Send private message
Moriah
Advocate
Advocate


Joined: 27 Mar 2004
Posts: 2117
Location: Kentucky

PostPosted: Tue Feb 26, 2019 2:05 am    Post subject: Reply with quote

Thank God! I finally got my Netgear 341u usb cellular 4g modem to work! :D

After days of googling and fiddling with it, I have found the combination that works for me. My carrier is Sprint in the US. My system is a Lenovo ThinkPad W530 laptop. I am running kernel 4.14.83-gentoo. First, here are my particulars:
Code:

Module                  Size  Used by
qmi_wwan               28672  0
cdc_wdm                20480  2 qmi_wwan
usbnet                 40960  1 qmi_wwan
mii                    16384  1 usbnet

The above only shows modules needed for the 341u; other modules have not been shown.

Code:

lsusb
Bus 002 Device 014: ID 1199:9055 Sierra Wireless, Inc. Gobi 9x15 Multimode 3G/4G LTE Modem (NAT mode)

likewise, only stuff pertinent to the modem is shown above.

I put together a little step by step directions file to help me remember how to connect;
Code:

Directions to connect Netgear 341u cellular modem to Sprint 4g network
Mon Feb 25 20:04:53 EST 2019
rj@elilabs.com


TO CONNECT
==========

- start ModemManager &

- plug in 341u modem

- mmcli -L
  this will show if 341u is seen, and its index (usually 0)
  index is needed for -m option below to identify which modem you want

- mmcli -m 0 -e
  this enables the modem

- mmcli -m 0 --3gpp-scan
  should show 310xxx - (lte, current) and maybe others available

- mmcli -m 0 --simple-connect="apn=internet"
  this will connect the modem

- mmcli -b 0
  this will show:

  -------------------------
  IPv4 configuration |   method: 'static'
                     |  address: '192.168.4.4'
                     |   prefix: '24'
                     |  gateway: '192.168.4.5'
                     |      DNS: '192.168.4.1'
                     |      MTU: '1500'
  -------------------------

- ifconfig eth0 down
  this will disable the wired ethernet

- ifconfig wlan0 down
  this will disable the wifi

- ifconfig wwan0 192.168.4.4 netmask 255.255.255.0
  this will make the modem addressable

- route add default gw 192.168.4.5
  this sets the gateway

- echo 'nameserver 192.168.4.1' > /etc/resolv.conf
  this established the nameserver

- ping 8.8.8.8
  this shows the connection to the internet is working

- ping news.yahoo.com
  the tests the nameserver


TO DISCONNECT
=============

ifconfig wwan0 down
mmcli -m 0 -d
onesimus ~ # ps ax | grep -i manag
 8127 pts/24   S+     0:00 grep --colour=auto -i manag
12236 pts/24   Sl     0:00 ModemManager
onesimus ~ # kill 12236

unplug the modem

Then do whatever if you need to establish a different internet connection,
else halt the machine.


This was a real pain to work out, mainly because all the manpages for the tools used assume you know all the telephone acronyms, as they use them but don't explain them. There is no good example of how to get it all to work together to establish a working internet connection. Part of it I guess is because these tools have to work with a lot of differrent modems, but it would be nice to have a few examples.

I hope this is helpful to someone else. :mrgreen:
_________________
The MyWord KJV Bible tool is at http://www.elilabs.com/~myword

Foghorn Leghorn is a Warner Bros. cartoon character.


Last edited by Moriah on Mon Mar 04, 2019 1:29 pm; edited 1 time in total
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 13831

PostPosted: Tue Feb 26, 2019 2:42 am    Post subject: Reply with quote

Moriah wrote:
This was a real pain to work out, mainly because all the manpages for the tools used assume you know all the telephone acronyms, as they use them but don't explain them. There is no good example of how to get it all to work together to establish a working internet connection. Part of it I guess is because these tools have to work with a lot of differrent modems, but it would be nice to have a few examples.
If you can spare the time, please consider filing documentation enhancement requests with these projects to have them add explanations (or links to suitable explanations) to those pages, so that future readers have a better experience.
Moriah wrote:
I hope this is helpful to someone else. :mrgreen:
Not to me just now, but I appreciate you taking the time to document the solution. Too often, by the time the next person comes along and needs the information, the original solution has been forgotten and the involved parties have moved on.
Back to top
View user's profile Send private message
Moriah
Advocate
Advocate


Joined: 27 Mar 2004
Posts: 2117
Location: Kentucky

PostPosted: Tue Feb 26, 2019 2:53 am    Post subject: Reply with quote

So neddy helped me with a lot of things on this upgrade/rebuild of my system, but the Netgear 341u usb cellular modem was a real stumper for a while. I had it working with the old GobiNet driver under 3.12.21-gentoo-r1, but that driver is depricated and unmaintained now and doesn't work with the 4 series kernels. I'm really glad I was able to get it to work, as it can be a lifesaver when I'm on the road. Many motels/hotels here in the US have wifii, but it is an unprotected cesspool, and some of the places charge as much as $5.00 US per day to use it. With the cell modem, I usually get a faster connection. The only problem is if the cell signal is weak. It usually is not though.

So how do I go about filing documentation enhancement requests?

The documentation for qmilib and qmicli reads like English was not the guy's native tongue, and he started way down in the details, which made it hard to follow. I give him credit though; at least he wrote some documentation.
_________________
The MyWord KJV Bible tool is at http://www.elilabs.com/~myword

Foghorn Leghorn is a Warner Bros. cartoon character.


Last edited by Moriah on Mon Mar 04, 2019 1:34 pm; edited 1 time in total
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43184
Location: 56N 3W

PostPosted: Tue Feb 26, 2019 9:04 am    Post subject: Reply with quote

Moriah,

Make an account on the wiki ... start writing.

Keep the page in your user area, so only you can edit it while its under development.
Others can read it and add to the talk page.

When you are ready to share write access, move the page.

See the preup and predown functions for openrcs network stuff. You should be able to do it all there.
Using a static setup with a shared resource like a cellar network isn't very safe unless you have been allocated a static setup.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Moriah
Advocate
Advocate


Joined: 27 Mar 2004
Posts: 2117
Location: Kentucky

PostPosted: Tue Feb 26, 2019 11:51 am    Post subject: Reply with quote

That's the information the modem passes to me. The modem has a built-in natting firewall, so the static address is 192.168.4.4, which is a non-routable address for the internet itself. it's safe.

Thanks for the info on writing wiki pages for documentation. :)
_________________
The MyWord KJV Bible tool is at http://www.elilabs.com/~myword

Foghorn Leghorn is a Warner Bros. cartoon character.
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 13831

PostPosted: Wed Feb 27, 2019 2:33 am    Post subject: Reply with quote

I meant try to improve the manpages, since those were what Moriah said were lacking in his earlier attempts. Composing on the Wiki and getting consensus could be a good starting point before proposing manpage improvements back to the upstream projects. As for how to change those, that depends on the project. Usually, it's handled like any other bug report. Tell what you found in the manpage. Explain why it was not sufficient. Describe what you would like to see changed. If you can propose specific improved wording, that is often helpful.
Back to top
View user's profile Send private message
Moriah
Advocate
Advocate


Joined: 27 Mar 2004
Posts: 2117
Location: Kentucky

PostPosted: Thu Feb 28, 2019 12:13 am    Post subject: Reply with quote

The man page is fine for a man page, but what is needed is a companion HowTo.
_________________
The MyWord KJV Bible tool is at http://www.elilabs.com/~myword

Foghorn Leghorn is a Warner Bros. cartoon character.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Goto page Previous  1, 2, 3
Page 3 of 3

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum