基于Zynq SDIO WiFi移植二(支持2.4/5G)

发布于:2024-10-09 ⋅ 阅读:(35) ⋅ 点赞:(0)

1 SDIO设备识别

经过编译,将移植好的uboot、kernel、rootFS、ramdisk等烧录到Flash中,上电启动,在log中,可看到sdio设备

[    1.747059] mmc1: queuing unknown CIS tuple 0x01 (3 bytes)
[    1.761842] mmc1: queuing unknown CIS tuple 0x1a (5 bytes)
[    1.771277] mmc1: queuing unknown CIS tuple 0x1b (8 bytes)
[    1.777558] mmc1: queuing unknown CIS tuple 0x14 (0 bytes)
[    1.790101] mmc1: queuing unknown CIS tuple 0x80 (1 bytes)
[    1.796027] mmc1: queuing unknown CIS tuple 0x81 (1 bytes)
[    1.801850] mmc1: queuing unknown CIS tuple 0x82 (1 bytes)
[    1.807499] mmc1: new high speed SDIO card at address 0001

2 运行Log

全部运行日志如下:


U-Boot 2014.01 (May 26 2024 - 22:54:28)

I2C:   ready
Memory: ECC disabled
DRAM:  448 MiB
MMC:   zynq_sdhci: 0
SF: Detected S25FL256S_64K with page size 256 Bytes, erase size 64 KiB, total 32 MiB
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
Net:   Gem.e000b000
Hit any key to stop autoboot:  0 
Copying Linux from QSPI flash to RAM...
SF: Detected S25FL256S_64K with page size 256 Bytes, erase size 64 KiB, total 32 MiB
SF: 5242880 bytes @ 0x200000 Read: OK
SF: 65536 bytes @ 0x700000 Read: OK
Copying ramdisk...
SF: 10485760 bytes @ 0x710000 Read: OK
## Booting kernel from Legacy Image at 03000000 ...
   Image Name:   Linux-3.14.0-xilinx
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3907864 Bytes = 3.7 MiB
   Load Address: 00100000
   Entry Point:  00100000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 02000000 ...
   Image Name:   Ramdisk
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    9428633 Bytes = 9 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 02a00000
   Booting using the fdt blob at 0x2a00000
   Loading Kernel Image ... OK
   Loading Ramdisk to 1b231000, end 1bb2ee99 ... OK
   Loading Device Tree to 1b22b000, end 1b230946 ... OK

Starting kernel ...

