您尚未登录。

楼主 #1 2020-03-11 16:19:45

wupaul2001
会员
注册时间: 2019-09-30
已发帖子: 257
积分: 235

请教大家,我编译好AP6181的驱动后,为何死活加载不了固件

如题

终端打印

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.2.0-licheepi-zero+ (paulwu@paulwu-virtual-machine) (gcc version 7.5.0 (Ubuntu/Linaro 7.5.0-3ubuntu1~18.04)) #41 SMP Tue Mar 10 23:13:46 PDT 2020
[    0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d
[    0.000000] CPU: div instructions available: patching division code
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt: Machine model: Lichee Pi Zero with Dock
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] percpu: Embedded 16 pages/cpu s34508 r8192 d22836 u65536
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 16129
[    0.000000] Kernel command line: console=tty0 console=ttyS0,115200 panic=5 rootwait root=/dev/mmcblk0p2 earlyprintk rw  vt.global_cursor_default=0
[    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes, linear)
[    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 51424K/65024K available (8192K kernel code, 319K rwdata, 2016K rodata, 1024K init, 269K bss, 13600K reserved, 0K cma-reserved, 0K highmem)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000] rcu:     RCU event tracing is enabled.
[    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=1.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] random: get_random_bytes called from start_kernel+0x2fc/0x488 with crng_init=0
[    0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (virt).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[    0.000007] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.000019] Switching to timer-based delay loop, resolution 41ns
[    0.000204] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000441] Console: colour dummy device 80x30
[    0.000738] printk: console [tty0] enabled
[    0.000793] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.000823] pid_max: default: 32768 minimum: 301
[    0.000991] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.001022] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.001835] CPU: Testing write buffer coherency: ok
[    0.002401] /cpus/cpu@0 missing clock-frequency property
[    0.002449] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.003303] Setting up static identity map for 0x40100000 - 0x40100060
[    0.003560] rcu: Hierarchical SRCU implementation.
[    0.004134] smp: Bringing up secondary CPUs ...
[    0.004175] smp: Brought up 1 node, 1 CPU
[    0.004193] SMP: Total of 1 processors activated (48.00 BogoMIPS).
[    0.004207] CPU: All CPU(s) started in SVC mode.
[    0.005287] devtmpfs: initialized
[    0.008934] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.009282] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.009333] futex hash table entries: 256 (order: 2, 16384 bytes, linear)
[    0.009587] pinctrl core: initialized pinctrl subsystem
[    0.010726] NET: Registered protocol family 16
[    0.011316] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.012617] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.012665] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.038941] SCSI subsystem initialized
[    0.039258] usbcore: registered new interface driver usbfs
[    0.039340] usbcore: registered new interface driver hub
[    0.039462] usbcore: registered new device driver usb
[    0.039737] mc: Linux media interface: v0.10
[    0.039792] videodev: Linux video capture interface: v2.00
[    0.040093] Advanced Linux Sound Architecture Driver Initialized.
[    0.042095] clocksource: Switched to clocksource arch_sys_counter
[    0.053867] NET: Registered protocol family 2
[    0.054698] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[    0.054769] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.054807] TCP bind hash table entries: 1024 (order: 1, 8192 bytes, linear)
[    0.054840] TCP: Hash tables configured (established 1024 bind 1024)
[    0.054995] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.055058] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.055385] NET: Registered protocol family 1
[    0.056331] RPC: Registered named UNIX socket transport module.
[    0.056376] RPC: Registered udp transport module.
[    0.056390] RPC: Registered tcp transport module.
[    0.056402] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.058959] Initialise system trusted keyrings
[    0.059390] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[    0.067757] NFS: Registering the id_resolver key type
[    0.067841] Key type id_resolver registered
[    0.067857] Key type id_legacy registered
[    0.067887] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.103864] Key type asymmetric registered
[    0.103911] Asymmetric key parser 'x509' registered
[    0.104022] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    0.104052] io scheduler mq-deadline registered
[    0.104067] io scheduler kyber registered
[    0.109259] sun8i-v3s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.109731] sun8i-v3s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pb not found, using dummy regulator
[    0.110592] pwm-backlight backlight: backlight supply power not found, using dummy regulator
[    0.179327] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    0.182706] printk: console [ttyS0] disabled
[    0.203025] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 36, base_baud = 1500000) is a U6_16550A
[    0.764809] printk: console [ttyS0] enabled
[    0.790741] 1c28800.serial: ttyS1 at MMIO 0x1c28800 (irq = 37, base_baud = 1500000) is a U6_16550A
[    0.801761] sun8i-v3s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pe not found, using dummy regulator
[    0.837510] panel-simple panel: panel supply power not found, using dummy regulator
[    0.847024] sun8i-v3s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pc not found, using dummy regulator
[    0.858930] libphy: Fixed MDIO Bus: probed
[    0.863847] PPP generic driver version 2.4.2
[    0.868510] PPP BSD Compression module registered
[    0.873305] PPP Deflate Compression module registered
[    0.878379] PPP MPPE Compression module registered
[    0.883200] NET: Registered protocol family 24
[    0.887935] usbcore: registered new interface driver asix
[    0.893497] usbcore: registered new interface driver ax88179_178a
[    0.899639] usbcore: registered new interface driver cdc_ether
[    0.905563] usbcore: registered new interface driver net1080
[    0.911289] usbcore: registered new interface driver cdc_subset
[    0.917286] usbcore: registered new interface driver zaurus
[    0.922949] usbcore: registered new interface driver simcom_wwan
[    0.929005] usbcore: registered new interface driver sierra_net
[    0.935007] usbcore: registered new interface driver cdc_ncm
[    0.940670] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.947219] ehci-platform: EHCI generic platform driver
[    0.952774] ehci-platform 1c1a000.usb: EHCI Host Controller
[    0.958406] ehci-platform 1c1a000.usb: new USB bus registered, assigned bus number 1
[    0.966415] ehci-platform 1c1a000.usb: irq 27, io mem 0x01c1a000
[    1.002069] ehci-platform 1c1a000.usb: USB 2.0 started, EHCI 1.00
[    1.009320] hub 1-0:1.0: USB hub found
[    1.013292] hub 1-0:1.0: 1 port detected
[    1.017959] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    1.024315] ohci-platform: OHCI generic platform driver
[    1.029892] ohci-platform 1c1a400.usb: Generic Platform OHCI controller
[    1.036640] ohci-platform 1c1a400.usb: new USB bus registered, assigned bus number 2
[    1.044637] ohci-platform 1c1a400.usb: irq 28, io mem 0x01c1a400
[    1.117149] hub 2-0:1.0: USB hub found
[    1.121007] hub 2-0:1.0: 1 port detected
[    1.128676] usbcore: registered new interface driver usb-storage
[    1.135003] usbcore: registered new interface driver usbserial_generic
[    1.141589] usbserial: USB Serial support registered for generic
[    1.147713] usbcore: registered new interface driver option
[    1.153369] usbserial: USB Serial support registered for GSM modem (1-port)
[    1.160540] usbcore: registered new interface driver qcserial
[    1.166416] usbserial: USB Serial support registered for Qualcomm USB modem
[    1.173983] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto supply vcc not found, using dummy regulator
[    1.185512] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[    1.191302] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 3
[    1.200748] hub 3-0:1.0: USB hub found
[    1.204758] hub 3-0:1.0: 1 port detected
[    1.210938] sun6i-rtc 1c20400.rtc: registered as rtc0
[    1.216144] sun6i-rtc 1c20400.rtc: RTC enabled
[    1.220799] i2c /dev entries driver
[    1.225748] sun8i-v3s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pe not found, using dummy regulator
[    1.237260] bm_cw2015_init
[    1.240090] cw2015_probe...
[    1.334045] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    1.342889] sun8i-v3s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pf not found, using dummy regulator
[    1.379753] sunxi-mmc 1c0f000.mmc: initialized, max. request size: 16384 KB
[    1.387079] sun8i-v3s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pg not found, using dummy regulator
[    1.422170] sunxi-mmc 1c10000.mmc: initialized, max. request size: 16384 KB
[    1.430471] usbcore: registered new interface driver usbhid
[    1.436157] usbhid: USB HID core driver
[    1.442488] sun4i-codec 1c22c00.codec: ASoC: codec-analog@01c23000 not registered
[    1.450024] sun4i-codec 1c22c00.codec: Failed to register our card
[    1.457620] Initializing XFRM netlink socket
[    1.461953] NET: Registered protocol family 17
[    1.467009] usb 1-1: new high-speed USB device number 2 using ehci-platform
[    1.474727] Key type dns_resolver registered
[    1.479265] Registering SWP/SWPB emulation handler
[    1.485481] Loading compiled-in X.509 certificates
[    1.495734] simple-framebuffer 43f80000.framebuffer: framebuffer at 0x43f80000, 0x7f800 bytes, mapped to 0x(ptrval)
[    1.506357] simple-framebuffer 43f80000.framebuffer: format=x8r8g8b8, mode=480x272x32, linelength=1920
[    1.518828] Console: switching to colour frame buffer device 60x34
[    1.527445] simple-framebuffer 43f80000.framebuffer: fb0: simplefb registered!
[    1.537766] sun4i-drm display-engine: bound 1100000.mixer (ops 0xc094b380)
[    1.549167] sun4i-drm display-engine: bound 1c0c000.lcd-controller (ops 0xc094867c)
[    1.560714] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[    1.571172] [drm] No driver support for vblank timestamp query.
[    1.580971] fb0: switching to sun4i-drm-fb from simple
[    1.589204] Console: switching to colour dummy device 80x30
[    1.596013] [drm] Initialized sun4i-drm 1.0.0 20150629 for display-engine on minor 0
[    1.606920] mmc0: host does not support reading read-only switch, assuming write-enable
[    1.618850] mmc0: new high speed SDHC card at address aaaa
[    1.620818] mmcblk0: mmc0:aaaa SA08G 7.40 GiB 
[    1.623423]  mmcblk0: p1 p2
[    1.626888] mmc1: queuing unknown CIS tuple 0x80 (2 bytes)
[    1.628393] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[    1.629887] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[    1.632578] mmc1: queuing unknown CIS tuple 0x80 (7 bytes)
[    1.646592] random: fast init done
[    1.647213] mmc1: new high speed SDIO card at address 0001
[    1.650913] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43362-sdio for chip BCM43362/1
[    1.651144] brcmfmac mmc1:0001:1: Direct firmware load for brcm/brcmfmac43362-sdio.bin failed with error -2
[    1.704014] usb-storage 1-1:1.0: USB Mass Storage device detected
[    1.704648] scsi host0: usb-storage 1-1:1.0
[    1.931135] Console: switching to colour frame buffer device 128x37
[    2.069133] sun4i-drm display-engine: fb0: sun4i-drmdrmfb frame buffer device
[    2.081121] debugfs: Directory '1c22c00.codec' with parent 'V3s Audio Codec' already present!
[    2.093528] sun4i-codec 1c22c00.codec: ASoC: Failed to create component debugfs directory: -17
[    2.107517] sun4i-codec 1c22c00.codec: Codec <-> 1c22c00.codec mapping ok
[    2.119907] sun6i-rtc 1c20400.rtc: setting system clock to 1970-01-01T01:56:29 UTC (6989)
[    2.132272] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    2.147666] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    2.158272] vcc3v0: disabling
[    2.165068] vcc5v0: disabling
[    2.171658] ALSA device list:
[    2.178208]   #0: V3s Audio Codec
[    2.185926] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[    2.198381] cfg80211: failed to load regulatory.db
[    2.252896] EXT4-fs (mmcblk0p2): warning: mounting fs with errors, running e2fsck is recommended
[    2.269809] EXT4-fs (mmcblk0p2): recovery complete
[    2.280318] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    2.292399] VFS: Mounted root (ext4 filesystem) on device 179:2.
[    2.304252] devtmpfs: mounted
[    2.312396] Freeing unused kernel memory: 1024K
[    2.320927] Run /sbin/init as init process
[    2.458899] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)

