1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

FreedomPop U770 4G LTE RDNIS Advanced Tomato (shibby)

Discussion in 'Tomato Firmware' started by chrisls, Feb 8, 2018.

  1. chrisls

    chrisls Reformed Router Member

    Hello everyone,

    Looking for a little bit of help here. I'm trying to use a USB modem that uses RDNIS driver on Advanced Tomato v140. It looks like from lsmod I have the following drivers loaded.
    mii.ko
    usbnet.ko
    cdc_ether.ko
    rndis_host.ko

    however I don't see any new network interface. I'll post more details from dmesg when I get home but just looking to see if anyone has any experience with this.

    FYI: I'm using a netgear R7000 router.
     
  2. chrisls

    chrisls Reformed Router Member

    ok so I ran dmesg and came up with this when I plug in the U770. I was expecting to see a CDC_Ether device
    usb 2-2: new high speed USB device using ehci_hcd and address 108
    usb 2-2: USB disconnect, address 108
    usb 2-2: new high speed USB device using ehci_hcd and address 109
    usb 2-2: USB disconnect, address 109
    usb 2-2: new high speed USB device using ehci_hcd and address 110
     
  3. chrisls

    chrisls Reformed Router Member

    Just some more info when I cat /var/log/messages I get this:
    Feb 8 22:12:38 drouter kern.info kernel: usb 2-2: new high speed USB device using ehci_hcd and address 111
    Feb 8 22:12:39 drouter user.debug hotplug[9360]: Attached USB device 2-2:1.0 [INTERFACE=224/1/3 PRODUCT=1fac/232/228]
    Feb 8 22:12:39 drouter user.debug hotplug[9361]: Attached USB device 2-2:1.1 [INTERFACE=10/0/0 PRODUCT=1fac/232/228]
    Feb 8 22:12:43 drouter kern.info kernel: usb 2-2: USB disconnect, address 111
    Feb 8 22:12:44 drouter kern.info kernel: usb 2-2: new high speed USB device using ehci_hcd and address 112
    Feb 8 22:12:44 drouter user.debug hotplug[9384]: Attached USB device 2-2:1.0 [INTERFACE=224/1/3 PRODUCT=1fac/232/228]
    Feb 8 22:12:44 drouter user.debug hotplug[9387]: Attached USB device 2-2:1.1 [INTERFACE=10/0/0 PRODUCT=1fac/232/228]
    Feb 8 22:12:54 drouter kern.info kernel: usb 2-2: USB disconnect, address 112
    Feb 8 22:12:55 drouter kern.info kernel: usb 2-2: new high speed USB device using ehci_hcd and address 113
    Feb 8 22:12:55 drouter user.debug hotplug[9409]: Attached USB device 2-2:1.0 [INTERFACE=224/1/3 PRODUCT=1fac/232/228]
    Feb 8 22:12:55 drouter user.debug hotplug[9410]: Attached USB device 2-2:1.1 [INTERFACE=10/0/0 PRODUCT=1fac/232/228]
     
  4. chrisls

    chrisls Reformed Router Member

    ok so I don't know if this helps but if I plug in the same USB 4G LTE Modem into my Ubuntu 16.04.1 LTS I get the following when I run dmesg.

    371.554707] usb 3-1: new high-speed USB device number 2 using xhci_hcd
    [ 371.685590] usb 3-1: New USB device found, idVendor=1fac, idProduct=0232
    [ 371.685598] usb 3-1: New USB device strings: Mfr=2, Product=3, SerialNumber=4
    [ 371.685602] usb 3-1: Product: Franklin 700 USB Modem
    [ 371.685605] usb 3-1: Manufacturer: Franklin Wireless Corp.
    [ 371.685608] usb 3-1: SerialNumber: 0123456789ABCDEF
    [ 371.738553] usbcore: registered new interface driver cdc_ether
    [ 371.742809] rndis_host 3-1:1.0 usb0: register 'rndis_host' at usb-0000:00:14.0-1, RNDIS device, 02:63:49:00:00:00
    [ 371.742984] usbcore: registered new interface driver rndis_host
    [ 371.747058] rndis_host 3-1:1.0 enp0s20u1: renamed from usb0
    [ 371.780164] IPv6: ADDRCONF(NETDEV_UP): enp0s20u1: link is not ready
    [ 375.490432] do_trap: 36 callbacks suppressed
    [ 375.490458] traps: pool[2749] trap int3 ip:7fbb1254ba6b sp:7fbaef4855b0 error:0
    [ 376.402664] usb 3-1: USB disconnect, device number 2
    [ 376.402760] rndis_host 3-1:1.0 enp0s20u1: unregister 'rndis_host' usb-0000:00:14.0-1, RNDIS device
    [ 376.722654] usb 3-1: new high-speed USB device number 3 using xhci_hcd
    [ 376.909243] usb 3-1: New USB device found, idVendor=1fac, idProduct=0232
    [ 376.909248] usb 3-1: New USB device strings: Mfr=2, Product=3, SerialNumber=4
    [ 376.909250] usb 3-1: Product: Franklin 700 USB Modem
    [ 376.909253] usb 3-1: Manufacturer: Franklin Wireless Corp.
    [ 376.909255] usb 3-1: SerialNumber: 0123456789ABCDEF
    [ 376.928474] rndis_host 3-1:1.0 usb0: register 'rndis_host' at usb-0000:00:14.0-1, RNDIS device, 02:63:49:00:00:00
    [ 376.948021] rndis_host 3-1:1.0 enp0s20u1: renamed from usb0
    [ 376.988715] IPv6: ADDRCONF(NETDEV_UP): enp0s20u1: link is not ready
    [ 387.607909] usb 3-1: USB disconnect, device number 3
    [ 387.608021] rndis_host 3-1:1.0 enp0s20u1: unregister 'rndis_host' usb-0000:00:14.0-1, RNDIS device
    [ 387.902571] usb 3-1: new high-speed USB device number 4 using xhci_hcd
    [ 388.032108] usb 3-1: New USB device found, idVendor=1fac, idProduct=0232
    [ 388.032112] usb 3-1: New USB device strings: Mfr=2, Product=3, SerialNumber=4
    [ 388.032114] usb 3-1: Product: Franklin 700 USB Modem
    [ 388.032115] usb 3-1: Manufacturer: Franklin Wireless Corp.
    [ 388.032117] usb 3-1: SerialNumber: 0123456789ABCDEF
    [ 388.051041] rndis_host 3-1:1.0 usb0: register 'rndis_host' at usb-0000:00:14.0-1, RNDIS device, 02:63:49:00:00:00
    [ 388.065940] rndis_host 3-1:1.0 enp0s20u1: renamed from usb0
    [ 392.837968] IPv6: ADDRCONF(NETDEV_UP): enp0s20u1: link is not ready
     
  5. pomidor1

    pomidor1 Networkin' Nut Member

    Last edited: Feb 9, 2018
  6. chrisls

    chrisls Reformed Router Member

    @pomidor1

    Thank you for the reply, when I run the swtich3g I'm getting the following output:

    root@drouter:/jffs# switch3g
    ls: /etc/usb_modeswitch.d/1d6b:0003: No such file or directory
    ls: /etc/usb_modeswitch.d/1d6b:0002: No such file or directory
    ls: /etc/usb_modeswitch.d/1d6b:0001: No such file or directory
    ls: /etc/usb_modeswitch.d/1058:1100: No such file or directory
    ls: /etc/usb_modeswitch.d/1fac:0232: No such file or directory
    rm: can't remove '/tmp/switch3g.lock': No such file or directory
    rm: can't remove '/tmp/switch3g.lock': No such file or directory

    also I get the following after running the rest of the commands. I did wait about 5 sec. between running the commands.

    root@drouter:/jffs# PRODUCT=`cat /tmp/3g.detect`
    root@drouter:/jffs# modprobe cdc_ncm
    root@drouter:/jffs# MODE="AT^NDISDUP=1,1,\"internet\"" gcom -d /dev/ttyUSB0 -s /
    etc/gcom/setmode.gcom
    Trying to set mode
    Timeout setting WWAN mode!

    And this is the output from dmesg: after running the commands above.

    usb 2-2: USB disconnect, address 6
    usb 2-2: new high speed USB device using ehci_hcd and address 7
    usbcore: registered new interface driver cdc_acm
    cdc_acm: v0.26:USB Abstract Control Model driver for USB modems and ISDN adapters
    usbcore: registered new interface driver usbserial
    USB Serial support registered for generic
    usbcore: registered new interface driver usbserial_generic
    usbserial: USB Serial Driver core
    USB Serial support registered for GSM modem (1-port)
    usbcore: registered new interface driver option
    option: v0.7.2:USB Driver for GSM modems
    USB Serial support registered for Sierra USB modem
    usbcore: registered new interface driver sierra
    sierra: v.1.7.40:USB Driver for Sierra Wireless USB modems
    usbcore: deregistering interface driver sierra
    USB Serial deregistering driver Sierra USB modem
    usbcore: deregistering interface driver option
    USB Serial deregistering driver GSM modem (1-port)
    usbcore: deregistering interface driver usbserial_generic
    USB Serial deregistering driver generic
    usbcore: deregistering interface driver usbserial
    usbcore: deregistering interface driver cdc_acm
    usbcore: registered new interface driver usbserial
    USB Serial support registered for generic
    usbcore: registered new interface driver usbserial_generic
    usbserial: USB Serial Driver core
    usbcore: deregistering interface driver usbserial_generic
    USB Serial deregistering driver generic
    usbcore: deregistering interface driver usbserial
    usbcore: registered new interface driver usbserial
    USB Serial support registered for generic
    usbcore: registered new interface driver usbserial_generic
    usbserial: USB Serial Driver core
    usbcore: deregistering interface driver usbserial_generic
    USB Serial deregistering driver generic
    usbcore: deregistering interface driver usbserial
    usbcore: registered new interface driver usbserial
    USB Serial support registered for generic
    usbcore: registered new interface driver usbserial_generic
    usbserial: USB Serial Driver core
    usbcore: deregistering interface driver usbserial_generic
    USB Serial deregistering driver generic
    usbcore: deregistering interface driver usbserial
    usbcore: registered new interface driver usbserial
    USB Serial support registered for generic
    usbcore: registered new interface driver usbserial_generic
    usbserial: USB Serial Driver core
    usbcore: deregistering interface driver usbserial_generic
    USB Serial deregistering driver generic
    usbcore: deregistering interface driver usbserial
    usbcore: registered new interface driver usbserial
    USB Serial support registered for generic
    usbserial_generic 2-2:1.0: Generic device with no bulk out, not allowed.
    usbserial_generic: probe of 2-2:1.0 failed with error -5
    usbserial_generic 2-2:1.1: generic converter detected
    usb 2-2: generic converter now attached to ttyUSB0
    usbcore: registered new interface driver usbserial_generic
    usbserial: USB Serial Driver core
    cdc_ncm: 14-Mar-2012
    usbcore: registered new interface driver cdc_ncm
     
  7. chrisls

    chrisls Reformed Router Member

    Also I did put your commands in init and this is what I got back from dmesg after a reboot:

    usb 2-1: new high speed USB device using ehci_hcd and address 2
    scsi0 : usb-storage 2-1:1.0
    usbcore: registered new interface driver cdc_acm
    cdc_acm: v0.26:USB Abstract Control Model driver for USB modems and ISDN adapters
    device vlan1 entered promiscuous mode
    device eth0 entered promiscuous mode
    usbcore: registered new interface driver usbserial
    USB Serial support registered for generic
    usbcore: registered new interface driver usbserial_generic
    usbserial: USB Serial Driver core
    USB Serial support registered for GSM modem (1-port)
    usbcore: registered new interface driver option
    option: v0.7.2:USB Driver for GSM modems
    USB Serial support registered for Sierra USB modem
    usbcore: registered new interface driver sierra
    sierra: v.1.7.40:USB Driver for Sierra Wireless USB modems

    usbcore: deregistering interface driver sierra
    USB Serial deregistering driver Sierra USB modem
    br0: received packet on eth2 with own address as source address
    sda: sda1
    sd 0:0:0:0: [sda] Assuming drive cache: write through
    sd 0:0:0:0: [sda] Attached SCSI disk
    usbcore: deregistering interface driver option
    USB Serial deregistering driver GSM modem (1-port)
    usbcore: deregistering interface driver usbserial_generic
    USB Serial deregistering driver generic
    usbcore: deregistering interface driver usbserial
    usbcore: deregistering interface driver cdc_acm
    usbcore: registered new interface driver usbserial
    USB Serial support registered for generic
    usbcore: registered new interface driver usbserial_generic
    usbserial: USB Serial Driver core
    usbcore: deregistering interface driver usbserial_generic
    USB Serial deregistering driver generic
    usbcore: deregistering interface driver usbserial
    usbcore: registered new interface driver usbserial
    USB Serial support registered for generic
    usbcore: registered new interface driver usbserial_generic
    usbserial: USB Serial Driver core
    usbcore: deregistering interface driver usbserial_generic
    USB Serial deregistering driver generic
    usbcore: deregistering interface driver usbserial
    usbcore: registered new interface driver usbserial
    USB Serial support registered for generic
    usbcore: registered new interface driver usbserial_generic
    usbserial: USB Serial Driver core
    usbcore: deregistering interface driver usbserial_generic
    USB Serial deregistering driver generic
    usbcore: deregistering interface driver usbserial
    usbcore: registered new interface driver usbserial
    USB Serial support registered for generic
    usbcore: registered new interface driver usbserial_generic
    usbserial: USB Serial Driver core
    ipt_account 0.1.21 : Piotr Gasidlo <quaker@barbara.eu.org>, http://code.google.com/p/ipt-account/
    cdc_ncm: 14-Mar-2012
    usbcore: registered new interface driver cdc_ncm
    usb 2-2: new high speed USB device using ehci_hcd and address 3
    usb 2-2: USB disconnect, address 3
    usb 2-2: new high speed USB device using ehci_hcd and address 4
     
  8. pomidor1

    pomidor1 Networkin' Nut Member

    I'm sorry but I'm not able to help you,
    your problem is similar to that which Shibby solved once, because no one wrote you back then I gave you the lead for further searching
    I'm not an IT specialist ;-)

    \"internet\

    this is APN "internet" in Poland, almost all cell optrators use it, maybe you are different?
     
  9. chrisls

    chrisls Reformed Router Member

    @pomidor1

    No problem and thank you for the information. I will continue to look into this and post anything I find here.
     
  10. chrisls

    chrisls Reformed Router Member

    ok so just notes for myself or if anyone is reading this just more info.

    If I run cat /proc/bus/usb/devices

    T: Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 3 Spd=480 MxCh= 0
    D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
    P: Vendor=1fac ProdID=0230 Rev= 2.28
    S: Manufacturer=Franklin Wireless Corp.
    S: Product=Franklin 700 USB Modem
    S: SerialNumber=0123456789ABCDEF
    C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=500mA
    I:* If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
    E: Ad=81(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
    E: Ad=01(O) Atr=02(Bulk) MxPS= 512 Ivl=125us
     
  11. chrisls

    chrisls Reformed Router Member

    ok so after more digging and using the link @pomidor1 posted looks like this device does need to do some kind of mode switch.

    as you can see from above it looks like we get the one usb interface to register as ttyUSB0

    usbcore: registered new interface driver usbserial
    USB Serial support registered for generic
    usbserial_generic 2-2:1.0: Generic device with no bulk out, not allowed.
    usbserial_generic: probe of 2-2:1.0 failed with error -5
    usbserial_generic 2-2:1.1: generic converter detected
    usb 2-2: generic converter now attached to ttyUSB0
    usbcore: registered new interface driver usbserial_generic
    usbserial: USB Serial Driver core
    cdc_ncm: 14-Mar-2012
    usbcore: registered new interface driver cdc_ncm

    I also noticed from my ubuntu dmesg this:
    [ 371.747058] rndis_host 3-1:1.0 enp0s20u1: renamed from usb0

    which suggests to me that there must be some kind of mode switching going on. Which lead me to do the following:
    root@drouter:/rom/etc/usb_modeswitch.d# ls | grep "1fac"
    1fac:0032
    1fac:0130
    1fac:0150
    1fac:0151
    root@drouter:/rom/etc/usb_modeswitch.d# cat 1fac:0032
    # Franklin Wireless U210 (Variant)
    Configuration=2
    root@drouter:/rom/etc/usb_modeswitch.d# cat 1fac:0130
    # Franklin Wireless U210
    TargetVendor=0x1fac
    TargetProduct=0x0131
    MessageContent="555342431234567824000000800108df200000000000000000000000000000"
    root@drouter:/rom/etc/usb_modeswitch.d# cat 1fac:0150
    # Franklin Wireless U600
    TargetVendor=0x1fac
    TargetProduct=0x0151
    MessageContent="555342431234567824000000800108df200000000000000000000000000000"
    root@drouter:/rom/etc/usb_modeswitch.d# cat 1fac:0151
    # Franklin Wireless U600

    However my device is 1fac:0232 which I did not find an entry for. I'm going to check my Ubuntu box and see if I have something in there that I could use.
     
  12. pedro311

    pedro311 Serious Server Member

    pomidor1 and kille72 like this.
  13. chrisls

    chrisls Reformed Router Member

    @pedro311 Yes great idea, thanks for the link.
     
  14. chrisls

    chrisls Reformed Router Member

  15. chrisls

    chrisls Reformed Router Member

    ok looks like this modem does not need usb_modeswitch it does however look like it auto switches modes on it's own. on first connect it looks like we get two device id's 232 and 228. if we wait and no drivers are loaded it auto dissconects and connects as a 230 device id. and the storage driver is loaded. and it looks like it emulates a cd-rom drive.

    Out of a whim I decided to load up an old router I had a wndr4000 with tomato and I inserted the following modules.
    mii.ko
    usbnet.ko
    cdc_ether.ko
    rndis_host.ko

    after that I pluged in the modem and got a kernel panic. I'm going to play around more with this modem and try some different versions of tomato and the rndis_host driver and see if I can get it to not through the kernel panic.
     
  16. chrisls

    chrisls Reformed Router Member

    So this is when you first plug in the modem.

    T: Bus=02 Lev=01 Prnt=01 Port=01 Cnt=02 Dev#= 4 Spd=480 MxCh= 0
    D: Ver= 2.00 Cls=02(comm.) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
    P: Vendor=1fac ProdID=0232 Rev= 2.28
    S: Manufacturer=Franklin Wireless Corp.
    S: Product=Franklin 700 USB Modem
    S: SerialNumber=0123456789ABCDEF
    C:* #Ifs= 2 Cfg#= 1 Atr=80 MxPwr=500mA
    A: FirstIf#= 0 IfCount= 2 Cls=e0(wlcon) Sub=01 Prot=03
    I:* If#= 0 Alt= 0 #EPs= 1 Cls=e0(wlcon) Sub=01 Prot=03 Driver=(none)
    E: Ad=82(I) Atr=03(Int.) MxPS= 8 Ivl=32ms
    I:* If#= 1 Alt= 0 #EPs= 2 Cls=0a(data ) Sub=00 Prot=00 Driver=(none)
    E: Ad=81(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
    E: Ad=01(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
     
  17. chrisls

    chrisls Reformed Router Member

    ok not sure if this means anything but I was going to attempt to try and force rndis_host to be associated with the vender id and product id for the modem. So I went looking in the sysfs tree and found that in /sys/bus/usb/drivers/ I only had a cdc_ether folder. so I tried to run insmod rndis_host.ko again and still no rndis_host folder in /sys/bus/usb/drivers/ I then took a look at dmesg and noticed when I run insmod cdc_ethere that I get: usbcore: registered new interface driver cdc_ether. I however don't get this or anything like it when I go to insmod rndis_host.ko however the rndis_host shows up in lsmod?

    By the way what I was going to attempt to force the drive association was.

    echo 1fac 0232 > /sys/bus/usb/drivers/rndis_host/new_id
     
  18. chrisls

    chrisls Reformed Router Member

    fyi I got the rndis_host.ko from shibby http://tomato.groov.pl/download/K26ARM/140-MultiWAN/

    Also on my ubuntu box I looked in /sys/bus/usb/drivers and I saw folders for cdc_ether and rndis_host I did a rmmod rndis_host and the cdc_ether folder went away.
     

Share This Page