打印
[嵌入式Linux]

at91rm9200 移植linux-2.6.22 扩展串口驱动

[复制链接]
660|0
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
kaoaka|  楼主 | 2017-12-23 16:15 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
大家好,我在at91rm9200移植linux-2.6.22 ,当配置选择<>8250/16550 and compatible serial support的时候(没有添加设备注册,只添加8250.C驱动),启动便出错。
Unable to handle kernel NULL pointer dereference at virtual address 00000000
pgd = c0004000
[00000000] *pgd=00000000
Backtrace:
[<c00d9270>] (init_dev+0x0/0x4f8) from [<c00d98a8>] (tty_open+0x140/0x2c8)
[<c00d9768>] (tty_open+0x0/0x2c8) from [<c00767c4>] (chrdev_open+0x14c/0x164)
r8:c02df6e0 r7:00000000 r6:00000000 r5:c3c96b84 r4:c01fa93c
[<c0076678>] (chrdev_open+0x0/0x164) from [<c0072d84>] (__dentry_open+0x100/0x1e8)
r8:c129d1d0 r7:c12d42a0 r6:c0076678 r5:c3c96b84 r4:c02df6e0
[<c0072c84>] (__dentry_open+0x0/0x1e8) from [<c0072ea0>] (nameidata_to_filp+0x34/0x48)
[<c0072e6c>] (nameidata_to_filp+0x0/0x48) from [<c0072ef4>] (do_filp_open+0x40/0x48)
r4:00000002
[<c0072eb4>] (do_filp_open+0x0/0x48) from [<c0073230>] (do_sys_open+0x54/0xe4)
r5:00000000 r4:00000002
[<c00731dc>] (do_sys_open+0x0/0xe4) from [<c00732e4>] (sys_open+0x24/0x28)
[<c00732c0>] (sys_open+0x0/0x28) from [<c00202d0>] (init_post+0x2c/0xe0)
[<c00202a4>] (init_post+0x0/0xe0) from [<c0008d74>] (kernel_init+0x234/0x28c)
r4:c01e7df8
[<c0008b40>] (kernel_init+0x0/0x28c) from [<c00372f0>] (do_exit+0x0/0x760)
Code: e50b2044 059030b8 e1a06000 e1a0a001 (07935101)
Kernel panic - not syncing: Attempted to kill init!

相关帖子

发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

5

主题

5

帖子

0

粉丝