Jump to content

Alright... I need help.


ibrokeit
 Share

Recommended Posts

I've been lurking here for a few years now and this is the first problem I've run in to I couldn't fix myself by searching. I'm trying to get my Novatel mifi5792 to tether with my MKIV. In searching I've found "how" to add a 3g modem, however, I don't have the right configuration settings.

VId : pid 1410:b009 Novatel Wireless

*1410:b009*) echo "Novatel Mifi5792 detected. Attempting mode switch"
uci delete network.wan2
uci set network.wan2=interface
uci set network.wan2.ifname=ppp0
uci set network.wan2.proto=3g
uci set network.wan2.service= #what goes here for AT&T? I've tried umts, cdma...
uci set network.wan2.device=/dev/ttyUSB0
uci set network.wan2.apn= # same question: pta, wap.cingular. etc...
uci set network.wan2.username= #blank
uci set network.wan2.password= #blank
uci set network.wan2.defaultroute=1
uci commit network
usb_modeswitch -v 1410 -p b009 -V 1410 -P b009 -M 5553424312345678000000000000061b000000020000000000000000000000 -n 1 -s 20 #unsure if this line is correct. and what is that long number?
sleep 10; rmmod usbserial
sleep 3; insmod usbserial vendor=0x1410 product=0xb009 #unsure of this line
sleep 5; /etc/init.d/firewall disable; /etc/init.d/firewall stop
logger "3G: firewall stopped"
iptables -t nat -A POSTROUTING -s 172.16.42.0/24 -o 3g-wan2 -j MASQUERADE
iptables -A FORWARD -s 172.16.42.0/24 -o 3g-wan2 -j ACCEPT
iptables -A FORWARD -d 172.16.42.0/24 -m state --state ESTABLISHED,RELATED -i 3g-wan2 -j ACCEPT

I'm not looking to be spoon fed. I'd be satisfied with someone just pointing me in the right direction. At this point, I'm just throwing rocks in the dark.

Edited by ibrokeit
Link to comment
Share on other sites

How I got here. I found a similar Novatel configuration in the 3g script and switched out the pid and vid I got from lsusb. Then tried changing the service and apn.

My most recent attempt using these settings.

*1410:b009*) echo "Novatel Mifi5792 detected. Attempting mode switch"
uci delete network.wan2
uci set network.wan2=interface
uci set network.wan2.ifname=ppp0
uci set network.wan2.proto=3g
uci set network.wan2.service= umts
uci set network.wan2.device=/dev/ttyUSB0
uci set network.wan2.apn=wap.cingluar
uci set network.wan2.username=
uci set network.wan2.password=
uci set network.wan2.defaultroute=1
uci commit network
usb_modeswitch -v 1410 -p b009 -V 1410 -P 6002 -M 5553424312345678000000000000061b000000020000000000000000000000 -n 1 -s 20
sleep 10; rmmod usbserial
sleep 3; insmod usbserial vendor=0x1410 product=0x6002
sleep 5; /etc/init.d/firewall disable; /etc/init.d/firewall stop
logger "3G: firewall stopped"
iptables -t nat -A POSTROUTING -s 172.16.42.0/24 -o 3g-wan2 -j MASQUERADE
iptables -A FORWARD -s 172.16.42.0/24 -o 3g-wan2 -j ACCEPT
iptables -A FORWARD -d 172.16.42.0/24 -m state --state ESTABLISHED,RELATED -i 3g-wan2 -j ACCEPT

The log after reboot:

00:01:30 Pineapple user.info sysinit: setting up led WLAN
00:01:30 Pineapple user.info sysinit: setting up led WAN
00:01:30 Pineapple user.info sysinit: setting up led USB
00:01:30 Pineapple user.info sysinit: setting up led LAN
00:01:29 Pineapple user.info sysinit: No lease, failing
00:01:26 Pineapple user.info sysinit: Sending discover...
00:01:23 Pineapple user.info sysinit: Sending discover...
00:01:20 Pineapple user.notice root: 3G: firewall stopped
00:01:20 Pineapple user.info sysinit: udhcpc (v1.19.4) started
00:01:20 Pineapple user.info sysinit: Sending discover...
00:01:20 Pineapple user.info sysinit: /pineapple/3g/3g.sh: line 181: /etc/init.d/firewall: not found
00:01:20 Pineapple user.info sysinit: /pineapple/3g/3g.sh: line 181: /etc/init.d/firewall: not found
00:01:15 Pineapple kern.info kernel: [ 75.420000] usbserial: USB Serial support registered for generic
00:01:15 Pineapple kern.info kernel: [ 75.420000] usbcore: registered new interface driver usbserial_generic
00:01:15 Pineapple kern.info kernel: [ 75.410000] usbcore: registered new interface driver usbserial
00:01:12 Pineapple kern.info kernel: [ 72.370000] usbcore: deregistering interface driver usbserial
00:01:12 Pineapple kern.info kernel: [ 72.360000] usbserial: USB Serial deregistering driver generic
00:01:12 Pineapple kern.info kernel: [ 72.360000] usbcore: deregistering interface driver usbserial_generic
00:01:12 Pineapple kern.info kernel: [ 72.000000] br-lan: port 1(eth0) entered forwarding state
00:01:10 Pineapple kern.info kernel: [ 70.000000] eth0: link up (1000Mbps/Full duplex)
00:01:10 Pineapple kern.info kernel: [ 70.000000] br-lan: port 1(eth0) entered forwarding state
00:01:10 Pineapple kern.info kernel: [ 70.000000] br-lan: port 1(eth0) entered forwarding state
00:01:08 Pineapple kern.info kernel: [ 68.500000] eth0: link down
00:01:08 Pineapple kern.info kernel: [ 68.500000] br-lan: port 1(eth0) entered disabled state
00:01:02 Pineapple user.info sysinit: Novatel MiFi 5792 (AT&T) detected. Attempting mode switch
00:01:02 Pineapple user.info sysinit: Looking for target devices ...
00:01:02 Pineapple user.info sysinit: Looking for default devices ...
00:01:02 Pineapple user.info sysinit: 1410:b009 1d6b:0002
00:01:02 Pineapple user.info sysinit: No devices in target mode or class found
00:01:02 Pineapple user.info sysinit: No devices in default mode found. Nothing to do. Bye.
00:01:01 Pineapple kern.info kernel: [ 61.480000] br-lan: port 1(eth0) entered forwarding state
00:01:00 Pineapple user.notice root: 3G: Connection Script here, searching for modems
00:01:00 Pineapple user.info sysinit: Searching for attached 3G Modems
00:01:00 Pineapple user.info sysinit: Failed to connect to hostapd - wpa_ctrl_open: No such file or directory
00:00:59 Pineapple user.info sysinit: Command failed: Operation not supported
00:00:59 Pineapple kern.info kernel: [ 59.480000] eth0: link up (1000Mbps/Full duplex)
00:00:59 Pineapple kern.info kernel: [ 59.480000] br-lan: port 1(eth0) entered forwarding state
00:00:59 Pineapple kern.info kernel: [ 59.480000] br-lan: port 1(eth0) entered forwarding state
00:00:58 Pineapple user.info sysinit: command failed: Device or resource busy (-16)
00:00:57 Pineapple user.notice dnsmasq: found already running DHCP-server on interface 'br-lan' refusing to start, use 'option force 1' to override
00:00:57 Pineapple user.info sysinit: PHY for wifi device radio1 not found
00:00:57 Pineapple user.info sysinit: PHY for wifi device radio1 not found
00:00:57 Pineapple kern.info kernel: [ 57.980000] eth0: link down
00:00:57 Pineapple kern.info kernel: [ 57.980000] br-lan: port 1(eth0) entered disabled state
00:00:57 Pineapple daemon.info dnsmasq[1453]: using nameserver 8.8.8.8#53
00:00:57 Pineapple daemon.info dnsmasq[1453]: using local addresses only for domain lan
00:00:57 Pineapple daemon.info dnsmasq[1453]: using local addresses only for domain lan
00:00:57 Pineapple daemon.info dnsmasq[1453]: started, version 2.62 cachesize 150
00:00:57 Pineapple daemon.info dnsmasq[1453]: reading /tmp/resolv.conf.auto
00:00:57 Pineapple daemon.info dnsmasq[1453]: read /etc/hosts - 1 addresses
00:00:57 Pineapple daemon.info dnsmasq[1453]: compile time options: IPv6 GNU-getopt no-DBus no-i18n no-IDN DHCP no-DHCPv6 no-Lua TFTP no-conntrack
00:00:56 Pineapple user.notice dnsmasq: DNS rebinding protection is active, will discard upstream RFC1918 responses!
00:00:56 Pineapple user.notice dnsmasq: Allowing 127.0.0.0/8 responses
00:00:53 Pineapple authpriv.info dropbear[1389]: Not backgrounding
00:00:52 Pineapple user.info sysinit: Command failed: Operation not supported
00:00:52 Pineapple daemon.notice netifd: wan (917): Sending discover...
00:00:52 Pineapple cron.info crond[1381]: crond: crond (busybox 1.19.4) started, log level 5
00:00:50 Pineapple user.info sysinit: command failed: Device or resource busy (-16)
00:00:50 Pineapple user.info sysinit: PHY for wifi device radio1 not found
00:00:49 Pineapple user.info sysinit: PHY for wifi device radio1 not found
00:00:49 Pineapple user.info sysinit: PHY for wifi device radio1 not found
00:00:49 Pineapple daemon.notice netifd: wan (917): Sending discover...
00:00:47 Pineapple kern.info kernel: [ 47.860000] br-lan: port 1(eth0) entered forwarding state
00:00:46 Pineapple daemon.notice netifd: wan (917): Sending discover...
00:00:46 Pineapple daemon.notice netifd: Interface 'wan2' is now down
00:00:45 Pineapple kern.info kernel: [ 45.860000] eth0: link up (1000Mbps/Full duplex)
00:00:45 Pineapple kern.info kernel: [ 45.860000] br-lan: port 1(eth0) entered forwarding state
00:00:45 Pineapple kern.info kernel: [ 45.860000] br-lan: port 1(eth0) entered forwarding state
00:00:45 Pineapple kern.info kernel: [ 45.260000] device eth0 entered promiscuous mode
00:00:45 Pineapple daemon.notice netifd: wan (917): udhcpc (v1.19.4) started
00:00:45 Pineapple daemon.notice netifd: Interface 'loopback' is now up
00:00:45 Pineapple daemon.notice netifd: Interface 'lan' is now up
00:00:42 Pineapple user.notice usb-modeswitch: 1-1:1.1: Manufacturer=Novatel_Wireless Product=MiFi_5792 Serial=0123456789ABCDEF
00:00:42 Pineapple user.notice usb-modeswitch: 1-1:1.0: Manufacturer=Novatel_Wireless Product=MiFi_5792 Serial=0123456789ABCDEF
00:00:41 Pineapple user.notice usb-modeswitch: 1-0:1.0: Manufacturer=Linux_3.7.9_ehci_hcd Product=Generic_Platform_EHCI_Controller Serial=ehci-platform
00:00:40 Pineapple kern.warn kernel: [ 0.680000] m25p80 spi0.0: found mx25l6405d, expected m25p80
00:00:40 Pineapple kern.notice kernel: [ 10.780000] SCSI subsystem initialized
00:00:40 Pineapple kern.notice kernel: [ 9.910000] jffs2: notice: (460) jffs2_build_xattr_subsystem: complete building xattr subsystem, 1 of xdatum (1 unchecked, 0 orphan) and 16 of xref (0 dead, 5 orphan) found.
00:00:40 Pineapple kern.notice kernel: [ 2.930000] Bridge firewalling registered
00:00:40 Pineapple kern.notice kernel: [ 0.750000] 0x0000007f0000-0x000000800000 : "art"
00:00:40 Pineapple kern.notice kernel: [ 0.750000] 0x000000050000-0x0000007e0000 : "firmware"
00:00:40 Pineapple kern.notice kernel: [ 0.740000] 0x0000007e0000-0x0000007f0000 : "nvram"
00:00:40 Pineapple kern.notice kernel: [ 0.740000] 0x000000650000-0x0000007e0000 : "kernel"
00:00:40 Pineapple kern.notice kernel: [ 0.730000] 0x000000550000-0x000000650000 : "rootfs_data"
00:00:40 Pineapple kern.notice kernel: [ 0.720000] mtd: partition "rootfs" set to be root filesystem
00:00:40 Pineapple kern.notice kernel: [ 0.710000] 0x000000050000-0x000000650000 : "rootfs"
00:00:40 Pineapple kern.notice kernel: [ 0.700000] 0x000000040000-0x000000050000 : "u-boot-env"
00:00:40 Pineapple kern.notice kernel: [ 0.700000] 0x000000000000-0x000000040000 : "u-boot"
00:00:40 Pineapple kern.notice kernel: [ 0.690000] Creating 7 MTD partitions on "spi0.0":
00:00:40 Pineapple kern.notice kernel: [ 0.690000] 7 cmdlinepart partitions found on MTD device spi0.0
00:00:40 Pineapple kern.info kernel: [ 35.280000] usbcore: registered new interface driver rtl8187
00:00:40 Pineapple kern.info kernel: [ 35.130000] usbcore: registered new interface driver rt73usb
00:00:40 Pineapple kern.info kernel: [ 33.740000] cfg80211: (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
00:00:40 Pineapple kern.info kernel: [ 33.740000] cfg80211: (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
00:00:40 Pineapple kern.info kernel: [ 33.730000] cfg80211: (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
00:00:40 Pineapple kern.info kernel: [ 33.720000] cfg80211: (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
00:00:40 Pineapple kern.info kernel: [ 33.710000] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
00:00:40 Pineapple kern.info kernel: [ 33.710000] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
00:00:40 Pineapple kern.info kernel: [ 33.700000] cfg80211: World regulatory domain updated:
00:00:40 Pineapple kern.info kernel: [ 33.700000] cfg80211: Calling CRDA to update world regulatory domain
00:00:40 Pineapple kern.info kernel: [ 33.600000] compat.git: wireless-testing.git
00:00:40 Pineapple kern.info kernel: [ 33.590000] Compat-drivers backport release: compat-drivers-2013-01-21-1
00:00:40 Pineapple kern.info kernel: [ 33.590000] Backport based on wireless-testing.git master-2013-02-22
00:00:40 Pineapple kern.info kernel: [ 32.680000] eth0: link down
00:00:40 Pineapple kern.info kernel: [ 12.260000] usb 1-1: new high-speed USB device number 2 using ehci-platform
00:00:40 Pineapple kern.info kernel: [ 12.160000] USB Mass Storage support registered.
00:00:40 Pineapple kern.info kernel: [ 12.150000] usbcore: registered new interface driver usb-storage
00:00:40 Pineapple kern.info kernel: [ 12.150000] Initializing USB Mass Storage driver...
00:00:40 Pineapple kern.info kernel: [ 12.020000] uhci_hcd: USB Universal Host Controller Interface driver
00:00:40 Pineapple kern.info kernel: [ 11.910000] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
00:00:40 Pineapple kern.info kernel: [ 11.780000] hub 1-0:1.0: USB hub found
00:00:40 Pineapple kern.info kernel: [ 11.780000] hub 1-0:1.0: 1 port detected
00:00:40 Pineapple kern.info kernel: [ 11.780000] ehci-platform ehci-platform: USB 2.0 started, EHCI 1.00
00:00:40 Pineapple kern.info kernel: [ 11.760000] ehci-platform ehci-platform: irq 3, io mem 0x1b000000
00:00:40 Pineapple kern.info kernel: [ 11.720000] ehci-platform ehci-platform: new USB bus registered, assigned bus number 1
00:00:40 Pineapple kern.info kernel: [ 11.720000] ehci-platform ehci-platform: Generic Platform EHCI Controller
00:00:40 Pineapple kern.info kernel: [ 11.710000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
00:00:40 Pineapple kern.info kernel: [ 11.100000] usbcore: registered new device driver usb
00:00:40 Pineapple kern.info kernel: [ 11.090000] usbcore: registered new interface driver usbfs
00:00:40 Pineapple kern.info kernel: [ 11.090000] usbcore: registered new interface driver hub
00:00:40 Pineapple kern.info kernel: [ 7.140000] eth0: link up (1000Mbps/Full duplex)
00:00:40 Pineapple kern.info kernel: [ 2.950000] Freeing unused kernel memory: 220k freed
00:00:40 Pineapple kern.info kernel: [ 2.940000] VFS: Mounted root (squashfs filesystem) readonly on device 31:2.
00:00:40 Pineapple kern.info kernel: [ 2.930000] 8021q: 802.1Q VLAN Support v1.8
00:00:40 Pineapple kern.info kernel: [ 2.920000] TCP: cubic registered
00:00:40 Pineapple kern.info kernel: [ 2.920000] NET: Registered protocol family 17
00:00:40 Pineapple kern.info kernel: [ 2.910000] ag71xx ag71xx.0 eth1: connected to PHY at ag71xx-mdio.1:04 [uid=004dd041, driver=Generic PHY]
00:00:40 Pineapple kern.info kernel: [ 2.360000] eth1: Atheros AG71xx at 0xb9000000, irq 4, mode:MII
00:00:40 Pineapple kern.info kernel: [ 1.330000] eth0: Found an AR7240/AR9330 built-in switch
00:00:40 Pineapple kern.info kernel: [ 0.780000] eth0: Atheros AG71xx at 0xba000000, irq 5, mode:GMII
00:00:40 Pineapple kern.info kernel: [ 0.770000] libphy: ag71xx_mdio: probed
00:00:40 Pineapple kern.info kernel: [ 0.720000] mtd: partition "rootfs_data" created automatically, ofs=550000, len=100000
00:00:40 Pineapple kern.info kernel: [ 0.680000] m25p80 spi0.0: mx25l6405d (8192 Kbytes)
00:00:40 Pineapple kern.info kernel: [ 0.670000] ath79-spi ath79-spi: master is unqueued, this is deprecated
00:00:40 Pineapple kern.info kernel: [ 0.660000] console [ttyATH0] enabled, bootconsole disabled
00:00:40 Pineapple kern.info kernel: [ 0.650000] ar933x-uart: ttyATH0 at MMIO 0x18020000 (irq = 11) is a AR933X UART
00:00:40 Pineapple kern.info kernel: [ 0.640000] io scheduler noop registered
00:00:40 Pineapple kern.info kernel: [ 0.640000] io scheduler deadline registered (default)
00:00:40 Pineapple kern.info kernel: [ 0.640000] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
00:00:40 Pineapple kern.info kernel: [ 0.630000] msgmni has been set to 56
00:00:40 Pineapple kern.info kernel: [ 0.620000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
00:00:40 Pineapple kern.info kernel: [ 0.620000] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) © 2001-2006 Red Hat, Inc.
00:00:40 Pineapple kern.info kernel: [ 0.600000] NET: Registered protocol family 1
00:00:40 Pineapple kern.info kernel: [ 0.590000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
00:00:40 Pineapple kern.info kernel: [ 0.580000] UDP hash table entries: 256 (order: 0, 4096 bytes)
00:00:40 Pineapple kern.info kernel: [ 0.580000] TCP: reno registered
00:00:40 Pineapple kern.info kernel: [ 0.570000] TCP: Hash tables configured (established 1024 bind 1024)
00:00:40 Pineapple kern.info kernel: [ 0.570000] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
00:00:40 Pineapple kern.info kernel: [ 0.560000] TCP established hash table entries: 1024 (order: 1, 8192 bytes)
00:00:40 Pineapple kern.info kernel: [ 0.560000] NET: Registered protocol family 2
00:00:40 Pineapple kern.info kernel: [ 0.550000] bio: create slab at 0
00:00:40 Pineapple kern.info kernel: [ 0.550000] Switching to clocksource MIPS
00:00:40 Pineapple kern.debug kernel: [ 35.320000] ath: EEPROM regdomain: 0x833a
00:00:40 Pineapple kern.debug kernel: [ 6.570000] Registered led device: alfa:blue:wps
00:00:40 Pineapple kern.debug kernel: [ 6.570000] Registered led device: alfa:blue:wlan
00:00:40 Pineapple kern.debug kernel: [ 6.570000] Registered led device: alfa:blue:wan
00:00:40 Pineapple kern.debug kernel: [ 6.570000] Registered led device: alfa:blue:usb
00:00:40 Pineapple kern.debug kernel: [ 6.570000] Registered led device: alfa:blue:lan
00:00:40 Pineapple kern.debug kernel: [ 0.600000] PCI: CLS 0 bytes, default 32

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...