brcmfmac43362-sdio.bin 和brcmfmac43362-sdio.txt都放到lib/firmware/brcm里了

离线

#2 2020-03-11 16:34:43

歌以咏志
会员
注册时间: 2019-09-21
已发帖子: 219
积分: 210

Re: 请教大家,我编译好AP6181的驱动后,为何死活加载不了固件

离线

#3 2020-03-11 16:42:14

晕哥
管理员
所在地: 微信 whycan_cn
注册时间: 2017-09-06
已发帖子: 9,223
积分: 9197

Re: 请教大家,我编译好AP6181的驱动后,为何死活加载不了固件

https://blog.csdn.net/mike8825/article/details/51171055

https://github.com/torvalds/linux/blob/master/include/uapi/asm-generic/errno-base.h

/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
#ifndef _ASM_GENERIC_ERRNO_BASE_H
#define _ASM_GENERIC_ERRNO_BASE_H

#define	EPERM		 1	/* Operation not permitted */
#define	ENOENT		 2	/* No such file or directory */
#define	ESRCH		 3	/* No such process */
#define	EINTR		 4	/* Interrupted system call */
#define	EIO		 5	/* I/O error */
#define	ENXIO		 6	/* No such device or address */
#define	E2BIG		 7	/* Argument list too long */
#define	ENOEXEC		 8	/* Exec format error */
#define	EBADF		 9	/* Bad file number */
#define	ECHILD		10	/* No child processes */
#define	EAGAIN		11	/* Try again */
#define	ENOMEM		12	/* Out of memory */
#define	EACCES		13	/* Permission denied */
#define	EFAULT		14	/* Bad address */
#define	ENOTBLK		15	/* Block device required */
#define	EBUSY		16	/* Device or resource busy */
#define	EEXIST		17	/* File exists */
#define	EXDEV		18	/* Cross-device link */
#define	ENODEV		19	/* No such device */
#define	ENOTDIR		20	/* Not a directory */
#define	EISDIR		21	/* Is a directory */
#define	EINVAL		22	/* Invalid argument */
#define	ENFILE		23	/* File table overflow */
#define	EMFILE		24	/* Too many open files */
#define	ENOTTY		25	/* Not a typewriter */
#define	ETXTBSY		26	/* Text file busy */
#define	EFBIG		27	/* File too large */
#define	ENOSPC		28	/* No space left on device */
#define	ESPIPE		29	/* Illegal seek */
#define	EROFS		30	/* Read-only file system */
#define	EMLINK		31	/* Too many links */
#define	EPIPE		32	/* Broken pipe */
#define	EDOM		33	/* Math argument out of domain of func */
#define	ERANGE		34	/* Math result not representable */

