|
有了rtlhq大佬的指点终于完成了TP-LINK WDR8500v2 OpenWrt 驱动的支持。
由于路由器的uboot有添加RSA的保护所以必须更换原有的bootloader,写入hackpascal大佬的支持RTL8367s交换机芯片的BREED bootloader。
过程必须使用EXTERNAL SPI Programmer 写入。
复制OpenWrt官方源码后git apply *.patch,然后make menuconfig,选择TP-LINK WDR8500v2,然后make就完了。
以下链接是补钉和BREED固件。
https://github.com/gwlim/openwrt-tplink-wdr8500v2
启动后dmesg
- [ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 32480
- [ 0.000000] Kernel command line: console=ttyS0,115200n8 rootfstype=squashfs,jffs2
- [ 0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes, linear)
- [ 0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes, linear)
- [ 0.000000] Writing ErrCtl register=00000000
- [ 0.000000] Readback ErrCtl register=00000000
- [ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
- [ 0.000000] Memory: 121976K/131072K available (5129K kernel code, 175K rwdata, 1184K rodata, 1184K init, 95K bss, 9096K reserved, 0K cma-reserved)
- [ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
- [ 0.000000] NR_IRQS: 51
- [ 0.000000] random: get_random_bytes called from start_kernel+0x330/0x520 with crng_init=0
- [ 0.000000] CPU clock: 1000.000 MHz
- [ 0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 3822520893 ns
- [ 0.000006] sched_clock: 32 bits at 500MHz, resolution 2ns, wraps every 4294967295ns
- [ 0.008857] Calibrating delay loop... 497.66 BogoMIPS (lpj=995328)
- [ 0.047831] pid_max: default: 32768 minimum: 301
- [ 0.053183] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
- [ 0.061485] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
- [ 0.073593] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
- [ 0.084695] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
- [ 0.092526] pinctrl core: initialized pinctrl subsystem
- [ 0.100664] NET: Registered protocol family 16
- [ 0.128992] workqueue: max_active 576 requested for napi_workq is out of range, clamping between 1 and 512
- [ 0.143059] clocksource: Switched to clocksource MIPS
- [ 0.149808] NET: Registered protocol family 2
- [ 0.155539] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
- [ 0.165082] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
- [ 0.173789] TCP bind hash table entries: 1024 (order: 0, 4096 bytes, linear)
- [ 0.181804] TCP: Hash tables configured (established 1024 bind 1024)
- [ 0.189140] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
- [ 0.196602] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
- [ 0.204786] NET: Registered protocol family 1
- [ 0.209773] PCI: CLS 0 bytes, default 32
- [ 0.217506] workingset: timestamp_bits=14 max_order=15 bucket_order=1
- [ 0.229970] squashfs: version 4.0 (2009/01/31) Phillip Lougher
- [ 0.236626] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
- [ 0.259466] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
- [ 0.270871] pinctrl-single 1804002c.pinmux: 544 pins, size 68
- [ 0.278314] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
- [ 0.287353] printk: console [ttyS0] disabled
- [ 0.292274] 18020000.uart: ttyS0 at MMIO 0x18020000 (irq = 9, base_baud = 1562500) is a 16550A
- [ 0.302071] printk: console [ttyS0] enabled
- [ 0.311129] printk: bootconsole [early0] disabled
- [ 0.338598] spi-nor spi0.0: w25q128 (16384 Kbytes)
- [ 0.343608] 4 fixed-partitions partitions found on MTD device spi0.0
- [ 0.350179] Creating 4 MTD partitions on "spi0.0":
- [ 0.355151] 0x000000000000-0x00000001b800 : "factory_boot"
- [ 0.361597] 0x00000001b800-0x00000001c000 : "factory_info"
- [ 0.368032] 0x00000001c000-0x000000020000 : "art"
- [ 0.373662] 0x000000020000-0x000001000000 : "firmware"
- [ 0.382896] 2 tplink-fw partitions found on MTD device firmware
- [ 0.389059] Creating 2 MTD partitions on "firmware":
- [ 0.394199] 0x000000000000-0x000000211e30 : "kernel"
- [ 0.400095] 0x000000211e30-0x000000fe0000 : "rootfs"
- [ 0.405949] mtd: device 5 (rootfs) set to be root filesystem
- [ 0.413407] 1 squashfs-split partitions found on MTD device rootfs
- [ 0.419849] 0x000000770000-0x000000fe0000 : "rootfs_data"
- [ 0.426841] rtl8367b rtl8367b: cannot find mdio bus from bus handle (yet)
- [ 0.434201] libphy: GPIO Bitbanged MDIO: probed
- [ 0.439354] libphy: Fixed MDIO Bus: probed
- [ 1.079413] libphy: ag71xx_mdio: probed
- [ 1.083529] mdio_bus mdio.0: MDIO device at address 29 is missing.
- [ 1.090808] ag71xx 19000000.eth: connected to PHY at fixed-0:00 [uid=00000000, driver=Generic PHY]
- [ 1.100599] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode: sgmii
- [ 1.107215] i2c /dev entries driver
- [ 1.110960] ath79-wdt 18060008.wdt: timeout value must be 0 < timeout < 12, using 12
- [ 1.120593] NET: Registered protocol family 10
- [ 1.129799] Segment Routing with IPv6
- [ 1.133717] NET: Registered protocol family 17
- [ 1.138378] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
- [ 1.151769] 8021q: 802.1Q VLAN Support v1.8
- [ 1.156794] PCI host bridge /ahb/pcie-controller@18250000 ranges:
- [ 1.163152] MEM 0x0000000012000000..0x0000000013ffffff
- [ 1.168562] IO 0x0000000000000000..0x0000000000000000
- [ 1.174112] PCI host bridge to bus 0000:00
- [ 1.178376] pci_bus 0000:00: root bus resource [mem 0x12000000-0x13ffffff]
- [ 1.185484] pci_bus 0000:00: root bus resource [io 0x0000]
- [ 1.191243] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
- [ 1.198258] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
- [ 1.206470] pci 0000:00:00.0: [168c:0046] type 00 class 0x028000
- [ 1.212728] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x001fffff 64bit]
- [ 1.219742] random: fast init done
- [ 1.223374] pci 0000:00:00.0: PME# supported from D0 D3hot D3cold
- [ 1.229699] pci 0000:00:00.0: 2.000 Gb/s available PCIe bandwidth, limited by 2.5 GT/s x1 link at 0000:00:00.0 (capable of 4.000 Gb/s with 5 GT/s x1 link)
- [ 1.244659] pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 00
- [ 1.251532] pci 0000:00:00.0: BAR 0: assigned [mem 0x12000000-0x121fffff 64bit]
- [ 1.259399] rtl8367b rtl8367b: using MDIO bus 'ag71xx_mdio'
- [ 1.266708] rtl8367b rtl8367b: found chip num:6367 ver:00a0, mode:00a0
- [ 1.273454] rtl8367b rtl8367b: RTL8367S chip found
- [ 3.296658] libphy: rtl8367b: probed
- [ 3.305941] VFS: Mounted root (squashfs filesystem) readonly on device 31:5.
- [ 3.319734] Freeing unused kernel memory: 1184K
- [ 3.324434] This architecture does not have kernel memory protection.
- [ 3.331086] Run /sbin/init as init process
- [ 3.804722] init: Console is alive
- [ 3.808520] init: - watchdog -
- [ 5.153144] kmodloader: loading kernel modules from /etc/modules-boot.d/*
- [ 5.240659] usbcore: registered new interface driver usbfs
- [ 5.246435] usbcore: registered new interface driver hub
- [ 5.252030] usbcore: registered new device driver usb
- [ 5.262927] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
- [ 5.271219] ehci-fsl: Freescale EHCI Host controller driver
- [ 5.278489] ehci-platform: EHCI generic platform driver
- [ 5.286115] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
- [ 5.304565] init: - preinit -
- [ 6.123880] random: jshn: uninitialized urandom read (4 bytes read)
- [ 6.186488] random: jshn: uninitialized urandom read (4 bytes read)
- [ 6.280362] random: jshn: uninitialized urandom read (4 bytes read)
- [ 7.938556] eth0: link up (1000Mbps/Full duplex)
- [ 7.947130] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
- [ 7.962145] IPv6: ADDRCONF(NETDEV_CHANGE): eth0.1: link becomes ready
- [ 7.994174] urandom_read: 4 callbacks suppressed
- [ 7.994179] random: procd: uninitialized urandom read (4 bytes read)
- [ 12.166452] jffs2: notice: (495) jffs2_build_xattr_subsystem: complete building xattr subsystem, 12 of xdatum (0 unchecked, 12 orphan) and 17 of xref (1 dead, 16 orphan) found.
- [ 12.184040] mount_root: overlay filesystem has not been fully initialized yet
- [ 12.192388] mount_root: switching to jffs2 overlay
- [ 12.199360] overlayfs: upper fs does not support tmpfile.
- [ 12.207492] urandom-seed: Seed file not found (/etc/urandom.seed)
- [ 12.276166] eth0: link down
- [ 12.294802] procd: - early -
- [ 12.297914] procd: - watchdog -
- [ 12.909427] procd: - watchdog -
- [ 12.912953] procd: - ubus -
- [ 12.974198] random: ubusd: uninitialized urandom read (4 bytes read)
- [ 12.981798] random: ubusd: uninitialized urandom read (4 bytes read)
- [ 12.989565] procd: - init -
- [ 13.604447] kmodloader: loading kernel modules from /etc/modules.d/*
- [ 13.634838] NET: Registered protocol family 38
- [ 13.663137] tun: Universal TUN/TAP device driver, 1.6
- [ 13.687229] l2tp_core: L2TP core driver, V2.0
- [ 13.695132] l2tp_netlink: L2TP netlink interface
- [ 13.710040] gre: GRE over IPv4 demultiplexor driver
- [ 13.724931] ip_gre: GRE over IPv4 tunneling driver
- [ 13.793450] urngd: v1.0.2 started.
- [ 13.983235] cryptodev: driver 1.10 loaded.
- [ 14.007144] Mirror/redirect action on
- [ 14.032708] u32 classifier
- [ 14.035552] input device check on
- [ 14.039342] Actions configured
- [ 14.066194] random: crng init done
- [ 14.070019] Loading modules backported from Linux version v5.8-0-gbcf876870b95
- [ 14.077524] Backport generated by backports.git v5.8-1-0-g79400d9e
- [ 14.161081] wireguard: WireGuard 1.0.20200908 loaded. See www.wireguard.com for information.
- [ 14.169839] wireguard: Copyright (C) 2015-2019 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
- [ 14.292460] xt_time: kernel timezone is -0000
- [ 14.539136] PPP generic driver version 2.4.2
- [ 14.552549] PPP MPPE Compression module registered
- [ 14.564507] NET: Registered protocol family 24
- [ 14.580509] p p t p driver version 0.8.5
- [ 14.670317] ath10k 5.4 driver, optimized for CT firmware, probing pci device: 0x46.
- [ 14.678397] ath10k_mac_create, priv_size: 804 hw: 166799a1 hw->priv: 91474309
- [ 14.707716] ath10k_pci 0000:00:00.0: enabling device (0000 -> 0002)
- [ 14.714506] ath10k_pci 0000:00:00.0: pci irq legacy oper_irq_mode 1 irq_mode 0 reset_mode 0
- [ 15.874835] ath10k_pci 0000:00:00.0: qca9984/qca9994 hw1.0 target 0x01000000 chip_id 0x00000000 sub 168c:cafe
- [ 15.885115] ath10k_pci 0000:00:00.0: kconfig debug 0 debugfs 1 tracing 0 dfs 1 testmode 0
- [ 15.898535] ath10k_pci 0000:00:00.0: firmware ver 10.4b-ct-9984-fH-13-795874169 api 5 features mfp,peer-flow-ctrl,txstatus-noack,wmi-10.x-CT,ratemask-CT,regdump-CT,txrate-CT,flush-all-CT,pingpong-CT,ch-regs-CT,nop-CT,htt-mgt-CT,set-special-CT,tx-rc-CT,cust-stats-CT,txrate2-CT,beacon-cb-CT,wmi-block-ack-CT,wmi-bcn-rc-CT crc32 123549a3
- [ 18.435764] ath10k_pci 0000:00:00.0: board_file api 1 bmi_id 0:1 crc32 ecdefe21
- [ 24.519649] ath10k_pci 0000:00:00.0: unsupported HTC service id: 1536
- [ 24.530514] ath10k_pci 0000:00:00.0: 10.4 wmi init: vdevs: 16 peers: 48 tid: 96
- [ 24.538284] ath10k_pci 0000:00:00.0: msdu-desc: 2500 skid: 32
- [ 24.616684] ath10k_pci 0000:00:00.0: wmi print 'P 48/48 V 16 K 144 PH 176 T 186 msdu-desc: 2500 sw-crypt: 0 ct-sta: 0'
- [ 24.627987] ath10k_pci 0000:00:00.0: wmi print 'free: 84936 iram: 13572 sram: 11224'
- [ 24.907885] ath10k_pci 0000:00:00.0: htt-ver 2.2 wmi-op 6 htt-op 4 cal pre-cal-file max-sta 32 raw 0 hwcrypto 1
- [ 24.991824] ath: EEPROM regdomain sanitized
- [ 24.991834] ath: EEPROM regdomain: 0x64
- [ 24.991836] ath: EEPROM indicates we should expect a direct regpair map
- [ 24.991852] ath: Country alpha2 being used: 00
- [ 24.991854] ath: Regpair used: 0x64
- [ 25.048392] l2tp_ppp: PPPoL2TP kernel driver, V2.0
- [ 25.118840] ath: EEPROM regdomain sanitized
- [ 25.118850] ath: EEPROM regdomain: 0x64
- [ 25.118852] ath: EEPROM indicates we should expect a direct regpair map
- [ 25.118869] ath: Country alpha2 being used: 00
- [ 25.118872] ath: Regpair used: 0x64
- [ 25.130540] ieee80211 phy1: Selected rate control algorithm 'minstrel_ht'
- [ 25.132227] ieee80211 phy1: Atheros AR9561 Rev:0 mem=0xb8100000, irq=2
- [ 25.155537] kmodloader: done loading kernel modules from /etc/modules.d/*
- [ 46.814631] eth0: link up (1000Mbps/Full duplex)
- [ 46.828647] br-lan: port 1(eth0.1) entered blocking state
- [ 46.834275] br-lan: port 1(eth0.1) entered disabled state
- [ 46.840118] device eth0.1 entered promiscuous mode
- [ 46.845107] device eth0 entered promiscuous mode
- [ 46.911194] br-lan: port 1(eth0.1) entered blocking state
- [ 46.916801] br-lan: port 1(eth0.1) entered forwarding state
- [ 47.827161] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
- [ 47.834163] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
- [ 50.370405] br-lan: port 2(wlan1) entered blocking state
- [ 50.375942] br-lan: port 2(wlan1) entered disabled state
- [ 50.381785] device wlan1 entered promiscuous mode
- [ 50.507477] IPv6: ADDRCONF(NETDEV_CHANGE): wlan1: link becomes ready
- [ 50.514337] br-lan: port 2(wlan1) entered blocking state
- [ 50.519881] br-lan: port 2(wlan1) entered forwarding state
- [ 56.786483] ath10k_pci 0000:00:00.0: unsupported HTC service id: 1536
- [ 56.793610] ath10k_pci 0000:00:00.0: 10.4 wmi init: vdevs: 16 peers: 48 tid: 96
- [ 56.801410] ath10k_pci 0000:00:00.0: msdu-desc: 2500 skid: 32
- [ 56.879654] ath10k_pci 0000:00:00.0: wmi print 'P 48/48 V 16 K 144 PH 176 T 186 msdu-desc: 2500 sw-crypt: 0 ct-sta: 0'
- [ 56.890978] ath10k_pci 0000:00:00.0: wmi print 'free: 84936 iram: 13572 sram: 11224'
- [ 57.262085] ath10k_pci 0000:00:00.0: Firmware lacks feature flag indicating a retry limit of > 2 is OK, requested limit: 4
- [ 57.293063] br-lan: port 3(wlan0) entered blocking state
- [ 57.298630] br-lan: port 3(wlan0) entered disabled state
- [ 57.304414] device wlan0 entered promiscuous mode
- [ 57.469870] ath10k_pci 0000:00:00.0: NOTE: Firmware DBGLOG output disabled in debug_mask: 0x10000000
- [ 57.893660] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
- [ 57.900552] br-lan: port 3(wlan0) entered blocking state
- [ 57.906083] br-lan: port 3(wlan0) entered forwarding state
复制代码
|
|