[OpenWrt Wiki] ADB P.DG A4001N1

an Новости

A Command-line interface

Go to Network, Interfaces.
You can either assign the existing WAN to usb0 like 3.a above, or create a whole new interface if you want to swap between the WAN Ethernet port and your tethering device (such as in a dual-wan fail-over situation). To make changes in the web interface equivalent to the above command line instructions: simply edit the existing default WAN interface, and change the physical device to usb0, then Save & Apply.

Instead, to create a whole new interface, make a new one called TetheringWAN, and bind to it the new *usb0* network device (restart if you do not see it yet. And, for some cases, the new interface may be called ‘*eth1*: check what the log is showing in your case). Set the protocol to DHCP client mode or DHCPv6 client mode if the ISP assigns IPv6, and under the Firewall Settings tab, place it into the WAN zone.
Save changes.

See the following screenshots.
[OpenWrt Wiki] ADB P.DG A4001N1
First page of the Create Interface wizard.
[OpenWrt Wiki] ADB P.DG A4001N1
Firewall tab of the Create Interface Wizard.
Very important to set it as WAN.
[OpenWrt Wiki] ADB P.DG A4001N1
And the end result in the Interfaces page.

After committing the changes the new TetheringWAN should be activated.
Otherwise, restart it with the buttons you find in the Interface page of LuCI web interface.

Once you set up iPhone tethering as per above, you’ll notice several issues:

Save following script to some location that survives reboot, e.g. /etc/lockdown, and execute it after every reboot.
It should keep tethering up and running as long as iPhone is connected.

# Save watchdog scriptmkdir-p/etc/lockdown
cat<<"EOF">/etc/lockdown/watchdog.sh
#!/bin/sh# A small script to make life with iPhone tethering less cumbersome on OpenWrt# Petr Vyskocil, Apr 2020# Public domain
 
