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.

Loading kernel process freezes at RTC module loading

I enabled the TI DAVINCI RTC module in menuconfig of kernel of DM365. But the kernel loading process freezes as soon as RTC module is loaded. Here is the log:-

Boot Mode Task Completed
IPNC UBL Version: 2.2.0
Platform: DM365-297
Reset RTC Fail.. 
UBL Executed Sucessfully
Jumping to entry point at 0x81080000
Board:IPNC***LNT
                .
U-Boot 1.3.4 (Jan 23 2014 - 10:21:07) DM368-STWiHART-1.0
I2C:   ready
RAM Configuration:
Bank #0: 80000000 128 MB
NAND:  NAND device: Manufacturer ID: 0x2c, Chip ID: 0x38 (Micron NAND 1GiB 3,3V 8-bit)
Bad block table not found for chip 0
Bad block table not found for chip 0
 loop oob 81021dd8 Bad block table written to 0x3ffc0000, version 0x01
 loop oob 81021dd8 Bad block table written to 0x3ff80000, version 0x01
NAND device: Manufacturer ID: 0x2c, Chip ID: 0x38 (Micron NAND 1GiB 3,3V 8-bit)
Bad block table not found for chip 0
Bad block table not found for chip 0
 loop oob 81023368 Bad block table written to 0x3ffc0000, version 0x01
 loop oob 81023368 Bad block table written to 0x3ff80000, version 0x01
2048 MiB
In:    serial
Out:   serial
Err:   serial
Still-Image WiHART
ARM Clock :- 297MHz
SWDDR Clock :- 270MHz
Ethernet PHY: DP83848 @ 0x01
Hit any key to stop autoboot:  0 
Loading from NAND 1GiB 3,3V 8-bit, offset 0xa00000
   Image Name:   Linux-2.6.37_IPNC_DM368_5.1.0
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    4025472 Bytes =  3.8 MB
   Load Address: 80008000
   Entry Point:  80008000
NAND read: device 0 offset 0xa00000, size 0x400000
 4194304 bytes read: OK
## Booting kernel from Legacy Image at 80700000 ...
   Image Name:   Linux-2.6.37_IPNC_DM368_5.1.0
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    4025472 Bytes =  3.8 MB
   Load Address: 80008000
   Entry Point:  80008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK
