Chinaunix首页 | 论坛 | 博客
  • 博客访问: 301409
  • 博文数量: 60
  • 博客积分: 1451
  • 博客等级: 上尉
  • 技术积分: 710
  • 用 户 组: 普通用户
  • 注册时间: 2009-09-23 23:55
文章分类

全部博文(60)

文章存档

2017年(9)

2014年(1)

2013年(1)

2011年(9)

2010年(35)

2009年(5)

我的朋友

分类: 嵌入式

2010-10-07 20:50:18

启动系统时出现下面错误信息:
drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
 
原因是没有RTC驱动加到系统中来,
修改arch/arm/mach-s3c2440/mach-smdk2440.c文件,
在结构体中加入&s3c_device_rtc,如下:
static struct platform_device *smdk2440_devices[] __initdata = {
        &s3c_device_usb,
        &s3c_device_lcd,
        &s3c_device_wdt,
        &s3c_device_i2c0,
        &s3c_device_iis,
        &s3c_device_sdi,
        &s3c_device_usbgadget,
        &s3c_device_nand,
        &s3c_device_adc,
        &s3c_device_ts,
        &s3c_device_rtc,
};
 
重新编译,启动后出现:
s3c2410-rtc s3c2410-rtc: hctosys: invalid date/time
表示RTC驱动已正确加载,但时间没设置正确……
阅读(1268) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~