找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 12117|回复: 22

发个qca9531官方原厂驱动4.4.111内核的固件

[复制链接]
发表于 2018-2-21 01:46 | 显示全部楼层 |阅读模式
本帖最后由 baidxi 于 2018-2-21 02:38 编辑

此固件为自己学习产物,没有软件。驱动为、高通闭源驱动此固件只适合qca9531+qca9887,
2网口硬件,其它硬件还未测试,switch应该
是支持的,没有测试,
art在最后64k,uboot为192k,可能需要更换uboot
小白莫试,变砖本人不负责。
已知问题,wifi在web页面开启后需要重启生效。
在web修改设置会导致速率变成最高160M速率
解决办法手动删除/etc/config/wireless文件
重新成生。目前只有eth1能正常使用,即可以做lan,也可以做wan。
在/etc/config/network自己手动修改即可。
其它问题暂未发现



[    0.000000] Linux version 4.4.111 (root@debian8) (gcc version 5.5.0 (OpenWrt GCC 5.5.0 r5883-1ca4f8c) ) #0 Wed Jan 17 21:00:43 2018
[    0.000000] MyLoader: sysp=939c939c, boardp=939c939c, parts=939c939c
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 00019374 (MIPS 24Kc)
[    0.000000] MIPS: machine is e600g-rev-1.05
[    0.000000] SoC: Qualcomm Atheros QCA9533 ver 2 rev 0
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 08000000 @ 00000000 (usable)
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] On node 0 totalpages: 32768
[    0.000000] free_area_init_node: node 0, pgdat 804343f0, node_mem_map 81006a20
[    0.000000]   Normal zone: 256 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 32768 pages, LIFO batch:7
[    0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32512
[    0.000000] Kernel command line: board=DTB console=ttyS0,115200 mtdparts=spi0.0:256k(u-boot)ro,64k(u-boot-env),14528k(rootfs),1472k(kernel),64k(art),16000k@0x50000(firmware) rootfstype=squashfs,jffs2 noinitrd crashkernel=10M@20M
[    0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Writing ErrCtl register=00000000
[    0.000000] Readback ErrCtl register=00000000
[    0.000000] Memory: 124920K/131072K available (3094K kernel code, 166K rwdata, 788K rodata, 296K init, 200K bss, 6152K 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] IRQ: Set flush channel of IRQ3 to 2
[    0.000000] Clocks: CPU:650.000MHz, DDR:597.924MHz, AHB:216.666MHz, Ref:25.000MHz
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 5880801374 ns
[    0.000008] sched_clock: 32 bits at 325MHz, resolution 3ns, wraps every 6607641598ns
[    0.008216] Calibrating delay loop... 432.53 BogoMIPS (lpj=2162688)
[    0.071097] pid_max: default: 32768 minimum: 301
[    0.076084] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.083062] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.095128] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.105541] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.112730] NET: Registered protocol family 16
[    0.120504] registering PCI controller with io_map_base unset
[    0.139599] PCI host bridge to bus 0000:00
[    0.143931] pci_bus 0000:00: root bus resource [mem 0x10000000-0x11ffffff]
[    0.151225] pci_bus 0000:00: root bus resource [io  0x0000]
[    0.157099] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[    0.164263] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[    0.172654] pci 0000:00:00.0: [168c:0050] type 00 class 0x028000
[    0.172715] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x001fffff 64bit]
[    0.172774] pci 0000:00:00.0: reg 0x30: [mem 0x00000000-0x0000ffff pref]
[    0.172836] pci 0000:00:00.0: supports D1
[    0.172851] pci 0000:00:00.0: PME# supported from D0 D1 D3hot
[    0.173080] pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 00
[    0.173116] pci 0000:00:00.0: BAR 0: assigned [mem 0x10000000-0x101fffff 64bit]
[    0.180869] pci 0000:00:00.0: BAR 6: assigned [mem 0x10200000-0x1020ffff pref]
[    0.188491] pci 0000:00:00.0: using irq 40 for pin 1
[    0.194562] clocksource: Switched to clocksource MIPS
[    0.201153] NET: Registered protocol family 2
[    0.206596] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.213960] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.220713] TCP: Hash tables configured (established 1024 bind 1024)
[    0.227512] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.233678] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.240588] NET: Registered protocol family 1
[    0.245280] PCI: CLS 0 bytes, default 32
[    0.246174] Crashlog allocated RAM at address 0x3f00000
[    0.268062] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.274221] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.286919] io scheduler noop registered
[    0.291060] io scheduler deadline registered (default)
[    0.296721] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[    0.304057] console [ttyS0] disabled
[    0.307895] 18020000.uart: ttyS0 at MMIO 0x18020000 (irq = 11, base_baud = 1562500) is a 16550A
[    0.317087] console [ttyS0] enabled
[    0.324643] bootconsole [early0] disabled
[    0.334230] ath79_spi_fixup_mac_addr: Set local-mac-address failed for eth0 (-1)
[    0.342051] ath79_spi_fixup_mac_addr: Set local-mac-address failed for eth1 (-1)
[    0.352121] m25p80 spi0.0: w25q128 (16384 Kbytes)
[    0.357087] 6 cmdlinepart partitions found on MTD device spi0.0
[    0.363196] Creating 6 MTD partitions on "spi0.0":
[    0.368163] 0x000000000000-0x000000040000 : "u-boot"
[    0.375343] 0x000000040000-0x000000050000 : "u-boot-env"
[    0.382290] 0x000000050000-0x000000e80000 : "rootfs"
[    0.388943] mtd: device 2 (rootfs) set to be root filesystem
[    0.394937] 1 squashfs-split partitions found on MTD device rootfs
[    0.401329] 0x000000b60000-0x000000e80000 : "rootfs_data"
[    0.408439] 0x000000e80000-0x000000ff0000 : "kernel"
[    0.415140] 0x000000ff0000-0x000001000000 : "art"
[    0.421507] 0x000000050000-0x000000ff0000 : "firmware"
[    0.644925] libphy: ag71xx_mdio: probed
[    0.674645] ar8216: Unknown Atheros device [ver=2, rev=1]
[    0.711015] ar8216: Unknown Atheros device [ver=2, rev=1]
[    0.934619] ar71xx: using random MAC address for 0
[    0.935374] eth0: Atheros AG71xx at 0xb9000000, irq 4
[    1.704631] ar71xx: using random MAC address for 1
[    1.705391] eth1: Atheros AG71xx at 0xba000000, irq 5
[    2.262607] 1a000000.mdio: Found an AR934X built-in switch
[    2.300320] i2c /dev entries driver
[    2.306029] NET: Registered protocol family 10
[    2.313866] NET: Registered protocol family 17
[    2.318611] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this.
[    2.331831] 8021q: 802.1Q VLAN Support v1.8
[    2.346053] VFS: Mounted root (squashfs filesystem) readonly on device 31:2.
[    2.354976] Freeing unused kernel memory: 296K
[    3.654727] init: Console is alive
[    3.658462] init: - watchdog -
[    7.249711] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    7.386182] usbcore: registered new interface driver usbfs
[    7.391962] usbcore: registered new interface driver hub
[    7.397591] usbcore: registered new device driver usb
[    7.431887] gpio-keys-polled gpio-keys-polled: Failed to get gpio flags, error: -22
[    7.439886] gpio-keys-polled: probe of gpio-keys-polled failed with error -22
[    7.455383] SCSI subsystem initialized
[    7.465737] usbcore: registered new interface driver usb-storage
[    7.472752] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    7.482547] init: - preinit -
[    9.010469] eth0: link up (1000Mbps/Full duplex)
[    9.060651] random: mktemp: uninitialized urandom read (6 bytes read, 15 bits of entropy available)
[    9.075681] random: mktemp: uninitialized urandom read (6 bytes read, 15 bits of entropy available)
[    9.090602] random: mktemp: uninitialized urandom read (6 bytes read, 15 bits of entropy available)
[   12.407609] jffs2: notice: (392) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
[   12.426281] mount_root: switching to jffs2 overlay
[   12.616087] urandom-seed: Seeding with /etc/urandom.seed
[   12.786094] eth0: link down
[   12.800387] procd: - early -
[   12.803481] procd: - watchdog -
[   13.413135] procd: - watchdog -
[   13.416738] procd: - ubus -
[   13.559666] random: ubusd: uninitialized urandom read (4 bytes read, 23 bits of entropy available)
[   13.666724] random: ubusd: uninitialized urandom read (4 bytes read, 23 bits of entropy available)
[   13.676436] random: ubusd: uninitialized urandom read (4 bytes read, 23 bits of entropy available)
[   13.685804] random: ubusd: uninitialized urandom read (4 bytes read, 23 bits of entropy available)
[   13.695313] random: ubusd: uninitialized urandom read (4 bytes read, 23 bits of entropy available)
[   13.704653] random: ubusd: uninitialized urandom read (4 bytes read, 23 bits of entropy available)
[   13.714058] random: ubusd: uninitialized urandom read (4 bytes read, 23 bits of entropy available)
[   13.724413] procd: - init -
[   14.158752] kmodloader: loading kernel modules from /etc/modules.d/*
[   14.276182] md: raid0 personality registered for level 0
[   14.284301] md: raid1 personality registered for level 1
[   14.292960] md: raid10 personality registered for level 10
[   14.304234] ntfs: driver 2.1.32 [Flags: R/O MODULE].
[   15.105613] ssdk_alloc_priv[3813]:INFO:ess-switch dts node number: 1
[   15.112213] ssdk_plat_init start
[   15.115902] ssdk_driver_register[3022]:INFO:Register QCA PHY driver
[   15.183783] f2_phy_api_ops_init[898]:INFO:qca probe f2 phy driver succeeded!
[   15.191161] regi_init[3952]:INFO:qca-ssdk module init succeeded!
[   15.468789] ip6_tables: (C) 2000-2006 Netfilter Core Team
[   15.487556] fuse init (API version 7.23)
[   15.497657] ip_tables: (C) 2000-2006 Netfilter Core Team
[   15.512098] nf_conntrack version 0.5.0 (1956 buckets, 7824 max)
[   15.552804] nf_conntrack_rtsp v0.7 loading
[   15.687801] nf_nat_rtsp v0.7 loading
[   15.724672] xt_time: kernel timezone is -0000
[   15.754326] PPP generic driver version 2.4.2
[   15.769529] NET: Registered protocol family 24
[   15.777871] kmodloader: done loading kernel modules from /etc/modules.d/*
[   22.170670] mem_manager: module license 'unspecified' taints kernel.
[   22.177299] Disabling lock debugging due to kernel taint
[   22.227889] ath_dfs: Version 2.0.0
[   22.227889] Copyright (c) 2005-2006 Atheros Communications, Inc. All Rights Reserved
[   22.252244] ath_spectral: Version 2.0.0
[   22.252244] Copyright (c) 2005-2009 Atheros Communications, Inc. All Rights Reserved
[   22.994318] ath_hal: 0.9.17.1 (AR5416, AR9380, REGOPS_FUNC, PRIVATE_DIAG, WRITE_EEPROM, 11D)
[   23.017222] ath_rate_atheros: Copyright (c) 2001-2005 Atheros Communications, Inc, All Rights Reserved
[   23.037188] ath_tx99: Version 2.0
[   23.037188] Copyright (c) 2010 Atheros Communications, Inc, All Rights Reserved
[   23.082460] ath_dev: Copyright (c) 2001-2007 Atheros Communications, Inc, All Rights Reserved
[   23.114040] init_ath_wmac:VENDOR_ID = 168c devid = 003d
[   23.119523] __ath_attach: Set global_scn[0]
[   23.123844] *** All the minfree values should be <= ATH_TXBUF-32, otherwise default value will be used instead ***
[   23.134534] ACBKMinfree = 48
[   23.137513] ACBEMinfree = 32
[   23.140480] ACVIMinfree = 16
[   23.143455] ACVOMinfree = 0
[   23.146350] CABMinfree = 48
[   23.149235] UAPSDMinfree = 0
[   23.152210] ATH_TXBUF=2700
[   23.163952] Enterprise mode: 0x03fc0000
[   23.168207] Restoring Cal data from FS
[   23.172119] qdf_fs_read[59], Open File /tmp/wifi0.caldata SUCCESS!!file system magic:16914836super blocksize:4096inode 321file size:12064qdf_fs_read[79]: caldata data size mismatch, fsize=12064, cal_size=1088
[   23.172119] ART Version : -48.0.0
[   23.172119] SW Image Version : -48.0.0.0.0
[   23.172119] Board Revision :  
[   23.198301] ar9300_attach: nf_2_nom -110 nf_2_max -60 nf_2_min -125
[   23.207858] SPECTRAL : get_capability not registered
[   23.212986] HAL_CAP_PHYDIAG : Capable
[   23.216811] SPECTRAL : Need to fix the capablity check for RADAR (spectral_attach : 237)
[   23.225174] SPECTRAL : get_capability not registered
[   23.230296] HAL_CAP_RADAR   : Capable
[   23.234080] SPECTRAL : Need to fix the capablity check for SPECTRAL
[   23.234080]  (spectral_attach : 242)
[   23.244231] SPECTRAL : get_capability not registered
[   23.249360] HAL_CAP_SPECTRAL_SCAN : Capable
[   23.253674] SPECTRAL : get_tsf64 not registered
[   23.258404] spectral_init_netlink 78 NULL SKB
[   23.262907] SPECTRAL : No ADVANCED SPECTRAL SUPPORT
[   23.267954] SPECTRAL :----- module attached
[   23.272278] Green-AP : Green-AP : Attached
[   23.272278]
[   23.282186] ath_get_caps[6165] rx chainmask mismatch actual 3 sc_chainmak 0
[   23.289438] ath_get_caps[6140] tx chainmask mismatch actual 3 sc_chainmak 0
[   23.302308] band steering initialized for direct attach hardware
[   23.308650] ieee80211_bsteering_attach: Band steering initialized
[   23.314992] acfg_attach: 2961: Netlink socket created:872e1000
[   23.321121] ath_attach_dfs[12590] dfsdomain 1
[   23.329967] dfs_attach: event log enabled by default
[   23.341151] SPECTRAL : module already attached
[   23.345784] ath_attach: Set global_ic[1]..gloabl_ic ptr:86145050
[   23.352035] osif_wrap_attach:443 osif wrap attached
[   23.357121] osif_wrap_devt_init:404 osif wrap dev table init done
[   23.363410]  Wrap Attached: Wrap_com =871b2600 ic->ic_wrap_com=871b2600 &wrap_com->wc_devt=871b2600
[   23.380041] ath_tx_paprd_init sc 86b18000 PAPRD disabled in HAL
[   23.389746] wifi0: Atheros 953X: mem_start: =0xb8100000, mem_end: =0xb8120000, irq=47
[   23.398021] ath_da_pci:  (Atheros/multi-bss)
[   23.706748] ath_ol_pci:  (Atheros/multi-bss)
[   23.711750] hif_pci_enable_bus: con_mode = 0x0, device_id = 0x50
[   23.717849] ath_ol_pci 0000:00:00.0: BAR 0: assigned [mem 0x10000000-0x101fffff 64bit]
[   23.726253] PCI: Enabling device 0000:00:00.0 (0000 -> 0002)
[   23.732110] hif_pci_enable_bus: hif_enable_pci done *********** AR9887 **************hif_pci_enable_bus: hif_type = 0x6, target_type = 0x7hif_pci_enable_bus: hif_pci_probe_tgt_wakeup donehif_target_sync: Loop checking FW signalhif_target_sync: Got FW signal, retries = 62hif_config_ce: ce_init donehif_config_ce: X, ret = 0hif_set_hia: Ehif_set_hia_extnd: E
[   24.757586]
[   24.757586]  CLOCK PLL skipped
[   24.764472] hif_pci_bus_configure: hif_set_hia donehif_configure_irq: Ehif_pci_configure_legacy_irq: Ehif_pci_configure_legacy_irq: X, ret = 0hif_enable: X OKhif_napi_create: NAPI structures initializedhif_napi_create: NAPI id 6 created for pipe 5qca_napi_create: napi instance 32 created on pipe 4
[   24.791875] hif_napi_event: received evnt: CONF cmd; v = 1 (state=0x1)hif_napi_event: setting configuration to ON
[   24.791875] __ol_ath_attach() Allocated scn 86500420
[   24.807398] __ol_ath_attach: dev name wifi1
[   24.811725] ol_ath_attach interface_id 1
[   24.816496] ol_target_init() BMI inited.
[   24.820638] ol_target_init() BMI Get Target Info.
[   24.825536] Chip id: 0x7, chip version: 0x4100016d
[   24.830480]
[   24.830480]  CE WAR Disabled
[   24.835092] NUM_DEV=1 FWMODE=0x2 FWSUBMODE=0x0 FWBR_BUF 0
[   24.840799] ol_target_init() configure Target .
[   24.845568] ol_transfer_bin_file: flash data file defined
[   24.851145] ol_transfer_bin_file[3758] Get Caldata for wifi1.
[   24.857187] qdf_fs_read[59], Open File /tmp/wifi1.caldata SUCCESS!!file system magic:16914836super blocksize:4096inode 324file size:12064qdf_fs_read[79]: caldata data size mismatch, fsize=12064, cal_size=2116qc98xx_verify_checksum: flash checksum passed: 0xd5c2
[   24.881160] ol_transfer_bin_file 3819: Download Flash data len 2116
[   24.887842] Board extended Data download address: 0x0
[   24.896799] ol_download_cal_data: Board data file: 4 successfully downloaded, download address: 00401cc0
[   24.906695]
[   24.906695]  Mission mode: Firmware CHIP Version 0
[   24.913308] ol_transfer_bin_file: Downloading firmware file: AR9887/athwlan.bin
[   25.050072] ol_transfer_bin_file 3639: downloading file 1, Download data len 231528
[   26.039266] ol_target_init() Download FW done.
[   26.044428] ol_ath_attach() WMI attached. wmi_handle 87f9c000
[   26.050495] wmi_unified_register_event_handler: Event id 62 is unavailable
[   26.057605] +htc_create ..  HIF :86460000-htc_create: (0x86459800)
[   26.063864] htc_wmi_init() HT Create . 86459800
[   26.068803] htc_wmi_init 7516 host_enable 1 nss_nwifi_offload 0
[   26.074938] ol_ath_set_default_tgt_config : AC Minfree buffer allocation through module param (umac.ko)
[   26.084640]  OL_ACBKMinfree : 0
[   26.087882]  OL_ACBEMinfree : 0
[   26.091126]  OL_ACVIMinfree : 0
[   26.094369]  OL_ACVOMinfree : 0
[   26.097626] hif_enable_fastpath, Enabling fastpath mode
[   26.102836] +HWT
[   26.104934] hif_completion_thread_startup: pipe_num:0 pipe_info:0x86463adchif_completion_thread_startup: pipe_num:3 pipe_info:0x86463b9chif_completion_thread_startup: pipe_num:4 pipe_info:0x86463bdc
[   26.125813] -HWT
[   26.128033] Startup Mode-0 set
[   26.131188]
[   26.131188] <=== cfg max peer id 1056 ====>
[   26.138246] htt_peer_map_timer_init Enter pdev 86750000 hrtimer 86754960
[   26.145220]
[   26.145220]  htt_alloc_peer_map_mem : Alloc Success : host q vaddr 866f6000 paddr 66f6000
[   26.155204]
[   26.155204]  htt_alloc_peer_map_mem : Flush Interval Configured to 256 pkts
[   26.166802] ol_txrx_pdev_attach: 1424 tx desc's allocated ; range starts from 85a00000
[   26.178271] Firmware_Build_Number:0
[   26.181985] host/RAM_fw Build Ver Mismatch: H:0x7, F:0x0 !
[   26.187763] FW wireless modes: 0x1f9001
[   26.191726] num_rf_chain:0x00000001  ht_cap_info:0x0000085b  vht_cap_info:0x338001b2  vht_supp_mcs:0x0000fffe
[   26.201995] wmi_service_coex_gpio 0, wmi_service_4_wire_coex_support 0, coex_version 0
[   26.210189]
[   26.210189] Sending Ext resource cfg: HOST PLATFORM as 1
[   26.210189] fw_feature_bitmap as 50 to TGT
[   26.221445] ol_ath_service_ready_event: tt_support: 0
[   26.226712] ol_ath_service_ready_event: periodic_chan_stats: 1
[   26.232734] ol_ath_service_ready_event: sw_cal_support_check_flag: 0
[   26.239304] LARGE_AP enabled. num_peers 144, num_vdevs 16, num_tids 256
[   26.246225] idx 0 req 1  num_units 0 num_unit_info 2 unit size 404 actual units 145
[   26.254606] ol_ath_alloc_host_mem_chunk req_id 1 idx 0 num_units 145 unit_len 404,
[   26.262429] Support not added yet for Service 91
[   26.267202] Support not added yet for Service 92
[   26.271968] No EXT_MSG send INIT now
[   26.275687] chunk 0 len 58580 requested , ptr  0x5a40000
[   26.287029] FIRMWARE 145 V 16 T 443
[   26.287029]  
[   26.292448] Version = 16777216 3  status = 0
[   26.296898] ol_ath_connect_htc() WMI is ready
[   26.301426] htt_h2t_frag_desc_bank_cfg_msg - HTT_H2T_MSG_TYPE_FRAG_DESC_BANK_CFG sent to FW for radio ID = 1
[   26.316624] ol_ath_attach() connect HTC.
[   26.320764] bypasswmi : 0
[   26.323478] ol_regdmn_start: reg-domain param: regdmn=0, countryName=, wModeSelect=FFFFFFFF, netBand=FFFFFFFF, extendedChanMode=0.
[   26.335650] ol_regdmn_init_channels: !avail mode 0x1f9001 (0x2) flags 0x2150
[   26.342960] ol_regdmn_init_channels: !avail mode 0x1f9001 (0x4) flags 0xa0
[   26.350067] ol_regdmn_init_channels: !avail mode 0x1f9001 (0x8) flags 0xc0
[   26.357178] ol_regdmn_init_channels: !avail mode 0x1f9001 (0x20) flags 0xd0
[   26.364367] ol_regdmn_init_channels: !avail mode 0x1f9001 (0x40) flags 0x150
[   26.371649] ol_regdmn_init_channels: !avail mode 0x1f9001 (0x800) flags 0x10080
[   26.379203] ol_regdmn_init_channels: !avail mode 0x1f9001 (0x2000) flags 0x20080
[   26.386846] ol_regdmn_init_channels: !avail mode 0x1f9001 (0x4000) flags 0x40080
[   26.394560] Add VHT80 channel: 5210
[   26.398161] Add VHT80 channel: 5290
[   26.401764] Add VHT80 channel: 5775
[   26.405389] Skipping VHT80 channel 5825
[   26.409359] ol_regdmn_init_channels: !avail mode 0x1f9001 (0x200000) flags 0x4000100
[   26.417365] ol_regdmn_init_channels: !avail mode 0x1f9001 (0x400000) flags 0x8000100
[   26.425692] ol_ath_phyerr_attach: called
[   26.425754] freq=58
[   26.428068] OL Resmgr Init-ed
[   26.432058] ieee80211_bsteering_attach: Band steering initialized
[   26.438396] acfg_attach: using existing sock 872e1000
[   26.443622] ol_if_spectral_setup
[   26.443675] SPECTRAL : get_capability not registered
[   26.448815] HAL_CAP_PHYDIAG : Capable
[   26.452597] SPECTRAL : Need to fix the capablity check for RADAR (spectral_attach : 237)
[   26.460962] SPECTRAL : get_capability not registered
[   26.466091] HAL_CAP_RADAR   : Capable
[   26.469881] SPECTRAL : Need to fix the capablity check for SPECTRAL
[   26.469881]  (spectral_attach : 242)
[   26.480035] SPECTRAL : get_capability not registered
[   26.485168] HAL_CAP_SPECTRAL_SCAN : Capable
[   26.489491] SPECTRAL : get_tsf64 not registered
[   26.494170] spectral_init_netlink 78 NULL SKB
[   26.498678] Green-AP : Green-AP : Attached
[   26.498678]
[   26.504435] Green-AP : Attached
[   26.507746] ol_ath_smart_ant_attach: Firmware doest not support Smart Antenna.
[   26.515222] ol_ath_smart_ant_attach: Hardware doest not support Smart Antenna.
[   26.522680] ol_if_dfs_setup: called
[   26.522775] ol_if_dfs_attach: called; ptr=85a5997c, radar_info=872b3a40
[   26.529629] dfs_attach: event log enabled by default
[   26.536340] ol_ath_rtt_meas_report_attach: called
[   26.536356] ol_ath_lowi_wmi_event_attach: called
[   26.536382] >>>> CB Set   (null)
[   26.540347] ol_ath_attach() UMAC attach .
[   26.544600]
[   26.544600]  BURSTING enabled by default
[   26.550214] ol_ath_attach: Set global_ic[2] ..ptr:86145050
[   26.555924] ath_lowi_if_netlink_init LOWI Netlink successfully created
[   26.562677] osif_wrap_attach:443 osif wrap attached
[   26.567748] osif_wrap_devt_init:404 osif wrap dev table init done
[   26.574042]  Wrap Attached: Wrap_com =871b2a00 ic->ic_wrap_com=871b2a00 &wrap_com->wc_devt=871b2a00
[   26.583481] __ol_ath_attach: hard_header_len reservation 74
[   26.590271] ol_ath_thermal_mitigation_attach: TT not supported in FW
[   26.596894] ol_ath_pci_probe num_radios=0, wifi_radios[0].sc = 86500420 wifi_radio_type = 2
[   26.605531] ath_sysfs_diag_init: diag_fsattr
[   26.610189] target uses HTT version 2.2; host uses 2.2
[   26.703474]  pktlog_init: Initializing Pktlog for AR9888, pktlog_hdr_size = 16
[   26.722889] __sa_init_module
[   27.079478] [wifi1] FWLOG: [36206] WAL_DBGID_TX_AC_BUFFER_SET ( 0x3, 0x1e, 0x460, 0x460, 0x0 )
[   27.088517] [wifi1] FWLOG: [36206] WAL_DBGID_TX_AC_BUFFER_SET ( 0x12, 0x1e, 0x460, 0x460, 0x0 )
[   27.097593] [wifi1] FWLOG: [36206] WAL_DBGID_TX_AC_BUFFER_SET ( 0x45, 0x1e, 0x460, 0x460, 0x0 )
[   27.106670] [wifi1] FWLOG: [36206] WAL_DBGID_TX_AC_BUFFER_SET ( 0x67, 0x1e, 0x460, 0x460, 0x0 )
[   27.115755] [wifi1] FWLOG: [36208] WHAL_ERROR_RESET_PM (  )
[   27.121527] [wifi1] FWLOG: [36211] WAL_DBGID_DEV_RESET ( 0x1, 0x1, 0x1 )
[   33.967293] random: nonblocking pool is initialized
[   35.715397] device eth1 entered promiscuous mode
[   35.735100] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
[   35.797589] eth0: link up (1000Mbps/Full duplex)
[   35.809090] ath_net80211_dfs_clist_update: called, cmd=1, nollist=  (null), nentries=0
[   35.817594] ath_attach_dfs[12590] dfsdomain 1
[   35.826462] dfs_attach: event log enabled by default
[   36.239600]  Disconnect_timeout value entered:10
[   36.317350]  reconfiguration_timeout value entered:60
[   37.135349] wlan_vap_create : enter. devhandle=0x871f0420, opmode=IEEE80211_M_HOSTAP, flags=0x1
[   37.144625] ieee80211_mbo_vattach:MBO Initialized
[   37.149593] ieee80211_oce_vattach: OCE Initialized
[   37.154927] wlan_vap_create : exit. devhandle=0x871f0420, vap=0x85b60000, opmode=IEEE80211_M_HOSTAP, flags=0x1.
[   37.165388] __ieee80211_smart_ant_init: Smart Antenna is not supported
[   37.173351] VAP device ath0 created osifp: (85040420) os_if: (85b60000)
[   37.207196] eth1: link up (1000Mbps/Full duplex)
[   37.230534] br-lan: port 1(eth1) entered forwarding state
[   37.236244] br-lan: port 1(eth1) entered forwarding state
[   37.259626] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[   37.423256] siwfreq
[   37.425488] Set freq vap 0 stop send + 85b60000
[   37.430448] Set freq vap 0 stop send -85b60000
[   37.487649] Set wait done --85b60000
[   37.720222]  
[   37.720222]  DES SSID SET=
[   37.973087] [DEBUG] vap-0(ath0):set SIOC80211NWID, 7 characters
[   37.979290]  
[   37.979290]  DES SSID SET=OpenWrt
[   39.234579] br-lan: port 1(eth1) entered forwarding state
[   39.952947]  ieee80211_ioctl_siwmode: imr.ifm_active=131712, new mode=3, valid=1
[   39.967695]  DEVICE IS DOWN ifname=ath0
[   39.971786]  DEVICE IS DOWN ifname=ath0
[   40.327183] 8021q: adding VLAN 0 to HW filter on device ath0
[   41.458549] device ath0 entered promiscuous mode
[   41.463483] br-lan: port 2(ath0) entered forwarding state
[   41.469145] br-lan: port 2(ath0) entered forwarding state
[   42.151676] isCountryCodeValid: EEPROM regdomain 0x809c
[   42.157148] isCountryCodeValid: EEPROM setting is country code 156
[   42.163534] ol_regdmn_init_channels: invalid country code 843
[   42.169482] ol_ath_ucfg_setparam: Unable to set country code
[   42.175427] isCountryCodeValid: EEPROM regdomain 0x809c
[   42.180826] isCountryCodeValid: EEPROM setting is country code 156
[   42.187279] ol_regdmn_init_channels: !avail mode 0x1f9001 (0x2) flags 0x2150
[   42.194603] ol_regdmn_init_channels: !avail mode 0x1f9001 (0x4) flags 0xa0
[   42.201705] ol_regdmn_init_channels: !avail mode 0x1f9001 (0x8) flags 0xc0
[   42.208827] ol_regdmn_init_channels: !avail mode 0x1f9001 (0x20) flags 0xd0
[   42.216033] ol_regdmn_init_channels: !avail mode 0x1f9001 (0x40) flags 0x150
[   42.223316] ol_regdmn_init_channels: !avail mode 0x1f9001 (0x800) flags 0x10080
[   42.230888] ol_regdmn_init_channels: !avail mode 0x1f9001 (0x2000) flags 0x20080
[   42.238541] ol_regdmn_init_channels: !avail mode 0x1f9001 (0x4000) flags 0x40080
[   42.246262] Add VHT80 channel: 5210
[   42.249871] Add VHT80 channel: 5290
[   42.253610] Add VHT80 channel: 5775
[   42.257273] Skipping VHT80 channel 5825
[   42.261248] ol_regdmn_init_channels: !avail mode 0x1f9001 (0x200000) flags 0x4000100
[   42.269262] ol_regdmn_init_channels: !avail mode 0x1f9001 (0x400000) flags 0x8000100
[   42.279364] freq=58
[   42.778494] __ieee80211_smart_ant_init: Smart Antenna is not supported
[   42.968810] set TXBF_SND_PERIOD: value 100 wmi_status 0
[   43.143732]  Disconnect_timeout value entered:10
[   43.234267]  reconfiguration_timeout value entered:60
[   43.330602] wlan_vap_create : enter. devhandle=0x86500420, opmode=IEEE80211_M_HOSTAP, flags=0x1
[   43.339775] send_vdev_create_cmd_non_tlv: ID = 0 Type = 1, Subtype = 0 VAP Addr = 08:9b:4b:93:4d:17:
[   43.349602] ieee80211_mbo_vattach:MBO Initialized
[   43.354652] ieee80211_oce_vattach: OCE Initialized
[   43.359976] wlan_vap_create : exit. devhandle=0x86500420, vap=0x85238000, opmode=IEEE80211_M_HOSTAP, flags=0x1.
[   43.370444] __ieee80211_smart_ant_init: Smart Antenna is not supported
[   43.378429] VAP device ath1 created osifp: (85b23420) os_if: (85238000)
[   43.464610] br-lan: port 2(ath0) entered forwarding state
[   43.736964] siwfreq
[   43.739308] Set freq vap 0 stop send + 85238000
[   43.744271] Set freq vap 0 stop send -85238000
[   43.794607] Set wait done --85238000
[   44.047250]  
[   44.047250]  DES SSID SET=
[   44.100129] [wifi1] FWLOG: [53679] WHAL_ERROR_RESET_CHANNF1 (  )
[   44.176730] [DEBUG] vap-0(ath1):set SIOC80211NWID, 7 characters
[   44.182884]  
[   44.182884]  DES SSID SET=OpenWrt
[   45.436858] fast-classifier: starting up
[   45.441117] fast-classifier: registered
[   46.377073]  ieee80211_ioctl_siwmode: imr.ifm_active=66176, new mode=3, valid=1
[   46.415380]  DEVICE IS DOWN ifname=ath1
[   46.419461]  DEVICE IS DOWN ifname=ath1
[   46.535770] Sending SCAN START cmd
[   46.540157] 8021q: adding VLAN 0 to HW filter on device ath1
[   48.598212] device ath1 entered promiscuous mode
[   48.603111] br-lan: port 3(ath1) entered forwarding state
[   48.608779] br-lan: port 3(ath1) entered forwarding state
[   50.440183] send_vdev_down_cmd_non_tlv for vap 0
[   50.445463] OL vap_start +
[   50.448299] VDEV START
[   50.450740] OL vap_start -
[   50.453639] ol_ath_vap_set_param: Now supported MGMT RATE is 6000(kbps) and rate code: 0x3
[   50.462259] ol_vdev_start_resp_ev for vap 0 (87f9c000)
[   50.467611] send_wmm_update_cmd_non_tlv:
[   50.471846] su bfee 0 mu bfee 0 su bfer 0 mu bfer 0 impl bf 0 sounding dim 0
[   50.479181] send_vdev_up_cmd_non_tlv for vap 0
[   50.483791] __ieee80211_smart_ant_init: Smart Antenna is not supported
[   50.604625] br-lan: port 3(ath1) entered forwarding state

链接: https://pan.baidu.com/s/1smHDKPR
食用方法及密码
提取密码:
密码: ada4
用户名:root
密码:空
ip:192.168.1.1tftp 0x80060000 kernel.bin
erase 0x9fe80000 +0x150000
cp.b 0x80060000 0x9fe80000 0x150000
tftp 0x80060000 rootfs.bin
erase 0x9f050000 +0xb20000
cp.b 0x80060000 0x9f050000 0xb20000







本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

×
我的恩山、我的无线 The best wifi forum is right here.
发表于 2018-2-21 03:19 来自手机 | 显示全部楼层
学习了啊         ,
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2018-2-21 06:56 来自手机 | 显示全部楼层
谢谢分享。      
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2018-2-21 07:39 | 显示全部楼层
学习新方法。感谢分享。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2018-2-21 08:45 | 显示全部楼层
感谢分享了.MS 内存占用有点大?
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2018-2-21 08:48 | 显示全部楼层
nice

期待楼主造一个 QCA9558 的固件,适配 880n-v1, 881n-v1, 941n-v7, 2041n-v2 等等,

在这里我贴一份袁大妈,仅供参考呀

  1. /*
  2. * TP-LINK WR881N V1 board support
  3. *
  4. * Copyright (c) 2013 Gabor Juhos <juhosg@openwrt.org>
  5. * Copyright (c) 2016 Tal Keren <kooolk@gmail.com>
  6. * Copyright (c) 2018 Henryk Heisig <hyniu@o2.pl>
  7. *
  8. * Based on the Qualcomm Atheros AP135/AP136 reference board support code
  9. *   Copyright (c) 2012 Qualcomm Atheros
  10. *
  11. * Permission to use, copy, modify, and/or distribute this software for any
  12. * purpose with or without fee is hereby granted, provided that the above
  13. * copyright notice and this permission notice appear in all copies.
  14. *
  15. * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
  16. * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
  17. * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
  18. * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
  19. * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
  20. * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
  21. * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  22. *
  23. */

  24. #include <linux/pci.h>
  25. #include <linux/phy.h>
  26. #include <linux/gpio.h>
  27. #include <linux/delay.h>
  28. #include <linux/platform_data/mdio-gpio.h>
  29. #include <linux/platform_device.h>
  30. #include <linux/ar8216_platform.h>
  31. #include <linux/ath9k_platform.h>

  32. #include <asm/mach-ath79/ath79.h>
  33. #include <asm/mach-ath79/ar71xx_regs.h>

  34. #include "pci.h"
  35. #include "common.h"
  36. #include "dev-ap9x-pci.h"
  37. #include "dev-eth.h"
  38. #include "dev-gpio-buttons.h"
  39. #include "dev-leds-gpio.h"
  40. #include "dev-m25p80.h"
  41. #include "dev-wmac.h"
  42. #include "machtypes.h"

  43. #define RE450_GPIO_LED_QOS                15
  44. #define RE450_GPIO_LED_WLAN2G                12
  45. #define RE450_GPIO_LED_SYSTEM                19
  46. #define RE450_GPIO_LED_LAN_DATA                17
  47. #define RE450_GPIO_LED_LAN_LINK                23
  48. #define RE450_GPIO_LED_JUMPSTART        21
  49. #define RE450_GPIO_LED_JUMPSTART_RED        22

  50. #define RE450_GPIO_BTN_LED                19
  51. #define RE450_GPIO_BTN_RESET                18
  52. #define RE450_GPIO_BTN_JUMPSTART        20

  53. #define RE450_GPIO_SMI_MDIO                1
  54. #define RE450_GPIO_SMI_MDC                3

  55. #define RE450_LAN_PHYADDR                4

  56. #define RE450_KEYS_POLL_INTERVAL        20        /* msecs */
  57. #define RE450_KEYS_DEBOUNCE_INTERVAL (3 * RE450_KEYS_POLL_INTERVAL)

  58. #define ATH_MII_MGMT_CMD                0x24
  59. #define ATH_MGMT_CMD_READ                0x1

  60. #define ATH_MII_MGMT_ADDRESS                0x28
  61. #define ATH_ADDR_SHIFT                        8

  62. #define ATH_MII_MGMT_CTRL                0x2c
  63. #define ATH_MII_MGMT_STATUS                0x30

  64. #define ATH_MII_MGMT_IND                0x34
  65. #define ATH_MGMT_IND_BUSY                (1 << 0)
  66. #define ATH_MGMT_IND_INVALID                (1 << 2)

  67. #define QCA955X_ETH_CFG_MII_GE0_EN        BIT(1)
  68. #define QCA955X_ETH_CFG_MII_GE0_SLAVE        BIT(4)

  69. #define RE450_WMAC_CALDATA_OFFSET        0x1000

  70. static const char *tl_re450_part_probes[] = {
  71.         "cmdlinepart",
  72.         NULL,
  73. };

  74. static struct flash_platform_data tl_re450_flash_data = {
  75.         .part_probes        = tl_re450_part_probes,
  76. };

  77. static struct gpio_led re355_leds_gpio[] __initdata = {
  78.         {
  79.                 .name                = "re355:blue:power",
  80.                 .gpio                = RE450_GPIO_LED_SYSTEM,
  81.                 .active_low        = 1,
  82.         },
  83.         {
  84.                 .name                = "re355:blue:wlan2g",
  85.                 .gpio                = RE450_GPIO_LED_WLAN2G,
  86.                 .active_low        = 1,
  87.         },
  88.         {
  89.                 .name                = "re355:blue:qos",
  90.                 .gpio                = RE450_GPIO_LED_QOS,
  91.                 .active_low        = 1,
  92.         },
  93.         {
  94.                 .name                = "re355:blue:wps",
  95.                 .gpio                = RE450_GPIO_LED_JUMPSTART,
  96.         },
  97.         {
  98.                 .name                = "re355:red:wps",
  99.                 .gpio                = RE450_GPIO_LED_JUMPSTART_RED,
  100.         },
  101.         {
  102.                 .name                = "re355:green:lan_data",
  103.                 .gpio                = RE450_GPIO_LED_LAN_DATA,
  104.                 .active_low        = 1,
  105.         },
  106.         {
  107.                 .name                = "re355:green:lan_link",
  108.                 .gpio                = RE450_GPIO_LED_LAN_LINK,
  109.                 .active_low        = 1,
  110.         },
  111. };

  112. static struct gpio_keys_button re450_gpio_keys[] __initdata = {
  113.         {
  114.                 .desc                = "Reset button",
  115.                 .type                = EV_KEY,
  116.                 .code                = KEY_WPS_BUTTON,
  117.                 .debounce_interval = RE450_KEYS_DEBOUNCE_INTERVAL,
  118.                 .gpio                = RE450_GPIO_BTN_RESET,
  119.                 .active_low        = 1,
  120.         },
  121.         {
  122.                 .desc                = "WPS button",
  123.                 .type                = EV_KEY,
  124.                 .code                = KEY_RESTART,
  125.                 .debounce_interval = RE450_KEYS_DEBOUNCE_INTERVAL,
  126.                 .gpio                = RE450_GPIO_BTN_JUMPSTART,
  127.                 .active_low        = 1,
  128.         },
  129.         {
  130.                 .desc                = "Control LED button",
  131.                 .type                = EV_KEY,
  132.                 .code                = BTN_0,
  133.                 .debounce_interval = RE450_KEYS_DEBOUNCE_INTERVAL,
  134.                 .gpio                = RE450_GPIO_BTN_LED,
  135.                 .active_low        = 1,
  136.         },
  137. };

  138. static struct mdio_board_info re450_mdio0_info[] = {
  139.     .bus_id = "ag71xx-mdio.0",
  140.                 .phy_addr = 0,
  141.                 .platform_data = NULL,
  142.         },
  143. };

  144. static unsigned long __init ath_gmac_reg_rd(unsigned long reg)
  145. {
  146.         void __iomem *base;
  147.         unsigned long t;

  148.         base = ioremap(AR71XX_GE0_BASE, AR71XX_GE0_SIZE);

  149.         t = __raw_readl(base + reg);

  150.         iounmap(base);

  151.         return t;
  152. }

  153. static void __init ath_gmac_reg_wr(unsigned long reg, unsigned long value)
  154. {
  155.         void __iomem *base;
  156.         unsigned long t = value;

  157.         base = ioremap(AR71XX_GE0_BASE, AR71XX_GE0_SIZE);

  158.         __raw_writel(t, base + reg);

  159.         iounmap(base);
  160. }

  161. static void __init phy_reg_write(unsigned char phy_addr, unsigned char reg, unsigned short data)
  162. {
  163.         unsigned short addr = (phy_addr << ATH_ADDR_SHIFT) | reg;
  164.         volatile int rddata;
  165.         unsigned short ii = 0xFFFF;

  166.         do
  167.         {
  168.                 udelay(5);
  169.                 rddata = ath_gmac_reg_rd(ATH_MII_MGMT_IND) & 0x1;
  170.         } while (rddata && --ii);

  171.         ath_gmac_reg_wr(ATH_MII_MGMT_ADDRESS, addr);
  172.         ath_gmac_reg_wr(ATH_MII_MGMT_CTRL, data);

  173.         do
  174.         {
  175.                 udelay(5);
  176.                 rddata = ath_gmac_reg_rd(ATH_MII_MGMT_IND) & 0x1;
  177.         } while (rddata && --ii);
  178. }

  179. static unsigned short __init phy_reg_read(unsigned char phy_addr, unsigned char reg)
  180. {
  181.         unsigned short addr = (phy_addr << ATH_ADDR_SHIFT) | reg, val;
  182.         volatile int rddata;
  183.         unsigned short ii = 0xffff;

  184.         do
  185.         {
  186.                 udelay(5);
  187.                 rddata = ath_gmac_reg_rd(ATH_MII_MGMT_IND) & 0x1;
  188.         } while (rddata && --ii);

  189.         ath_gmac_reg_wr(ATH_MII_MGMT_CMD, 0x0);
  190.         ath_gmac_reg_wr(ATH_MII_MGMT_ADDRESS, addr);
  191.         ath_gmac_reg_wr(ATH_MII_MGMT_CMD, ATH_MGMT_CMD_READ);

  192.         do
  193.         {
  194.                 udelay(5);
  195.                 rddata = ath_gmac_reg_rd(ATH_MII_MGMT_IND) & 0x1;
  196.         } while (rddata && --ii);

  197.         val = ath_gmac_reg_rd(ATH_MII_MGMT_STATUS);
  198.         ath_gmac_reg_wr(ATH_MII_MGMT_CMD, 0x0);

  199.         return val;
  200. }

  201. static void __init athrs27_reg_write(unsigned int s27_addr, unsigned int s27_write_data)
  202. {
  203.         unsigned int addr_temp;
  204.         unsigned int data;
  205.         unsigned char phy_address, reg_address;

  206.         addr_temp = (s27_addr) >> 2;
  207.         data = addr_temp >> 7;

  208.         phy_address = 0x1f;
  209.         reg_address = 0x10;

  210.         phy_reg_write(phy_address, reg_address, data);

  211.         phy_address = (0x17 & ((addr_temp >> 4) | 0x10));

  212.         reg_address = (((addr_temp << 1) & 0x1e) | 0x1);
  213.         data = (s27_write_data >> 16) & 0xffff;
  214.         phy_reg_write(phy_address, reg_address, data);

  215.         reg_address = ((addr_temp << 1) & 0x1e);
  216.         data = s27_write_data  & 0xffff;
  217.         phy_reg_write(phy_address, reg_address, data);
  218. }

  219. static unsigned int __init athrs27_reg_read(unsigned int s27_addr)
  220. {
  221.         unsigned int addr_temp;
  222.         unsigned int s27_rd_csr_low, s27_rd_csr_high, s27_rd_csr;
  223.         unsigned int data;
  224.         unsigned char phy_address, reg_address;

  225.         addr_temp = s27_addr >>2;
  226.         data = addr_temp >> 7;

  227.         phy_address = 0x1f;
  228.         reg_address = 0x10;

  229.         phy_reg_write(phy_address, reg_address, data);

  230.         phy_address = (0x17 & ((addr_temp >> 4) | 0x10));
  231.         reg_address = ((addr_temp << 1) & 0x1e);
  232.         s27_rd_csr_low = (unsigned int) phy_reg_read(phy_address, reg_address);

  233.         reg_address = reg_address | 0x1;
  234.         s27_rd_csr_high = (unsigned int) phy_reg_read(phy_address, reg_address);
  235.         s27_rd_csr = (s27_rd_csr_high << 16) | s27_rd_csr_low ;
  236.        
  237.         return (s27_rd_csr);
  238. }

  239. static void __init ar8236_reset(void)
  240. {
  241.         unsigned short i = 30;

  242.         athrs27_reg_write(0x0, athrs27_reg_read(0x0) | 0x80000000);
  243.         while (i--)
  244.         {
  245.                 mdelay(100);
  246.                 if (!(athrs27_reg_read(0x0) & 0x80000000))
  247.                 break;
  248.         }
  249. }

  250. static void __init rex5x_setup(void)
  251. {
  252.         u8 *mac = (u8 *) KSEG1ADDR(0x1f01fc00);
  253.         u8 *art = (u8 *) KSEG1ADDR(0x1fff0000);
  254.         u8 tmpmac[ETH_ALEN];

  255.         ath79_register_m25p80(&tl_re450_flash_data);

  256.         ath79_init_mac(tmpmac, mac, 0);
  257.         ath79_register_wmac(art + RE450_WMAC_CALDATA_OFFSET, tmpmac);

  258.         ath79_register_pci();
  259.        
  260.         ar8236_reset();

  261.         /* MDIO Interface */
  262.   mdiobus_register_board_info(re450_mdio0_info,
  263.                    ARRAY_SIZE(re450_mdio0_info));
  264.                                     
  265.         ath79_register_mdio(0, 0x0);

  266.         ath79_setup_qca955x_eth_cfg(QCA955X_ETH_CFG_MII_GE0_EN | QCA955X_ETH_CFG_MII_GE0_SLAVE);

  267.         /* GMAC0 is connected to the RGMII interface to an Atheros AR8035-A */
  268.         ath79_init_mac(ath79_eth0_data.mac_addr, mac, 1);
  269.         ath79_eth0_data.phy_if_mode = PHY_INTERFACE_MODE_MII;
  270.         ath79_eth0_data.mii_bus_dev = &ath79_mdio0_device.dev;
  271.         ath79_eth0_data.duplex = DUPLEX_FULL;
  272.         ath79_eth0_data.speed = SPEED_100;
  273.         ath79_eth0_data.phy_mask = BIT(0);
  274.         ath79_register_eth(0);
  275.        
  276.         ath79_register_gpio_keys_polled(-1, RE450_KEYS_POLL_INTERVAL,
  277.                                         ARRAY_SIZE(re450_gpio_keys),
  278.                                         re450_gpio_keys);
  279. }

  280. static void __init re355_setup(void)
  281. {
  282.         rex5x_setup();
  283.        
  284.         ath79_register_leds_gpio(-1, ARRAY_SIZE(re355_leds_gpio),
  285.                                  re355_leds_gpio);
  286. }

  287. MIPS_MACHINE(ATH79_MACH_TL_WR881N_V1, "TL-WR881N-V1", "TP-LINK TL-WR881N V1",
  288.              re355_setup)
复制代码



本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

×
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2018-2-21 10:45 | 显示全部楼层
谢谢,感谢分享~~
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2018-2-21 13:22 | 显示全部楼层
闭源驱动?
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2018-2-21 13:59 | 显示全部楼层
hzjnet@163.com 发表于 2018-2-21 13:22
闭源驱动?

是的,看加载信息
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2018-2-21 16:07 来自手机 | 显示全部楼层
很给力,希望支持更多机型。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2018-2-21 23:05 来自手机 | 显示全部楼层
刚好有个9531+9887
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2018-2-22 15:08 | 显示全部楼层
这个不错啊, 学习一下
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2018-8-18 10:14 | 显示全部楼层
kankankanzishuonimei
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-1-8 15:31 | 显示全部楼层
!!!学习一下
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2021-7-9 10:29 | 显示全部楼层
大佬还能提供一下这个固件么?又个minibox v3.2,刷最新的openwrt19.07后默认wifi关闭,只要打开wifi就各种崩溃重启。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-3-29 07:22

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

快速回复 返回顶部 返回列表