[    1.008498] console [ttyPS0] enabled
[    1.015539] bootconsole [earlycon0] disabled
[    1.026843] xdevcfg f8007000.devcfg: ioremap 0xf8007000 to dc868000
[    1.036385] [drm] Initialized drm 1.1.0 20060810
[    1.077115] brd: module loaded
[    1.101048] loop: module loaded
[    1.118259] m25p80 spi0.0: s25fl256s1 (32768 Kbytes)
[    1.123743] 6 ofpart partitions found on MTD device spi0.0
[    1.129150] Creating 6 MTD partitions on "spi0.0":
[    1.134476] 0x000000000000-0x000000200000 : "qspi-fsbl-uboot"
[    1.148200] 0x000000200000-0x000000700000 : "qspi-linux"
[    1.158831] 0x000000700000-0x000000710000 : "qspi-device-tree"
[    1.169706] 0x000000710000-0x000001110000 : "qspi-rootfs"
[    1.180228] 0x000001110000-0x000001120000 : "user_data"
[    1.190728] 0x000001120000-0x000001b20000 : "user_data"
[    1.213861] libphy: MACB_mii_bus: probed
[    1.220089] macb e000b000.ethernet eth0: no PHY found
[    1.283334] e1000e: Intel(R) PRO/1000 Network Driver - 2.3.2-k
[    1.289093] e1000e: Copyright(c) 1999 - 2013 Intel Corporation.
[    1.300992] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.307989] ehci-pci: EHCI PCI platform driver
[    1.313917] usbcore: registered new interface driver usb-storage
[    1.323007] mousedev: PS/2 mouse device common for all mice
[    1.330947] i2c /dev entries driver
[    1.338576] cdns-i2c e0004000.i2c: 400 kHz mmio e0004000 irq 57
[    1.346409] cdns-i2c e0005000.i2c: 400 kHz mmio e0005000 irq 80
[    1.358476] Driver for 1-wire Dallas network protocol.
[    1.364903] DS1WM w1 busmaster driver - (c) 2004 Szabolcs Gyurko
[    1.377156] cdns-wdt f8005000.watchdog: Xilinx Watchdog Timer at dc872000 with timeout 10s
[    1.391745] Xilinx Zynq CpuIdle Driver started
[    1.398117] sdhci: Secure Digital Host Controller Interface driver
[    1.404421] sdhci: Copyright(c) Pierre Ossman
[    1.408695] sdhci-pltfm: SDHCI platform and OF driver helper
[    1.414942] mmc0: no vqmmc regulator found
[    1.418974] mmc0: no vmmc regulator found
[    1.460620] mmc0: SDHCI controller on e0100000.sdhci [e0100000.sdhci] using ADMA
[    1.472753] mmc1: no vqmmc regulator found
[    1.476824] mmc1: no vmmc regulator found
[    1.520641] mmc1: SDHCI controller on e0101000.sdhci [e0101000.sdhci] using ADMA
[    1.530455] usbcore: registered new interface driver usbhid
[    1.535991] usbhid: USB HID core driver
[    1.747059] mmc1: queuing unknown CIS tuple 0x01 (3 bytes)
[    1.761842] mmc1: queuing unknown CIS tuple 0x1a (5 bytes)
[    1.771277] mmc1: queuing unknown CIS tuple 0x1b (8 bytes)
[    1.777558] mmc1: queuing unknown CIS tuple 0x14 (0 bytes)
[    1.790101] mmc1: queuing unknown CIS tuple 0x80 (1 bytes)
[    1.796027] mmc1: queuing unknown CIS tuple 0x81 (1 bytes)
[    1.801850] mmc1: queuing unknown CIS tuple 0x82 (1 bytes)
[    1.807499] mmc1: new high speed SDIO card at address 0001

