[beagleboard] Re: Kernel stops after booting

Hi,

I formated SD card with twp partion (LABEL1 and LABEL2), I copied mlo,
u-boot.bin and uImage( Built using map3530beagel_defconfig) to LABEL1. In LABEL2 i untared
Angstrom-Beagleboard-demo-image-glibc-ipk-2009.X-test-20090326-beagleboard.rootfs.tar.bz2
file and i booted and it is stoping at RTC level, here is the log.
1414432 bytes read
## Booting kernel from Legacy Image at 80300000 …
Image Name: Linux-2.6.22.18-omap3
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 1414368 Bytes = 1.3 MB
Load Address: 80008000
Entry Point: 80008000
Verifying Checksum … OK
Loading Kernel Image … OK
OK

Starting kernel …

Uncompressing Linux… done, booting the kernel.
<5>Linux version 2.6.22.18-omap3 (root@INETFI-LINUX-MC4) (gcc version 4.2.1 (CodeSourcery Sourcery G++ Lite 2007q3-51)) #8 Mon Jun 29 21:32:35 9
CPU: ARMv7 Processor [411fc082] revision 2 (ARMv7), cr=00c5387f
Machine: OMAP3 Beagle board
Memory policy: ECC disabled, Data cache writeback
<7>On node 0 totalpages: 32768
<7> DMA zone: 256 pages used for memmap
<7> DMA zone: 0 pages reserved
<7> DMA zone: 32512 pages, LIFO batch:7
<7> Normal zone: 0 pages used for memmap
<6>OMAP3430ES1
<6>SRAM: Mapped pa 0x40200000 to va 0xd7000000 size: 0x100000
CPU0: D VIPT write-through cache
CPU0: cache: 768 bytes, associativity 1, 8 byte lines, 64 sets
Built 1 zonelists. Total pages: 32512
<5>Kernel command line: console=ttyS0,115200n8 mem=128M noinitrd rw root=/dev/mmcblk0p2 rootdelay=5 rootfstype=ext3
<6>GPMC revision 5.0
<6>IRQ: Found an INTC at 0xd8200000 (revision 4.0) with 96 interrupts
<6>Total of 96 interrupts on 1 active controller
<6>OMAP34xx GPIO hardware version 2.5
PID hash table entries: 512 (order: 9, 2048 bytes)
Console: colour dummy device 80x30
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
<6>Memory: 128MB = 128MB total
<5>Memory: 126720KB available (2688K code, 378K data, 108K init)
<7>Calibrating delay loop… 499.92 BogoMIPS (lpj=1949696)
Mount-cache hash table entries: 512
<6>CPU: Testing write buffer coherency: ok
<3>twl4030: I2C Client[3] is not initialized[515]
<3>twl4030: I2C Client[3] is not initialized[464]
<6>SmartReflex driver initialized
<6>OMAP DMA hardware revision 4.0
<6>OMAP Display hardware version 2.0
<6>i2c_omap i2c_omap.1: bus 1 rev3.12 at 2600 kHz
<6>i2c_omap i2c_omap.2: bus 2 rev3.12 at 100 kHz
<6>i2c_omap i2c_omap.3: bus 3 rev3.12 at 400 kHz
<6>TWL4030: TRY attach Slave TWL4030-ID0 on Adapter OMAP I2C adapter [1]
<6>TWL4030: TRY attach Slave TWL4030-ID1 on Adapter OMAP I2C adapter [1]
<6>TWL4030: TRY attach Slave TWL4030-ID2 on Adapter OMAP I2C adapter [1]
<6>TWL4030: TRY attach Slave TWL4030-ID3 on Adapter OMAP I2C adapter [1]
<6>TWL4030 Power Companion Active
<6><6>TWL4030: Driver registration complete.
<6>TWL4030 GPIO Demux: IRQ Range 376 to 386, Initialization Success
<6>Initialized TWL4030 USB module<5>SCSI subsystem initialized
<6>usbcore: registered new interface driver usbfs
<6>usbcore: registered new interface driver hub
<6>usbcore: registered new device driver usb
<6>musb_hdrc: version 2.2a/db-0.5.2, pio, otg (peripheral+host), debug=0
<7>musb_hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, bulk combine (X), bulk split (X), HB-ISO Rx (X), HB-ISO Tx (X), SoftConn)
<7>musb_hdrc: MHDRC RTL version 1.400
<7>musb_hdrc: setup fifo_mode 4
<7>musb_hdrc: 29/31 max ep, 15424/16384 memory
<7>musb_hdrc: hw_ep 0shared, max 64
<7>musb_hdrc: hw_ep 1tx, max 512
<7>musb_hdrc: hw_ep 1rx, max 512
<7>musb_hdrc: hw_ep 2tx, max 512
<7>musb_hdrc: hw_ep 2rx, max 512
<7>musb_hdrc: hw_ep 3tx, max 512
<7>musb_hdrc: hw_ep 3rx, max 512
<7>musb_hdrc: hw_ep 4tx, max 512
<7>musb_hdrc: hw_ep 4rx, max 512
<7>musb_hdrc: hw_ep 5tx, max 512
<7>musb_hdrc: hw_ep 5rx, max 512
<7>musb_hdrc: hw_ep 6tx, max 512
<7>musb_hdrc: hw_ep 6rx, max 512
<7>musb_hdrc: hw_ep 7tx, max 512
<7>musb_hdrc: hw_ep 7rx, max 512
<7>musb_hdrc: hw_ep 8tx, max 512
<7>musb_hdrc: hw_ep 8rx, max 512
<7>musb_hdrc: hw_ep 9tx, max 512
<7>musb_hdrc: hw_ep 9rx, max 512
<7>musb_hdrc: hw_ep 10tx, max 512
<7>musb_hdrc: hw_ep 10rx, max 512
<7>musb_hdrc: hw_ep 11tx, max 512
<7>musb_hdrc: hw_ep 11rx, max 512
<7>musb_hdrc: hw_ep 12tx, max 512
<7>musb_hdrc: hw_ep 12rx, max 512
<7>musb_hdrc: hw_ep 13tx, max 512
<7>musb_hdrc: hw_ep 13rx, max 512
<7>musb_hdrc: hw_ep 14shared, max 1024
<7>musb_hdrc: hw_ep 15shared, max 1024
<6>musb_hdrc: USB OTG mode controller at c8800000 using PIO, IRQ 92
<6>Time: 32k_counter clocksource has been installed.
<6>Switched to high resolution mode on CPU 0
<3>Power Management for TI OMAP.
<6>cpuidle: using driver omap3_idle
<3>create_proc_entry succeeded
<3>create_proc_entry succeeded
<4>NetWinder Floating Point Emulator V0.97 (double precision)
<5>VFS: Disk quotas dquot_6.5.1
Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
<6>JFFS2 version 2.2. (NAND) �Щ 2001-2006 Red Hat, Inc.
<6>io scheduler noop registered
<6>io scheduler anticipatory registered (default)
<6>io scheduler deadline registered
<6>io scheduler cfq registered
<7>omap2_disp_outLCD panel 1024x768
<4>timeout waiting for frame-done interrupt
<7>omap2_disp_outTV 640x480 interlaced
<6>omap24xxfb: Options ""
Console: switching to colour frame buffer device 128x48
<6>omap24xxfb: fb0 frame buffer device
<6>omap24xxfb: display mode 1024x768x16 hsync 22kHz vsync 28Hz<6>omap_rng omap_rng: OMAP Random Number Generator ver. 70
<6>OMAP Watchdog Timer Rev 0x31: initial timeout 60 sec
<6>Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing enabled
<6>serial8250.0: ttyS0 at MMIO 0x4806a000 (irq = 72) is a ST16654
Linux version 2.6.22.18-omap3 (root@INETFI-LINUX-MC4) (gcc version 4.2.1 (CodeSourcery Sourcery G++ Lite 2007q3-51)) #8 Mon Jun 29 21:32:35 IST9
CPU: ARMv7 Processor [411fc082] revision 2 (ARMv7), cr=00c5387f
Machine: OMAP3 Beagle board
Memory policy: ECC disabled, Data cache writeback
OMAP3430ES1
SRAM: Mapped pa 0x40200000 to va 0xd7000000 size: 0x100000
CPU0: D VIPT write-through cache
CPU0: cache: 768 bytes, associativity 1, 8 byte lines, 64 sets
Built 1 zonelists. Total pages: 32512
Kernel command line: console=ttyS0,115200n8 mem=128M noinitrd rw root=/dev/mmcblk0p2 rootdelay=5 rootfstype=ext3
GPMC revision 5.0
IRQ: Found an INTC at 0xd8200000 (revision 4.0) with 96 interrupts
Total of 96 interrupts on 1 active controller
OMAP34xx GPIO hardware version 2.5
PID hash table entries: 512 (order: 9, 2048 bytes)
Console: colour dummy device 80x30
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
Memory: 128MB = 128MB total
Memory: 126720KB available (2688K code, 378K data, 108K init)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
twl4030: I2C Client[3] is not initialized[515]
twl4030: I2C Client[3] is not initialized[464]
SmartReflex driver initialized
OMAP DMA hardware revision 4.0
OMAP Display hardware version 2.0
i2c_omap i2c_omap.1: bus 1 rev3.12 at 2600 kHz
i2c_omap i2c_omap.2: bus 2 rev3.12 at 100 kHz
i2c_omap i2c_omap.3: bus 3 rev3.12 at 400 kHz
TWL4030: TRY attach Slave TWL4030-ID0 on Adapter OMAP I2C adapter [1]
TWL4030: TRY attach Slave TWL4030-ID1 on Adapter OMAP I2C adapter [1]
TWL4030: TRY attach Slave TWL4030-ID2 on Adapter OMAP I2C adapter [1]
TWL4030: TRY attach Slave TWL4030-ID3 on Adapter OMAP I2C adapter [1]
TWL4030 Power Companion Active
<6>TWL4030: Driver registration complete.
TWL4030 GPIO Demux: IRQ Range 376 to 386, Initialization Success
Initialized TWL4030 USB module<5>SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
musb_hdrc: version 2.2a/db-0.5.2, pio, otg (peripheral+host), debug=0
musb_hdrc: USB OTG mode controller at c8800000 using PIO, IRQ 92
Time: 32k_counter clocksource has been installed.
Switched to high resolution mode on CPU 0
Power Management for TI OMAP.
cpuidle: using driver omap3_idle
create_proc_entry succeeded
create_proc_entry succeeded
NetWinder Floating Point Emulator V0.97 (double precision)
VFS: Disk quotas dquot_6.5.1
Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
JFFS2 version 2.2. (NAND) �© 2001-2006 Red Hat, Inc.
io scheduler noop registered
io scheduler anticipatory registered (default)
io scheduler deadline registered
io scheduler cfq registered
timeout waiting for frame-done interrupt
omap24xxfb: Options ""
Console: switching to colour frame buffer device 128x48
omap24xxfb: fb0 frame buffer device
omap24xxfb: display mode 1024x768x16 hsync 22kHz vsync 28Hz<6>omap_rng omap_rng: OMAP Random Number Generator ver. 70
OMAP Watchdog Timer Rev 0x31: initial timeout 60 sec
Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing enabled
serial8250.0: ttyS0 at MMIO 0x4806a000 (irq = 72) is a ST16654
<6>serial8250.0: ttyS1 at MMIO 0x4806c000 (irq = 73) is a ST16654
serial8250.0: ttyS1 at MMIO 0x4806c000 (irq = 73) is a ST16654
<6>serial8250.0: ttyS2 at MMIO 0x49020000 (irq = 74) is a ST16654
serial8250.0: ttyS2 at MMIO 0x49020000 (irq = 74) is a ST16654
RAMDISK driver initialized: 16 RAM disks of 16384K size 1024 blocksize
RAMDISK driver initialized: 16 RAM disks of 16384K size 1024 blocksize
<6>loop: module loaded
loop: module loaded
<6>OMAP RTC Driver
OMAP RTC Driver
<4>omap-twl4030rtc:TWL4030-RTC Power up reset detected.
omap-twl4030rtc:TWL4030-RTC Power up reset detected.
<6>omap-twl4030rtc:Enabling TWL4030-RTC.
omap-twl4030rtc:Enabling TWL4030-RTC.
<6>Linux video capture interface: v2.00
Linux video capture interface: v2.00
<6>omap24xxvout: registered device video1 [v4l2]
omap24xxvout: registered device video1 [v4l2]
<6>omap24xxvout: registered device video2 [v4l2]
omap24xxvout: registered device video2 [v4l2]
<6>sn9c102: V4L2 driver for SN9C1xx PC Camera Controllers v1:1.47pre49
sn9c102: V4L2 driver for SN9C1xx PC Camera Controllers v1:1.47pre49
<6>usbcore: registered new interface driver sn9c102
usbcore: registered new interface driver sn9c102
<6>i2c /dev entries driver
i2c /dev entries driver
<6>omap2-nand driver initializing
omap2-nand driver initializing
<6>NAND device: Manufacturer ID: 0x2c, Chip ID: 0xba (Micron NAND 256MiB 1,8V 16-bit)
NAND device: Manufacturer ID: 0x2c, Chip ID: 0xba (Micron NAND 256MiB 1,8V 16-bit)
<5>Creating 5 MTD partitions on “omap2-nand.0”:
Creating 5 MTD partitions on “omap2-nand.0”:
<5>0x00000000-0x00080000 : "X-Loader-NAND"
0x00000000-0x00080000 : “X-Loader-NAND”
<5>0x00080000-0x00260000 : "U-Boot-NAND"
0x00080000-0x00260000 : “U-Boot-NAND”
<5>0x00260000-0x00280000 : "Boot Env-NAND"
0x00260000-0x00280000 : “Boot Env-NAND”
<5>0x00280000-0x00780000 : "Kernel-NAND"
0x00280000-0x00780000 : “Kernel-NAND”
<5>0x00780000-0x10000000 : "File System - NAND"
0x00780000-0x10000000 : “File System - NAND”
<5>usbmon: debugfs is not available
usbmon: debugfs is not available
<6>usbcore: registered new interface driver cdc_acm
usbcore: registered new interface driver cdc_acm
<6>drivers/usb/class/cdc-acm.c: v0.25:USB Abstract Control Model driver for USB modems and ISDN adapters
drivers/usb/class/cdc-acm.c: v0.25:USB Abstract Control Model driver for USB modems and ISDN adapters
<6>Initializing USB Mass Storage driver…
Initializing USB Mass Storage driver…
<6>usbcore: registered new interface driver usb-storage
usbcore: registered new interface driver usb-storage
<6>USB Mass Storage support registered.
USB Mass Storage support registered.
<6>zero gadget: Gadget Zero, version: St Patrick’s Day 2004
zero gadget: Gadget Zero, version: St Patrick’s Day 2004
<6>zero gadget: using musb_hdrc, OUT ep1out IN ep1in
zero gadget: using musb_hdrc, OUT ep1out IN ep1in
<6>musb_hdrc musb_hdrc.0: MUSB HDRC host driver
musb_hdrc musb_hdrc.0: MUSB HDRC host driver
<6>musb_hdrc musb_hdrc.0: new USB bus registered, assigned bus number 1
musb_hdrc musb_hdrc.0: new USB bus registered, assigned bus number 1
<6>usb usb1: configuration #1 chosen from 1 choice
usb usb1: configuration #1 chosen from 1 choice
<6>hub 1-0:1.0: USB hub found
hub 1-0:1.0: USB hub found
<6>hub 1-0:1.0: 1 port detected
hub 1-0:1.0: 1 port detected
<6>mice: PS/2 mouse device common for all mice
mice: PS/2 mouse device common for all mice
<6>usbcore: registered new interface driver usbhid
usbcore: registered new interface driver usbhid
<6>drivers/hid/usbhid/hid-core.c: v2.6:USB HID core driver
drivers/hid/usbhid/hid-core.c: v2.6:USB HID core driver
<6>Advanced Linux Sound Architecture Driver Version 1.0.14 (Thu May 31 09:03:25 2007 UTC).
Advanced Linux Sound Architecture Driver Version 1.0.14 (Thu May 31 09:03:25 2007 UTC).
<6>OMAP3430 TWL4030 Audio Support: OMAP3430 TWL4030 Audio Support: Chip Rev[0x2f] Initialized
Chip Rev[0x2f] Initialized
<6>audio support initialized
audio support initialized
<6>usbcore: registered new interface driver snd-usb-audio
usbcore: registered new interface driver snd-usb-audio
<6>ALSA device list:
ALSA device list:
<6> #0: TWL4030
#0: TWL4030
<6>VFP support v0.3: VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 1
implementor 41 architecture 3 part 30 variant c rev 1
<6>cpuidle: using governor menu
cpuidle: using governor menu
<6>Waiting 5sec before mounting root device…
Waiting 5sec before mounting root device…
<4>mmc0: host does not support reading read-only switch. assuming write-enable.
mmc0: host does not support reading read-only switch. assuming write-enable.
<6>mmcblk0: mmc0:0007 SD02G 1955840KiB
mmcblk0: mmc0:0007 SD02G 1955840KiB
<6> mmcblk0: mmcblk0: p1 p1 p2 p2