Inside function do_bootm_linux
cmdline : mem=48M console=ttyS0,115200n8 noinitrd ip=10.9.40.203:10.9.41.47:10.9.51.1:255.255.255.0 eth=00:0C:0C:A0:FF:EC ubi.mtd=3,2i
do_bootm:Kernel Entry point 0x80008000
Starting kernel ...
Printing kernel parameters 80000100Cleanup is done 1939
Entry point address 2147516416
[    0.000000] Linux version 2.6.37_IPNC_DM368_5.1.0 (root@EMMYS0851) (gcc version 4.3.3 (GCC) ) #4 PREEMPT Mon Apr 21 19:01:21 IST 24
[    0.000000] CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] Machine: DaVinci DM36x IPNC
[    0.000000] Memory policy: ECC disabled, Data cache writeback
[    0.000000] DaVinci dm36x_rev1.2 variant 0x8
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 12192
[    0.000000] Kernel command line: mem=48M console=ttyS0,115200n8 noinitrd ip=10.9.40.203:10.9.41.47:10.9.51.1:255.255.255.0 eth=00:i
[    0.000000] TI DaVinci EMAC: kernel boot params Ethernet address: 00:0C:0C:A0:FF:EC
[    0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)
[    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Memory: 48MB = 48MB total
[    0.000000] Memory: 44608k/44608k available, 4544k reserved, 0K highmem
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
[    0.000000]     DMA     : 0xff000000 - 0xffe00000   (  14 MB)
[    0.000000]     vmalloc : 0xc3800000 - 0xfea00000   ( 946 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xc3000000   (  48 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .init : 0xc0008000 - 0xc002c000   ( 144 kB)
[    0.000000]       .text : 0xc002c000 - 0xc03b6000   (3624 kB)
[    0.000000]       .data : 0xc03b6000 - 0xc03dec80   ( 164 kB)
[    0.000000] SLUB: Genslabs=13, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] Preemptable hierarchical RCU implementation.
[    0.000000]  RCU-based detection of stalled CPUs is disabled.
[    0.000000]  Verbose stalled-CPUs detection is disabled.
[    0.000000] NR_IRQS:245
[    0.000000] Console: colour dummy device 80x30
[    0.000410] Calibrating delay loop (skipped) preset value.. 215.44 BogoMIPS (lpj=1077248)
[    0.000501] pid_max: default: 32768 minimum: 301
[    0.000811] Security Framework initialized
[    0.001021] Mount-cache hash table entries: 512
[    0.002240] CPU: Testing write buffer coherency: ok
[    0.004954] devtmpfs: initialized
[    0.010904] DaVinci: 8 gpio irqs
[    0.011952] NET: Registered protocol family 16
[    0.055646] dm365_rmd_cs_rdk_150_wl_init
[    0.055727] No entry for the specified index
[    0.058393] No entry for the specified index
[    0.180704] bio: create slab <bio-0> at 0
[    0.188050] SCSI subsystem initialized
[    0.194559] usbcore: registered new interface driver usbfs
[    0.196742] usbcore: registered new interface driver hub
[    0.198150] usbcore: registered new device driver usb
[    0.211639] Advanced Linux Sound Architecture Driver Version 1.0.23.
[    0.217368] Switching to clocksource timer0_1
[    0.344541] NET: Registered protocol family 2
[    0.345017] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.346340] TCP established hash table entries: 2048 (order: 2, 16384 bytes)
[    0.346548] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
[    0.346682] TCP: Hash tables configured (established 2048 bind 2048)
[    0.346731] TCP reno registered
[    0.346797] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.346892] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.347744] NET: Registered protocol family 1
[    0.460536] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.463539] JFFS2 version 2.2. (NAND) �© 2001-2006 Red Hat, Inc.
[    0.472438] JFS: nTxBlock = 348, nTxLock = 2788
[    0.474456] msgmni has been set to 87
[    0.481198] io scheduler noop registered (default)
[    0.483834] CSL: Module install successful, device major num = 253 
[    0.483904] CSL: Module version 0.10.00, built on Apr 10 2014 13:41:49 
[    0.483982] I2C: Module install successful, device major num = 252 
[    0.484045] DMA: Module install successful, device major num = 251 
[    0.484087] DRV: Module install successful
[    0.484127] DRV: Module built on Apr 10 2014 13:41:52 
[    0.484169] DRV: EDMACC.QUEPRI  = 00002777
[    0.484205] DRV: SYSTEM.MSTPRI0 = 00440011
[    0.484241] DRV: SYSTEM.MSTPRI1 = 00000444
[    0.484277] DRV: ISP.BCR        = 00000002
[    0.484312] DRV: SYSTEM.MISC    = 00000399
[    0.484347] EDMAK module: built on Apr  3 2014 at 14:59:26
[    0.484394]   Reference Linux version 2.6.37
[    0.484434]   File /home/still-image/OV7955_ver5_0/dvsdk_ipnctools/linuxutils_2_26_02_05/packages/ti/sdo/linuxutils/edma/src/modulc
[    0.487010] IRQK module: built on Apr  3 2014 at 14:59:25
[    0.487084]   Reference Linux version 2.6.37
[    0.487125]   File /home/still-image/OV7955_ver5_0/dvsdk_ipnctools/linuxutils_2_26_02_05/packages/ti/sdo/linuxutils/irq/src/modulec
[    0.489732] irqk initialized
[    0.489836] CMEMK module: built on Apr  3 2014 at 14:59:23
[    0.489895]   Reference Linux version 2.6.37
[    0.489935]   File /home/still-image/OV7955_ver5_0/dvsdk_ipnctools/linuxutils_2_26_02_05/packages/ti/sdo/linuxutils/cmem/src/modulc
[    0.497571] allocated heap buffer 0xc4000000 of size 0x5000000
[    0.497639] heap fallback enabled - will try heap if pool buffer is not available
[    0.497701] CMEM Range Overlaps Kernel Physical - allowing overlap
[    0.497756] CMEM phys_start (0x1000) overlaps kernel (0x80000000 -> 0x83000000)
[    0.497977] cmemk initialized
[    0.498058] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    0.611325] serial8250.0: ttyS0 at MMIO 0x1c20000 (irq = 40) is a 16550A
[    1.145402] console [ttyS0] enabled
[    1.221154] serial8250.0: ttyS1 at MMIO 0x1d06000 (irq = 41) is a 16550A
[    1.264688] brd: module loaded
[    1.280750] NAND device: Manufacturer ID: 0x2c, Chip ID: 0x38 (Micron )
[    1.289359] Bad block table not found for chip 0
[    1.295970] Bad block table not found for chip 0
[    1.300781] Scanning device for bad blocks
[    1.745079] Creating 7 MTD partitions on "davinci_nand.0":
[    1.750778] 0x000000000000-0x000000600000 : "bootloader"
[    1.763701] 0x000000600000-0x000000a00000 : "params"
[    1.776566] 0x000000a00000-0x000000e00000 : "kernel"
[    1.789394] 0x000000e00000-0x000008e00000 : "filesystem1"
[    1.803377] 0x000008e00000-0x000009600000 : "data1"
[    1.816445] 0x000009600000-0x000011600000 : "filesystem2"
[    1.829841] 0x000011600000-0x000040000000 : "data2"
[    1.844080] davinci_nand davinci_nand.0: controller rev. 2.3
[    1.854905] UBI: attaching mtd3 to ubi0
[    1.858803] UBI: physical eraseblock size:   262144 bytes (256 KiB)
[    1.865524] UBI: logical eraseblock size:    258048 bytes
[    1.871227] UBI: smallest flash I/O unit:    2048
[    1.875974] UBI: sub-page size:              512
[    1.880773] UBI: VID header offset:          2048 (aligned 2048)
[    1.886820] UBI: data offset:                4096
[    2.334423] UBI: max. sequence number:       227
[    2.354206] UBI warning: print_rsvd_warning: cannot reserve enough PEBs for bad PEB handling, reserved 4, need 5
[    2.370209] UBI: attached mtd3 to ubi0
[    2.374008] UBI: MTD device name:            "filesystem1"
[    2.379525] UBI: MTD device size:            128 MiB
[    2.384745] UBI: number of good PEBs:        512
[    2.389399] UBI: number of bad PEBs:         0
[    2.393953] UBI: number of corrupted PEBs:   0
[    2.398431] UBI: max. allowed volumes:       128
[    2.403166] UBI: wear-leveling threshold:    4096
[    2.407904] UBI: number of internal volumes: 1
[    2.412441] UBI: number of user volumes:     1
[    2.416916] UBI: available PEBs:             0
[    2.421451] UBI: total number of reserved PEBs: 512
[    2.426365] UBI: number of PEBs reserved for bad PEB handling: 4
[    2.432467] UBI: max/mean erase counter: 2/0
[    2.436767] UBI: image sequence number:  231503171
[    2.441692] UBI: background thread "ubi_bgt0d" started, PID 421
[    2.451258] spi_davinci spi_davinci.0: Controller at 0xfec66000
[    2.510172] davinci_mdio davinci_mdio.0: davinci mdio revision 1.4
[    2.516417] davinci_mdio davinci_mdio.0: detected phy mask fffffffd
[    2.525087] davinci_mdio.0: probed
[    2.528568] davinci_mdio davinci_mdio.0: phy[1]: device 0:01, driver unknown
[    2.536853] Initializing USB Mass Storage driver...
[    2.543208] usbcore: registered new interface driver usb-storage
[    2.549270] USB Mass Storage support registered.
[    2.557750] rtc_davinci rtc_davinci.0: rtc core: registered rtc_davinci as rtc0
The points to note:
1) The UBL does not load the RTC, since we get the "Reset RTC fail.." message
2) As evident, the loading is frozen at rtc's instance.
What am I missing here? What should be done?Please advise.