[    1.898453] TCP: cubic registered
[    1.901766] NET: Registered protocol family 17
[    1.906173] lib80211: common routines for IEEE802.11 drivers
[    1.912179] zynq_pm_ioremap: no compatible node found for 'xlnx,zynq-ddrc-1.0'
[    1.919339] zynq_pm_late_init: Unable to map DDRC IO memory.
[    1.925336] Registering SWP/SWPB emulation handler
[    1.932985] regulator-dummy: disabling
[    1.937518] drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
[    1.971388] ALSA device list:
[    1.974284]   No soundcards found.
[    1.980441] RAMDISK: gzip image found at block 0
[    3.528639] VFS: Mounted root (ext2 filesystem) on device 1:0.
[    3.535561] devtmpfs: mounted
[    3.538878] Freeing unused kernel memory: 204K (c070b000 - c073e000)
Starting rcS...
++ Mounting filesystem
++ Setting up mdev
++ Starting telnet daemon
++ Starting http daemon
++ Starting ftp daemon
++ Starting dropbear (ssh) daemon
mkdir: can't create directory '/var/run/': File exists
mkdir: can't create directory '/var/run/hostapd': File exists
Generate the RANDOM
Mount File System from Flash
[    4.792550] random: nonblocking pool is initialized
=== == = Load Flash Shell Script AP Before = == ===
/etc/init.d/rcS: line 52: /mount_flash/RCS0: not found
=== == = Configure SoftAP = == ===
[    4.937581] Loading modules backported from Linux version v3.12.8-0-g97f15f1
[    4.944621] Backport generated by backports.git v3.12.8-1-0-geb41fad
[    4.983133] cfg80211: Calling CRDA to update world regulatory domain
[    4.997201] cfg80211: World regulatory domain updated:
[    5.002453] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
[    5.018952] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[    5.026913] cfg80211:   (2457000 KHz - 2482000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[    5.034815] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
[    5.042657] cfg80211:   (5170000 KHz - 5250000 KHz @ 80000 KHz), (300 mBi, 2000 mBm)
[    5.050385] cfg80211:   (5735000 KHz - 5835000 KHz @ 80000 KHz), (300 mBi, 2000 mBm)
[    5.058318] cfg80211:   (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 0 mBm)
[    5.123418] wlan: loading driver v4.5.10.016
[    5.128782] hifDeviceInserted: Dumping clocks (50000000,49999999)
[    5.134898] HIFDumpCCCR 0(43) 1(3) 2(0) 3(0) 4(0) 5(0) 6(0) 7(6) 8(17) 9(0) A(10) B(0) C(0) D(0) E(0) F(0) 10(0) 11(0) 12(1) 13(3) 14(7) 15(37) 16(1) 
[    5.176593] ath_hif_sdio: HIF (Atheros/multi-bss)
[    5.184867] wlan: [654:E :HDD] wlan_hdd_cfg80211_init: wiphy->bands[i] is NULL, i = 2
[    5.311748] AR6000: configuration opcode 3 is not used for Linux SDIO stack 
[    5.321411] NUM_DEV=1 FWMODE=0x2 FWSUBMODE=0x0 FWBR_BUF 0
[    5.361424] Board extended Data download address: 0x0
[    5.392345] wlan: [654:E :VOS] ol_transfer_bin_file: transferring file: bdwlan30.bin size 8124 bytes done!
[    5.402437] ol_download_firmware: Using 0x1234 for the remainder of init
[    5.475645] wlan: [654:E :VOS] ol_transfer_bin_file: transferring file: otp30.bin size 23773 bytes done!
[    5.486600] ol_transfer_bin_file: Loading setup file qsetup30.bin
[    5.492840] ar6k_wlan mmc1:0001:1: Direct firmware load failed with error -2
[    5.499810] ar6k_wlan mmc1:0001:1: Falling back to user helper
[    5.519406] ol_transfer_bin_file: Failed to get qsetup30.bin
[    7.142626] wlan: [654:E :VOS] ol_transfer_bin_file: transferring file: qwlan30.bin size 591532 bytes done!
[    7.156689] +HTCCreate ..  HIF :d2d8c000 
[    7.160994] HIF Interrupt processing is SYNC ONLY
[    7.165620] AR6000: configuration opcode 7 is only used for RTOS systems, not Linux systems
[    7.174011] AR6000: configuration opcode 5 is not used for Linux SDIO stack 
[    7.181705] -HTCCreate (0xd1da7000) 
[    7.185699] WDA_open-4566: WMA --> wmi_unified_attach - success
[    7.191602] ol_if_dfs_attach: called; ptr=ca935aec, radar_info=ca939d74
[    7.199110] wlan: [654:E :SAP] dfs_init_radar_filters[201]: Unknown dfs domain 0 
[    7.206775] +HWT
[    7.210968] Target Ready! : transmit resources : 3 size:1792, MaxMsgsPerHTCBundle = 32
[    7.218813] HTC Service Index : 1 TX : 0x100 : alloc:3 
[    7.224087] HTC Service:0x0001, ULpipe:1 DLpipe:0 id:0 Ready
[    7.229666] -HWT
[    7.231991] MAILBOX SWAP Service is enabled!
[    7.236177] Reduced Tx Complete service is enabled!
[    7.243079] is_full_reorder_offloaded? 0
[    7.246927] HTC Service TX : 0x300 : allocation is zero! 
[    7.254450] HTC Service:0x0300, ULpipe:1 DLpipe:0 id:1 Ready
[    7.260033] HTC Service:0x0300 ep:1 TX flow control disabled
[    7.265792] htt_tx_attach:htt_desc_start:0xcc0a0000 htt_desc_end:0xcc0bc200
[    7.275057] HTC Service:0x0100, ULpipe:3 DLpipe:2 id:2 Ready
[    7.280690] wma_pre_start-4928: WMA --> wmi_unified_connect_htc_service - success
[    7.288520] wma_mc_process_msg-21188: McThread: WNI_CFG_DNLD_REQ
[    7.295817] HTC using TX credit flow control
[    7.302126] wmitlv_check_and_pad_tlvs: WARN: TLV truncated. tlv_size_diff=4, curr_tlv_len=112
[    7.310695] __wmi_control_rx: WMI UNIFIED SERVICE READY event
[    7.316368] wma_rx_service_ready_event-23911: WMA <-- WMI_SERVICE_READY_EVENTID
[    7.323733] wlan: [4:E :WDA] wma_rx_service_ready_event: Firmware build version : 00000018
[    7.332086] wlan: [4:E :WDA] wma_rx_service_ready_event: Board version: 0.22014009
[    7.339598] wma_rx_service_ready_event-24026: WMA --> WMI_INIT_CMDID
[    7.353626] __wmi_control_rx:  WMI UNIFIED READY event
[    7.358692] wma_rx_ready_event-24055: WMA <-- WMI_READY_EVENTID
[    7.365713] 
[    7.367124] =============================================
[    7.372504] [ INFO: possible recursive locking detected ]
[    7.377890] 3.14.0-xilinx #41 Tainted: G           O
[    7.382834] ---------------------------------------------
[    7.388217] AR6K startup/654 is trying to acquire lock:
[    7.393423]  (&(&lock->spinlock)->rlock){+.....}, at: [<bf1e1e94>] GetHTCSendPacketsCreditBased+0x12c/0x2b0 [wlan]
[    7.404969] 
[    7.404969] but task is already holding lock:
[    7.410782]  (&(&lock->spinlock)->rlock){+.....}, at: [<bf1e2468>] HTCTrySend+0x340/0x958 [wlan]
[    7.420758] 
[    7.420758] other info that might help us debug this:
[    7.427267]  Possible unsafe locking scenario:
[    7.427267] 
[    7.433168]        CPU0
[    7.435598]        ----
[    7.438028]   lock(&(&lock->spinlock)->rlock);
[    7.442455]   lock(&(&lock->spinlock)->rlock);
[    7.446883] 
[    7.446883]  *** DEADLOCK ***
[    7.446883] 
[    7.452786]  May be due to missing lock nesting notation
[    7.452786] 
[    7.459559] 1 lock held by AR6K startup/654:
[    7.463809]  #0:  (&(&lock->spinlock)->rlock){+.....}, at: [<bf1e2468>] HTCTrySend+0x340/0x958 [wlan]
[    7.474165] 
[    7.474165] stack backtrace:
[    7.478514] CPU: 1 PID: 654 Comm: AR6K startup Tainted: G           O 3.14.0-xilinx #41
[    7.486526] [<c0015330>] (unwind_backtrace) from [<c00116d8>] (show_stack+0x10/0x14)
[    7.494237] [<c00116d8>] (show_stack) from [<c04f2898>] (dump_stack+0x8c/0xd0)
[    7.501440] [<c04f2898>] (dump_stack) from [<c005efc8>] (__lock_acquire+0x2b4/0x1998)
[    7.509246] [<c005efc8>] (__lock_acquire) from [<c0060da8>] (lock_acquire+0x68/0x7c)
[    7.516975] [<c0060da8>] (lock_acquire) from [<c04f80b0>] (_raw_spin_lock+0x40/0x50)
[    7.525915] [<c04f80b0>] (_raw_spin_lock) from [<bf1e1e94>] (GetHTCSendPacketsCreditBased+0x12c/0x2b0 [wlan])
[    7.538064] [<bf1e1e94>] (GetHTCSendPacketsCreditBased [wlan]) from [<bf1e2578>] (HTCTrySend+0x450/0x958 [wlan])
[    7.550451] [<bf1e2578>] (HTCTrySend [wlan]) from [<bf1e2c68>] (HTCSendPktsMultiple+0x1e8/0x2ac [wlan])
[    7.562052] [<bf1e2c68>] (HTCSendPktsMultiple [wlan]) from [<bf1e2d84>] (HTCSendPkt+0x58/0x68 [wlan])
[    7.573478] [<bf1e2d84>] (HTCSendPkt [wlan]) from [<bf1d6d8c>] (wmi_unified_cmd_send+0x15e8/0x1628 [wlan])
[    7.585218] [<bf1d6d8c>] (wmi_unified_cmd_send [wlan]) from [<bf1bf860>] (wma_send_regdomain_info+0xa4/0xe0 [wlan])
[    7.597847] [<bf1bf860>] (wma_send_regdomain_info [wlan]) from [<bf1c7244>] (regdmn_get_ctl_info+0x1d4/0x1fc [wlan])
[    7.610566] [<bf1c7244>] (regdmn_get_ctl_info [wlan]) from [<bf1c72cc>] (regdmn_set_regval+0x60/0x70 [wlan])
[    7.622561] [<bf1c72cc>] (regdmn_set_regval [wlan]) from [<bf198514>] (vos_init_wiphy_from_eeprom+0x218/0x258 [wlan])
[    7.635044] [<bf198514>] (vos_init_wiphy_from_eeprom [wlan]) from [<bf0859e8>] (hdd_wlan_startup+0x56c/0xf90 [wlan])
[    7.647393] [<bf0859e8>] (hdd_wlan_startup [wlan]) from [<bf1e9040>] (ath_hif_sdio_probe+0x1f8/0x2d0 [wlan])
[    7.659544] [<bf1e9040>] (ath_hif_sdio_probe [wlan]) from [<bf1e9688>] (startup_task+0x34/0x68 [wlan])
[    7.669985] [<bf1e9688>] (startup_task [wlan]) from [<c0041b14>] (kthread+0xd8/0xec)
[    7.677663] [<c0041b14>] (kthread) from [<c000e468>] (ret_from_fork+0x14/0x2c)
[    7.686063] wlan: [654:E :SME] csr_init_chan_list: 326: init time country code US
[    7.693572] cfg80211: Calling CRDA for country: US
[    7.698867] wlan: [15:E :VOS] error: wiphy->bands is NULL, i = 2
[    7.704868] wlan: [15:F :HDD] pAdapter is null !!
[    7.709521] cfg80211: Regulatory domain changed to country: US
[    7.711690] ar6k_wlan mmc1:0001:1: Direct firmware load failed with error -2
[    7.711699] ar6k_wlan mmc1:0001:1: Falling back to user helper
[    7.730588] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
[    7.738699] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2700 mBm)
[    7.746751] wlan: [654:E :WDA] MCC TX Pause Event Handler register
[    7.750722] cfg80211:   (5170000 KHz - 5250000 KHz @ 80000 KHz), (300 mBi, 1700 mBm)
[    7.750732] cfg80211:   (5250000 KHz - 5330000 KHz @ 80000 KHz), (300 mBi, 2400 mBm)
[    7.750739] cfg80211:   (5490000 KHz - 5600000 KHz @ 80000 KHz), (300 mBi, 2400 mBm)
[    7.750747] cfg80211:   (5650000 KHz - 5710000 KHz @ 40000 KHz), (300 mBi, 2400 mBm)
[    7.750754] cfg80211:   (5710000 KHz - 5835000 KHz @ 80000 KHz), (300 mBi, 3000 mBm)
[    7.750761] cfg80211:   (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 4000 mBm)
[    7.799271] wlan: [654:E :WDA] Target does not support batch scan feature
[    7.806995] session id - 0, AddSta session - 0
[    7.811626] wlan: [657:E :WDA] wma_unified_vdev_create_send: ID = 0 VAP Addr = 88:83:5d:a0:3b:7a
[    7.820467] wma_vdev_attach-5777: vdev_id 0, txrx_vdev_handle = cc0d5e00
[    7.827375] wlan: [654:E :HDD] wlan_hdd_tdls_init TDLS Implicit trigger not enabled!
[    7.835662] target uses HTT version 3.15; host uses 3.9
[    7.840859] *** Warning: host/target HTT versions are different, though compatible!
[    7.873528] session id - 1, AddSta session - 0
[    7.876806] wlan: [657:E :WDA] Invalid wda_cli_set pdev command/Not yet implemented 0x34
[    7.886176] wlan: [657:E :WDA] wma_unified_vdev_create_send: ID = 1 VAP Addr = 8a:83:5d:23:3b:7a
[    7.895117] wma_vdev_attach-5777: vdev_id 1, txrx_vdev_handle = cc0d5400
[    7.902650] wma_vdev_attach-5843: P2P Device: creating self peer 8a:83:5d:23:3b:7a, vdev_id 1
[    7.911189] wlan: [657:E :WDA] wma_create_peer: Created peer with peer_addr 8a:83:5d:23:3b:7a vdev_id 1, peer_count - 1
[    7.948133] wlan: [657:E :WDA] Invalid wda_cli_set pdev command/Not yet implemented 0x34
[    7.956804] Host SW:4.5.10.016, FW:0.0.0.24, HW:QCA9377_REV1_1
[    7.962956] wlan_logging_sock_activate_svc: Initalizing FEConsoleLog = 0 NumBuff = 32
[    7.971487] wlan_logging_sock_activate_svc: Activated wlan_logging svc
[    7.978260] wlan: [657:E :WDA] TM sending the following to firmware: min 0 max 110 enable 1
[    7.978275] wlan: driver loaded
[    7.990598] wlan: [657:E :WDA] TM Sending thermal mgmt cmd: low temp 0, upper temp 110, enabled 1
lo        Link encap:Local Loopback  
          LOOPBACK  MTU:65536  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
  [    8.011639] wlan: [689:E :SME] PmcOffloadEnableStaModePowerSave: 3818: Failed to Queue Sta Mode Ps Request
        TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

