离线
离线
Ubuntu18.04 可以编译并安装ko成功,
sudo modprobe aic_load_fw && sleep 2 && sudo modprobe aic8800_fdrv && sleep 2 && sudo modprobe aic_btusb
sudo rmmod aic_btusb && sudo rmmod aic8800_fdrv && sudo rmmod aic_load_fw
蓝牙wifi均OK
离线
多谢分享,测试aic8800d40直接用aic8800的即可,wifi insmod后就能用,iperf3压力也过.就是蓝牙有点麻烦,资料也少,不是用BlueZ就是安卓,安卓不说,BlueZ 要dbus,调试还要一堆hci*工具,最后还是直接怼上btstack容易,hciattach后就可以直接怼btstack,注意修改波特率和协议是h4,就是有流控制的.
离线
F1C100s 安装 AIC8800D80 USB aic_load_fw.ko驱动出错:
root@TinaLinux:/# insmod aic_load_fw.ko
[ 66.469670] aic_bluetooth_mod_init
[ 66.473733] RELEASE DATE:2024_0712_e2a932c1
[ 66.478577] AICWFDBG(LOGINFO) aicwf_prealloc_init enter
[ 66.585161] AICWFDBG(LOGINFO) pre alloc rxbuff list len: 1000
[ 66.591842] AICWFDBG(LOGINFO) aicwf_usb_probe vid:0xA69C pid:0x8D80 icl:0x0 isc:0x0 ipr:0x0
[ 66.601445] AICWFDBG(LOGINFO) aicloadfw_chipmatch USE AIC8800D80
[ 66.608302] Aic high speed USB device detected
[ 66.615508] chip_id=7, chip_mcu_id = 0
[ 66.619773] aic_load_firmware :firmware path = /lib/firmware/aic8800D80/fw_patch_table_8800d80_u02.bin
[ 66.636235] file md5:2a860bc9f2ec72ed45ed20c464ec66ba
[ 66.641964] ### Upload fw_patch_table_8800d80_u02.bin fw_patch_table, size=1240
[ 66.652703] addr_adid 0x201940, addr_patch 0x1e0000
[ 66.658156] aic_load_firmware :firmware path = /lib/firmware/aic8800D80/fw_adid_8800d80_u02.bin
[ 66.672282] file md5:f546881a81b960d89a672578eb45a809
[ 66.678141] ### Upload fw_adid_8800d80_u02.bin firmware, @ = 201940 size=1708
[ 66.688323] fw download complete
[ 66.688323]
[ 66.693744] aic_load_firmware :firmware path = /lib/firmware/aic8800D80/fw_patch_8800d80_u02.bin
[ 66.744028] file md5:6ef0dc3eb798477555461169a77ed4f8
[ 66.749759] ### Upload fw_patch_8800d80_u02.bin firmware, @ = 1e0000 size=31044
[ 66.772886] fw download complete
[ 66.772886]
[ 66.794956] aicbt_patch_table_load bt btmode[4]:5
[ 66.800397] aicbt_patch_table_load bt uart_baud[4]:1500000
[ 66.806824] aicbt_patch_table_load bt uart_flowctrl[4]:1
[ 66.812977] aicbt_patch_table_load bt lpm_enable[4]:0
[ 66.818772] aicbt_patch_table_load bt tx_pwr[4]:28463
[ 66.839865] patch version - Nov 18 2024 16:37:52 - git 1a301b6
[ 66.847191] aic_load_firmware :firmware path = /lib/firmware/aic8800D80/fmacfw_8800d80_u02.bin
[ 67.269298] file md5:7de19f9eeee36c4d48f0a060caf433d3
[ 67.275171] ### Upload fmacfw_8800d80_u02.bin firmware, @ = 120000 size=350820
[ 67.432097] fw download complete
[ 67.432097]
[ 67.437528] AICWFDBG(LOGERROR) Read FW mem: 00120198
[ 67.445549] AICWFDBG(LOGERROR) 120198=175504
[ 67.450696] AICWFDBG(LOGERROR) 1201a0=176000
[ 67.456905] AICWFDBG(LOGINFO) rd_version_val=06090101
[ 67.463825] AICWFDBG(LOGINFO) 1201a4=17ed7c
[ 67.471273] Unable to handle kernel NULL pointer dereference at virtual address 00000c04
[ 67.480438] pgd = c33a0000
[ 67.483505] [00000c04] *pgd=833d2831, *pte=00000000, *ppte=00000000
[ 67.490565] Internal error: Oops: 817 [#1] ARM
[ 67.495493] Modules linked in: aic_load_fw(+) snd_pcm_oss snd_mixer_oss snd_seq_device
[ 67.504312] CPU: 0 PID: 152 Comm: insmod Not tainted 3.10.65 #155
[ 67.511076] task: c32eb340 ti: c33e2000 task.ti: c33e2000
[ 67.517172] PC is at aicwf_usb_probe+0x9bc/0xb58 [aic_load_fw]
[ 67.523647] LR is at 0x1
[ 67.526465] pc : [<bf01a508>] lr : [<00000001>] psr: 60000013
[ 67.526465] sp : c33e3cb0 ip : c06a3030 fp : c33e3d04
[ 67.539195] r10: c32e1bec r9 : 00000000 r8 : c32e1084
[ 67.544990] r7 : c2406100 r6 : 0020b43c r5 : 00000000 r4 : 00000001
[ 67.552227] r3 : 00000001 r2 : bf020260 r1 : 00000001 r0 : 00000000
[ 67.559467] Flags: nZCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment user
[ 67.567382] Control: 0005317f Table: 833a0000 DAC: 00000015
[ 67.573750]
[ 67.573750] SP: 0xc33e3c30:
[ 67.578484] 3c30 c32e1000 c483d000 c33e3c9c c33e3c48 bf01c454 bf01bbac bf01a508 60000013
[ 67.587598] 3c50 ffffffff c33e3c9c c33e3d04 c33e3c68 c000f4b8 c000a1a0 00000000 00000001
[ 67.596710] 3c70 bf020260 00000001 00000001 00000000 0020b43c c2406100 c32e1084 00000000
[ 67.605819] 3c90 c32e1bec c33e3d04 c06a3030 c33e3cb0 00000001 bf01a508 60000013 ffffffff
[ 67.614930] 3cb0 00000000 00000000 00000000 c33e3cc8 c3162080 c33e0600 c32fe468 bf020260
[ 67.624037] 3cd0 c03bb908 c03bc64c c311c800 c33e0620 c32fe468 bf01fea0 c32fe400 bf01fe2c
[ 67.633150] 3cf0 00000000 c33e0600 c33e3d34 c33e3d08 c021f994 bf019b5c c021f820 c33e0620
[ 67.642260] 3d10 c05f77a4 00000000 bf01fe2c 00000002 00000001 c337cfe4 c33e3d5c c33e3d38
[ 67.651373]
[ 67.651373] IP: 0xc06a2fb0:
[ 67.656108] 2fb0 9c01665d 7b044d95 2be21d25 4e40075d 4e3168b0 259f674e 0596723e 434d677c
[ 67.665216] 2fd0 651c2102 1d7f601c 015e84f0 056c6ce5 5c70005d 41ad2200 d0184df8 6c221b4c
[ 67.674327] 2ff0 20046edf 121c5c21 223031c1 1a00878f c30007e0 00000042 c0671000 00000000
[ 67.683437] 3010 c3191100 00000043 c0674220 00000000 c33bcba0 00006390 c0678780 00000000
[ 67.692544] 3030 c2406880 00006228 c06590c0 c0677f80 c3300ba0 000007aa c0677000 c06743e0
[ 67.701653] 3050 c33f0480 00000405 c0678e00 00000000 c33a4600 00000b41 c0678480 c06742a0
[ 67.710765] 3070 c3220a00 00000741 c0675400 00000000 c33e0e00 00000c7f c0678c00 c06781e0
[ 67.719875] 3090 c32fec00 000007f1 c0676fc0 00000000 c2ba0000 000005b4 c0668400 00000000
[ 67.728985]
[ 67.728985] FP: 0xc33e3c84:
[ 67.733718] 3c84 c2406100 c32e1084 00000000 c32e1bec c33e3d04 c06a3030 c33e3cb0 00000001
[ 67.742827] 3ca4 bf01a508 60000013 ffffffff 00000000 00000000 00000000 c33e3cc8 c3162080
[ 67.751937] 3cc4 c33e0600 c32fe468 bf020260 c03bb908 c03bc64c c311c800 c33e0620 c32fe468
[ 67.761047] 3ce4 bf01fea0 c32fe400 bf01fe2c 00000000 c33e0600 c33e3d34 c33e3d08 c021f994
[ 67.770160] 3d04 bf019b5c c021f820 c33e0620 c05f77a4 00000000 bf01fe2c 00000002 00000001
[ 67.779267] 3d24 c337cfe4 c33e3d5c c33e3d38 c01e4a28 c021f830 c33e0620 c33e0654 bf01fe2c
[ 67.788380] 3d44 00000000 00000000 00000001 c33e3d7c c33e3d60 c01e4b7c c01e48f4 00000000
[ 67.797488] 3d64 bf01fe2c c01e4b28 00000000 c33e3da4 c33e3d80 c01e3078 c01e4b38 c307670c
[ 67.806604]
[ 67.806604] R7: 0xc2406080:
[ 67.811337] 6080 00000003 00000000 c308b900 c33bc620 c3160450 00000000 00000000 00000000
[ 67.820443] 60a0 00000000 57834f41 c3300c00 00000000 c2406050 41ed0001 00001765 00000000
[ 67.829551] 60c0 00000001 00000000 c31aa900 c33bc660 c33e6c90 00000000 00000000 00000000
[ 67.838659] 60e0 00000000 3ccb37e1 c2406080 00000000 00000000 a1ff0008 00001767 00000000
[ 67.847764] 6100 c32e1000 c32fe468 bf01fce4 00000001 c319b800 00000000 c2a17f00 c2a17f00
[ 67.856873] 6120 00000000 c3713f08 c3713f08 c32ebb80 c3082dc0 00000000 00000000 00000000
[ 67.865983] 6140 c4837000 c483b000 00000004 c33a7ecd c240624c c337cc4c c2406258 c337cc58
[ 67.875093] 6160 00081b1c 0000f4d4 c33bc680 0000f4d8 00078902 0000f4f0 0008df1c 0000f524
[ 67.884200]
[ 67.884200] R8: 0xc32e1004:
[ 67.888933] 1004 00000207 00000000 00000008 c32e1000 c32e1014 c32e1014 bf01b5dc 00000000
[ 67.898042] 1024 bf01b370 bf01b2b0 bf01b1f4 00000000 00000000 00000000 00000000 00000000
[ 67.907149] 1044 c2406100 c32fe400 c32fe468 c33a49c0 00000001 c322291c c322289c c32e1060
[ 67.916260] 1064 c32e1060 00000000 00000000 c32e1070 c32e1070 bf019174 c32e107c c32e107c
[ 67.925370] 1084 c32e10ac c32e19f4 c32e108c c32e108c c0010280 c0008200 00000000 00000000
[ 67.934482] 10a4 00000064 00000000 c32e10c4 c32e1084 c32e1000 c3222980 00000000 00000000
[ 67.943587] 10c4 c32e10dc c32e10ac c32e1000 c3222180 00000000 00000000 c32e10f4 c32e10c4
[ 67.952698] 10e4 c32e1000 c3222200 00000000 00000000 c32e110c c32e10dc c32e1000 c3222e80
[ 67.961811]
[ 67.961811] R10: 0xc32e1b6c:
[ 67.966642] 1b6c c33a4480 00000000 c32e1b74 c32e1b74 c32e1000 c3222080 c33a43c0 00000000
[ 67.975753] 1b8c c32e1b8c c32e1b8c c32e1000 c3222000 c33a4300 00000000 c32e1ba4 c32e1ba4
[ 67.984862] 1bac c32e1000 c3222100 c33a4180 00000000 c32e1bbc c32e1bbc c32e1000 c3222880
[ 67.993971] 1bcc c33a46c0 00000000 c32e1bd4 c32e1bd4 c32e1000 c3222900 c3195a80 00000000
[ 68.003079] 1bec 00000001 c32e1bf0 c32e1bf0 00000000 c33f0400 00000004 06090101 00000000
[ 68.012184] 1c0c 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 68.021287] 1c2c 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 68.030392] 1c4c 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 68.039510] Process insmod (pid: 152, stack limit = 0xc33e21b8)
[ 68.046074] Stack: (0xc33e3cb0 to 0xc33e4000)
[ 68.051385] 3ca0: 00000000 00000000 00000000 c33e3cc8
[ 68.060661] 3cc0: c3162080 c33e0600 c32fe468 bf020260 c03bb908 c03bc64c c311c800 c33e0620
[ 68.069873] 3ce0: c32fe468 bf01fea0 c32fe400 bf01fe2c 00000000 c33e0600 c33e3d34 c33e3d08
[ 68.079024] 3d00: c021f994 bf019b5c c021f820 c33e0620 c05f77a4 00000000 bf01fe2c 00000002
[ 68.088190] 3d20: 00000001 c337cfe4 c33e3d5c c33e3d38 c01e4a28 c021f830 c33e0620 c33e0654
[ 68.097419] 3d40: bf01fe2c 00000000 00000000 00000001 c33e3d7c c33e3d60 c01e4b7c c01e48f4
[ 68.106579] 3d60: 00000000 bf01fe2c c01e4b28 00000000 c33e3da4 c33e3d80 c01e3078 c01e4b38
[ 68.115737] 3d80: c307670c c3300990 c3300c34 bf01fe2c c3300c00 c05cec00 c33e3db4 c33e3da8
[ 68.124880] 3da0: c01e44d8 c01e3000 c33e3de4 c33e3db8 c01e4108 c01e44c8 bf01efea bf01ffd0
[ 68.134038] 3dc0: c33e3de4 bf01fe2c bf01fe2c c05cec00 bf01ffd0 00000000 c33e3e0c c33e3de8
[ 68.143176] 3de0: c01e512c c01e3fd0 bf01fdfc bf01fe2c c05cec00 bf01ffd0 00000000 00000001
[ 68.152334] 3e00: c33e3e34 c33e3e10 c021f05c c01e5094 c33e2000 bf023000 c05e1d80 bf020018
[ 68.161419] 3e20: 00000000 00000001 c33e3e44 c33e3e38 bf01a6c0 c021f000 c33e3e54 c33e3e48
[ 68.170568] 3e40: bf02302c bf01a6b4 c33e3e94 c33e3e58 c000a4d4 bf023010 c33e3e84 bf01ffd0
[ 68.179698] 3e60: c33e3f48 00000001 bf020018 bf01ffd0 c33e3f48 00000001 bf020018 c337cfc0
[ 68.188849] 3e80: 00000001 c337cfe4 c33e3f44 c33e3e98 c0054e5c c000a3c8 bf01ffdc 00007fff
[ 68.197982] 3ea0: c0051fc8 00000000 c33e3ecc b6f5dab0 bf020110 c483565c c00529c0 00000028
[ 68.207137] 3ec0: c33e2000 bf01ffdc c008ada8 c008a4e0 ff000000 000000d2 c0055498 bf01da28
[ 68.216283] 3ee0: 0000000c 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 68.225419] 3f00: 00000000 00000000 00000000 00000000 00000000 00000000 ffffffff 00fa1010
[ 68.234568] 3f20: b6f5dab0 0000f6ac 00000080 c000fa28 c33e2000 00000000 c33e3fa4 c33e3f48
[ 68.243699] 3f40: c0055518 c0053a1c c4826000 0000f6ac c483524c c4835150 c4831944 000092d4
[ 68.252848] 3f60: 0000a194 00000000 00000000 00000000 0000001a 0000001b 00000013 00000000
[ 68.261929] 3f80: 0000000c 00000000 00000000 00000000 00000000 00000003 00000000 c33e3fa8
[ 68.271080] 3fa0: c000f8a0 c0055458 00000000 00000000 00fa1010 0000f6ac b6f5dab0 00001f08
[ 68.280211] 3fc0: 00000000 00000000 00000003 00000080 0000f6ac 00000000 00000020 00000000
[ 68.289363] 3fe0: be933c4c be933c30 00011ae8 b6fb04cc 60000010 00fa1010 00000000 00000000
[ 68.298464] Backtrace:
[ 68.301367] [<bf019b4c>] (aicwf_usb_probe+0x0/0xb58 [aic_load_fw]) from [<c021f994>] (usb_probe_interface+0x174/0x1a4)
[ 68.313340] [<c021f820>] (usb_probe_interface+0x0/0x1a4) from [<c01e4a28>] (driver_probe_device+0x144/0x1f8)
[ 68.324337] [<c01e48e4>] (driver_probe_device+0x0/0x1f8) from [<c01e4b7c>] (__driver_attach+0x54/0x94)
[ 68.334716] r9:00000001 r8:00000000 r7:00000000 r6:bf01fe2c r5:c33e0654
r4:c33e0620
[ 68.343529] [<c01e4b28>] (__driver_attach+0x0/0x94) from [<c01e3078>] (bus_for_each_dev+0x88/0x98)
[ 68.353530] r7:00000000 r6:c01e4b28 r5:bf01fe2c r4:00000000
[ 68.359869] [<c01e2ff0>] (bus_for_each_dev+0x0/0x98) from [<c01e44d8>] (driver_attach+0x20/0x28)
[ 68.369678] r6:c05cec00 r5:c3300c00 r4:bf01fe2c
[ 68.374900] [<c01e44b8>] (driver_attach+0x0/0x28) from [<c01e4108>] (bus_add_driver+0x148/0x220)
[ 68.384741] [<c01e3fc0>] (bus_add_driver+0x0/0x220) from [<c01e512c>] (driver_register+0xa8/0x124)
[ 68.394720] r8:00000000 r7:bf01ffd0 r6:c05cec00 r5:bf01fe2c r4:bf01fe2c
[ 68.402229] [<c01e5084>] (driver_register+0x0/0x124) from [<c021f05c>] (usb_register_driver+0x6c/0x118)
[ 68.412692] r9:00000001 r8:00000000 r7:bf01ffd0 r6:c05cec00 r5:bf01fe2c
r4:bf01fdfc
[ 68.421549] [<c021eff0>] (usb_register_driver+0x0/0x118) from [<bf01a6c0>] (aicwf_usb_register+0x1c/0x50 [aic_load_fw])
[ 68.433643] r9:00000001 r8:00000000 r7:bf020018 r6:c05e1d80 r5:bf023000
r4:c33e2000
[ 68.442572] [<bf01a6a4>] (aicwf_usb_register+0x0/0x50 [aic_load_fw]) from [<bf02302c>] (aic_bluetooth_mod_init+0x2c/0x44 [aic_load_fw])
[ 68.456249] [<bf023000>] (aic_bluetooth_mod_init+0x0/0x44 [aic_load_fw]) from [<c000a4d4>] (do_one_initcall+0x11c/0x148)
[ 68.468426] [<c000a3b8>] (do_one_initcall+0x0/0x148) from [<c0054e5c>] (load_module+0x1450/0x1a3c)
[ 68.478439] [<c0053a0c>] (load_module+0x0/0x1a3c) from [<c0055518>] (SyS_init_module+0xd0/0xd4)
[ 68.488190] [<c0055448>] (SyS_init_module+0x0/0xd4) from [<c000f8a0>] (ret_fast_syscall+0x0/0x2c)
[ 68.498072] r6:00000003 r5:00000000 r4:00000000
[ 68.503374] Code: e2505000 1affff43 e3a03001 e51b2038 (e5c43c03)
[ 68.510141] ---[ end trace aec3e9bd3f9d8f80 ]---
Segmentation fault
root@TinaLinux:/#
root@TinaLinux:/#
root@TinaLinux:/#
离线