#endif

看起来是目录或文件不存在: No such file or directory





离线

楼主 #4 2020-03-11 17:08:48

wupaul2001
会员
注册时间: 2019-09-30
已发帖子: 257
积分: 235

Re: 请教大家,我编译好AP6181的驱动后,为何死活加载不了固件

晕哥 说:

https://blog.csdn.net/mike8825/article/details/51171055

https://github.com/torvalds/linux/blob/master/include/uapi/asm-generic/errno-base.h

/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
#ifndef _ASM_GENERIC_ERRNO_BASE_H
#define _ASM_GENERIC_ERRNO_BASE_H

#define	EPERM		 1	/* Operation not permitted */
#define	ENOENT		 2	/* No such file or directory */
#define	ESRCH		 3	/* No such process */
#define	EINTR		 4	/* Interrupted system call */
#define	EIO		 5	/* I/O error */
#define	ENXIO		 6	/* No such device or address */
#define	E2BIG		 7	/* Argument list too long */
#define	ENOEXEC		 8	/* Exec format error */
#define	EBADF		 9	/* Bad file number */
#define	ECHILD		10	/* No child processes */
#define	EAGAIN		11	/* Try again */
#define	ENOMEM		12	/* Out of memory */
#define	EACCES		13	/* Permission denied */
#define	EFAULT		14	/* Bad address */
#define	ENOTBLK		15	/* Block device required */
#define	EBUSY		16	/* Device or resource busy */
#define	EEXIST		17	/* File exists */
#define	EXDEV		18	/* Cross-device link */
#define	ENODEV		19	/* No such device */
#define	ENOTDIR		20	/* Not a directory */
#define	EISDIR		21	/* Is a directory */
#define	EINVAL		22	/* Invalid argument */
#define	ENFILE		23	/* File table overflow */
#define	EMFILE		24	/* Too many open files */
#define	ENOTTY		25	/* Not a typewriter */
#define	ETXTBSY		26	/* Text file busy */
#define	EFBIG		27	/* File too large */
#define	ENOSPC		28	/* No space left on device */
#define	ESPIPE		29	/* Illegal seek */
#define	EROFS		30	/* Read-only file system */
#define	EMLINK		31	/* Too many links */
#define	EPIPE		32	/* Broken pipe */
#define	EDOM		33	/* Math argument out of domain of func */
#define	ERANGE		34	/* Math result not representable */

