|
本帖最后由 flyfishcn 于 2015-11-19 19:06 编辑
手里有个电信ADSL猫,中兴的H108L很久以来都闲置着,配置如下:
CPU: RTL8672
无线芯片:RTL8188RE
交换机芯片:RTL8305N
现在的情况是:找到方案最解决的一款是:Huawei HG526 恰巧发现这款已经有大神编译出来支持的固件了,刷完之后能正常进入op系统,无线芯片虽然和HG526不同但是能正常使用,但是网口全都不能用.插线灯不亮,电脑网卡显示断开.进uboot时网口是正常的,怀疑是固件中驱动的问题,但在OP系统中又能看到eth0和eth0_sw0-sw3网卡.自己折腾了几天也没搞懂该怎么弄
我对linux下的驱动不熟悉,求教该如何能让网口正常工作?需要重新编译系统吗?还有不知道这个平台的固件该如何编译,参考了google到的教程,但是在编译时target找不到和Realtek家相关的.小弟纯新手,目的是为思考,盼有大神能不吝赐教.万分感谢.
下面上TTL信息
- persist 2011.06-rc2 (Sep 19 2012 - 13:00:55)
- Board: RTL8672 mips CPU: RTL8672 proc_id=0xcf01
- DRAM: 32 MiB
- *** Warning - bad CRC, using default environment
- In: serial
- Out: serial
- Err: serial
- ## Booting kernel from Legacy Image at bd040000 ...
- Image Name: Multi-FW
- Created: 2014-06-10 6:48:54 UTC
- Image Type: MIPS Linux Multi-File Image (uncompressed)
- Data Size: 3965408 Bytes = 3.8 MiB
- Load Address: 00000000
- Entry Point: 00000000
- Contents:
- Image 0: 2543616 Bytes = 2.4 MiB
- Image 1: 1421780 Bytes = 1.4 MiB
- Verifying Checksum ... OK
- ## Loading init Ramdisk from multi component Legacy Image at bd040000 ...
- Uncompressing Kernel Image ... OK
- Starting kernel ...
- Linux version 2.6.19-g526b1fa2-dirty (arrow@uhome) (gcc version 3.4.6-1.3.6) #618 Tue Jun 10 14:47:18 CST 2014
- CPU revision is: 0000ff00
- Determined physical RAM map:
- memory: 02000000 @ 00000000 (usable)
- User-defined physical RAM map:
- memory: 02000000 @ 00000000 (usable)
- Built 1 zonelists. Total pages: 8128
- Kernel command line: console=ttyS0,115200 mem=32M root=31:3
- root_dev_setup 222 line:31:3
- Primary instruction cache 16kB, linesize 16 bytes.
- Primary data cache 8kB, linesize 16 bytes.
- Synthesized TLB refill handler (17 instructions).
- Synthesized TLB load handler fastpath (31 instructions).
- Synthesized TLB store handler fastpath (31 instructions).
- Synthesized TLB modify handler fastpath (25 instructions).
- PID hash table entries: 128 (order: 7, 512 bytes)
- Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
- Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
- Memory: 23124k/32768k available (3904k kernel code, 9644k reserved, 884k data, 124k init, 0k highmem)
- Mount-cache hash table entries: 512
- Checking for 'wait' instruction... disabled.
- IMEM section size = 0x9978
- NET: Registered protocol family 16
- SCSI subsystem initialized
- usbcore: registered new interface driver usbfs
- usbcore: registered new interface driver hub
- usbcore: registered new device driver usb
- Sangoma WANPIPE Router v1.1 (c) 1995-2000 Sangoma Technologies Inc.
- NET: Registered protocol family 2
- IP route cache hash table entries: 256 (order: -2, 1024 bytes)
- TCP established hash table entries: 1024 (order: 0, 4096 bytes)
- TCP bind hash table entries: 512 (order: -1, 2048 bytes)
- TCP: Hash tables configured (established 1024 bind 512)
- TCP reno registered
- Realtek GPIO Driver for Flash Reload Default
- NET: Registered protocol family 21
- squashfs: version 3.2 (2007/01/02) Phillip Lougher
- Registering mini_fo version $Id$
- JFFS2 version 2.2. (NAND) (C) 2001-2006 Red Hat, Inc.
- io scheduler noop registered
- io scheduler anticipatory registered
- io scheduler deadline registered
- io scheduler cfq registered (default)
- Serial: 8250/16550 driver $Revision: 1.4 $ 1 ports, IRQ sharing disabled
- netlog start
- serial8250: ttyS0 at MMIO 0x0 (irq = 12) is a 16550A
- PPP generic driver version 2.4.2
- NET: Registered protocol family 24
- 8139cp Ethernet driver v0.0.7 (Feb 27, 2002)
- eth0: RTL-8139C+ at 0xb8018000, 00:00:00:01:00:02, IRQ 26
- RTL8672 NIC100 Probing..
- eth0_sw0: RTL-8305 at port 0
- eth0_sw1: RTL-8305 at port 1
- eth0_sw2: RTL-8305 at port 2
- eth0_sw3: RTL-8305 at port 3
- eth phy patch done!
- RTL8192C/RTL8188C driver version 1.1 (2010-03-31/2010-09-28)
- =====>>INSIDE rtl8192cd_init_one <<=====
- vendor_deivce_id=819110ec
- _
- =====>>EXIT rtl8192cd_init_one <<=====
- =====>>INSIDE rtl8192cd_init_one <<=====
- =====>>EXIT rtl8192cd_init_one <<=====
- =====>>INSIDE rtl8192cd_init_one <<=====
- =====>>EXIT rtl8192cd_init_one <<=====
- =====>>INSIDE rtl8192cd_init_one <<=====
- =====>>EXIT rtl8192cd_init_one <<=====
- =====>>INSIDE rtl8192cd_init_one <<=====
- =====>>EXIT rtl8192cd_init_one <<=====
- flash device: 0x400000 at 0xbd000000
- SFCR:0xb8001200 SFCSR:0xb8001208 SFDR:0xb800120c
- can not get SPI chip driver!
- MXIC matched!!get SPI chip driver!
- Physically mapped flash: Found an alies 0x1000000 for the chip at 0x0, mxic device detect.
- Creating 5 MTD partitions on "Physically mapped flash":
- 0x00000000-0x00020000 : "boot"
- 0x00020000-0x00040000 : "nvram"
- 0x00040000-0x00600000 : "fwmtd"
- 0x0004004c-0x005fffbe : "rootfs"
- mtd: partition "rootfs" doesn't start on an erase block boundary -- force read-only
- 0x00600000-0x007c0000 : "rootfs_data"
- disable USB phy 0
- rtl8672-ehci rtl8672-ehci.0: EHCI Host Controller
- rtl8672-ehci rtl8672-ehci.0: new USB bus registered, assigned bus number 1
- rtl8672-ehci rtl8672-ehci.0: irq 10, io mem 0xb8021000
- rtl8672-ehci rtl8672-ehci.0: USB 0.0 started, EHCI 1.00, driver 10 Dec 2004
- usb usb1: configuration #1 chosen from 1 choice
- hub 1-0:1.0: USB hub found
- hub 1-0:1.0: 2 ports detected
- rtl8672-ohci rtl8672-ohci.0: OHCI Host Controller
- rtl8672-ohci rtl8672-ohci.0: new USB bus registered, assigned bus number 2
- rtl8672-ohci rtl8672-ohci.0: irq 10, io mem 0xb8020000
- usb usb2: configuration #1 chosen from 1 choice
- hub 2-0:1.0: USB hub found
- hub 2-0:1.0: 2 ports detected
- dwc_otg: version 2.60a 22-NOV-2006
- DWC_otg: OTG Device not found ! Bad value for SNPSID: 0x00000000
- Initializing USB Mass Storage driver...
- usbcore: registered new interface driver usb-storage
- USB Mass Storage support registered.
- u32 classifier
- Actions configured
- ip_conntrack version 2.4 (256 buckets, 2048 max) - 216 bytes per conntrack
- ip_conntrack_pptp version 3.1 loaded
- ip_conntrack_ipsec loaded
- ip_nat_pptp version 3.0 loaded
- ip_tables: (C) 2000-2006 Netfilter Core Team
- TCP cubic registered
- Realtek SD2-FastPath v1.00beta_2.4.26-uc0
- /proc/FastPath created
- Realtek MCast FastPath
- /proc/mc_FastPath created
- NET: Registered protocol family 1
- NET: Registered protocol family 17
- Bridge firewalling registered
- NET: Registered protocol family 8
- NET: Registered protocol family 20
- ATM OAM F5 initialized.
- ATM OAM F4 initialized.
- Enable 8671G 1 function
- Enable 8671 0 function
- Enable 8672 function
- ratm: RTL8670 SAR v0.0.2 (Jun 17, 2003)
- /proc/AUTO_PVC_SEARCH created
- SQUASHFS v2.0: patch superblock-inode-number from 0xc1 to 0x132476
- VFS: Mounted root (squashfs filesystem) readonly.
- Freeing unused kernel memory: 124k freed
- Warning: unable to open an initial console.
- EHCI: port status=0x00001000
- - preinit -
- Press the [f] key and hit [enter] to enter failsafe mode
- - regular preinit -
- switching to jffs2
- mini_fo: using base directory: /
- mini_fo: using storage directory: /overlay
- - init -
- init started: BusyBox v1.19.4 ()
- Please press Enter to activate this console. sysinit: Thu Sep 8 15:45:00 UTC 2011
- _
- val=4
- ===> LoadFirmware()
- <=== LoadFirmware()
- val=c6
- eth0: Promiscuous mode enabled.
- device eth0 entered promiscuous mode
- br-lan: port 1(eth0) entering learning state
- _
- _
- val=c4
- ===> LoadFirmware()
- <=== LoadFirmware()
- val=c6
- device wlan0 entered promiscuous mode
- br-lan: port 2(wlan0) entering learning state
- br-lan: topology change detected, propagating
- br-lan: port 1(eth0) entering forwarding state
- sysinit: brctl: bridge br-lan: Device or resource busy
- sysinit: killall: mpoad: no process killed
- br-lan: topology change detected, propagating
- br-lan: port 2(wlan0) entering forwarding state
- PVC Number = 2. Set Desc number per VC = 62
- InitAdslMode....
- InitAdsl
- sysinit: ifconfig: nas_0_8_35: error fetching interface information: Device not found
- fixme atm_find_ci in sar_open!
- ratm(itf 0): open 8.35
- create: ch0 (8/35) 6000,0
- sar_close
- ATM OAM F5 initialized.
- ATM OAM F4 initialized.
- Enable 8671G 1 function
- Enable 8671 0 function
- Enable 8672 function
- create: ch0 (8/35) 6000,0
- applying workaround...done
- sysinit: nas_0_8_35 Link encap:Ethernet HWaddr 00:00:01:00:00:00
- sysinit: UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
- sysinit: RX packets:0 errors:0 dropped:0 overruns:0 frame:0
- sysinit: TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
- sysinit: collisions:0 txqueuelen:1000
- sysinit: RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
- sysinit: ifconfig nas_0_8_35 up with mac 00:26:ab:0d:b9:0d
- sysinit: ifconfig: nas_1_0_32: error fetching interface information: Device not found
- fixme atm_find_ci in sar_open!
- ratm(itf 0): open 0.32
- create: ch1 (0/32) 6000,0
- sar_close
- sar_close
- ATM OAM F5 initialized.
- ATM OAM F4 initialized.
- Enable 8671G 1 function
- Enable 8671 0 function
- Enable 8672 function
- create: ch0 (8/35) 6000,0
- create: ch1 (0/32) 6000,0
- applying workaround...done
- sysinit: nas_1_0_32 Link encap:Ethernet HWaddr 00:00:01:00:00:00
- sysinit: BROADCAST MULTICAST MTU:1500 Metric:1
- sysinit: RX packets:0 errors:0 dropped:0 overruns:0 frame:0
- sysinit: TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
- sysinit: collisions:0 txqueuelen:1000
- sysinit: RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
- sysinit: ifconfig nas_1_0_32 up with mac 00:6d:7f:ce:9f:ee
- sysinit: Loading defaults
- sysinit: iptables: No chain/target/match by that name.
- sysinit: iptables: No chain/target/match by that name.
- sysinit: iptables: No chain/target/match by that name.
- sysinit: Loading synflood protection
- sysinit: Adding custom chains
- sysinit: Loading zones
- sysinit: Loading forwardings
- sysinit: Loading rules
- sysinit: Loading redirects
- sysinit: Loading includes
- sysinit: Optimizing conntrack
- sysinit: Loading interfaces
- sysinit: iptables v1.4.10: Bad MARK value "1/0xff"
- sysinit: Try `iptables -h' or 'iptables --help' for more information.
- sysinit: iptables v1.4.10: Bad MARK value "1/0xff"
- sysinit: Try `iptables -h' or 'iptables --help' for more information.
- sysinit: iptables v1.4.10: Bad MARK value "3/0xff"
- sysinit: Try `iptables -h' or 'iptables --help' for more information.
- sysinit: iptables v1.4.10: Bad MARK value "2/0xff"
- sysinit: Try `iptables -h' or 'iptables --help' for more information.
- sysinit: iptables v1.4.10: Bad MARK value "2/0xff"
- sysinit: Try `iptables -h' or 'iptables --help' for more information.
- sysinit: iptables: No chain/target/match by that name.
- sysinit: iptables: No chain/target/match by that name.
- sysinit: iptables v1.4.10: Bad MARK value "0/0xff"
- sysinit: Try `iptables -h' or 'iptables --help' for more information.
- sysinit: iptables v1.4.10: Bad MARK value "0/0xff"
- sysinit: Try `iptables -h' or 'iptables --help' for more information.
- sysinit: iptables v1.4.10: Bad MARK value "2/0xff"
- sysinit: Try `iptables -h' or 'iptables --help' for more information.
- sysinit: iptables v1.4.10: Bad MARK value "1/0xff"
- sysinit: Try `iptables -h' or 'iptables --help' for more information.
- sysinit: iptables v1.4.10: Bad MARK value "4/0xff"
- sysinit: Try `iptables -h' or 'iptables --help' for more information.
- sysinit: iptables v1.4.10: Bad MARK value "4/0xff"
- sysinit: Try `iptables -h' or 'iptables --help' for more information.
- sysinit: iptables v1.4.10: Bad MARK value "1/0xff"
- sysinit: Try `iptables -h' or 'iptables --help' for more information.
- sysinit: iptables v1.4.10: Bad MARK value "1/0xff"
- sysinit: Try `iptables -h' or 'iptables --help' for more information.
- BusyBox v1.19.4 () built-in shell (ash)
- Enter 'help' for a list of built-in commands.
- - W I R E L E S S F R E E D O M -
- - rtl8672 (v, a, t, s) MIPS go on -
- - persist create -
- ------------------------------------
- root@rtl8672:/#
复制代码
|
|