入手一个荣事达智能网关,拆机发现配置为MT7620A +CC2530 8M+64M 4个网口 一个USB 一个SD卡槽,想改成Z2M网关,再把家里的wifi智能设备都连到这个路由专网专用.
默认系统开启了telnet但是没有密码,板子串口已经引出,连接串口获取的启动日志如下。
U-Boot 1.1.3 (Dec 16 2014 - 23:01:09) Board: Ralink APSoC DRAM: 64 MB relocate_code Pointer at: 83fb8000 enable ephy clock...done. rf reg 29 = 5 SSC disabled. ****************************** Software System Reset Occurred ****************************** spi_wait_nsec: 29 spi device id: ef 40 17 0 0 (40170000) find flash: W25Q64BV raspi_read: from:30000 len:1000 *** Warning - bad CRC, using default environment ============================================ Ralink UBoot Version: 4.2.S.1 -------------------------------------------- ASIC 7620_MP (Port5<->None) DRAM component: 512 Mbits DDR, width 16 DRAM bus: 16 bit Total memory: 64 MBytes Flash component: SPI Flash Date:Dec 16 2014 Time:23:01:09 ============================================ icache: sets:512, ways:4, linesz:32 ,total:65536 dcache: sets:256, ways:4, linesz:32 ,total:32768 ##### The CPU freq = 580 MHZ #### estimate memory size =64 Mbytes Please choose the operation: 1: Load system code to SDRAM via TFTP. 2: Load system code then write to Flash via TFTP. 3: Boot system code via Flash (default). 4: Entr boot command line interface. 7: Load Boot Loader code then write to Flash via Serial. 9: Load Boot Loader code then write to Flash via TFTP. 0 3: System Boot system code via Flash. ## Booting image at bc050000 ... raspi_read: from:50000 len:40 Image Name: Linux Kernel Image Image Type: MIPS Linux Kernel Image (lzma compressed) Data Size: 7254928 Bytes = 6.9 MB Load Address: 80000000 Entry Point: 8000c150 raspi_read: from:50040 len:6eb390 Verifying Checksum ... OK Uncompressing Kernel Image ... OK No initrd ## Transferring control to Linux (at address 8000c150) ... ## Giving linux memsize in MB, 64 Starting kernel ... LINUX started... THIS IS ASIC Linux version 2.6.36 (root@jimith--machine) (gcc version 4.6.3 (Buildroot 2012.11.1) ) #801 Wed Apr 13 06:43:54 CST 2016 The CPU feqenuce set to 580 MHz MIPS CPU sleep mode enabled. PCIE: bypass PCIe DLL. PCIE: Elastic buffer control: Addr:0x68 -> 0xB4 disable all power about PCIe CPU revision is: 00019650 (MIPS 24Kc) Software DMA cache coherency Determined physical RAM map: memory: 04000000 @ 00000000 (usable) Initrd not found or empty - disabling initrd Zone PFN ranges: Normal 0x00000000 -> 0x00004000 Movable zone start PFN for each node early_node_map[1] active PFN ranges 0: 0x00000000 -> 0x00004000 Built 1 zonelists in Zone order, mobility grouping on. Total pages: 16256 Kernel command line: console=ttyS1,57600n8 root=/dev/ram0 PID hash table entries: 256 (order: -2, 1024 bytes) Dentry cache hash table entries: 8192 (order: 3, 32768 bytes) Inode-cache hash table entries: 4096 (order: 2, 16384 bytes) Primary instruction cache 64kB, VIPT, , 4-waylinesize 32 bytes. Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes Writing ErrCtl register=00068920 Readback ErrCtl register=00068920 Memory: 54372k/65536k available (3854k kernel code, 11164k reserved, 884k data, 5528k init, 0k highmem) NR_IRQS:128 console [ttyS1] enabled Calibrating delay loop... 386.04 BogoMIPS (lpj=772096) pid_max: default: 32768 minimum: 301 Mount-cache hash table entries: 512 NET: Registered protocol family 16 RALINK_GPIOMODE = 1a311c RALINK_GPIOMODE = 18311c PPLL_CFG1=0xe48000 MT7620 PPLL lock PPLL_DRV =0x80080504 start PCIe register access RALINK_RSTCTRL = 2400000 RALINK_CLKCFG1 = 75afffc0 *************** MT7620 PCIe RC mode ************* PCIE0 no card, disable it(RST&CLK) PCIE0 enabled init_rt2880pci done bio: create slab <bio-0> at 0 vgaarb: loaded SCSI subsystem initialized usbcore: registered new interface driver usbfs usbcore: registered new interface driver hub usbcore: registered new device driver usb Switching to clocksource Ralink Systick timer NET: Registered protocol family 2 IP route cache hash table entries: 1024 (order: 0, 4096 bytes) TCP established hash table entries: 2048 (order: 2, 16384 bytes) TCP bind hash table entries: 2048 (order: 1, 8192 bytes) TCP: Hash tables configured (established 2048 bind 2048) TCP reno registered UDP hash table entries: 256 (order: 0, 4096 bytes) UDP-Lite hash table entries: 256 (order: 0, 4096 bytes) NET: Registered protocol family 1 Load Ralink Timer0 Module Load Ralink Timer1 Module RT3xxx EHCI/OHCI init. squashfs: version 4.0 (2009/01/31) Phillip Lougher NTFS driver 2.1.29 [Flags: R/W]. JFFS2 version 2.2 (NAND) (ZLIB) (RTIME) (c) 2001-2006 Red Hat, Inc. fuse init (API version 7.15) msgmni has been set to 106 Block layer SCSI generic (bsg) driver version 0.4 loaded (major 254) io scheduler noop registered (default) no chip on i2c bus! no chip on i2c bus! doit Ralink gpio driver initialized Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled serial8250: ttyS0 at MMIO 0x10000500 (irq = 37) is a 16550A serial8250: ttyS1 at MMIO 0x10000c00 (irq = 12) is a 16550A brd: module loaded SCSI Media Changer driver v0.25 deice id : ef 40 17 0 0 (40170000) W25Q64BV(ef 40170000) (8192 Kbytes) mtd .name = raspi, .size = 0x00800000 (0M) .erasesize = 0x00000008 (0K) .numeraseregions = 65536 Creating 6 MTD partitions on "raspi": 0x000000000000-0x000000800000 : "ALL" 0x000000000000-0x000000030000 : "Bootloader" 0x000000030000-0x000000040000 : "Config" 0x000000040000-0x000000050000 : "Factory" 0x000000050000-0x000001000000 : "Kernel" mtd: partition "Kernel" extends beyond the end of device "raspi" -- size truncated to 0x7b0000 0x000000780000-0x000000800000 : "fbpartition" rdm_major = 253 SMACCR1 -- : 0x0000009a SMACCR0 -- : 0xd5530cd6 Ralink APSoC Ethernet Driver Initilization. v3.1 512 rx/tx descriptors allocated, mtu = 1500! SMACCR1 -- : 0x0000009a SMACCR0 -- : 0xd5530cd6 PROC INIT OK! PPP generic driver version 2.4.2 PPP Deflate Compression module registered PPP BSD Compression module registered NET: Registered protocol family 24 PPTP driver version 0.8.5 IMQ driver loaded successfully. Hooking IMQ after NAT on PREROUTING. Hooking IMQ before NAT on POSTROUTING. usbmon: debugfs is not available Initializing USB Mass Storage driver... usbcore: registered new interface driver usb-storage USB Mass Storage support registered. MTK MSDC device init. mtk-sd: MediaTek MT6575 MSDC Driver GACT probability on Mirror/redirect action on Simple TC action Loaded netem: version 1.2 u32 classifier Performance counters on input device check on Actions configured Netfilter messages via NETLINK v0.30. nf_conntrack version 0.5.0 (849 buckets, 3396 max) ctnetlink v0.93: registering with nfnetlink. nf_conntrack_rtsp v0.6.21 loading matchsize=264 xt_time: kernel timezone is -0000 IPVS: Registered protocols () IPVS: Connection hash table configured (size=4096, memory=32Kbytes) IPVS: ipvs loaded. IPv4 over IPv4 tunneling driver GRE over IPv4 demultiplexor driver gre: can't add protocol nf_nat_rtsp v0.6.21 loading ip_tables: (C) 2000-2006 Netfilter Core Team, Type=Restricted Cone ipt_CLUSTERIP: ClusterIP Version 0.8 loaded successfully arp_tables: (C) 2002 David S. Miller TCP cubic registered NET: Registered protocol family 10 NET: Registered protocol family 17 L2TP core driver, V2.0 PPPoL2TP kernel driver, V2.0 L2TP IP encapsulation support (L2TPv3) L2TP netlink interface L2TP ethernet pseudowire support (L2TPv3) 802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com> All bugs added by David S. Miller <davem@redhat.com> msdc0 -> ops_get_cd return<1> <- msdc_ops_get_cd() : L<2307> PID<kworker/u:0><0x5> Freeing unused kernel memory: 5528k freed msdc0 -> ================ <- msdc_set_mclk() : L<676> PID<kworker/u:0><0x5> msdc0 -> !!! Set<400KHz> Source<48000KHz> -> sclk<400KHz> <- msdc_set_mclk() : L<677> PID<kworker/u:0><0x5> msdc0 -> ================ <- msdc_set_mclk() : L<678> PID<kworker/u:0><0x5> init started: BusyBox v1.12.1 (2014-10-29 11:5devpts: called with bogus options 3:27msdc0 -> XXX CMD<52> MSDC_INT_CMDTMO <- msdc_irq() : L<2444> CSTmsdc0 -> XXX CMD<52> MSDC_INT_CMDTMO <- msdc_irq() : L<2444> ) starting pid 30, ttymsdc0 -> XXX CMD<8> MSDC_INT_CMDTMO <- msdc_irq() : L<2444> '':msdc0 -> XXX CMD<5> MSDC_INT_CMDTMO <- msdc_irq() : L<2444> '/etmsdc0 -> XXX CMD<5> MSDC_INT_CMDTMO <- msdc_irq() : L<2444> c_rmsdc0 -> XXX CMD<5> MSDC_INT_CMDTMO <- msdc_irq() : L<2444> o/rmsdc0 -> XXX CMD<5> MSDC_INT_CMDTMO <- msdc_irq() : L<2444> cS'msdc0 -> XXX CMD<55> MSDC_INT_CMDTMO <- msdc_irq() : L<2444> msdc0 -> XXX CMD<55> MSDC_INT_CMDTMO <- msdc_irq() : L<2444> msdc0 -> XXX CMD<55> MSDC_INT_CMDTMO <- msdc_irq() : L<2444> msdc0 -> XXX CMD<55> MSDC_INT_CMDTMO <- msdc_irq() : L<2444> msdc0 -> XXX CMD<1> MSDC_INT_CMDTMO <- msdc_irq() : L<2444> msdc0 -> set mclk to 0!!! <- msdc_set_mclk() : L<624> PID<kworker/u:0><0x5> Welcome to _______ _______ ___ __ ____ _ _ ___ | ___ \| __ || | |__|| \ | || | / / | |___| || |__| || |__ __ | \| || |/ / | _ /| _ || || || |\ || \ |__| \__\|__| |__||______||__||_| \____||_|\___\ =System Architecture Department= This version build date = 2014-10-21, Low limited = 10! hello!, cellular daemon is running now....... xdaemon.c ---- main ---- 79;userlist.dat is not exist starting pid 57, tty '/dev/ttyS1': '/bin/sh' BusyBox v1.12.1 (2014-10-29 11:53:27 CST) built-in shell (ash) Enter 'help' for a list of built-in commands. # internet.sh Password for 'zorlik' changed ##### disable 1st wireless interface ##### rmmod: rt2860v2_ap_net: No such file or directory rmmod: rt2860v2_ap: No such file or directory rmmod: rt2860v2_ap_util: No such file or directory insmod: rt2860v2_ap_util.ko: module not found === pAd = c05c0000, size = 1316480 === <-- RTMPAllocTxRxRingMemory, Status=0 <-- RTMPAllocAdapterBlock, Status=0 AP Driver version-2.7.2.0 xdaemon.c ---- main ---- 79;userlist.dat is not exist insmod: rt2860v2_ap_net.ko: module not found RX DESC a1db0000 size = 2048 APSDCapable[0]=0 APSDCapable[1]=0 APSDCapable[2]=0 APSDCapable[3]=0 APSDCapable[4]=0 APSDCapable[5]=0 APSDCapable[6]=0 APSDCapable[7]=0 APSDCapable[8]=0 APSDCapable[9]=0 APSDCapable[10]=0 APSDCapable[11]=0 APSDCapable[12]=0 APSDCapable[13]=0 APSDCapable[14]=0 APSDCapable[15]=0 default ApCliAPSDCapable[0]=0 Key1Str is Invalid key length(0) or Type(0) Key2Str is Invalid key length(0) or Type(0) Key3Str is Invalid key length(0) or Type(0) Key4Str is Invalid key length(0) or Type(0) RTMPSetDefaultChannel() : default channel to 1 1. Phy Mode = 9 2. Phy Mode = 9 E2PROM: D0 target power=0xff20 E2PROM: 40 MW Power Delta= 0 3. Phy Mode = 9 RTMP_TimerListAdd: add timer obj c05c5268! AntCfgInit: primary/secondary ant 0/1 Initialize RF Central Registers for E2 !!! Initialize RF Central Registers for E3 !!! Initialize RF Channel Registers for E2 !!! Initialize RF Channel Registers for E3 !!! Initialize RF DCCal Registers for E2 !!! Initialize RF DCCal Registers for E3 !!! D1 = -1, D2 = 6, CalCode = 16 !!! RT6352_Temperature_Init : BBPR49 = 0xfffffffe RT6352_Temperature_Init : TemperatureRef25C = 0xfffffff4 Current Temperature from BBP_R49=0xfffffff3 RT6352_TssiTableAdjust: upper_bound = 0x7F decimal: 127 RT6352_TssiTableAdjust: lower_bound = 0xFFFFFF80 decimal: -128 *** RT6352_TssiTableAdjust: G Tssi[-7 .. +7] = -128 -1 -1 -1 -128 -1 -1 - -1 - -1 -1 -1 -1 -1 -1 -1, offset=-12, tuning=0 RT6352_TssiTableAdjust: G Tssi[-7 .. +7] = -128 -13 -13 -13 -128 -13 -13 - -13 - -13 -13 -13 -13 -13 -13 -13, offset=-12, tuning=0 mp_temperature=0x00, step = +7 E2PROM: G Tssi[-7 .. +7] = -128 -13 -13 -13 -128 -13 -13 - -13 - -13 -13 -13 -13 -13 -13 -13, offset=-12, tuning=0 TX BW Filter Calibration !!! RX BW Filter Calibration !!! LOFT Calibration Done! IQCalibration Start! IQCalibration Done! CH = 0, (gain= f, phase=3c) IQCalibration Start! IQCalibration Done! CH = 1, (gain= 3, phase=39) TX IQ Calibration Done! RXIQ Sigma_i=738, Sigma_q=740, R_iq=30 RXIQ calibration FAIL bAutoTxAgcG = 0 MCS Set = ff ff 00 00 01 SYNC - BBP R4 to 20MHz.l xdaemon.c ---- main ---- 79;userlist.dat is not exist xdaemon.c ---- main ---- 79;userlist.dat is not exist xdaemon.c ---- main ---- 79;userlist.dat is not exist SYNC - BBP R4 to 20MHz.l SYNC - BBP R4 to 20MHz.l xdaemon.c ---- main ---- 79;userlist.dat is not exist 1970-01-01 00:00:08: (server.c.978) can't have more connections than fds/2: 500 824 SYNC - BBP R4 to 20MHz.l SYNC - BBP R4 to 20MHz.l SYNC - BBP R4 to 20MHz.l xdaemon.c ---- main ---- 79;userlist.dat is not exist SYNC - BBP R4 to 20MHz.l SYNC - BBP R4 to 20MHz.l SYNC - BBP R4 to 20MHz.l xdaemon.c ---- main ---- 79;userlist.dat is not exist RTMP_TimerListAdd: add timer obj c0653068! Main bssid = 00:9a:d5:53:0c:d6 <==== rt28xx_init, Status=0 0x1300 = 00064380 ifconfig: ioctl 0x8913 failed: No such device brctl: bridge br0: No such device or address xdaemon.c ---- main ---- 79;userlist.dat is not exist Raeth v3.1 (Tasklet,SkbRecycle) phy_tx_ring = 0x018e8000, tx_ring = 0xa18e8000 phy_rx_ring0 = 0x018ec000, rx_ring0 = 0x818ec000 SMACCR1 -- : 0x0000009a SMACCR0 -- : 0xd5530cd6 CDMA_CSG_CFG = 81000000 GDMA1_FWD_CFG = 20710000 vconfig: ioctl error for rem: No such device vconfig: ioctl error for rem: No such device rmmod: 8021q: No such file or directory device eth2 entered promiscuous mode ##### config Ralink ESW vlan partition (WLLLL) ##### xdaemon.c ---- main ---- 79;userlist.dat is not exist switch reg write offset=2004, value=ff0003 switch reg write offset=2104, value=ff0003 switch reg write offset=2204, value=ff0003 switch reg write offset=2304, value=ff0003 switch reg write offset=2404, value=ff0003 switch reg write offset=2504, value=ff0003 switch reg write offset=2010, value=810000c0 switch reg write offset=2110, value=810000c0 switch reg write offset=2210, value=810000c0 switch reg write offset=2310, value=810000c0 switch reg write offset=2410, value=810000c0 switch reg write offset=2510, value=810000c0 switch reg write offset=2610, value=81000000 switch reg write offset=2710, value=81000000 switch reg write offset=2604, value=20ff0003 switch reg write offset=2704, value=20ff0003 Special Tag Disabled switch reg write offset=2610, value=81000000 switch reg write offset=2014, value=10002 switch reg write offset=2114, value=10001 switch reg write offset=2214, value=10001 switch reg write offset=2314, value=10001 switch reg write offset=2414, value=10001 switch reg write offset=2514, value=10001 REG_ESW_WT_MAC_ATC is 0x7ff0002 done. xdaemon.c ---- main ---- 79;userlist.dat is not exist device ra0 entered promiscuous mode device eth2.1 entered promiscuous mode udhcpc (v1.12.1) started br0: port 2(eth2.1) entering learning state br0: port 2(eth2.1) entering learning state br0: port 1(ra0) entering learning state br0: port 1(ra0) entering learning state ifconfig: ioctl 0x8914 failed: Cannot assign requested address ifconfig: ioctl 0x8914 failed: Cannot assign requested address xdaemon.c ---- main ---- 79;userlist.dat is not exist br0: port 2(eth2.1) entering forwarding state br0: port 1(ra0) entering forwarding state xdaemon.c ---- main ---- 79;userlist.dat is not exist killall: udhcpd: no process killed Set: phy[4].reg[0] = 3900 Set: phy[1].reg[0] = 3900 Set: phy[2].reg[0] = 3900 Set: phy[3].reg[0] = 3900 xdaemon.c ---- main ---- 79;userlist.dat is not exist Set: phy[4].reg[0] = 3300 Set: phy[1].reg[0] = 3300 Set: phy[2].reg[0] = 3300 Set: phy[3].reg[0] = 3300 is HGA760 ADDRCONF(NETDEV_UP): imq0: link is not ready ADDRCONF(NETDEV_UP): imq1: link is not ready ADDRCONF(NETDEV_UP): teql0: link is not ready ADDRCONF(NETDEV_UP): tunl0: link is not ready ADDRCONF(NETDEV_UP): apcli0: link is not ready xdaemon.c ---- main ---- 79;userlist.dat is not exist ifconfig: ioctl 0x8913 failed: No such device rm: cannot remove '/etc/radvd.conf': No such file or directory echo 0 > /proc/sys/net/ipv6/conf/all/forwarding killall rt2860apd 1>/dev/null 2>&1 iptables -F -t filter 1>/dev/null 2>&1 iptables -D FORWARD -j macipport_filter 1>/dev/null 2>&1 iptables -F macipport_filter 1>/dev/null 2>&1 iptables -D FORWARD -j web_filter 1>/dev/null 2>&1 iptables -F web_filter 1>/dev/null 2>&1 iptables -D FORWARD -j malicious_filter 1>/dev/null 2>&1 iptables -F malicious_filter 1>/dev/null 2>&1 iptables -D INPUT -j malicious_input_filter 1>/dev/null 2>&1 iptables -F malicious_input_filter 1>/dev/null 2>&1 iptables -t filter -D FORWARD -j port_trigger 1>/dev/null 2>&1 iptables -t filter -F port_trigger 1>/dev/null 2>&1 iptables -t nat -D PREROUTING -j trigger_prerouting 1>/dev/null 2>&1 iptables -t nat -F trigger_prerouting 1>/dev/null 2>&1; iptables -t nat -X trigger_prerouting 1>/dev/null 2>&1 iptables -P INPUT ACCEPT iptables -P OUTPUT ACCEPT iptables -P FORWARD ACCEPT iptables -t filter -N web_filter 1>/dev/null 2>&1 iptables -t filter -N macipport_filter 1>/dev/null 2>&1 iptables -t filter -N malicious_filter 1>/dev/null 2>&1 iptables -t filter -N synflood_filter 1>/dev/null 2>&1 iptables -t filter -N malicious_input_filter 1>/dev/null 2>&1 iptables -t filter -N synflood_input_filter 1>/dev/null 2>&1 iptables -t filter -A FORWARD -j web_filter 1>/dev/null 2>&1 iptables -t filter -A FORWARD -j macipport_filter 1>/dev/null 2>&1 iptables -t filter -A FORWARD -j malicious_filter 1>/dev/null 2>&1 iptables -t filter -A malicious_filter -p tcp --syn -j synflood_filter 1>/dev/null 2>&1 iptables -t filter -A INPUT -j malicious_input_filter 1>/dev/null 2>&1 iptables -t filter -A malicious_input_filter -p tcp --syn -j synflood_input_filter 1>/dev/null 2>&1 iptables -A FORWARD -p tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu 1>/dev/null 2>&1 iptables -t filter -N port_trigger 1>/dev/null 2>&1 iptables -t filter -A FORWARD -j port_trigger 1>/dev/null 2>&1 iptables -t nat -N trigger_prerouting 1>/dev/null 2>&1 iptables -t nat -A PREROUTING -j trigger_prerouting 1>/dev/null 2>&1 iptables -A malicious_input_filter -i eth2.2 -p tcp --dport 80 -j DROP iptables -t nat -D PREROUTING -j port_forward 1>/dev/null 2>&1 iptables -t nat -F port_forward 1>/dev/null 2>&1; iptables -t nat -X port_forward 1>/dev/null 2>&1 iptables -t nat -D PREROUTING -j DMZ 1>/dev/null 2>&1 iptables -t nat -F DMZ 1>/dev/null 2>&1; iptables -t nat -X DMZ 1>/dev/null 2>&1 cat /proc/sys/net/netfilter/nf_conntrack_udp_timeout > /var/.udpbackup echo 0 > /proc/sys/net/netfilter/nf_conntrack_udp_timeout cat /var/.udpbackup > /proc/sys/net/netfilter/nf_conntrack_udp_timeout; rm -f /var/.udpbackup cat /proc/sys/net/netfilter/nf_conntrack_tcp_timeout_established > /var/.tcpbackup echo 0 > /proc/sys/net/netfilter/nf_conntrack_tcp_timeout_established cat /var/.tcpbackup > /proc/sys/net/netfilter/nf_conntrack_tcp_timeout_established; rm -f /var/.tcpbackup iptables -t nat -N port_forward 1>/dev/null 2>&1; iptables -t nat -I PREROUTING 1 -j port_forward 1>/dev/null 2>&1 iptables -t nat -N DMZ 1>/dev/null 2>&1; iptables -t nat -I PREROUTING 2 -j DMZ 1>/dev/null 2>&1 ntp.sh ddns.sh ntp.sjtu.edu.cn: Unknown host iwpriv ra0 set WscConfMode=0 1>/dev/null 2>&1 route delete 239.255.255.250 1>/dev/null 2>&1 miniupnpd.sh init killall -q klogd killall -q syslogd syslogd -C8 1>/dev/null 2>&1 klogd 1>/dev/null 2>&1 killall -q zebra xdaemon.c ---- main ---- 79;userlist.dat is not exist killall -q ripd webs: Listening for HTTP requests at address 192.168.169.1 ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver rt3xxx-ehci rt3xxx-ehci: Ralink EHCI Host Controller rt3xxx-ehci rt3xxx-ehci: new USB bus registered, assigned bus number 1 rt3xxx-ehci rt3xxx-ehci: irq 18, io mem 0x101c0000 rt3xxx-ehci rt3xxx-ehci: USB 0.0 started, EHCI 1.00 usb usb1: New USB device found, idVendor=1d6b, idProduct=0002 usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1 usb usb1: Product: Ralink EHCI Host Controller usb usb1: Manufacturer: Linux 2.6.36 ehci_hcd usb usb1: SerialNumber: rt3xxx xdaemon.c ---- main ---- 79;ushub 1-0:1.0: USB hub found erhub 1-0:1.0: 1 port detected list.dat is not exist ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver rt3xxx-ohci rt3xxx-ohci: RT3xxx OHCI Controller rt3xxx-ohci rt3xxx-ohci: new USB bus registered, assigned bus number 2 rt3xxx-ohci rt3xxx-ohci: irq 18, io mem 0x101c1000 usb usb2: New USB device found, idVendor=1d6b, idProduct=0001 usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1 usb usb2: Product: RT3xxx OHCI Controller usb usb2: Manufacturer: Linux 2.6.36 ohci_hcd usb usb2: SerialNumber: rt3xxx-ohci hub 2-0:1.0: USB hub found hub 2-0:1.0: 1 port detected xdaemon.c ---- main ---- 79;userlist.dat is not exist 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: registered new interface driver cdc_acm cdc_acm: v0.26:USB Abstract Control Model driver for USB modems and ISDN adapters USB Serial support registered for GSM modem (1-port) usbcore: registered new interface driver option option: v0.7.2:USB Driver for GSM modems PPP MPPE Compression module registered USB Serial support registered for cp210x usbcore: registered new interface driver cp210x cp210x: v0.09:Silicon Labs CP210x RS232 serial adaptor driver usbcore: registered new interface driver cdc_ether usbcore: registered new interface driver cdc_subset xdaemon.c ---- main ---- 79;userlist.dat is not exist zlldaemon -- Nov 3 2015 11:05:10 run zll zll 6.3.3 -- Apr 13 2016 10:45:30 Open serial port /dev/ttyS0 Open serial port OK 57600 routerway start initDefencefile readDefenceFromFile fail readDeviceListFromFile /mnt/devicelistfile.dat File size 69 Read OK start inittaskfile read failureread failurestart initbindfile read failuresocketSeverInit init socketfd=4 waiting for socket new connection Init Cloud Cloud:rsdznjj.com.cn SN:118b0386 usr_10373_pass_S2fijU_ wc 0,isnet 1 setsockopt: No such device 1 error 19 interface num is intrface=2 ====================interface:1==================== net device br0 the interface status is UP IP address is: 192.168.169.1 HW address is: 00:9a:d5:53:0c:d6 ====================interface:0==================== net device lo the interface status is UP IP address is: 127.0.0.1 HW address is: 00:00:00:00:00:00 xdaemon.c ---- main ---- 82;userlist.dat is exist xdaemon.c ---- run_telctl ---- 49;filen : xdaemon.c ---- run_telctl ---- 61;filen : /sbin/telctl doSystem : killall telctl& killall: telctl: no process killed doSystem : /sbin/telctl & xdaemon.c ---- main ---- 103;/sbin/telctl is runing E-00 ---Light2 epInfo->nwkAddr=0xb6bf,epInfo->status=19 ZLL:FZB5700 Reset OK! len 0 ZDO: 45, c0 getpanid no net ---Light2 epInfo->nwkAddr=0xb6bf,epInfo->status=18 xdaemon.c ---- main ---- 103;/sbin/telctl is runing ---Light2 epInfo->nwkAddr=0xb6bf,epInfo->status=17 ---Light2 epInfo->nwkAddr=0xb6bf,epInfo->status=16 [1970-1-1 8-0-44 telctl]: telctl.c ---- ConnectServer ---- 57 ;gethostbyname : acs.rsdznjj.com.cn error,and will try again after 5 sec xdaemon.c ---- main ---- 103;/sbin/telctl is runing reconect InitCloud
搜索到此设备类似为飞比代工的FGM87G1-NPHR CC2530模块版本为FZB5700+ 2.0
CC2350+CC2591模块 刷写固件
使用妖神的刷写工具,固件使用CC2530_CC2591_DEFAULT_20190608.zip,8266与模块接线如下
CC2530 8266
1 G
2 3.3V
3 IO13
4 IO14
19 IO12
刷写完成后,使用8266的ser2bin测试 Z2M连接正常
MT7620部分
干掉uboot 启动uboot时选择9,TFTP刷入breed方便刷机 固件为breed-mt7620-reset1.bin
编译openwrt固件 开启第二串口 安装ser2bin 这里不管怎么更改设置 Z2M都连接不上…不知道哪里出了问题
原固件tty设置
Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
serial8250: ttyS0 at MMIO 0x10000500 (irq = 37) is a 16550A
serial8250: ttyS1 at MMIO 0x10000c00 (irq = 12) is a 16550A
编译后的串口设置
[ 0.822376] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[ 0.836023] 10000500.uart: ttyS0 at MMIO 0x10000500 (irq = 13, base_baud = 2500000) is a Palmchip BK-3103
[ 0.855714] 10000c00.uartlite: ttyS1 at MMIO 0x10000c00 (irq = 20, base_baud = 2500000) is a Palmchip BK-3103
无奈又弄了个esp01(esp01比较小巧,但是刷妖神的ser2bin用不了) 做转发用 ,用了espeasy的串口转发功能,先这么跑着吧…
希望有大神指导下为啥7620下为啥连接不到模块呢,如果可以解决这个问题,下一步安装SD卡,使用extroot扩展空间,然后把Z2M直接编译到7620里不用转发直接就是完美网关啦