This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Getting "hwclock: can't open '/dev/misc/rtc': No such file or directory" error??

Dear All,

I'm trying to bring up the kernel 3.0.4 with Angstrom RFS on Beagle XM Rev C board.

I getting this error while kernel image is uncompressing :

hwclock: can't open '/dev/misc/rtc': No such file or directory

The log is given below for your reference with bootargs :

Bootargs are :

# setenv bootargs console=ttyO2,115200n8 root=/dev/mmcblk0p2 rootwait ro init=/sbin/init vram=12MB omapfb.mode=dvi:1280x720MR-16@60 fixrtc

# setenv bootcmd 'fatload mmc 0:1 0x80200000 uImage;bootm 0x80200000'

# mmc init

# boot

## Booting kernel from Legacy Image at 80200000 ...
   Image Name:   Linux-3.0.0-rc7
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3247792 Bytes = 3.1 MiB
   Load Address: 80008000
   Entry Point:  80008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.

/* some thing missing due to "The oldest data was removed. Continue..." */

driver zaurus
[    1.494995] cdc_ncm: 01-June-2011
[    1.499145] usbcore: registered new interface driver cdc_ncm
[    1.507476] usbcore: registered new interface driver cdc_wdm
[    1.513458] Initializing USB Mass Storage driver...
[    1.519348] usbcore: registered new interface driver usb-storage
[    1.525726] USB Mass Storage support registered.
[    1.531829] usbcore: registered new interface driver libusual
[    1.538604] usbcore: registered new interface driver usbtest
[    1.547698] mousedev: PS/2 mouse device common for all mice
[    1.556457] input: gpio-keys as /devices/platform/gpio-keys/input/input0
[    1.572357] input: twl4030_pwrbutton as /devices/platform/omap/omap_i2c.1/i2c-1/1-0049/twl4030_pwrbutton/input/input1
[    1.588745] twl_rtc twl_rtc: rtc core: registered twl_rtc as rtc0
[    1.595581] twl_rtc twl_rtc: Power up reset detected.
[    1.601776] twl_rtc twl_rtc: Enabling TWL-RTC.
[    1.607849] i2c /dev entries driver
[    1.615142] Driver for 1-wire Dallas network protocol.
[    1.622558] omap_device: omap_wdt.-1: new worst case activate latency 0: 30517
[    1.632049] OMAP Watchdog Timer Rev 0x31: initial timeout 60 sec
[    1.638458] omap_device: omap_wdt.-1: new worst case deactivate latency 0: 30517
[    1.647491] twl4030_wdt twl4030_wdt: Failed to register misc device
[    1.654144] twl4030_wdt: probe of twl4030_wdt failed with error -16
[    1.674987] usbcore: registered new interface driver usbhid
[    1.681030] usbhid: USB HID core driver
[    1.685058] oprofile: hardware counters not available
[    1.690399] oprofile: using timer interrupt.
[    1.695556] TCP cubic registered
[    1.698944] Initializing XFRM netlink socket
[    1.703643] NET: Registered protocol family 17
[    1.708404] NET: Registered protocol family 15
[    1.713378] Registering the dns_resolver key type
[    1.718902] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
[    1.727050] ThumbEE CPU extension supported.
[    1.777526] clock: disabling unused clocks to save power
[    1.788146] regulator_init_complete: VDVI: incomplete constraints, leaving on
[    1.796081] regulator_init_complete: VDAC: incomplete constraints, leaving on
[    1.805023] twl_rtc twl_rtc: setting system clock to 2000-01-01 00:00:00 UTC (946684800)
[    1.817413] Waiting for root device /dev/mmcblk0p2...
[    1.929016] mmc0: new SDHC card at address 45a5
[    1.937103] mmcblk0: mmc0:45a5 SD04G 3.69 GiB (ro)
[    1.949096]  mmcblk0: p1 p2
[    2.045654] EXT3-fs: barriers not enabled
[    2.052215] kjournald starting.  Commit interval 5 seconds
[    2.058898] EXT3-fs (mmcblk0p2): mounted filesystem with ordered data mode
[    2.066589] VFS: Mounted root (ext3 filesystem) readonly on device 179:2.
[    2.074005] Freeing init memory: 296K
INIT: version 2.86 booting
modprobe: FATAL: Could not load /lib/modules/3.0.0-rc7/modules.dep: No such file or directory

Error opening /dev/fb0: No such device
Starting udev/etc/rcS.d/S03udev: line 50: can't create /tmp/uname: Read-only file system
touch: cannot touch `/tmp/uname': Read-only file system
Remounting root file system...
mount: you must specify the filesystem type
WARNING: Couldn't open directory /lib/modules/3.0.0-rc7: No such file or directory
FATAL: Could not open /lib/modules/3.0.0-rc7/modules.dep.temp for writing: No such file or directory
/etc/volatile.cache: line 1: syntax error: newline unexpected
ALSA: Restoring mixer settings...
/usr/sbin/alsactl: load_state:1616: Configuring network interfaces... No soundcards found...
ifup: can't open '/var/run/ifstate': No such file or directory
done.
Starting portmap daemon: portmap.
portmap: fork: No such deviceUnknown HZ value! (69) Assume 100.
net.ipv4.conf.default.rp_filter = 1
net.ipv4.conf.all.rp_filter = 1
hwclock: can't open '/dev/misc/rtc': No such file or directory
Fri Jun 26 18:37:00 BST 2009
hwclock: can't open '/dev/misc/rtc': No such file or directory

Kindly resolve my problem

 

Thanks in advance!!

 

BR

Mayur

 

  • Mayur,

    Very firs thing is, the script is looking for the device node "/dev/misc/rtc", which is not present. Based on boot-log the rtc is getting mounted at "/dev/rtc0" -

    [    1.588745] twl_rtc twl_rtc: rtc core: registered twl_rtc as rtc0
    [    1.595581] twl_rtc twl_rtc: Power up reset detected.
    [    1.601776] twl_rtc twl_rtc: Enabling TWL-RTC.

     

    Either modify the script for use /dev/rtc0 or create a pseudo link.

    Thanks,

    Vaibhav