p2p0      Link encap:Ethernet  HWaddr 8A:83:5D:23:3B:7A  
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

wlan0     Link encap:Ethernet  HWaddr 88:83:5D:A0:3B:7A  
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          co[    8.085604] wma_vdev_detach-5142: P2P Device: removing self peer 8a:83:5d:23:3b:7a
llisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX by[    8.096890] wlan: [657:E :WDA] wma_remove_peer: Removed peer with peer_addr 8a:83:5d:23:3b:7a vdevid 1 peer_count 0
tes:0 (0.0 B)

Udhcpd configuration
Hostapd configuration
==[    8.112924] wma_vdev_detach-5191: vdev_id:1 vdev_hdl:cc0d5400
= == = Load Flash Shell Script AP After = == ===
/etc/init.d/rc[    8.124060] wlan: [0:E :WDA] Call txrx detach with callback for vdev 1
S: line 70: /mount_flash/RCS1: not found
Start Linux Application ... ...
--------------------------
-System Release 2024 05 26
-rcS Complete
--------------------------
Configuration file: /mount_flash/wifi_ap.conf
-/bin/ash: syntax error: unterminated quoted string
/ # rfkill: Cannot open RFKILL control device
tools bind socket server success
[    8.183177] wma_vdev_detach-5191: vdev_id:0 vdev_hdl:cc0d5e00
[    8.188885] wlan: [0:E :WDA] Call txrx detach with callback for vdev 0
[    8.195667] wlan: [657:E :VOS] vos_mem_zero called with NULL parameter ptr
[    8.202517] wlan: [657:E :WDA] Set software AP Auth offload with none support security type
[    8.202517] 
[    8.232638] wlan: [693:E :HDD] received scan request
[    8.237770] wma_start_scan-6533: vdev id [0] is not active
[    8.243284] wlan: [657:E :SME] Found 0 BSS
Using interface wlan0 with hwaddr 88:83:5d:a0:3b:7a and ssid "ZCL0001"
[    8.374547] ------------[ cut here ]------------
[    8.380126] WARNING: CPU: 0 PID: 693 at /home/fpgadeveloper/WIFI_5G/WiFi_Driver/qca9377-le-4.5.10.016.001/WLAN-AIO/build/../drivers/backports/include/net/cfg80211.h:374 wlan_hdd_cfg80211_start_ap+0x17c/0x404 [wlan]()
[    8.399303] Modules linked in: wlan(O) cfg80211(O) compat(O)
[    8.404897] CPU: 0 PID: 693 Comm: hostapd Tainted: G           O 3.14.0-xilinx #41
[    8.412501] [<c0015330>] (unwind_backtrace) from [<c00116d8>] (show_stack+0x10/0x14)
[    8.420186] [<c00116d8>] (show_stack) from [<c04f2898>] (dump_stack+0x8c/0xd0)
[    8.427433] [<c04f2898>] (dump_stack) from [<c00227cc>] (warn_slowpath_common+0x60/0x84)
[    8.435492] [<c00227cc>] (warn_slowpath_common) from [<c0022880>] (warn_slowpath_null+0x18/0x20)
[    8.445145] [<c0022880>] (warn_slowpath_null) from [<bf0a94e0>] (wlan_hdd_cfg80211_start_ap+0x17c/0x404 [wlan])
[    8.456176] [<bf0a94e0>] (wlan_hdd_cfg80211_start_ap [wlan]) from [<bf01bbcc>] (nl80211_start_ap+0x354/0x3ac [cfg80211])
[    8.467123] [<bf01bbcc>] (nl80211_start_ap [cfg80211]) from [<c045b0f4>] (genl_rcv_msg+0x24c/0x2e4)
[    8.476134] [<c045b0f4>] (genl_rcv_msg) from [<c045a634>] (netlink_rcv_skb+0x58/0xac)
[    8.483939] [<c045a634>] (netlink_rcv_skb) from [<c045ae94>] (genl_rcv+0x20/0x34)
[    8.491401] [<c045ae94>] (genl_rcv) from [<c0459fcc>] (netlink_unicast+0x124/0x208)
[    8.499019] [<c0459fcc>] (netlink_unicast) from [<c045a48c>] (netlink_sendmsg+0x340/0x398)
[    8.507292] [<c045a48c>] (netlink_sendmsg) from [<c0424d08>] (sock_sendmsg+0x70/0x8c)
[    8.515102] [<c0424d08>] (sock_sendmsg) from [<c0426164>] (___sys_sendmsg.part.29+0x17c/0x200)
[    8.523691] [<c0426164>] (___sys_sendmsg.part.29) from [<c04271c8>] (__sys_sendmsg+0x4c/0x70)
[    8.532223] [<c04271c8>] (__sys_sendmsg) from [<c000e3a0>] (ret_fast_syscall+0x0/0x48)
[    8.540065] ---[ end trace 85c29d193058a3b6 ]---
[    8.544857] wlan: [693:E :SME] csrChangeDefaultConfigParam failed with status=1
[    8.552283] session id - 0, AddSta session - 0
[    8.556746] wlan: [657:E :WDA] wma_unified_vdev_create_send: ID = 0 VAP Addr = 88:83:5d:a0:3b:7a
[    8.565544] wma_vdev_attach-5777: vdev_id 0, txrx_vdev_handle = cc0d5e00
[    8.572746] wlan: [657:E :PE ] limMlmAddBss: 1724: TRYING TO HIDE SSID 0
[    8.579400] wlan: [657:E :PE ] mlm_add_sta: 1621: GF: 0, ChnlWidth: 1, MimoPS: 3, lsigTXOP: 0, dsssCCK: 0, SGI20: 1, SGI401
[    8.590655] wlan: [657:E :WDA] wma_create_peer: Created peer with peer_addr 88:83:5d:a0:3b:7a vdev_id 0, peer_count - 1
[    8.667256] wmitlv_check_and_pad_tlvs: WARN: TLV truncated. tlv_size_diff=4, curr_tlv_len=32
[    8.676453] wma_send_beacon-14348: Beacon Offload Enabled Sending Unified command
[    8.684658] wlan: [657:E :HDD] MODE 1, CH 44, LWM 0, HWM 0, TXQDEP 1500
[    8.691304] wlan: [657:E :HDD] wlan(0) 00:00:00:00:00:00 Standalone
[    8.697506] wlan: [657:E :HDD] AP(44) 88:83:5d:a0:3b:7a
[    8.707121] wma_set_bsskey-13156: BSS Key setup with vdev_mac 88:83:5d:a0:3b:7a
[    8.707121] 
[    8.716412] TXRX: ol_txrx_peer_find_add_id: Delete Peer ce302800
[    8.722789] TXRX: Couldn't find peer from ID 2 - skipping security inits
[   11.200634] wlan: [657:E :HDD] hdd_conf_arp_offload: 960:  fenable = 1 
[   11.200634] 
[   11.208687] wlan: [657:E :HDD] hdd_conf_ns_offload: 659: IPv6 dev does not exist. Failed to request NSOffload

3 连接AP

找到WIFI SSID,连接网络。

4 Ping操作

连接后,Zynq SDIO作为AP,实现与PC网络连接。