您尚未登录。

楼主 #1 2021-03-20 11:22:44

拍打323
封禁
注册时间: 2021-02-19
已发帖子: 39
积分: 33.5

linux驱动调试的正确姿势?

ubuntu oops既然是直接死机,syslog的信息全他妈的0000000000000?嵌入式linux死机串口还有oops出来!好家伙!

Raw data transmitter (c) 2015 befinitiv  GPL2                                   
device wlan0 entered promiscuous mode                                           
Unable to handle kernel NULL pointer dereference at virtual address 00000000    
pgd = c1c40000                                                                  
[00000000] *pgd=81c8a831, *pte=00000000, *ppte=00000000                         
Internal error: Oops: 80000005 [#1] ARM                                         
Modules linked in: rtl8188eusHI3518(O) cfg80211 rfkill hi_mipi(O) hi3518e_adec()
CPU: 0 PID: 169 Comm: tx Tainted: P           O    4.9.37 #11                   
Hardware name: Hisilicon Hi3518EV20X (Flattened Device Tree)                    
task: c1ca43a0 task.stack: c27f0000                                             
PC is at 0x0                                                                    
LR is at rtw_monitor_xmit_entry+0x148/0x204 [rtl8188eusHI3518]                  
pc : [<00000000>]    lr : [<bf3ad278>]    psr: 60000013                         
sp : c27f1d38  ip : c298f060  fp : 00000000                                     
r10: 00000000  r9 : 00000000  r8 : 00000000                                     
r7 : 00008180  r6 : 80809b6e  r5 : 0114a89d  r4 : 1f004267                      
r3 : c1c0d900  r2 : 000011c7  r1 : c29d91a0  r0 : 00000000                      
Flags: nZCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment user               
Control: 0005317f  Table: 81c40000  DAC: 00000055                               
Process tx (pid: 169, stack limit = 0xc27f0190)                                 
Stack: (0xc27f1d38 to 0xc27f2000)                                               
1d20:                                                       00000000 00000000   
1d40: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000   
1d60: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000   
1d80: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000   
1da0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000   
1dc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000   
1de0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000   
1e00: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000   
1e20: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000   
1e40: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000   
1e60: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000   
1e80: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000   
1ea0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000   
1ec0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000   
1ee0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000   
1f00: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000   
1f20: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000   
1f40: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000   
1f60: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000   
1f80: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000   
1fa0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000   
1fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000   
1fe0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000   
[<bf3ad278>] (rtw_monitor_xmit_entry [rtl8188eusHI3518]) from [<00000000>] (  ()
Code: bad PC value                                                              
---[ end trace 9956beced7b189f8 ]---                                            
Kernel panic - not syncing: Fatal exception in interrupt                        
---[ end Kernel panic - not syncing: Fatal exception in interrupt

其实也看不出啥出来,只能确定堆栈的地址指向 rtw_monitor_xmit_entry,这个函数的问题?哪一行呢?

离线

页脚

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

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