From: Allan Wang <aiyuanwang@yahoo.com>
To: linuxppc-dev@lists.ozlabs.org
Subject: /dev does not have the devices I have configured with initramfs as my root file system
Date: Sun, 3 Jan 2010 15:15:06 -0800 (PST) [thread overview]
Message-ID: <892012.72702.qm@web52904.mail.re2.yahoo.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 2900 bytes --]
Hello, All,
Happy New Year to everyone!
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:
dir /dev 755 0 0
dir /bin 755 1000 1000
dir /proc 755 0 0
slink /bin/sh busybox 777 0 0
file /bin/busybox /home/awang/proj/linux-2.6.30.4/usr/busybox 755 0 0
dir /sys 755 0 0
dir /usr 755 0 0
dir /usr/bin 755 0 0
dir /usr/sbin 755 0 0
dir /sbin 755 0 0
dir /mnt 755 0 0
dir /etc 755 0 0
dir /var 755 0 0
file /init /home/awang/proj/linux-2.6.30.4/usr/init.sh 755 0 0
Here is my init.sh:
#!/bin/sh
/bin/busybox echo " "
/bin/busybox echo "Hello, I am alive!!!!"
busybox mkdir /mnt/flash
busybox mount -t proc /proc /proc
busybox mount -t sysfs none /sys
busybox mount -t jffs2 mtd2 /mnt/flash
busybox sleep 2
/bin/busybox --install -s
#start a shell
ifconfig eth0 192.168.0.201
/bin/sh
Here is my configurations:
RTC kernel configuration:
CONFIG_RTC_LIB=y
CONFIG_RTC_CLASS=y
CONFIG_RTC_HCTOSYS=y
CONFIG_RTC_HCTOSYS_DEVICE="rtc0"
CONFIG_RTC_DEBUG=y
#
# RTC interfaces
#
CONFIG_RTC_INTF_SYSFS=y
CONFIG_RTC_INTF_PROC=y
CONFIG_RTC_INTF_DEV=y
dts configuration:
IIC0: i2c@ef600700 {
#address-cells = <1>;
#size-cells = <0>;
compatible = "ibm,iic-440epx", "ibm,iic";
reg = <0xef600700 0x00000014>;
interrupt-parent = <&UIC0>;
interrupts = <0x2 0x4>;
rtc@68 {
compatible = "stm,m41t80";
reg = <0x68>;
};
eeprom0@50 {
compatible = "eeprom";
reg = <0x50>;
};
eeprom1@54 {
compatible = "eeprom";
reg = <0x54>;
};
};
The debug messages:
i2c /dev entries driver
rtc-m41t80 1-0068: chip found, driver version 0.05
rtc-m41t80 1-0068: rtc core: registered m41t80 as rtc0
ibm-iic 1ef600700.i2c: using standard (100 kHz) mode
TCP cubic registered
NET: Registered protocol family 17
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
TIPC: Activated (version 1.6.4 compiled Jan 3 2010 12:21:35)
NET: Registered protocol family 30
TIPC: Started in single node mode
rtc-m41t80 1-0068: setting system clock to 2010-01-03 19:43:06 UTC (1262547786)
I have struggled for a few days. Thank you very much.
Allan
[-- Attachment #2: Type: text/html, Size: 6826 bytes --]
reply other threads:[~2010-01-03 23:15 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=892012.72702.qm@web52904.mail.re2.yahoo.com \
--to=aiyuanwang@yahoo.com \
--cc=linuxppc-dev@lists.ozlabs.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox