Temat: [poszukiwany] MiFi na dwr-921
Czy jest ktoś kto używa dlinka dwr-921 c1/c3 z moimi obrazami MiFi?
Nie jesteś zalogowany. Proszę się zalogować lub zarejestrować.
eko.one.pl → Oprogramowanie / Software → [poszukiwany] MiFi na dwr-921
Zaloguj się lub zarejestruj by napisać odpowiedź
Czy jest ktoś kto używa dlinka dwr-921 c1/c3 z moimi obrazami MiFi?
Wieczorem mogę postawić, bo mój leży nieużywany teraz.
Ściągnij obraz, zainstaluj. Interesuje mnie:
- jaką wersję masz (c3 z tego co pamiętam)
- czy działa internet od początku (ustawiam już wan na qmi dla tego modelu)
- czy wyświetla info o modemie (zarówno na zakładce status i system)
- ew, czy działa ussd i przynajmniej odczyt SMS (do ussd ew musisz ustawić text lub pdu, dla sms ew musisz ustawić obszar, opisałem to tu: https://eko.one.pl/?p=easyconfig#ussd i https://eko.one.pl/?p=easyconfig#sms)
Mogę dorobić tez jakiś skrypty do obsługi ledów signal oraz 3G/4G, ale to już tylko lukier na pączku.
Ściągnij obraz, zainstaluj. Interesuje mnie:
- jaką wersję masz (c3 z tego co pamiętam)
C3
Zainstalowałem obraz:
https://dl.eko.one.pl/mifi/ramips/mifi- … pgrade.bin
root@MiFi:~# dmesg
[ 0.000000] Linux version 4.14.105 (cezary@eko.one.pl) (gcc version 7.3.0 (OpenWrt GCC 7.3.0 r7353-486dc7583d)) #0 Fri Mar 8 15:56:11 2019
[ 0.000000] Board has DDR1
[ 0.000000] Analog PMU set to hw control
[ 0.000000] Digital PMU set to hw control
[ 0.000000] SoC Type: MediaTek MT7620N ver:2 eco:6
[ 0.000000] bootconsole [early0] enabled
[ 0.000000] CPU0 revision is: 00019650 (MIPS 24KEc)
[ 0.000000] MIPS: machine is D-Link DWR-921 C1
[ 0.000000] Determined physical RAM map:
[ 0.000000] memory: 04000000 @ 00000000 (usable)
[ 0.000000] Initrd not found or empty - disabling initrd
[ 0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[ 0.000000] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[ 0.000000] Zone ranges:
[ 0.000000] Normal [mem 0x0000000000000000-0x0000000003ffffff]
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000000000000-0x0000000003ffffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000003ffffff]
[ 0.000000] On node 0 totalpages: 16384
[ 0.000000] free_area_init_node: node 0, pgdat 80427230, node_mem_map 81000040
[ 0.000000] Normal zone: 128 pages used for memmap
[ 0.000000] Normal zone: 0 pages reserved
[ 0.000000] Normal zone: 16384 pages, LIFO batch:3
[ 0.000000] random: get_random_bytes called from 0x8042a72c with crng_init=0
[ 0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[ 0.000000] pcpu-alloc: [0] 0
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 16256
[ 0.000000] Kernel command line: console=ttyS0,57600 rootfstype=squashfs,jffs2
[ 0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)
[ 0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.000000] Writing ErrCtl register=0006f000
[ 0.000000] Readback ErrCtl register=0006f000
[ 0.000000] Memory: 60168K/65536K available (3611K kernel code, 181K rwdata, 464K rodata, 216K init, 215K bss, 5368K reserved, 0K cma-reserved)
[ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] NR_IRQS: 256
[ 0.000000] CPU Clock: 580MHz
[ 0.000000] clocksource: systick: mask: 0xffff max_cycles: 0xffff, max_idle_ns: 583261500 ns
[ 0.000000] systick: enable autosleep mode
[ 0.000000] systick: running - mult: 214748, shift: 32
[ 0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 6590553264 ns
[ 0.000010] sched_clock: 32 bits at 290MHz, resolution 3ns, wraps every 7405115902ns
[ 0.015473] Calibrating delay loop... 385.84 BogoMIPS (lpj=1929216)
[ 0.087707] pid_max: default: 32768 minimum: 301
[ 0.097105] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.110126] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.128608] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.148080] futex hash table entries: 256 (order: -1, 3072 bytes)
[ 0.160249] pinctrl core: initialized pinctrl subsystem
[ 0.171794] NET: Registered protocol family 16
[ 0.185059] Can't analyze schedule() prologue at 80382878
[ 0.212105] rt2880_gpio 10000600.gpio: registering 24 gpios
[ 0.223124] rt2880_gpio 10000600.gpio: registering 24 irq handlers
[ 0.235678] rt2880_gpio 10000638.gpio: registering 16 gpios
[ 0.246662] rt2880_gpio 10000638.gpio: registering 16 irq handlers
[ 0.259232] rt2880_gpio 10000660.gpio: registering 32 gpios
[ 0.270217] rt2880_gpio 10000660.gpio: registering 32 irq handlers
[ 0.282780] rt2880_gpio 10000688.gpio: registering 1 gpios
[ 0.293590] rt2880_gpio 10000688.gpio: registering 1 irq handlers
[ 0.310878] clocksource: Switched to clocksource systick
[ 0.322409] NET: Registered protocol family 2
[ 0.331916] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.345684] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.358278] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.371043] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.382547] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.395236] NET: Registered protocol family 1
[ 0.403802] PCI: CLS 0 bytes, default 32
[ 0.406285] rt-timer 10000100.timer: maximum frequency is 1220Hz
[ 0.418953] Crashlog allocated RAM at address 0x3f00000
[ 0.430942] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[ 0.449039] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.460527] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 0.489676] io scheduler noop registered
[ 0.497369] io scheduler deadline registered (default)
[ 0.508356] gpio-export gpio_export: 1 gpio(s) exported
[ 0.518859] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[ 0.534104] console [ttyS0] disabled
[ 0.541145] 10000c00.uartlite: ttyS0 at MMIO 0x10000c00 (irq = 20, base_baud = 2500000) is a Palmchip BK-3103
[ 0.560815] console [ttyS0] enabled
[ 0.574639] bootconsole [early0] disabled
[ 0.591188] cacheinfo: Failed to find cpu0 device node
[ 0.601448] cacheinfo: Unable to detect cache hierarchy for CPU 0
[ 0.620453] spi spi0.0: force spi mode3
[ 0.639381] m25p80 spi0.0: w25q128 (16384 Kbytes)
[ 0.648799] 3 fixed-partitions partitions found on MTD device spi0.0
[ 0.661459] Creating 3 MTD partitions on "spi0.0":
[ 0.671012] 0x000000000000-0x000000010000 : "jboot"
[ 0.681577] 0x000000010000-0x000000ff0000 : "firmware"
[ 0.694189] 2 jimage-fw partitions found on MTD device firmware
[ 0.706056] 0x000000010000-0x000000170da0 : "kernel"
[ 0.716785] 0x000000170da0-0x000000ff0000 : "rootfs"
[ 0.727447] mtd: device 3 (rootfs) set to be root filesystem
[ 0.740209] 1 squashfs-split partitions found on MTD device rootfs
[ 0.752589] 0x0000003a5000-0x000000ff0000 : "rootfs_data"
[ 0.764160] 0x000000ff0000-0x000001000000 : "config"
[ 0.775564] libphy: Fixed MDIO Bus: probed
[ 0.788930] gsw: setting port4 to ephy mode
[ 0.797333] mtk_soc_eth 10100000.ethernet eth0 (uninitialized): port 3 link up (100Mbps/Full duplex)
[ 0.815555] mtk_soc_eth 10100000.ethernet: generated random MAC address ae:f6:d5:d6:41:96
[ 0.831861] port: invalid port id 4
[ 0.838862] mtk_soc_eth 10100000.ethernet: loaded mt7620 driver
[ 0.851294] mtk_soc_eth 10100000.ethernet eth0: mediatek frame engine at 0xb0100000, irq 5
[ 0.868396] rt2880_wdt 10000120.watchdog: Initialized
[ 0.879755] NET: Registered protocol family 10
[ 0.892644] Segment Routing with IPv6
[ 0.900037] NET: Registered protocol family 17
[ 0.909002] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[ 0.934825] 8021q: 802.1Q VLAN Support v1.8
[ 0.944457] hctosys: unable to open rtc device (rtc0)
[ 0.968025] VFS: Mounted root (squashfs filesystem) readonly on device 31:3.
[ 0.983297] Freeing unused kernel memory: 216K
[ 0.992174] This architecture does not have kernel memory protection.
[ 2.652783] init: Console is alive
[ 2.659769] init: - watchdog -
[ 2.676461] random: fast init done
[ 4.785588] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[ 4.997159] usbcore: registered new interface driver usbfs
[ 5.008237] usbcore: registered new interface driver hub
[ 5.018937] usbcore: registered new device driver usb
[ 5.034777] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 5.049430] ehci-platform: EHCI generic platform driver
[ 5.070190] phy phy-usbphy.0: remote usb device wakeup disabled
[ 5.081998] phy phy-usbphy.0: UTMI 16bit 30MHz
[ 5.090875] ehci-platform 101c0000.ehci: EHCI Host Controller
[ 5.102358] ehci-platform 101c0000.ehci: new USB bus registered, assigned bus number 1
[ 5.118244] ehci-platform 101c0000.ehci: irq 26, io mem 0x101c0000
[ 5.137674] ehci-platform 101c0000.ehci: USB 2.0 started, EHCI 1.00
[ 5.151112] hub 1-0:1.0: USB hub found
[ 5.159007] hub 1-0:1.0: 1 port detected
[ 5.169967] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 5.183814] ohci-platform: OHCI generic platform driver
[ 5.194551] ohci-platform 101c1000.ohci: Generic Platform OHCI controller
[ 5.208148] ohci-platform 101c1000.ohci: new USB bus registered, assigned bus number 2
[ 5.224015] ohci-platform 101c1000.ohci: irq 26, io mem 0x101c1000
[ 5.262124] hub 2-0:1.0: USB hub found
[ 5.270065] hub 2-0:1.0: 1 port detected
[ 5.282929] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[ 5.301433] init: - preinit -
[ 6.771598] 8021q: adding VLAN 0 to HW filter on device eth0
[ 6.924213] random: procd: uninitialized urandom read (4 bytes read)
[ 8.158911] mount_root: jffs2 not ready yet, using temporary tmpfs overlay
[ 8.208898] urandom-seed: Seed file not found (/etc/urandom.seed)
[ 8.326048] procd: - early -
[ 8.332600] procd: - watchdog -
[ 9.069287] procd: - watchdog -
[ 9.075823] procd: - ubus -
[ 9.335377] random: ubusd: uninitialized urandom read (4 bytes read)
[ 9.636028] random: jshn: uninitialized urandom read (4 bytes read)
[ 9.648707] random: ubusd: uninitialized urandom read (4 bytes read)
[ 9.663605] procd: - init -
[ 10.773169] kmodloader: loading kernel modules from /etc/modules.d/*
[ 10.814342] usbcore: registered new interface driver cdc_wdm
[ 10.839004] Loading modules backported from Linux version wt-2017-11-01-0-gfe248fc2c180
[ 10.855017] Backport generated by backports.git v4.14-rc2-1-31-g86cf0e5d
[ 10.903602] nf_conntrack version 0.5.0 (1024 buckets, 4096 max)
[ 11.149568] usbcore: registered new interface driver usbserial
[ 11.161357] usbcore: registered new interface driver usbserial_generic
[ 11.174481] usbserial: USB Serial support registered for generic
[ 11.256926] xt_time: kernel timezone is -0000
[ 11.278081] usbcore: registered new interface driver cdc_ether
[ 11.307461] usbcore: registered new interface driver cdc_ncm
[ 11.437637] usbcore: registered new interface driver huawei_cdc_ncm
[ 11.468071] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 11.605759] PPP generic driver version 2.4.2
[ 11.628760] usbcore: registered new interface driver qmi_wwan
[ 11.655743] usbcore: registered new interface driver rndis_host
[ 11.708227] usbcore: registered new interface driver sierra
[ 11.719482] usbserial: USB Serial support registered for Sierra USB modem
[ 11.758385] usbcore: registered new interface driver sierra_net
[ 11.791049] usbcore: registered new interface driver option
[ 11.802318] usbserial: USB Serial support registered for GSM modem (1-port)
[ 11.848653] usbcore: registered new interface driver qcserial
[ 11.860258] usbserial: USB Serial support registered for Qualcomm USB modem
[ 11.933707] ieee80211 phy0: rt2x00lib_request_eeprom_file: Info - Loading EEPROM data from 'soc_wmac.eeprom'.
[ 11.953689] rt2800_wmac 10180000.wmac: Direct firmware load for soc_wmac.eeprom failed with error -2
[ 11.971916] rt2800_wmac 10180000.wmac: Falling back to user helper
[ 12.641624] ieee80211 phy0: rt2x00_set_rt: Info - RT chipset 6352, rev 0500 detected
[ 12.657146] ieee80211 phy0: rt2x00_set_rf: Info - RF chipset 7620 detected
[ 12.671453] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[ 12.706561] kmodloader: done loading kernel modules from /etc/modules.d/*
[ 22.498103] usb 1-1: new high-speed USB device number 2 using ehci-platform
[ 22.848476] qmi_wwan 1-1:1.4: cdc-wdm0: USB WDM device
[ 22.920622] qmi_wwan 1-1:1.4 wwan0: register 'qmi_wwan' at usb-101c0000.ehci-1, WWAN/QMI device, 02:77:30:69:d6:d9
[ 24.158030] jffs2_scan_eraseblock(): End of filesystem marker found at 0x0
[ 24.250744] jffs2_build_filesystem(): unlocking the mtd device...
[ 24.250810] done.
[ 24.267000] jffs2_build_filesystem(): erasing all blocks after the end marker...
[ 30.657870] 8021q: adding VLAN 0 to HW filter on device eth0
[ 30.806387] device eth0 entered promiscuous mode
[ 30.865753] br-lan: port 1(eth0.1) entered blocking state
[ 30.876579] br-lan: port 1(eth0.1) entered disabled state
[ 30.887667] device eth0.1 entered promiscuous mode
[ 31.022251] br-lan: port 1(eth0.1) entered blocking state
[ 31.033073] br-lan: port 1(eth0.1) entered forwarding state
[ 31.044363] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
[ 31.728244] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[ 41.079839] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[ 41.146350] br-lan: port 2(wlan0) entered blocking state
[ 41.157021] br-lan: port 2(wlan0) entered disabled state
[ 41.167934] device wlan0 entered promiscuous mode
[ 42.999409] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[ 43.012348] br-lan: port 2(wlan0) entered blocking state
[ 43.022971] br-lan: port 2(wlan0) entered forwarding state
[ 96.398099] random: crng init done
[ 96.404884] random: 6 urandom warning(s) missed due to ratelimiting
[ 347.252261] done.
[ 347.256133] jffs2: notice: (1312) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
[ 347.576740] overlayfs: upper fs does not support tmpfile.- czy działa internet od początku (ustawiam już wan na qmi dla tego modelu)
Nie.
root@MiFi:~# vim /etc/config/network
config interface 'loopback'
option ifname 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
config globals 'globals'
option ula_prefix 'fd05:183a:7b1a::/48'
config interface 'lan'
option type 'bridge'
option ifname 'eth0.1'
option proto 'static'
option netmask '255.255.255.0'
option ip6assign '60'
option ipaddr '192.168.11.1'
config device 'lan_dev'
option name 'eth0.1'
option macaddr '10:62:eb:de:3c:1d'
config interface 'wan'
option ifname 'eth0.2'
option proto 'dhcp'
config device 'wan_dev'
option name 'eth0.2'
option macaddr '10:62:eb:de:3c:1c'
config interface 'wan6'
option ifname 'eth0.2'
option proto 'dhcpv6'
config switch
option name 'switch0'
option reset '1'
option enable_vlan '1'
config switch_vlan
option device 'switch0'
option vlan '1'
option ports '0 1 2 3 6t'
config switch_vlan
option device 'switch0'
option vlan '2'
option ports '4 6t'root@MiFi:~# ls -al /dev/cdc-wdm0
crw------- 1 root root 180, 176 Mar 11 17:13 /dev/cdc-wdm0- czy wyświetla info o modemie (zarówno na zakładce status i system)
Nie.
https://www.dropbox.com/s/si956v62ro95g … 1.png?dl=0
https://www.dropbox.com/s/8496mopz5qxd5 … 2.png?dl=0
- ew, czy działa ussd i przynajmniej odczyt SMS (do ussd ew musisz ustawić text lub pdu, dla sms ew musisz ustawić obszar, opisałem to tu: https://eko.one.pl/?p=easyconfig#ussd i https://eko.one.pl/?p=easyconfig#sms)
Mogę dorobić tez jakiś skrypty do obsługi ledów signal oraz 3G/4G, ale to już tylko lukier na pączku.
Będę patrzeć jak ruszy połączenie.
Wykonaj
sh -x /rom/etc/uci-defaults/zz-dlink
I pokaż co wyszło.
root@MiFi:~# sh -x /rom/etc/uci-defaults/zz-dlink
+ grep -q 'Vendor=1435 ProdID=d181' /sys/kernel/debug/usb/devices
+ grep -q 'Vendor=2020 ProdID=2033' /sys/kernel/debug/usb/devices
+ echo '2020 2033'
+ uci -q del network.wan
+ uci set 'network.wan=interface'
+ uci set 'network.wan.proto=qmi'
+ uci set 'network.wan.device=/dev/cdc-wdm0'
+ uci set 'network.wan.apn=internet'
+ uci commit network
+ exit 0root@MiFi:~# cat /etc/config/network
config interface 'loopback'
option ifname 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
config globals 'globals'
option ula_prefix 'fd05:183a:7b1a::/48'
config interface 'lan'
option type 'bridge'
option ifname 'eth0.1'
option proto 'static'
option netmask '255.255.255.0'
option ip6assign '60'
option ipaddr '192.168.11.1'
config device 'lan_dev'
option name 'eth0.1'
option macaddr '10:62:eb:de:3c:1d'
config device 'wan_dev'
option name 'eth0.2'
option macaddr '10:62:eb:de:3c:1c'
config interface 'wan6'
option ifname 'eth0.2'
option proto 'dhcpv6'
config switch
option name 'switch0'
option reset '1'
option enable_vlan '1'
config switch_vlan
option device 'switch0'
option vlan '1'
option ports '0 1 2 3 6t'
config switch_vlan
option device 'switch0'
option vlan '2'
option ports '4 6t'
config interface 'wan'
option proto 'qmi'
option device '/dev/cdc-wdm0'
option apn 'internet'Po reboocie net ruszył.
Poczekaj, zbuduję nowe.
Pobierz jeszcze raz i wgraj na czysto.
Pobierz jeszcze raz i wgraj na czysto.
Bez zmian:
root@MiFi:/tmp# wget http://dl.eko.one.pl/mifi/ramips/mifi-18.06-snapshot-r7715-9f2cbcad6d-dlink_dwr-921-c3-squashfs-sysupgrade.bin
Downloading 'http://dl.eko.one.pl/mifi/ramips/mifi-18.06-snapshot-r7715-9f2cbcad6d-dlink_dwr-921-c3-squashfs-sysupgrade.bin'
Connecting to 95.160.102.144:80
Writing to 'mifi-18.06-snapshot-r7715-9f2cbcad6d-dlink_dwr-921-c3-squashfs-sysupgrade.bin'
mifi-18.06-snapshot- 100% |*******************************| 3840k 0:00:00 ETA
Download completed (3932348 bytes)
root@MiFi:/tmp# sysupgrade -n mifi-18.06-snapshot-r7715-9f2cbcad6d-dlink_dwr-921-c3-squashfs-sysupgrade.bin
Commencing upgrade. Closing all shell sessions.
Connection to 192.168.11.1 closed by remote host.
Connection to 192.168.11.1 closed.
root@ubuntu-VirtualBox:/home/krolik# ssh root@192.168.11.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that a host key has just been changed.
The fingerprint for the RSA key sent by the remote host is
SHA256:Qz4yFtAIA8+eRgeO1mGyWFQ8+mjb8WBuWCUuDgshVCo.
Please contact your system administrator.
Add correct host key in /root/.ssh/known_hosts to get rid of this message.
Offending RSA key in /root/.ssh/known_hosts:3
remove with:
ssh-keygen -f "/root/.ssh/known_hosts" -R "192.168.11.1"
RSA host key for 192.168.11.1 has changed and you have requested strict checking.
Host key verification failed.
root@ubuntu-VirtualBox:/home/krolik# ssh-keygen -f "/root/.ssh/known_hosts" -R "192.168.11.1"
# Host 192.168.11.1 found: line 3
/root/.ssh/known_hosts updated.
Original contents retained as /root/.ssh/known_hosts.old
root@ubuntu-VirtualBox:/home/krolik# ssh root@192.168.11.1
The authenticity of host '192.168.11.1 (192.168.11.1)' can't be established.
RSA key fingerprint is SHA256:Qz4yFtAIA8+eRgeO1mGyWFQ8+mjb8WBuWCUuDgshVCo.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.11.1' (RSA) to the list of known hosts.
root@192.168.11.1's password:
BusyBox v1.28.4 () built-in shell (ash)
_______ ________ __
| |.-----.-----.-----.| | | |.----.| |_
| - || _ | -__| || | | || _|| _|
|_______|| __|_____|__|__||________||__| |____|
|__| W I R E L E S S F R E E D O M
-----------------------------------------------------------------------------
| |
| OpenWrt 18.06-SNAPSHOT, r7715-9f2cbcad6d |
| |
| Build time: 2019-03-13 21:20 CET |
| Cezary Jackiewicz (obsy), http://eko.one.pl |
| |
-----------------------------------------------------------------------------
| Machine: D-Link DWR-921 C1 |
| Uptime: 0d, 00:06:16 |
| Load: 0.87 0.98 0.51 |
| Flash: total: 12.3MB, free: 11.7MB, used: 5% |
| Memory: total: 59.0MB, free: 44.4MB, used: 24% |
| WAN: |
| LAN: 192.168.11.1, leases: 0 |
| radio0: mode: ap, ssid: mifi-a534b5, channel: 11, conn: 0 |
-----------------------------------------------------------------------------
root@MiFi:~# vim /etc/config/network
root@MiFi:~# reboot
root@MiFi:~# Connection to 192.168.11.1 closed by remote host.
Connection to 192.168.11.1 closed.
root@ubuntu-VirtualBox:/home/krolik# ssh root@192.168.11.1
root@192.168.11.1's password:
BusyBox v1.28.4 () built-in shell (ash)
_______ ________ __
| |.-----.-----.-----.| | | |.----.| |_
| - || _ | -__| || | | || _|| _|
|_______|| __|_____|__|__||________||__| |____|
|__| W I R E L E S S F R E E D O M
-----------------------------------------------------------------------------
| |
| OpenWrt 18.06-SNAPSHOT, r7715-9f2cbcad6d |
| |
| Build time: 2019-03-13 21:20 CET |
| Cezary Jackiewicz (obsy), http://eko.one.pl |
| |
-----------------------------------------------------------------------------
| Machine: D-Link DWR-921 C1 |
| Uptime: 0d, 00:01:43 |
| Load: 0.39 0.25 0.09 |
| Flash: total: 12.3MB, free: 11.7MB, used: 5% |
| Memory: total: 59.0MB, free: 45.1MB, used: 23% |
| WAN: |
| LAN: 192.168.11.1, leases: 0 |
| radio0: mode: ap, ssid: mifi-a534b5, channel: 11, conn: 0 |
-----------------------------------------------------------------------------
root@MiFi:~# cat /etc/config/network
config interface 'loopback'
option ifname 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
config globals 'globals'
option ula_prefix 'fdf0:1a75:4197::/48'
config interface 'lan'
option type 'bridge'
option ifname 'eth0.1'
option proto 'static'
option netmask '255.255.255.0'
option ip6assign '60'
option ipaddr '192.168.11.1'
config device 'lan_dev'
option name 'eth0.1'
option macaddr '10:62:eb:de:3c:1d'
config interface 'wan'
option ifname 'eth0.2'
option proto 'dhcp'
config device 'wan_dev'
option name 'eth0.2'
option macaddr '10:62:eb:de:3c:1c'
config interface 'wan6'
option ifname 'eth0.2'
option proto 'dhcpv6'
config switch
option name 'switch0'
option reset '1'
option enable_vlan '1'
config switch_vlan
option device 'switch0'
option vlan '1'
option ports '0 1 2 3 6t'
config switch_vlan
option device 'switch0'
option vlan '2'
option ports '4 6t'
root@MiFi:~#Trochę bez sensu. Albo ten system jest tak super wolny albo nie wiem co.
Ostatni raz - weź jeszcze raz i zrób aktualizację.
Łączy się od strzała.
www nie wszystko wyświetla.
Zaktualizowałem obrazy z pierwszego posta.
Reszta wieczorem.
Nie wyświetla parametrów modemu, ale jak nie chce gadać to nie chce. Możesz mi jeszcze wykonać:
gcom -d XXXX -s /usr/share/3ginfo-lite/3ginfo.gcom
Za XXX podstaw to co jest w /tmp/modem. Albo wykonaj na to wszystkich dostępnych interfejsach szeregowych, bo może jak jednym odpowiada częściowo a na innych dobrze.
BusyBox v1.28.4 () built-in shell (ash)
_______ ________ __
| |.-----.-----.-----.| | | |.----.| |_
| - || _ | -__| || | | || _|| _|
|_______|| __|_____|__|__||________||__| |____|
|__| W I R E L E S S F R E E D O M
-----------------------------------------------------------------------------
| |
| OpenWrt 18.06-SNAPSHOT, r7715-9f2cbcad6d |
| |
| Build time: 2019-03-13 22:35 CET |
| Cezary Jackiewicz (obsy), http://eko.one.pl |
| |
-----------------------------------------------------------------------------
| Machine: D-Link DWR-921 C1 |
| Uptime: 0d, 00:08:55 |
| Load: 0.13 0.08 0.06 |
| Flash: total: 12.3MB, free: 11.7MB, used: 5% |
| Memory: total: 59.0MB, free: 43.9MB, used: 25% |
| WAN: 100.99.11.145, proto: qmi |
| LAN: 192.168.11.1, leases: 0 |
| radio0: mode: ap, ssid: mifi-aad68f, channel: 11, conn: 0 |
-----------------------------------------------------------------------------
root@MiFi:~# gcom -d /dev/ -s /usr/share/3ginfo-lite/3ginfo.gcom
bus/ hwrng mtd2ro mtdblock2 ptmx ttyS12 ttyS7
cdc-wdm0 kmsg mtd3 mtdblock3 pts/ ttyS13 ttyS8
console log mtd3ro mtdblock4 random ttyS14 ttyS9
cpu_dma_latency memory_bandwidth mtd4 mtdblock5 shm/ ttyS15 urandom
full mtd0 mtd4ro network_latency tty ttyS2 watchdog
gpiochip0 mtd0ro mtd5 network_throughput ttyS0 ttyS3 watchdog0
gpiochip1 mtd1 mtd5ro null ttyS1 ttyS4 zero
gpiochip2 mtd1ro mtdblock0 port ttyS10 ttyS5
gpiochip3 mtd2 mtdblock1 ppp ttyS11 ttyS6
root@MiFi:~# gcom -d /dev/tty -s /usr/share/3ginfo-lite/3ginfo.gcom
tty ttyS0 ttyS1 ttyS10 ttyS11 ttyS12 ttyS13 ttyS14 ttyS15 ttyS2 ttyS3 ttyS4 ttyS5 ttyS6 ttyS7 ttyS8 ttyS9
root@MiFi:~# gcom -d /dev/tty -s /usr/share/3ginfo-lite/3ginfo.gcom
tty ttyS0 ttyS1 ttyS10 ttyS11 ttyS12 ttyS13 ttyS14 ttyS15 ttyS2 ttyS3 ttyS4 ttyS5 ttyS6 ttyS7 ttyS8 ttyS9
root@MiFi:~# gcom -d /dev/ttys0 -s /usr/share/3ginfo-lite/3ginfo.gcom
Can't open device /dev/ttys0.
root@MiFi:~# gcom -d /dev/ttys1 -s /usr/share/3ginfo-lite/3ginfo.gcom
Can't open device /dev/ttys1.
root@MiFi:~# gcom -d /dev/ttys2 -s /usr/share/3ginfo-lite/3ginfo.gcom
Can't open device /dev/ttys2.
root@MiFi:~# gcom -d /dev/ttys3 -s /usr/share/3ginfo-lite/3ginfo.gcom
Can't open device /dev/ttys3.
root@MiFi:~# gcom -d /dev/ttys4 -s /usr/share/3ginfo-lite/3ginfo.gcom
Can't open device /dev/ttys4.
root@MiFi:~# gcom -d /dev/ttys5 -s /usr/share/3ginfo-lite/3ginfo.gcom
Can't open device /dev/ttys5.
root@MiFi:~# gcom -d /dev/ttys6 -s /usr/share/3ginfo-lite/3ginfo.gcom
Can't open device /dev/ttys6.
root@MiFi:~# gcom -d /dev/ttys7 -s /usr/share/3ginfo-lite/3ginfo.gcom
Can't open device /dev/ttys7.
root@MiFi:~# gcom -d /dev/ttys8 -s /usr/share/3ginfo-lite/3ginfo.gcom
Can't open device /dev/ttys8.
root@MiFi:~# gcom -d /dev/ttys9 -s /usr/share/3ginfo-lite/3ginfo.gcom
Can't open device /dev/ttys9.
root@MiFi:~# gcom -d /dev/tty -s /usr/share/3ginfo-lite/3ginfo.gcom
tty ttyS0 ttyS1 ttyS10 ttyS11 ttyS12 ttyS13 ttyS14 ttyS15 ttyS2 ttyS3 ttyS4 ttyS5 ttyS6 ttyS7 ttyS8 ttyS9
root@MiFi:~# gcom -d /dev/ttyS10 -s /usr/share/3ginfo-lite/3ginfo.gcom
comgt 19:14:18 -> -- Error Report --
comgt 19:14:18 -> ----> ^
comgt 19:14:18 -> Error @6, line 1, Can't control /dev/ttyS10, please try again.
. (1)
root@MiFi:~# gcom -d /dev/ttyS11 -s /usr/share/3ginfo-lite/3ginfo.gcom
comgt 19:14:22 -> -- Error Report --
comgt 19:14:22 -> ----> ^
comgt 19:14:22 -> Error @6, line 1, Can't control /dev/ttyS11, please try again.
. (1)
root@MiFi:~# gcom -d /dev/ttyS12 -s /usr/share/3ginfo-lite/3ginfo.gcom
comgt 19:14:26 -> -- Error Report --
comgt 19:14:26 -> ----> ^
comgt 19:14:26 -> Error @6, line 1, Can't control /dev/ttyS12, please try again.
. (1)
root@MiFi:~# gcom -d /dev/ttyS14 -s /usr/share/3ginfo-lite/3ginfo.gcom
comgt 19:14:31 -> -- Error Report --
comgt 19:14:31 -> ----> ^
comgt 19:14:31 -> Error @6, line 1, Can't control /dev/ttyS14, please try again.
. (1)
root@MiFi:~# gcom -d /dev/ttyS13 -s /usr/share/3ginfo-lite/3ginfo.gcom
comgt 19:14:34 -> -- Error Report --
comgt 19:14:34 -> ----> ^
comgt 19:14:34 -> Error @6, line 1, Can't control /dev/ttyS13, please try again.
. (1)
root@MiFi:~# gcom -d /dev/ttyS15 -s /usr/share/3ginfo-lite/3ginfo.gcom
comgt 19:14:39 -> -- Error Report --
comgt 19:14:39 -> ----> ^
comgt 19:14:39 -> Error @6, line 1, Can't control /dev/ttyS15, please try again.
. (1)
root@MiFi:~# cat /tmp/modem
root@MiFi:~#EDIT:
root@MiFi:~# echo '2020 2033' > /sys/bus/usb-serial/drivers/option1/new_id
root@MiFi:~# ls /dev/
bus/ kmsg mtd3ro mtdblock5 tty ttyS3 ttyUSB3
cdc-wdm0 log mtd4 network_latency ttyS0 ttyS4 urandom
console memory_bandwidth mtd4ro network_throughput ttyS1 ttyS5 watchdog
cpu_dma_latency mtd0 mtd5 null ttyS10 ttyS6 watchdog0
full mtd0ro mtd5ro port ttyS11 ttyS7 zero
gpiochip0 mtd1 mtdblock0 ppp ttyS12 ttyS8
gpiochip1 mtd1ro mtdblock1 ptmx ttyS13 ttyS9
gpiochip2 mtd2 mtdblock2 pts/ ttyS14 ttyUSB0
gpiochip3 mtd2ro mtdblock3 random ttyS15 ttyUSB1
hwrng mtd3 mtdblock4 shm/ ttyS2 ttyUSB2
root@MiFi:~# gcom -d /dev/tty -s /usr/share/3ginfo-lite/3ginfo.gcom
tty ttyS1 ttyS11 ttyS13 ttyS15 ttyS3 ttyS5 ttyS7 ttyS9 ttyUSB1 ttyUSB3
ttyS0 ttyS10 ttyS12 ttyS14 ttyS2 ttyS4 ttyS6 ttyS8 ttyUSB0 ttyUSB2
root@MiFi:~# gcom -d /dev/ttyUSB -s /usr/share/3ginfo-lite/3ginfo.gcom
ttyUSB0 ttyUSB1 ttyUSB2 ttyUSB3
root@MiFi:~# gcom -d /dev/ttyUSB0 -s /usr/share/3ginfo-lite/3ginfo.gcom
root@MiFi:~# gcom -d /dev/ttyUSB1 -s /usr/share/3ginfo-lite/3ginfo.gcom
+CSQ: 20,99
+COPS: 0,0,"T-Mobile.pl",7
+COPS: 0,2,"26002",7
root@MiFi:~# gcom -d /dev/ttyUSB2 -s /usr/share/3ginfo-lite/3ginfo.gcom
+CSQ: 20,99
+COPS: 0,0,"T-Mobile.pl",7
+COPS: 0,2,"26002",7
root@MiFi:~# gcom -d /dev/ttyUSB3 -s /usr/share/3ginfo-lite/3ginfo.gcom
comgt 19:21:33 -> -- Error Report --
comgt 19:21:33 -> ----> ^
comgt 19:21:33 -> Error @368, line 27, Could not write to COM device. (1)
^C
^C^C^C
^CA gdzie masz /dev/ttyUSB*? Wykonaj /etc/rc.local
root@MiFi:~# /etc/rc.local
root@MiFi:~# gcom -d /dev/ttyUSB0 -s /usr/share/3ginfo-lite/3ginfo.gcom
root@MiFi:~# gcom -d /dev/ttyUSB1 -s /usr/share/3ginfo-lite/3ginfo.gcom
+CSQ: 19,99
+COPS: 0,0,"T-Mobile.pl",7
+COPS: 0,2,"26002",7
root@MiFi:~# gcom -d /dev/ttyUSB2 -s /usr/share/3ginfo-lite/3ginfo.gcom
+CSQ: 19,99
+COPS: 0,0,"T-Mobile.pl",7
+COPS: 0,2,"26002",7
root@MiFi:~# gcom -d /dev/ttyUSB4 -s /usr/share/3ginfo-lite/3ginfo.gcom
Can't open device /dev/ttyUSB4.
root@MiFi:~# cat /tmp/modem
/dev/ttyUSB2
root@MiFi:~#Po wykonaniu z palca /etc/rc.local pojawiają się dane w mifi. Obrazki zaktualizowane.
/etc/rc.local ma prawa wykonywania? Zresetuj go, pojawiają się dev/ttyUSB*
/etc/rc.local ma prawa wykonywania? Zresetuj go, pojawiają się dev/ttyUSB*
root@MiFi:~# ls -l /etc/rc.local
-rwxrwxr-x 1 root root 350 Mar 11 17:07 /etc/rc.localResety nie pomagają.
[ 23.219380] usb 1-1: new high-speed USB device number 2 using ehci-platformZastanawiam się czy na pewno rc.local wykonuje się po 24 sekundzie. Może do hotplug to przenieść?
To w ogóle powinno być dodane do sterownika option i było by z głowy. Ten system jest jakiś mega wolny. Dodaj jako pierwszą linię logger "tu bylem", zrestartuj i zobacz kiedy się pojawi a kiedy będzie info o wykrywaniu urządzeń usb.
Wywal /etc/rc.local. Zrób plik /etc/hotplug.d/usb/99-dlink o zawartości:
#!/bin/sh
[ "$ACTION" = add -a "$DEVTYPE" = usb_device ] || exit 0
vid=$(cat /sys$DEVPATH/idVendor)
pid=$(cat /sys$DEVPATH/idProduct)
if [ "$vid:$pid" = "1435:d181" ]; then
echo "1435 d181" > /sys/bus/usb-serial/drivers/option1/new_id
fi
if [ "$vid:$pid" = "2020:2033" ]; then
echo "2020 2033" > /sys/bus/usb-serial/drivers/option1/new_id
fi
exit 0Zrestartuj i zobacz czy zrobi interfejsy.
Wywal /etc/rc.local. Zrób plik /etc/hotplug.d/usb/99-dlink o zawartości:
#!/bin/sh [ "$ACTION" = add -a "$DEVTYPE" = usb_device ] || exit 0 vid=$(cat /sys$DEVPATH/idVendor) pid=$(cat /sys$DEVPATH/idProduct) if [ "$vid:$pid" = "1435:d181" ]; then echo "1435 d181" > /sys/bus/usb-serial/drivers/option1/new_id fi if [ "$vid:$pid" = "2020:2033" ]; then echo "2020 2033" > /sys/bus/usb-serial/drivers/option1/new_id fi exit 0Zrestartuj i zobacz czy zrobi interfejsy.
Działa. Dodałem skrypt i prawa do niego.
Więc buduję z takim skryptem.
https://www.dropbox.com/s/8496mopz5qxd5 … 2.png?dl=0 -> ussd
SMSy działają.
Dla ussd ustaw sobie brak kodowania pdu, albo kodowanie jak nie miałeś ![]()
Jak się ustawia brak PDU? Instrukcje w tutorialu wyglądają tak samo.
Zaloguj się lub zarejestruj by napisać odpowiedź
eko.one.pl → Oprogramowanie / Software → [poszukiwany] MiFi na dwr-921
Forum oparte o PunBB, wspierane przez Informer Technologies, Inc