# After you successfully allow iPhone tethering, copy files with name like# /var/lib/lockdown/12345678-9ABCDEF012345678.plist to /etc/lockdown/locks.# That way, you won't have to set up trust again after router reboots.if[-e/etc/lockdown/locks ]thenmkdir-p/var/lib/lockdown
    cp-f/etc/lockdown/locks/*/var/lib/lockdown/fi
 
# lockdown records restored, now we can launch usbmuxd. Don't launch it sooner!
usbmuxd
 
# We are up and running now. But unfortunately if your carrier signal is weak, iPhone will# drop connection from time to time and you'd have to unplug and replug USB cable to start tethering# again. Script below automates that activity.
 
# First wait a bit - we just brought the interface up by usbmuxdsleep20
 
# If we see iPhone ethernet interface, try to ping iPhone router's address (172.20.10.1).# When the ping is unsuccessful, rebind iPhone ethernet USB driver and wait for things to settle downwhile :
dofor i in/sys/bus/usb/drivers/ipheth/*:*dotest-e"${i}"||continueping-w3 172.20.10.1 &>/dev/null
        if["${?}"-ne0]; thenecho"${i##*/}">"${i%/*}"/unbind
            echo"${i##*/}">"${i%/*}"/bindsleep20fidonesleep1done
EOF
chmod  x /etc/lockdown/watchdog.sh
 
# Add watchdog script to autostartsed-i-e"$i (/etc/lockdown/watchdog.sh) &"/etc/rc.local

Compile things yourself

If you want to build an own firmware containing support for a UMTS Modem, maybe this BuildHowTo will help you: Wireless router with a 3G dongle and multiwan for failover on Wired, Wireless client (routed) and 3G

Данная статья идеально подойдет для тех пользователей, которые столкнулись с проблемой при подключении роутера на OpenWRT 4g к модему. Речь пойдет не только о настройке модема 3g, lte версии также включены в эту статью.

Installing multiple 3g dongles

You can use many usb 3G dongles with easy using active USB hub.

We assume You have at least one 3g dongle configured and active and You have working internet connection. If not – You’ll need to install modules for 3g support before going to connect any 3g dongle. Check 3gdongle for more information.

1. Connect active USB hub to openWrt router. Check if hub power supply is big enough to power total count of 3g dongles. Roughly You’ll need 500 mAmp per one 3g dongle. Remember that modem can slightly exceed its declared power consumption in HDSPA modes. Be generous and pick USB hub with some power source overhead.

2. Connect all 3g dongles and start.

3. Browse through logread to check if modems are properly recognized and /ttyUSB ports are assigned.

5. You need to configure interfaces. Ive configured first modem modifying existing Wan interface in “/etc/config/network”:

Loadbalancer / multiwan

Заметьте: Похоже multiwan не лучшее решение для 3G модемов в плане стабильности. Модемы не перезапускаются автоматически HealthMonitor-ом. Кроме того, после ручного перезапуска модема, multiwan не будет его использовать до тех пор пока не будет перезапущен сам.

Конфигурационные файлы пары 3G модемов объединенных в multiwan:

Network (default route to 0 and peerdns to 0):

Firewall – add second wan zones

Multiwan – Additionally add ‘option ‘health_monitor’ ‘serial” at the beggining to help healthmonitor check for dropped ppp interface (Proposed by Jolouis).

Router

CFE version 1.0.37-106.24 for A4001N TEF 0002 BCM96328 (32bit,SP,BE)
Build Date: Wed Jan 26 12:59:25 CET 2022 (zu1costast@thorold)
Copyright (C) 2000-2009 Broadcom Corporation.

HS Serial flash device: name MX25L128, id 0xc218 size 16384KB
Total Flash size: 16384K with 4096 sectors
Chip ID: BCM6328B0, MIPS: 320MHz, DDR: 320MHz, Bus: 160MHz
Main Thread: TP0
Memory Test Passed
Total Memory: 33554432 bytes (32MB)
Boot Address: 0xb8000000

Board IP address : 192.168.1.1:ffffff00
Host IP address : 192.168.1.10
Gateway IP address :
Run from flash/host (f/h) : f
Default host run file name : run.bin
Default host flash file name : 2.bin
Boot delay (0-9 seconds) : 9
Board Id (0-4) : 963281T_TEF
Number of MAC Addresses (1-32) : 11
Base MAC Address : 11:22:33:44:55:66
PSI Size (1-64) KBytes : 24
Enable Backup PSI [0|1] : 1
System Log Size (0-256) KBytes : 0
Main Thread Number [0|1] : 0
Voice Board Configuration (0-11) :

*** Press any key to stop auto run (9 seconds) ***
Auto run second count down: 9
web info: Waiting for connection on socket 0.
web info: Waiting for connection on socket 1.
web info: Waiting for connection on socket 2.
web info: Waiting for connection on socket 0.
web info: Waiting for connection on socket 1.
web info: Upload 6818609 bytes, Broadcom image format.
web info: Waiting for connection on socket 0.

Flashing root file system and kernel at 0xb8800000: ……………………………………………..

.
*** Image flash done *** !

Resetting board…HELO
CPUI
L1CI
DRAM
—-
PHYS
ZQDN
PHYE
DINT
LSYN
USYN
MSYN
LMBE
PASS
—-
ZBSS
CODE
DATA
L12F
MAIN

CFE version 1.0.37-106.24 for A4001N TEF 0002 BCM96328 (32bit,SP,BE)
Build Date: Wed Jan 26 12:59:25 CET 2022 (zu1costast@thorold)
Copyright (C) 2000-2009 Broadcom Corporation.

HS Serial flash device: name MX25L128, id 0xc218 size 16384KB
Total Flash size: 16384K with 4096 sectors
Chip ID: BCM6328B0, MIPS: 320MHz, DDR: 320MHz, Bus: 160MHz
Main Thread: TP0
Memory Test Passed
Total Memory: 33554432 bytes (32MB)
Boot Address: 0xb8000000

Board IP address : 192.168.1.1:ffffff00
Host IP address : 192.168.1.10
Gateway IP address :
Run from flash/host (f/h) : f
Default host run file name : run.bin
Default host flash file name : 2.bin
Boot delay (0-9 seconds) : 9
Boot image (0=latest, 1=previous) : 0
Board Id (0-4) : 963281T_TEF
Number of MAC Addresses (1-32) : 11
Base MAC Address : 11:22:33:44:55:66
PSI Size (1-64) KBytes : 24
Enable Backup PSI [0|1] : 1
System Log Size (0-256) KBytes : 0
Main Thread Number [0|1] : 0
Voice Board Configuration (0-11) :

*** Press any key to stop auto run (9 seconds) ***
Auto run second count down: 0
Booting from latest image (0xb8800000) …
Code Address: 0x80010000, Entry Address: 0x80014230
Decompression OK!
Entry at 0x80014230
Closing network.
Disabling Switch ports.
Flushing Receive Buffers…
0 buffers found.
Closing DMA Channels.
Starting program at 0x80014230
Linux version 2.6.30 (zu1costast@thorold) (gcc version 4.4.2 (Buildroot 2022.02-git) ) #1 Thu Apr 21 20:1
HS Serial flash device: name MX25L128, id 0xc218 size 16384KB
963281T_TEF prom init
CPU revision is: 0002a075 (Broadcom4350)
Determined physical RAM map:
memory: 01f00000 @ 00000000 (usable)
Zone PFN ranges:
DMA 0x00000000 -> 0x00001000
Normal 0x00001000 -> 0x00001f00
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
0: 0x00000000 -> 0x00001f00
On node 0 totalpages: 7936
free_area_init_node: node 0, pgdat 802f3830, node_mem_map 81000000
DMA zone: 32 pages used for memmap
DMA zone: 0 pages reserved
DMA zone: 4064 pages, LIFO batch:0
Normal zone: 30 pages used for memmap
Normal zone: 3810 pages, LIFO batch:0
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 7874
Kernel command line: root=31:0 ro noinitrd console=ttyS0,115200
wait instruction: enabled
Primary instruction cache 32kB, VIPT, 4-way, linesize 16 bytes.
Primary data cache 32kB, 2-way, VIPT, cache aliases, linesize 16 bytes
RCU-based detection of stalled CPUs is enabled.
NR_IRQS:128
PID hash table entries: 128 (order: 7, 512 bytes)
console [ttyS0] enabled
Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
Memory: 28088k/31744k available (2409k kernel code, 3656k reserved, 555k data, 120k init, 0k highmem)
Calibrating delay loop… 319.48 BogoMIPS (lpj=159744)
Mount-cache hash table entries: 512
net_namespace: 536 bytes
NET: Registered protocol family 16
Total Flash size: 16384K with 4096 sectors
registering PCI controller with io_map_base unset
registering PCI controller with io_map_base unset
bio: create slab <bio-0> at 0
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
pci 0000:00:09.0: reg 10 32bit mmio: [0x10002600-0x100026ff]
pci 0000:00:0a.0: reg 10 32bit mmio: [0x10002500-0x100025ff]
pci 0000:01:00.0: PME# supported from D0 D3hot
pci 0000:01:00.0: PME# disabled
pci 0000:02:00.0: reg 10 64bit mmio: [0x000000-0x003fff]
pci 0000:02:00.0: supports D1 D2
pci 0000:01:00.0: PCI bridge, secondary bus 0000:02
pci 0000:01:00.0: IO window: disabled
pci 0000:01:00.0: MEM window: 0x10f00000-0x10ffffff
pci 0000:01:00.0: PREFETCH window: disabled
PCI: Enabling device 0000:01:00.0 (0000 -> 0002)
PCI: Setting latency timer of device 0000:01:00.0 to 64
BLOG v2.1 Initialized
NET: Registered protocol family 8
NET: Registered protocol family 20
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 1024 (order: 1, 8192 bytes)
TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
TCP: Hash tables configured (established 1024 bind 1024)
TCP reno registered
NET: Registered protocol family 1
squashfs: version 4.0 (2009/01/31) Phillip Lougher
squashfs: version 4.0 with LZMA457 ported by BRCM
fuse init (API version 7.11)
msgmni has been set to 54
io scheduler noop registered (default)
pcieport-driver 0000:01:00.0: device [14e4:6328] has invalid IRQ; check vendor BIOS
PCI: Setting latency timer of device 0000:01:00.0 to 64
Driver ‘sd’ needs updating – please use bus_type methods
PPP generic driver version 2.4.2
PPP Deflate Compression module registered
PPP BSD Compression module registered
NET: Registered protocol family 24
bcm963xx_mtd driver v1.0
File system address: 0xb8800100
ehci_hcd: USB 2.0 ‘Enhanced’ Host Controller (EHCI) Driver
PCI: Enabling device 0000:00:0a.0 (0000 -> 0002)
PCI: Setting latency timer of device 0000:00:0a.0 to 64
ehci_hcd 0000:00:0a.0: EHCI Host Controller
ehci_hcd 0000:00:0a.0: new USB bus registered, assigned bus number 1
ehci_hcd 0000:00:0a.0: Enabling legacy PCI PM
ehci_hcd 0000:00:0a.0: irq 50, io mem 0x10002500
ehci_hcd 0000:00:0a.0: USB f.f started, EHCI 1.00
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
ohci_hcd: USB 1.1 ‘Open’ Host Controller (OHCI) Driver
PCI: Enabling device 0000:00:09.0 (0000 -> 0002)
PCI: Setting latency timer of device 0000:00:09.0 to 64
ohci_hcd 0000:00:09.0: OHCI Host Controller
ohci_hcd 0000:00:09.0: new USB bus registered, assigned bus number 2
ohci_hcd 0000:00:09.0: irq 49, io mem 0x10002600
usb usb2: configuration #1 chosen from 1 choice
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 1 port detected
usbcore: registered new interface driver usblp
Initializing USB Mass Storage driver…
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
brcmboard: brcm_board_init entry
SES: Button Interrupt 0x1 is enabled
SES: LED GPIO 0x8009 is enabled
initLed: led[0]: Gpio=0xffff8003, FailGpio=0xffff8005
initLed: led[1]: Gpio=0xffffffff, FailGpio=0xffffffff
initLed: led[2]: Gpio=0xffffffff, FailGpio=0xffffffff
initLed: led[3]: Gpio=0xffff800b, FailGpio=0xffff8002
initLed: led[4]: Gpio=0xffff8009, FailGpio=0xffff800a
initLed: led[5]: Gpio=0xffffffff, FailGpio=0xffffffff
initLed: led[6]: Gpio=0xffffffff, FailGpio=0xffffffff
initLed: led[7]: Gpio=0xffff8006, FailGpio=0xffff8007
initLed: led[8]: Gpio=0xffffffff, FailGpio=0xffffffff
initLed: led[9]: Gpio=0xffffffff, FailGpio=0xffffffff
initLed: led[10]: Gpio=0xffffffff, FailGpio=0xffffffff
initLed: led[11]: Gpio=0xffffffff, FailGpio=0xffffffff
initLed: led[12]: Gpio=0xffffffff, FailGpio=0xffffffff
initLed: led[13]: Gpio=0xffff8004, FailGpio=0xffff8008
initLed: led[14]: Gpio=0xffff8006, FailGpio=0xffff8007
initLed: led[15]: Gpio=0xffff801f, FailGpio=0xffff8014
Serial: BCM63XX driver $Revision: 3.00 $
ttyS0 at MMIO 0xb0000100 (irq = 36) is a BCM63XX
ttyS1 at MMIO 0xb0000120 (irq = 47) is a BCM63XX
bcmxtmrt: Broadcom BCM6328B0 ATM/PTM Network Device v0.3 Apr 21 2022 20:07:12
Broadcom Logger v0.1 Apr 21 2022 20:04:59
Mirror/redirect action on
u32 classifier
input device check on
Actions configured
TCP cubic registered
NET: Registered protocol family 17
Initializing MCPD Module
Ebtables v2.0 registered
ebt_time registered
ebt_ftos registered
ebt_wmm_mark registered
802.1Q VLAN Support v1.8 Ben Greear <[email protected]>
All bugs added by David S. Miller <[email protected]>
VFS: Mounted root (squashfs filesystem) readonly on device 31:0.
Freeing unused kernel memory: 120k freed
init started: BusyBox v1.00 (2022.04.21-18:13 0000) multi-call binary

BusyBox v1.00 (2022.04.21-18:13 0000) Built-in shell (ash)
Enter ‘help’ for a list of built-in commands.

Loading drivers and kernel modules…

bcmxtmcfg: module license ‘Proprietary’ taints kernel.
Disabling lock debugging due to kernel taint
bcmxtmcfg: bcmxtmcfg_init entry
adsl: adsl_init entry
Broadcom BCM6328B0 Ethernet Network Device v0.1 Apr 21 2022 20:05:03
ETH Init: 180 tx BDs at 0xa194e000
ETH Init: 400 rx BDs at 0xa19f8000
ETH Init: 400 rx BDs at 0xa19f9000
dgasp: kerSysRegisterDyingGaspHandler: bcmsw registered
eth0: MAC Address: 11:22:33:44:55:66
eth1: MAC Address: 11:22:33:44:55:66
eth2: MAC Address: 11:22:33:44:55:66
eth3: MAC Address: 11:22:33:44:55:66
eth0 Link UP 100 mbps full duplex
message received before monitor task is initialized kerSysSendtoMonitorTask
BCM63XX_USB USB Device not present
insmod: cannot insert `/lib/modules/2.6.30/extra/bcm_usb.ko’: Success (19): Success
PCI: Enabling device 0000:02:00.0 (0000 -> 0002)
PCI: Setting latency timer of device 0000:02:00.0 to 64
wl:srom not detected,using main memory mapped srom info(wombo board)
wl:loading /etc/wlan/bcm43225_map.bin
wl0: Broadcom BCMa8d8 802.11 Wireless Controller 5.60.120.1.cpePDG_TEF_SP_4.06L4.2
dgasp: kerSysRegisterDyingGaspHandler: wl0 registered
Auto-negotiation enabled.
The autonegotiated media type is 100baseTx-FD.
Link is up
mii register 26 is 0x4000

===== Release Version PDG_TEF_SP_4.06L.4 (build timestamp 110421_2022) =====

factoryCfg = 0
iptables v1.4.0: can’t initialize iptables table `nat’: iptables who? (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
sendto: Network is unreachable
ip_tables: (C) 2000-2006 Netfilter Core Team
device eth0 entered promiscuous mode
br0: port 1(eth0) entering forwarding state
device eth1 entered promiscuous mode
device eth2 entered promiscuous mode
device eth3 entered promiscuous mode
device wl0 entered promiscuous mode
br0: port 5(wl0) entering forwarding state
ssk:error:23.000:BcmAdsl_Initialize=0xC00A50D8, g_pFnNotifyCallback=0xC00D5E04
rutDsl_CfgProfileInit:2022:rutDsl_CfgProfileInit()
WLmngr Daemon is running
optarg=0 shmId=0
wlevt_init@107: opened loopback socket 4
wlevt is ready for new msg…
pSdramPHY=0xA1FFFFF8, 0x840002 0x40099
AdslCoreSharedMemInit: shareMemAvailable=484928
AdslCoreHwReset: AdslOemDataAddr = 0xA1F6AEB4
dgasp: kerSysRegisterDyingGaspHandler: dsl0 registered
XTM Init: 400 rx BDs at 0xa0bb5000
XTM Init: 100 rx BDs at 0xa0b12000
Netfilter messages via NETLINK v0.30.
nf_conntrack version 0.5.0 (496 buckets, 1984 max)
iptables: No chain/target/match by that name
monitor task is initialized pid= 244
There is no Predefined DevicePin in CFE
WPS Device PIN = 29942275
backup_psi_number_blk=6 result=24576
device wl0 left promiscuous mode
br0: port 5(wl0) entering disabled state
device wl0 entered promiscuous mode
br0: port 5(wl0) entering forwarding state
backup_psi_number_blk=6 result=24576
Setting SSID: “ESRO2”
Setting SSID: “wlwl0.1 (): not using net_device_ops yet
0_Guest1”
Setting SSID: “wlwl0.2 (): not using net_device_ops yet
0_Guest2”
Setting SSID: “wlwl0.3 (): not using net_device_ops yet
0_Guest3”
br0: port 5(wl0) entering disabled state
wlctl: Unsupported
wlctl: Unsupported
wlctl: Unsupported
wlctl: Undefined error
chanspec 0x2b01 selected
device wl0 left promiscuous mode
br0: port 5(wl0) entering disabled state
device wl0 entered promiscuous mode
br0: port 5(wl0) entering forwarding state
Reaped 1381
UPnP daemon is ready to run

[ 0.000000] Linux version 3.3.8 (noltari@skynet) (gcc version 4.6.3 20220201 (prerelease) (Linaro GCC 4.6-2022.02) ) #4 Mon Jun 25 11:34:01 CEST 2022
[ 0.000000] Detected Broadcom 0x6328 CPU revision 10b0
[ 0.000000] CPU frequency is 320 MHz
[ 0.000000] 32MB of RAM installed
[ 0.000000] registering 32 GPIOs
[ 0.000000] gpiochip_add: registered GPIOs 0 to 31 on device: bcm63xx-gpio
[ 0.000000] board_bcm963xx: Boot address 0xb8000000
[ 0.000000] board_bcm963xx: CFE version: A4001N-V0003
[ 0.000000] bootconsole [early0] enabled
[ 0.000000] CPU revision is: 0002a075 (Broadcom BMIPS4350)
[ 0.000000] board_bcm963xx: board name: 963281T_TEF
[ 0.000000] Determined physical RAM map:
[ 0.000000] memory: 02000000 @ 00000000 (usable)
[ 0.000000] Initrd not found or empty – disabling initrd
[ 0.000000] Zone PFN ranges:
[ 0.000000] Normal 0x00000000 -> 0x00002000
[ 0.000000] Movable zone start PFN for each node
[ 0.000000] Early memory PFN ranges
[ 0.000000] 0: 0x00000000 -> 0x00002000
[ 0.000000] On node 0 totalpages: 8192
[ 0.000000] free_area_init_node: node 0, pgdat 802a39f0, node_mem_map 81000000
[ 0.000000] Normal zone: 64 pages used for memmap
[ 0.000000] Normal zone: 0 pages reserved
[ 0.000000] Normal zone: 8128 pages, LIFO batch:0
[ 0.000000] Reserving 0MB of memory at 0MB for crashkernel
[ 0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[ 0.000000] pcpu-alloc:
0
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 8128
[ 0.000000] Kernel command line: root=/dev/mtdblock2 rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200
[ 0.000000] PID hash table entries: 128 (order: -3, 512 bytes)
[ 0.000000] Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.000000] Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.000000] Primary instruction cache 32kB, VIPT, 4-way, linesize 16 bytes.
[ 0.000000] Primary data cache 32kB, 2-way, VIPT, cache aliases, linesize 16 bytes
[ 0.000000] Memory: 29384k/32768k available (2240k kernel code, 3384k reserved, 400k data, 200k init, 0k highmem)
[ 0.000000] NR_IRQS:128
[ 0.000000] Calibrating delay loop… 318.46 BogoMIPS (lpj=636928)
[ 0.036000] pid_max: default: 32768 minimum: 301
[ 0.040000] Mount-cache hash table entries: 512
[ 0.048000] NET: Registered protocol family 16
[ 0.280000] registering PCI controller with io_map_base unset
[ 0.288000] bio: create slab <bio-0> at 0
[ 0.292000] PCI host bridge to bus 0000:00
[ 0.296000] pci_bus 0000:00: root bus resource [mem 0x10f00000-0x11efffff]
[ 0.300000] pci_bus 0000:00: root bus resource [ 0x00000000 flags 0x0]
[ 0.304000] pci 0000:00:00.0: [14e4:6328] type 1 class 0x000604
[ 0.304000] pci 0000:00:00.0: PME# supported from D0 D3hot
[ 0.304000] pci 0000:01:00.0: [14e4:a8d8] type 0 class 0x000280
[ 0.304000] pci 0000:01:00.0: reg 10: [mem 0x00000000-0x00003fff 64bit]
[ 0.304000] pci 0000:01:00.0: supports D1 D2
[ 0.304000] pci 0000:00:00.0: BAR 8: assigned [mem 0x10f00000-0x10ffffff]
[ 0.308000] pci 0000:01:00.0: BAR 0: assigned [mem 0x10f00000-0x10f03fff 64bit]
[ 0.312000] pci 0000:00:00.0: PCI bridge to [bus 01-01]
[ 0.316000] pci 0000:00:00.0: bridge window [mem 0x10f00000-0x10ffffff]
[ 0.320000] PCI: Enabling device 0000:00:00.0 (0000 -> 0002)
[ 0.324000] Switching to clocksource MIPS
[ 0.332000] PCI: Enabling device 0000:01:00.0 (0000 -> 0002)
[ 0.340000] bcma: Found chip with id 0xA8D9, rev 0x01 and package 0x0A
[ 0.344000] bcma: Core 0 found: ChipCommon (manuf 0x4BF, id 0x800, rev 0x22, class 0x0)
[ 0.352000] bcma: Core 1 found: IEEE 802.11 (manuf 0x4BF, id 0x812, rev 0x17, class 0x0)
[ 0.360000] bcma: Core 2 found: PCIe (manuf 0x4BF, id 0x820, rev 0x0F, class 0x0)
[ 0.444000] bcma: Failed to get SPROM: -71
[ 0.452000] bcma: Bus registered
[ 0.456000] NET: Registered protocol family 2
[ 0.460000] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.468000] TCP established hash table entries: 1024 (order: 1, 8192 bytes)
[ 0.476000] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.480000] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.488000] TCP reno registered
[ 0.492000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.496000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.504000] NET: Registered protocol family 1
[ 0.508000] PCI: CLS 0 bytes, default 16
[ 0.512000] audit: initializing netlink socket (disabled)
[ 0.516000] type=2000 audit(0.516:1): initialized
[ 0.524000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.528000] JFFS2 version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 0.540000] msgmni has been set to 57
[ 0.544000] io scheduler noop registered
[ 0.548000] io scheduler deadline registered (default)
[ 0.556000] bcm63xx_uart.0: ttyS0 at MMIO 0xb0000100 (irq = 36) is a bcm63xx_uart
[ 0.564000] console [ttyS0] enabled, bootconsole disabled
[ 0.580000] m25p80 spi0.0: found mx25l12805d, expected m25p80
[ 0.588000] m25p80 spi0.0: mx25l12805d (16384 Kbytes)
[ 0.592000] bcm63xxpart: CFE boot tag found with version 6 and board type 963281T_TEF
[ 0.600000] bcm63xxpart: Partition 0 is CFE offset 0 and length 10000
[ 0.608000] bcm63xxpart: Partition 1 is kernel offset 10100 and length eff00
[ 0.616000] bcm63xxpart: Partition 2 is rootfs offset 100000 and length ef0000
[ 0.620000] bcm63xxpart: Partition 3 is nvram offset ff0000 and length 10000
[ 0.628000] bcm63xxpart: Partition 4 is linux offset 10000 and length fe0000
[ 0.636000] bcm63xxpart: Spare partition is offset 2e0004 and length d0fffc
[ 0.644000] 5 bcm63xxpart partitions found on MTD device spi0.0
[ 0.648000] Creating 5 MTD partitions on “spi0.0”:
[ 0.656000] 0x000000000000-0x000000010000 : “CFE”
[ 0.664000] 0x000000010100-0x000000100000 : “kernel”
[ 0.668000] mtd: partition “kernel” must either start or end on erase block boundary or be smaller than an erase block — forcing read-only
[ 0.684000] 0x000000100000-0x000000ff0000 : “rootfs”
[ 0.692000] mtd: partition “rootfs” set to be root filesystem
[ 0.696000] mtd: partition “rootfs_data” created automatically, ofs=2E0000, len=D10000
[ 0.704000] 0x0000002e0000-0x000000ff0000 : “rootfs_data”
[ 0.712000] 0x000000ff0000-0x000001000000 : “nvram”
[ 0.720000] 0x000000010000-0x000000ff0000 : “linux”
[ 0.764000] bcm63xx-wdt bcm63xx-wdt: started, timer margin: 30 sec
[ 0.772000] Registered led device: 963281T_TEF:green:power
[ 0.772000] Registered led device: 963281T_TEF:red:stop
[ 0.772000] Registered led device: 963281T_TEF:green:inet
[ 0.772000] Registered led device: 963281T_TEF:red:inet-fail
[ 0.776000] Registered led device: 963281T_TEF:green:ppp
[ 0.776000] Registered led device: 963281T_TEF:red:ppp-fail
[ 0.776000] Registered led device: 963281T_TEF:green:3g
[ 0.776000] Registered led device: 963281T_TEF:red:3g-fail
[ 0.776000] Registered led device: 963281T_TEF:green:wlan
[ 0.776000] Registered led device: 963281T_TEF:red:wlan-fail
[ 0.776000] Registered led device: 963281T_TEF:green:eth
[ 0.780000] Registered led device: 963281T_TEF:red:eth-fail
[ 0.780000] TCP westwood registered
[ 0.784000] NET: Registered protocol family 17
[ 0.788000] 8021q: 802.1Q VLAN Support v1.8
[ 0.800000] VFS: Mounted root (squashfs filesystem) readonly on device 31:2.
[ 0.808000] Freeing unused kernel memory: 200k freed
[ 3.396000] bcm63xx_enetsw bcm63xx_enetsw.0: link UP on Port 4, 100Mbps, full-duplex
[ 3.452000] roboswitch: Probing device eth0:
[ 3.456000] bcm63xx_enet: could not find a used port with phy_id 0, assuming phy is external
[ 3.464000] No Robo switch in managed mode found, phy_id = 0xffffffff
[ 3.472000] roboswitch: Probing device eth1: No such device
[ 3.476000] roboswitch: Probing device eth2: No such device
[ 3.480000] roboswitch: Probing device eth3: No such device
[ 9.436000] jffs2_scan_eraseblock(): End of filesystem marker found at 0x10000
[ 9.444000] jffs2_build_filesystem(): unlocking the mtd device… done.
[ 9.448000] jffs2_build_filesystem(): erasing all blocks after the end marker… done.
[ 101.636000] JFFS2 notice: (335) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
[ 104.920000] Compat-wireless backport release: compat-wireless-2022-06-14
[ 104.924000] Backport based on wireless-testing.git master-2022-06-14
[ 104.932000] compat.git: wireless-testing.git
[ 104.992000] cfg80211: Calling CRDA to update world regulatory domain
[ 104.996000] cfg80211: World regulatory domain updated:
[ 105.004000] cfg80211: (start_freq – end_freq @ bandwidth), (max_antenna_gain, max_eirp)
[ 105.012000] cfg80211: (2402000 KHz – 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[ 105.020000] cfg80211: (2457000 KHz – 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
[ 105.028000] cfg80211: (2474000 KHz – 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
[ 105.036000] cfg80211: (5170000 KHz – 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[ 105.044000] cfg80211: (5735000 KHz – 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[ 105.432000] NET: Registered protocol family 10
[ 105.496000] There is already a switch registered on the device ‘eth0’
[ 105.504000] roboswitch: Probing device eth1: No such device
[ 105.508000] roboswitch: Probing device eth2: No such device
[ 105.516000] roboswitch: Probing device eth3: No such device
[ 106.152000] b43-phy0: Broadcom 43225 WLAN found (core revision 23)
[ 106.156000] Broadcom 43xx driver loaded [ Features: PNL ]
[ 106.192000] Button Hotplug driver version 0.4.1
[ 106.512000] PPP generic driver version 2.4.2
[ 106.884000] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 107.088000] ieee80211 phy0: Selected rate control algorithm ‘minstrel_ht’
[ 107.236000] NET: Registered protocol family 24
[ 107.272000] nf_conntrack version 0.5.0 (462 buckets, 1848 max)
[ 107.644000] ip6_tables: (C) 2000-2006 Netfilter Core Team
[ 107.932000] input: gpio-keys-polled as /devices/platform/gpio-keys-polled.0/input/input0
[ 112.084000] bcm63xx_enetsw bcm63xx_enetsw.0: link UP on Port 4, 100Mbps, full-duplex
[ 112.092000] device eth0 entered promiscuous mode
[ 112.100000] br-lan: port 1(eth0) entered forwarding state
[ 112.104000] br-lan: port 1(eth0) entered forwarding state
[ 114.108000] br-lan: port 1(eth0) entered forwarding state
[ 122.920000] eth0: no IPv6 routers present

This website uses cookies. By using the website, you agree with storing cookies on your computer. Also you acknowledge that you have read and understand our Privacy Policy. If you do not agree leave the website.

More information about cookies

Sdparm method

Этот метод использует sdparm , чтобы подать SCSI команду отмонтировать диск который эмулирует CDROM. Этого достаточно, что поставить некоторые модемы в рабочий режим. Это проверено автором оригинала (см Англ. вариант статьи) на Ovation MC935D .

Прежде чем начать, было бы полезно узнать VID и PID устройства:

(Или установите пакет usbutils и запустите команду lsusb.)

Первое, Находим адрес устройства, в данном примере sg0 , и выполняем команду:

Затем проверьте, изменились ли PID и VID вашего устройства:

Table of contents

Эта статья объясняет, как установить и настроить OpenWrt для использования USB 3g/UMTS-modem для подключения WAN . Вы можете настроить multiwan_package пакет и использовать 3G одновременно с другими подключениями к Интернету.

Рекомендуется, использовать OpenWrt 10.03.1-rc3 ‘Backfire’ или более свежую версию.

Необходимо помнить, что сотовые данные могут быть легко перехвачены. Помните, что это беспроводное соединение. Кроме того, некоторые провайдеры могут блокировать определенные порты (подробности можно узнать у вашего оператора сотовой связи).

Troubleshooting (поиск неисправностей)

Для поиска неисправностей и поиска лучшего положения модема вы можете использовать

из консоли. Эта команда показывает не только уровень сигнала, но и регистрацию в сети и сим статус Если команда возвращает ошибку port-in-use значит соединение поднято, попробуйте

где x номер порта вашего модема.

gcom returns the signal quality in RSSI (Received signal strength indication) and in BER (Bit error rate, reported in percent). A higher RSSI value represents a stronger signal – scale is from 0 to 99, where 1 is the lowest detectable signal and 31 a very good signal. Don’t expect your signal to go all the way up to 99, though. If BER returns 99 it means not known or not detectable.

You can also add the AT command

to your chat script to check signal quality.

Command return is “ CSQ: , ” and looks like this in logread :

If you have problems establishing a connection and multiple modem devices ( /dev/ttyUSB0 , /dev/ttyUSB1 , …) are present, try all of them. Some may not work at all while others seem to work at first, but will give a NO CARRIER during the connection process.

Дополнительные установки

Чтобы было удобно применять настройки русским пользователям OpenWRT, можно произвести локализацию. Нужно выбрать инструмент Software через раздел System и кликнуть на Update lists. В разделе Available Packages необходимо найти пакет с русскоязычной версией, который называется Luci-i18n-russian – его нужно установить. После успешной загрузки пакета перейти в System два раза и во вкладке языка выбрать русский.

Обратите внимание! Случается, такое, что приходится сбрасывать настройки маршрутизатора на OpenWRT путем выполнения командной строки: rm -rf /overlay/*. Данные команды осуществляют форматирование виртуального образа, который представлен в двух частях.

Зависимости

Если вы делаете off-line установку , Вам могут понадобиться следующие пакеты

Метод usb-modeswitch

Программа usb_modeswitch переключает модем USB в рабочий режим. Читайте статью)(перевод) о том, как использовать этот пакет.

Установите пакет usb-modeswitch (ранее Barriaer Breaker был нужен ещё и usb-modeswitch-data ). Установщик пакета автоматически запускает программу. Теперь ваш модем должен обнаруживаться ядром (см. протокол – вывод dmesg). Если до сих пор он не обнаружен, читайте статью и экспериментируйте с ручным запуском usb-modeswitch .

Например, DX 7.2M HSDPA 3G SIM Card USB Item# 80032, сообщил scsi ID это 12d1:1001; запущен “usb_modeswitch -v 12d1 -p 1001”, в результате чего появились 4 устройства ttyUSB:

Если ваше устройство не работает с usb_modeswitch, попробуйте метод sdparm.

Настраиваем сеть

Редактируем ‘/etc/config/network’ файл: (смотрите сети 3G для получения более подробной информации)

Заменяем ‘pincode’ на корректный пинкод SIM-карты. Замечание! Если на СИМ-карте отключена проверка пинкода, то могут возникнуть проблеммы, обязательно активируйте проверку пинкода СИМ-карты. Если вы подключаетесь через телефон, то необходимости проверять пин код нет, так как он был проверен при включении телфона

Замените ‘device’ на правильный USB port вашего модема. на телфонах скорей всего будет /dev/ttyACM0.

Замените ‘apn’ на корректный APN вашего 3g/umts провайдера.

Все операторы России требует авторизации пользователя, поэтому добавляем еще 2 строчки

Настройка chat

Теперь нам нужно проверить работает chatscript, или нет с нашим провайдером.

Находим файл ‘/etc/chatscripts/3g.chat’, и смотрим, что там написано:

Если вашему модему нужны специфичныые АТ команды, Вы можете добавить их в этот список. Так же вы можете отредактировать телефон дозвона (в большинстве модемов GPRS, EDGE и 3G достаточно просто *99#).

Настройка openwrt с модемами 3g 4g lte по протоколу ncm (e3272, e3276, e3372, e1550 …) — асу в каждый дом

Написано hardd 08/09/2022. Опубликовано в OpenWRT

  • Убеждаемся, что компьютер или иное устройство, с которого будет проводиться настройка, находится в одной подсети с роутером.  IP адрес должен быть в диапазоне 192.168.4.1-192.168.4.253 с маской 255.255.255.0. Роутер подключён проводом или wifi.
  • Запускаем на компьютере или другом устройстве браузер. В строке адреса набираем http://192.168.4.254. Появится страничка приветствия. Выбираем пункт «Управление и настройки Luci».
  • Настройка qmi modem openwrt

  • Далее нажимаем «Войти».
    Настройка qmi modem openwrt
  • Подключаем модем к роутеру. Выбираем сеть. «Добавить новый интерфейс»
    Настройка qmi modem openwrt
  • Имя – латинские буквы без пробелов, протокол NCM, интерфейс wwan0 (если подключен один модем).
    Настройка qmi modem openwrt
    Нажимаем «Применить».
  • Выбираем устройство. Обычно это /dev/ttyUSB0 (если подключён один модем). Режим сети для начала выбрать Автоматически (Все режимы сети автоматически). Вводите точку доступа APN (узнать у оператора) и другие данные авторизации, если они необходимы. Если нет, поля не заполнять. Если роутер сам будет обрабатывать интернет трафик, оставить галочку «Запускать DHCP-клиент».
    Настройка qmi modem openwrt
  • Переходим в Расширенные настройки. Автоматически запускать ставим. MTU от 1400 до 1472. Метрика 0 (если не планируете использовать дополнительные впн соединения). Во вкладке файервола проверяем, что сеть в зоне wan. Время инициализации модема – время в секундах, которое нужно модему, чтобы загрузиться и зарегистрироваться в сети. Это время простоя перед попыткой установки соединения. Время регистрации в сети – время в секундах, которое система ждёт регистрации модема в сети после смены/установки режима работы.
    Настройка qmi modem openwrt
    Настройка qmi modem openwrt
  • Нажимаем «Сохранить и применить».
    Если всё настроено правильно и работает исправно, интерфейс получи ip адрес, и побегут пакетики.
    Настройка qmi modem openwrt
  • Для отображения информации об уровне сигнала и других плюшек нужно системе указать порт модема для опроса. Порт выбирается экспериментально. Для этого Меню «Сервисы» «Modem 3G/4G». Выбрать порт модема и ввести pin код если есть.
    Настройка qmi modem openwrt
  • После этого «Сохранить и применить». Теперь можно пробовать обновить информацию о сигнале и других данных.
  • Для перезагрузки модема в прошивке есть usbreset для сброса устройства. При этом если в модеме смонтирована карта памяти, она тоже сбросится (ФС может быть подвергнута ошибкам). Более безболезненный вариант reboot. Надеюсь, у меня появится время для реализации «перезагрузки» usb порта методом gpio.

    Метки: 3g, 4g, NCM, lte, modem, openwrt, настройка

    Просмотры: 104132.

    Обратная ссылка с Вашего сайта

    Настройка интернет соединения

    Чтобы настраивать роутер на работу с интернетом, потребуется подключить Lan порт маршрутизатора к сетевой карте ПК. Чтобы подключиться к внешней сети, используются WAN порты. Пошаговая инструкция выполнения подключения:

    1. Вставить кабель сети в WAN порт. В случае, когда внешняя сеть не имеет протоколов L2TP, PPTP, никаких дополнительных настроек не требуется проделывать – выход в интернет свободен.
    2. В ином случае нужно перейти в браузере по вышеуказанному айпи, чтобы зайти в интерфейс администратора.
    3. После авторизации откроется полноценный интерфейс.

    В разделе «Сеть» перейти в Интерфейсы. Высветится перечень доступных интерфейсов, среди которых нужно выбрать WAN, принадлежащий IPv4 – его нужно изменить. В открывшемся меню нужно указать протокол, соответствующий выбранным параметрам от провайдера.

    Обратите внимание! Нажав на кнопку изменения протокола, указать все параметры и кликнуть на кнопку сохранения изменений. Если выход в интернет все равно недоступен, то рекомендуется обратиться к провайдеру услуг и уточнить у него причину.

    Настройка точки доступа wifi на openwrt, через luci

    После перехода в интерфейс администратора OpenWRT и ввода пароля системы, необходимо перейти во вкладку Network – WiFi и добавить новую сеть нажатием кнопки Add. В открывшемся окошке указать следующие параметры:

    • Channel — 11 (2.462 GHz);
    • Transmit Power— 20 dBm (100 mW);
    • ESSID — название точки Wifi, которую будут видеть пользователи;
    • Mode — режим работы сети;
    • Network — нужно установить на Lan, если роутер подключен через кабель к Интернет, и выбрать подключение, которое пойдет на WiFi.

    После сохранения настроек, по желанию можно установить пароль при подключении (об этом было рассказано в предыдущем разделе) и пользоваться созданной точкой доступа через luci.

    Пример настройки

    В заключении необходимо рассмотреть пример настройки роутера с прошивкой OpenWRT с модемом.

    Управление соединениями

    Набираем в консоли ifup wan

    Теперь проверяем в протоколе работы маршрутизатора (команда logread или страничка “System log” в LUCI), что модемное соединение подключено:

    Вот и все! Вы подключены.

    Если вы хотите подключаться при включении маршрутизатора, просто добавьте строку ifup wan в /etc/rc.local .

    Установка

    Теперь подключите ваш модем в USB порт и перезагрузите роутер.

    Проверяем dmesg (“Kernel log” в LUCI):

    Если вместо листинга сверху вы видите похожий на это:

    значит на вашем модеме не переключен режим из CD на рабочий.

    Если в протоколе ядра нет usbserial или ttyUSB0 , это означает, что не установлен один из драйверов Вашего модема. Попробуйте найти его среди пакетов kmod-usb-…

    Попробуйте подгрузить usbserial module ( и

    это Vendor и Product ID вашего свистка):

    Кроме того вы можете использовать альтернативный драйвер вашего модема. Альтернативный драйвер является более надежным, так как умеет различать последовательный порт модема(COM) и порт картридера (StoragePort), а также распознаёт поддержку CDC (NCM) – модемный интерфейс ethernet.

    Оцените статью
    Huawei Devices
    Добавить комментарий