#endif

看起来是目录或文件不存在: No such file or directory


晕哥,我目录和文件都对的

离线

#5 2020-03-11 17:10:51

晕哥
管理员
所在地: 微信 whycan_cn
注册时间: 2017-09-06
已发帖子: 9,223
积分: 9197

Re: 请教大家,我编译好AP6181的驱动后,为何死活加载不了固件

那到驱动里面加些代码调试一下?





离线

#6 2020-03-12 08:45:51

春风吹又生
会员
注册时间: 2020-02-25
已发帖子: 61
积分: 60

Re: 请教大家,我编译好AP6181的驱动后,为何死活加载不了固件

楼主现在可以了吗?

离线

楼主 #7 2020-03-12 12:13:34

wupaul2001
会员
注册时间: 2019-09-30
已发帖子: 257
积分: 235

Re: 请教大家,我编译好AP6181的驱动后,为何死活加载不了固件

问题已找到,是驱动早于rootfs加载,所以驱动不能编译到内核,只能编译为模块,然后加载,否则就会找不到固件

离线

楼主 #8 2020-03-12 12:34:08

wupaul2001
会员
注册时间: 2019-09-30
已发帖子: 257
积分: 235

Re: 请教大家,我编译好AP6181的驱动后,为何死活加载不了固件

