主题 : 内核报错 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 13280
精华: 0
发帖: 17
金钱: 85 两
威望: 17 点
综合积分: 34 分
注册时间: 2010-01-21
最后登录: 2012-03-27
楼主  发表于: 2010-05-26 16:53

 内核报错

我编译的内核出现unable to handle kernel NULL pointer dereference at virtual address 00000018,这是什么原因呀
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
1楼  发表于: 2010-05-26 22:03

 回 楼主(jerry) 的帖子

代码里引用了空指针
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
级别: 侠客
UID: 37738
精华: 0
发帖: 52
金钱: 275 两
威望: 55 点
综合积分: 104 分
注册时间: 2011-02-15
最后登录: 2015-10-28
2楼  发表于: 2011-07-17 17:57
在mini2440_machine_init函数中添加平台的数据信息!!!

static void __init mini2440_machine_init(void){
s3c24xx_fb_set_platdata(&mini2440_fb_info);
s3c_i2c0_set_platdata(NULL);
s3c_device_nand.dev.platform_data = &mini2440_nand_info;  //添加后,编译下载,启动成功
platform_add_devices(mini2440_devices, ARRAY_SIZE(mini2440_devices));
}