<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:lucida console,sans-serif;font-size:12pt">
<div style="font-family: lucida console,sans-serif; font-size: 12pt;"><div>Hello, All,<br><br>Happy New Year to everyone! <br>I am running ppc440epx board which is similar Sequoia board. I have configured a I2C RTC device. From the console debug message, it is working, but I do not see /dev/rtc0 file. My kernel version is 2.6.30.4. I use initramfs as my root file system. Here is my initramfs.txt:<br>dir /dev 755 0 0<br>dir /bin 755 1000 1000<br>dir /proc 755 0 0<br>slink /bin/sh busybox 777 0 0<br>file /bin/busybox /home/awang/proj/linux-2.6.30.4/usr/busybox 755 0 0<br>dir /sys 755 0 0<br>dir /usr 755 0 0<br>dir /usr/bin 755 0 0<br>dir /usr/sbin 755 0 0<br>dir /sbin 755 0 0<br>dir /mnt 755 0 0<br>dir /etc 755 0 0<br>dir /var 755 0 0<br>file /init /home/awang/proj/linux-2.6.30.4/usr/init.sh 755 0 0<br><br>Here is my <a target="_blank" href="http://init.sh">init.sh</a>:<br><br>#!/bin/sh<br><br>/bin/busybox echo "
"<br>/bin/busybox echo "Hello, I am alive!!!!"<br>busybox mkdir /mnt/flash<br>busybox mount -t proc /proc /proc<br>busybox mount -t sysfs none /sys<br>busybox mount -t jffs2 mtd2 /mnt/flash<br><br>busybox sleep 2<br>/bin/busybox --install -s<br>#start a shell<br>ifconfig eth0 192.168.0.201<br>/bin/sh<br><br><br>Here is my configurations:<br><br>RTC kernel configuration:<br><br>CONFIG_RTC_LIB=y<br>CONFIG_RTC_CLASS=y<br>CONFIG_RTC_HCTOSYS=y<br>CONFIG_RTC_HCTOSYS_DEVICE="rtc0"<br>CONFIG_RTC_DEBUG=y<br><br>#<br># RTC interfaces<br>#<br>CONFIG_RTC_INTF_SYSFS=y<br>CONFIG_RTC_INTF_PROC=y<br>CONFIG_RTC_INTF_DEV=y<br><br>dts configuration:<br><br> IIC0: i2c@ef600700 {<br> #address-cells =
<1>;<br> #size-cells = <0>;<br> compatible = "ibm,iic-440epx", "ibm,iic";<br> reg = <0xef600700 0x00000014>;<br> interrupt-parent =
<&UIC0>;<br> interrupts = <0x2 0x4>;<br> rtc@68 {<br> compatible = "stm,m41t80";<br> reg =
<0x68>;<br> };<br> eeprom0@50 {<br> compatible = "eeprom";<br> reg =
<0x50>;<br> };<br> eeprom1@54 {<br> compatible = "eeprom";<br> reg =
<0x54>;<br> };<br> };<br><br>The debug messages:<br><br>i2c /dev entries driver<br>rtc-m41t80 1-0068: chip found, driver version 0.05<br>rtc-m41t80 1-0068: rtc core: registered m41t80 as rtc0<br>ibm-iic 1ef600700.i2c: using standard (100 kHz) mode<br>TCP cubic registered<br>NET: Registered protocol family 17<br>RPC: Registered udp transport module.<br>RPC: Registered tcp transport module.<br>TIPC: Activated (version 1.6.4 compiled Jan 3 2010 12:21:35)<br>NET: Registered protocol family 30<br>TIPC: Started in single node mode<br>rtc-m41t80 1-0068: setting system clock to 2010-01-03 19:43:06 UTC (1262547786)<br><br>I have
struggled for a few days. Thank you very much.<br><br>Allan<br><br><br><br><br><br> <br></div>
</div>
<!-- cg9.c2.mail.ac4.yahoo.com compressed/chunked Fri Jan 1 20:21:24 PST 2010 -->
</div><br>
</body></html>