# [  232.527064] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43362-sdio for chip BCM43362/1

# [  235.282051] brcmfmac: brcmf_sdio_bus_rxctl: resumed on timeout
[  235.291898] ieee80211 phy1: brcmf_bus_started: failed: -110
[  235.301435] ieee80211 phy1: brcmf_attach: dongle is not responding: err=-110
[  235.313568] brcmfmac: brcmf_sdio_firmware_callback: brcmf_attach failed

新问题又来了

离线

楼主 #9 2020-03-12 14:55:46

wupaul2001
会员
注册时间: 2019-09-30
已发帖子: 257
积分: 235

Re: 请教大家,我编译好AP6181的驱动后,为何死活加载不了固件

离线

楼主 #10 2020-03-12 16:24:15

wupaul2001
会员
注册时间: 2019-09-30
已发帖子: 257
积分: 235

Re: 请教大家,我编译好AP6181的驱动后,为何死活加载不了固件

终于驱动起来了

        brcmf: wifi@1 {
                reg = <1>;
                compatible = "brcm,bcm4329-fmac";

        };

最后不要中断,否则会出现超时

最近编辑记录 wupaul2001 (2020-03-12 16:52:29)

离线

#11 2020-03-12 16:30:01

smartcar
会员
注册时间: 2018-02-19
已发帖子: 735
积分: 735

Re: 请教大家,我编译好AP6181的驱动后,为何死活加载不了固件

也就是说wifi驱动没有bug,设备树配置修改就可以了?

离线

楼主 #12 2020-03-12 17:02:58

wupaul2001
会员
注册时间: 2019-09-30
已发帖子: 257
积分: 235

Re: 请教大家,我编译好AP6181的驱动后,为何死活加载不了固件

smartcar 说:

也就是说wifi驱动没有bug,设备树配置修改就可以了?

不是,内核,驱动,设备树配置都得改

离线

#13 2020-03-12 18:20:46

晕哥
管理员
所在地: 微信 whycan_cn
注册时间: 2017-09-06
已发帖子: 9,223
积分: 9197

Re: 请教大家,我编译好AP6181的驱动后,为何死活加载不了固件

@wupaul2001 感谢分享, 为了方便给位老友搜索, 特加入本站精华帖


101. V3s Linux5.2 驱动 AP6181 WIFI模块问题 by @wupaul2001





离线

#14 2020-04-11 15:44:51

拉轰的脚踏车
会员
注册时间: 2020-03-20
已发帖子: 288
积分: 222

Re: 请教大家,我编译好AP6181的驱动后,为何死活加载不了固件

# modprobe b43
[  400.918519] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[  400.932915] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[  400.939866] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[  400.948587] cfg80211: failed to load regulatory.db
[  401.006569] Broadcom 43xx driver loaded [ Features: NLS ]

哪位朋友 AP6212 出现这个错误的?请问怎么解决呢?

离线

#15 2020-04-11 15:56:30

拉轰的脚踏车
会员
注册时间: 2020-03-20
已发帖子: 288
积分: 222

Re: 请教大家,我编译好AP6181的驱动后,为何死活加载不了固件

搞定了 http://cpp.io/blog/viewpost.do?p=4745

linux wifi regulatory database在新版本kernel中的更改
Date: 2018-04-25 12:37
更新linux kernel后经常会遇到这样的错误信息:

“Direct firmware load for regulatory.db failed”

这是因为新版本的kernel更改了load regulatory.db 的方式
解决办法是手动从https://mirrors.edge.kernel.org/pub/software/network/wireless-regdb/ 下载最新的包,解压缩后把regulatory.db regulatory.db.p7s 复制到/lib/firmware即可

然后reboot,看到这样的信息就对了
"cfg80211: Loading compiled-in X.509 certificates for regulatory database"


参考:https://wireless.wiki.kernel.org/en/developers/regulatory/wireless-regdb

但是网卡还是不能正常工作。

离线

#16 2020-06-02 13:59:06

流氓兔
会员
注册时间: 2020-02-01
已发帖子: 121
积分: 109.5

Re: 请教大家,我编译好AP6181的驱动后,为何死活加载不了固件

wupaul2001 说:

问题已找到,是驱动早于rootfs加载,所以驱动不能编译到内核,只能编译为模块,然后加载,否则就会找不到固件

原来如此, 怪不得一般WIFI驱动都用模块ko形式加载呢。

离线

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn