原本使用的是uart0
[uart_para]
uart_debug_port = 0
uart_debug_tx = port:PB22<2><1><default><default>
uart_debug_rx = port:PB23<2><1><default><default>
想要改为别的串口,比如uart2,但是改了之后烧录不了
[uart_para]
uart_debug_port = 2
uart_debug_tx = port:PI18<3><1><default><default>
uart_debug_rx = port:PI19<3><1><default><default>
试过改成其他的也不行,只有将下面的内容注释是可以烧录的,烧录后进文件系统后会在uart0输出日志信息
[uart_para]
;uart_debug_port = 0
;uart_debug_tx = port:PB22<2><1><default><default>
;uart_debug_rx = port:PB23<2><1><default><default>
请问有没有什么办法解决?
Latest posts made by MasterLu
-
A40i修改uart_debug_port之后烧录不了
-
Reply: 请问不同驱动中的probe函数执行顺序是怎么样的?
@whycanservice 谢谢回复。
我已经在clk驱动中将module_platform_driver(clk_driver);
改成了
static int __init clk_init(void)
{
return platform_driver_register(&clk_driver);
}
arch_initcall(clk_init);//arch_initcall 等级为3
我通过kernel log 看,clk_driver 执行probe的时间确实有提前,但是有的使用module_init的驱动还是会在clk_driver之前执行probe。这让我感觉很疑惑。
我想过将驱动编译为module,但是clk涉及到很多功能,像是gpio,lcd,audio等,如果将上述的驱动都使用module,那就涉及到这些部分的驱动可能都需要编译成module,这样做是否会很奇怪。 -
请问不同驱动中的probe函数执行顺序是怎么样的?
最近遇到一个问题,内核启动的时候clk probe函数没有执行,导致很多功能在获取clk的时候报错,我尝试过修改驱动init的等级比如将module_init改为arch_initcall,这样操作,有时候确实有效,但是并不是都有效。
所以我想请问一下大佬,probe的顺序是否能够修改?谢谢 -
Reply: RTL8723bu模块AP模式的问题
@masterlu 目前发现单独编译出来的8723bu.ko文件安装上去能够正常使用ap,整体编译内核输出在output/lib/modules/3.10.65下的8723bu.ko文件无法使用ap,会报No WPA/RSN IE from STA的错误。
-
RTL8723bu模块AP模式的问题
RTL8723bu模块STA模式功能正常,AP模式不设置密码可以连接,设置密码后无法连接,报错信息为No WPA/RSN IE from STA。内核版本为3.10.65
在客户平台有有一条类似的问题《Tina-xr829无法连接加密ap》https://open.allwinnertech.com/#/faq/0/show,仿照这条问题进行修改,依然没有效果。
希望有大佬能给一下解决思路。 -
Reply: A40I AP问题
@masterlu
random: Trying to read entropy from /dev/random
Configuration file: /etc/hostapd.conf
nl80211: Supported cipher 00-0f-ac:1
nl80211: Supported cipher 00-0f-ac:5
nl80211: Supported cipher 00-0f-ac:2
nl80211: Supported cipher 00-0f-ac:4
nl80211: Using driver-based off-channel TX
nl80211: key_mgmt=0xd0f enc=0xf auth=0x7 flags=0x800d8c0 rrm_flags=0x0 probe_resp_offloads=0x0 max_stations=0 max_remain_on_chan=5000 max_scan_ssids=9
nl80211: interface wlan0 in phy phy0
nl80211: Set mode ifindex 7 iftype 3 (AP)
nl80211: Setup AP(wlan0) - device_ap_sme=1 use_monitor=0
nl80211: Subscribe to mgmt frames with AP handle 0x1dfbdd0 (device SME)
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x1dfbdd0 match=04 multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x1dfbdd0 match=0501 multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x1dfbdd0 match=0503 multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x1dfbdd0 match=0504 multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x1dfbdd0 match=06 multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x1dfbdd0 match=08 multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x1dfbdd0 match=09 multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x1dfbdd0 match=0a multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x1dfbdd0 match=11 multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x1dfbdd0 match=7f multicast=0
nl80211: Register frame type=0xb0 (WLAN_FC_STYPE_AUTH) nl_handle=0x1dfbdd0 match= multicast=0
nl80211: Enable Probe Request reporting nl_preq=0x1e00ea0
nl80211: Register frame type=0x40 (WLAN_FC_STYPE_PROBE_REQ) nl_handle=0x1e00ea0 match= multicast=0
rfkill: Cannot open RFKILL control device
nl80211: RFKILL status not available
nl80211: Add own interface ifindex 7 (ifidx_reason -1)
nl80211: if_indices[16]: 7(-1)
phy: phy0
BSS count 1, BSSID mask 00:00:00:00:00:00 (0 bits)
nl80211: No channel number found for frequency 5920 MHz
nl80211: No channel number found for frequency 5940 MHz
nl80211: Regulatory information - country=00
nl80211: 2402-2472 @ 40 MHz 20 mBm
nl80211: 2457-2482 @ 40 MHz 20 mBm (no IR)
nl80211: 2474-2494 @ 20 MHz 20 mBm (no OFDM) (no IR)
nl80211: 5170-5250 @ 80 MHz 20 mBm (no IR)
nl80211: 5735-5835 @ 80 MHz 20 mBm (no IR)
nl80211: 57240-63720 @ 2160 MHz 0 mBm
nl80211: Added 802.11b mode based on 802.11g information
nl80211: Mode IEEE 802.11g: 2412 2417 2422 2427 2432 2437 2442 2447 2452 2457 2462 2467[NO_IR] 2472[NO_IR] 2484[DISABLED]
nl80211: Mode IEEE 802.11a: 5170[DISABLED] 5180[DISABLED] 5190[DISABLED] 5200[DISABLED] 5210[DISABLED] 5220[DISABLED] 5230[DISABLED] 5240[DISABLED] 5260[DISABLED] 5280[DISABLED] 5300[DISABLED] 5320[DISABLED] 5500[DISABLED]
nl80211: Mode IEEE 802.11b: 2412 2417 2422 2427 2432 2437 2442 2447 2452 2457 2462 2467[NO_IR] 2472[NO_IR] 2484[DISABLED]
Allowed channel: mode=1 chan=1 freq=2412 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=2 freq=2417 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=3 freq=2422 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=4 freq=2427 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=5 freq=2432 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=6 freq=2437 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=7 freq=2442 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=8 freq=2447 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=9 freq=2452 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=10 freq=2457 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=11 freq=2462 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=1 freq=2412 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=2 freq=2417 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=3 freq=2422 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=4 freq=2427 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=5 freq=2432 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=6 freq=2437 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=7 freq=2442 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=8 freq=2447 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=9 freq=2452 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=10 freq=2457 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=11 freq=2462 MHz max_tx_power=20 dBm
Completing interface initialization
Mode: IEEE 802.11g Channel: 3 Frequency: 2422 MHz
DFS 0 channels required radar detection
nl80211: Set freq 2422 (ht_enabled=0, vht_enabled=0, he_enabled=0, bandwidth=20 MHz, cf1=2422 MHz, cf2=0 MHz)- freq=2422
- he_enabled=0
- vht_enabled=0
- ht_enabled=0
- channel_type=0
RATE[0] rate=10 flags=0x1
RATE[1] rate=20 flags=0x1
RATE[2] rate=55 flags=0x1
RATE[3] rate=110 flags=0x1
RATE[4] rate=60 flags=0x0
RATE[5] rate=90 flags=0x0
RATE[6] rate=120 flags=0x0
RATE[7] rate=180 flags=0x0
RATE[8] rate=240 flags=0x0
RATE[9] rate=360 flags=0x0
RATE[10] rate=480 flags=0x0
RATE[11] rate=540 flags=0x0
hostapd_setup_bss(hapd=0x1dfb060 (wlan0), first=1)
nl80211: flush -> DEL_STATION wlan0 (all)
Using interface wlan0 with hwaddr f0:c8:14:7b:5a:4b and ssid "hostapd_test"
Deriving WPA PSK based on passphrase
SSID - hexdump_ascii(len=12):
68 6f 73 74 61 70 64 5f 74 65 73 74 hostapd_test
PSK (ASCII passphrase) - hexdump_ascii(len=8): [REMOVED]
PSK (from passphrase) - hexdump(len=32): [REMOVED]
random: Got 20/20 random bytes
Get randomness: len=32 entropy=0
GMK - hexdump(len=32): [REMOVED]
Get randomness: len=32 entropy=0
Key Counter - hexdump(len=32): [REMOVED]
WPA: Delay group state machine start until Beacon frames have been configured
nl80211: Set beacon (beacon_set=0)
nl80211: Beacon head - hexdump(len=63): 80 00 00 00 ff ff ff ff ff ff f0 c8 14 7b 5a 4b f0 c8 14 7b 5a 4b 00 00 00 00 00 00 00 00 00 00 64 00 11 04 00 0c 68 6f 73 74 61 70 64 5f 74 65 73 74 01 08 82 84 8b 96 0c 12 18 24 03 01 03
nl80211: Beacon tail - hexdump(len=35): 2a 01 04 32 04 30 48 60 6c 30 18 01 00 00 0f ac 02 02 00 00 0f ac 04 00 0f ac 02 01 00 00 0f ac 02 00 00
nl80211: ifindex=7
nl80211: beacon_int=100
nl80211: beacon_rate=0
nl80211: rate_type=0
nl80211: dtim_period=2
nl80211: ssid=hostapd_test - beacon_int=100
- dtim_period=2
nl80211: hidden SSID not in use
nl80211: privacy=2
nl80211: auth_algs=0x3
nl80211: wpa_version=0x2
nl80211: key_mgmt_suites=0x2
nl80211: pairwise_ciphers=0x18
nl80211: group_cipher=0x8
wlan0: Deauthenticate all stations at BSS start
nl80211: sta_remove -> DEL_STATION wlan0 ff:ff:ff:ff:ff:ff --> -22 (Invalid argument)
WPA: Start group state machine to set initial keys
WPA: group state machine entering state GTK_INIT (VLAN-ID 0)
Get randomness: len=32 entropy=0
GTK - hexdump(len=32): [REMOVED]
WPA: group state machine entering state SETKEYSDONE (VLAN-ID 0)
wpa_driver_nl80211_set_key: ifindex=7 (wlan0) alg=2 addr=0x8560c key_idx=1 set_tx=1 seq_len=0 key_len=32 key_flag=0x1a
nl80211: NEW_KEY
nl80211: KEY_DATA - hexdump(len=32): [REMOVED]
broadcast key
nl80211: NL80211_CMD_SET_KEY - default key
nl80211: Set wlan0 operstate 0->1 (UP)
netlink: Operstate: ifindex=7 linkmode=-1 (no change), operstate=6 (IF_OPER_UP)
nl80211: TX queue param set: queue=0 aifs=1 cw_min=3 cw_max=7 burst_time=15 --> res=-95
Failed to set TX queue parameters for queue 0.
nl80211: TX queue param set: queue=1 aifs=1 cw_min=7 cw_max=15 burst_time=30 --> res=-95
Failed to set TX queue parameters for queue 1.
nl80211: TX queue param set: queue=2 aifs=3 cw_min=15 cw_max=63 burst_time=0 --> res=-95
Failed to set TX queue parameters for queue 2.
nl80211: TX queue param set: queue=3 aifs=7 cw_min=15 cw_max=1023 burst_time=0 --> res=-95
Failed to set TX queue parameters for queue 3.
wlan0: interface state UNINITIALIZED->ENABLED
wlan0: AP-ENABLED
wlan0: Setup of interface done.
ctrl_iface not configured!
RTM_NEWLINK: ifi_index=7 ifname=wlan0 operstate=6 linkmode=0 ifi_family=0 ifi_flags=0x11043 ([UP][RUNNING][LOWER_UP])
nl80211: Event message available
nl80211: Drv Event 19 (NL80211_CMD_NEW_STATION) received for wlan0
nl80211: New station 78:62:56:c1:26:31
nl80211: Assoc Req IEs - hexdump(len=0): [NULL]
wlan0: Event ASSOC (0) received
wlan0: STA 78:62:56:c1:26:31 IEEE 802.11: associated
STA did not include WPS/RSN/WPA IE in (Re)AssocReq
New STA
ap_sta_add: register ap_handle_timer timeout for 78:62:56:c1:26:31 (300 seconds - ap_max_inactivity)
No WPA/RSN IE from STA
nl80211: sta_remove -> DEL_STATION wlan0 78:62:56:c1:26:31 --> 0 (Success)
nl80211: Set STA flags - ifname=wlan0 addr=78:62:56:c1:26:31 total_flags=0x0 flags_or=0x0 flags_and=0xfffffff1 authorized=0
nl80211: sta_remove -> DEL_STATION wlan0 78:62:56:c1:26:31 --> 0 (Success)
ap_free_sta: cancel ap_handle_timer for 78:62:56:c1:26:31
nl80211: Event message available
nl80211: Drv Event 20 (NL80211_CMD_DEL_STATION) received for wlan0
nl80211: Delete station 78:62:56:c1:26:31
wlan0: Event DISASSOC (1) received
wlan0: STA 78:62:56:c1:26:31 IEEE 802.11: disassociated
Disassociation notification for unknown STA 78:62:56:c1:26:31
nl80211: Event message available
nl80211: Drv Event 19 (NL80211_CMD_NEW_STATION) received for wlan0
nl80211: New station 78:62:56:c1:26:31
nl80211: Assoc Req IEs - hexdump(len=0): [NULL]
wlan0: Event ASSOC (0) received
wlan0: STA 78:62:56:c1:26:31 IEEE 802.11: associated
STA did not include WPS/RSN/WPA IE in (Re)AssocReq
New STA
ap_sta_add: register ap_handle_timer timeout for 78:62:56:c1:26:31 (300 seconds - ap_max_inactivity)
No WPA/RSN IE from STA
nl80211: sta_remove -> DEL_STATION wlan0 78:62:56:c1:26:31 --> 0 (Success)
nl80211: Set STA flags - ifname=wlan0 addr=78:62:56:c1:26:31 total_flags=0x0 flags_or=0x0 flags_and=0xfffffff1 authorized=0
nl80211: sta_remove -> DEL_STATION wlan0 78:62:56:c1:26:31 --> 0 (Success)
ap_free_sta: cancel ap_handle_timer for 78:62:56:c1:26:31
nl80211: Event message available
nl80211: Drv Event 20 (NL80211_CMD_DEL_STATION) received for wlan0
nl80211: Delete station 78:62:56:c1:26:31
wlan0: Event DISASSOC (1) received
wlan0: STA 78:62:56:c1:26:31 IEEE 802.11: disassociated
Disassociation notification for unknown STA 78:62:56:c1:26:31
nl80211: Event message available
nl80211: Drv Event 19 (NL80211_CMD_NEW_STATION) received for wlan0
nl80211: New station 78:62:56:c1:26:31
nl80211: Assoc Req IEs - hexdump(len=0): [NULL]
wlan0: Event ASSOC (0) received
wlan0: STA 78:62:56:c1:26:31 IEEE 802.11: associated
STA did not include WPS/RSN/WPA IE in (Re)AssocReq
New STA
ap_sta_add: register ap_handle_timer timeout for 78:62:56:c1:26:31 (300 seconds - ap_max_inactivity)
No WPA/RSN IE from STA
nl80211: sta_remove -> DEL_STATION wlan0 78:62:56:c1:26:31 --> 0 (Success)
nl80211: Set STA flags - ifname=wlan0 addr=78:62:56:c1:26:31 total_flags=0x0 flags_or=0x0 flags_and=0xfffffff1 authorized=0
nl80211: sta_remove -> DEL_STATION wlan0 78:62:56:c1:26:31 --> 0 (Success)
ap_free_sta: cancel ap_handle_timer for 78:62:56:c1:26:31
nl80211: Event message available
nl80211: Drv Event 20 (NL80211_CMD_DEL_STATION) received for wlan0
nl80211: Delete station 78:62:56:c1:26:31
wlan0: Event DISASSOC (1) received
wlan0: STA 78:62:56:c1:26:31 IEEE 802.11: disassociated
Disassociation notification for unknown STA 78:62:56:c1:26:31
nl80211: Event message available
nl80211: Drv Event 19 (NL80211_CMD_NEW_STATION) received for wlan0
nl80211: New station 78:62:56:c1:26:31
nl80211: Assoc Req IEs - hexdump(len=0): [NULL]
wlan0: Event ASSOC (0) received
wlan0: STA 78:62:56:c1:26:31 IEEE 802.11: associated
STA did not include WPS/RSN/WPA IE in (Re)AssocReq
New STA
ap_sta_add: register ap_handle_timer timeout for 78:62:56:c1:26:31 (300 seconds - ap_max_inactivity)
No WPA/RSN IE from STA
nl80211: sta_remove -> DEL_STATION wlan0 78:62:56:c1:26:31 --> 0 (Success)
nl80211: Set STA flags - ifname=wlan0 addr=78:62:56:c1:26:31 total_flags=0x0 flags_or=0x0 flags_and=0xfffffff1 authorized=0
nl80211: sta_remove -> DEL_STATION wlan0 78:62:56:c1:26:31 --> 0 (Success)
ap_free_sta: cancel ap_handle_timer for 78:62:56:c1:26:31
nl80211: Event message available
nl80211: Drv Event 20 (NL80211_CMD_DEL_STATION) received for wlan0
nl80211: Delete station 78:62:56:c1:26:31
wlan0: Event DISASSOC (1) received
wlan0: STA 78:62:56:c1:26:31 IEEE 802.11: disassociated
Disassociation notification for unknown STA 78:62:56:c1:26:31
-
Reply: SPI转串口的问题
@masterlu 多次收发123的结果是这样的,似乎每一次收发的时间都会比之前的要长一些。。。。
发送:
sh-4.2# echo 123 > /dev/ttysWK0
sh-4.2# echo 123 > /dev/ttysWK0
sh-4.2# echo 123 > /dev/ttysWK0
sh-4.2# echo 123 > /dev/ttysWK0
sh-4.2# echo 123 > /dev/ttysWK0
sh-4.2# echo 123 > /dev/ttysWK0
sh-4.2# echo 123 > /dev/ttysWK0
sh-4.2# echo 123 > /dev/ttysWK0
sh-4.2# echo 123 > /dev/ttysWK0
sh-4.2# echo 123 > /dev/ttysWK0
sh-4.2# echo 123 > /dev/ttysWK0
sh-4.2# echo 123 > /dev/ttysWK0
sh-4.2# echo 123 > /dev/ttysWK0
sh-4.2# echo 123 > /dev/ttysWK0接收:
sh-4.2# cat /dev/ttysWK0
123123
123
123
123
123
123
123
123
123
123
123
123
123
123
123
123
123
123
123
123
123
123
123
123
123
123
123
123
123
123
123
123
123
123
123
123
123
123
123
123
123
123
123
-
SPI转串口的问题
使用A40i的spi转串口,spi2 ,串口芯片是wk2412。
目前的问题:使用转出来的串口进行收发数据(比如发送123)大多数情况下会有1s左右的延迟才能接收到,比较好的情况是几乎感受不到延迟,最差的情况是接收到123时需要等待6s左右。
不知道有没有大佬遇到过这种情况,希望能提供一些解决办法或者思路,谢谢。