<7>CEATA Card Not Found
<6>mmcblk1: mmc1:0001 MMC02G 1976320KiB
mmcblk1: mmc1:0001 MMC02G 1976320KiB
<6> mmcblk1: mmcblk1:

<6>kjournald starting. Commit interval 5 seconds
kjournald starting. Commit interval 5 seconds
<4>EXT3-fs warning: maximal mount count reached, running e2fsck is recommended
EXT3-fs warning: maximal mount count reached, running e2fsck is recommended
<6>EXT3 FS on mmcblk0p2, EXT3 FS on mmcblk0p2, internal journal
internal journal
<6>EXT3-fs: mounted filesystem with ordered data mode.
EXT3-fs: mounted filesystem with ordered data mode.
VFS: Mounted root (ext3 filesystem).
VFS: Mounted root (ext3 filesystem).
<6>Freeing init memory: 108K
Freeing init memory: 108K
INIT: version 2.86 booting
Starting udev/etc/rcS.d/S03udev: line 56: can’t create /proc/sys/kernel/hotplug: nonexistent directory
Remounting root file system…
WARNING: Couldn’t open directory /lib/modules/2.6.22.18-omap3: No such file or directory
FATAL: Could not open /lib/modules/2.6.22.18-omap3/modules.dep.temp for writing: No such file or directory
Unknown HZ value! (94) Assume 100.
error: “net.ipv4.conf.default.rp_filter” is an unknown key
error: “net.ipv4.conf.all.rp_filter” is an unknown key
ALSA: Restoring mixer settings…
/usr/sbin/alsactl: load_state:1616: No soundcards found…
Configuring network interfaces… No usable address families found.
socket: No such file or directory
No usable address families found.
socket: No such file or directory
No usable address families found.
socket: No such file or directory
socket: Function not implemented
No usable address families found.
socket: No such file or directory
done.
Starting portmap daemon: portmapportmap: fork: No such device.
error: “net.ipv4.conf.default.rp_filter” is an unknown key
error: “net.ipv4.conf.all.rp_filter” is an unknown key
hwclock: can’t open ‘/dev/misc/rtc’: No such file or directory
Fri Jun 12 13:04:00 BST 2009
hwclock: can’t open ‘/dev/misc/rtc’: No such file or directory

Please let me the exact issue with this.

Remounting root file system…
WARNING: Couldn’t open directory /lib/modules/2.6.22.18-omap3: No such file or directory
FATAL: Could not open /lib/modules/2.6.22.18-omap3/modules.dep.temp for writing: No such file or directory

What exactly this error meanse?

–Sanjeev

|

The error means that the kernel couldn’t find its modules directory and needed to load a module for some reason. Normally you could just download the relevant “modules-” archive file from here: http://www.angstrom-distribution.org/demo/beagleboard/ and then extract it over the top of your Angstrom parition.

However, your kernel is a little old (2.6.22 is two years old) and there isn’t an appropriate modules archive for that version. I would upgrade your kernel to 2.6.29 as this includes a lot of OMAP related fixes. You can get that from the same link above…