<font face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size="2"> Hi , <br><br>Thanks for the continuous support. <br>As you have suggested we have tried in main kernel with default configuration. <br><br><font size="4"><span style="font-weight: bold;">Without any change its stopping at <br><br></span></font> *************************************<br> * Card Information *<br> *************************************<br> Card Type : SD<br> Manufacturer ID : 28<br> OEM/Application ID : S<br> Product name : SC <br> Product revision : 1.0<br> Product serial number : 141073e<br> Size of Card : 952 MBytes <br> ################<br> Read 2160640 bytes from file /zImage#<br> Dat is a3c0d5e4#############<br> Read 1773568 bytes from file /initrd.gz<br> Launching Linux ...<br> Copying 20f04c bytes of zImage from a1000000 to a0008000<br><br> Launch LinuxUncompressing Linux..............................................................................................................................<br><6>Initializing cgroup subsys cpu<br><5>Linux version 2.6.27 (root@localhost.localdomain) (gcc version 4.1.1) #11 Tue Nov 17 22:38:42 IST 2009<br>CPU: ARM926EJ-S [41069264] revision 4 (ARMv5TEJ), cr=00053177<br>Machine: Freescale i.MX27ADS<br>Prabha COMMAND LINE cmdline_p is root=/dev/ram rw console=ttymxc0,115200<br>and from is root=/dev/ram rw mem=64M console=ttymxc0,115200<br>Memory policy: ECC disabled, Data cache writeback<br><7>On node 0 totalpages: 16384<br><7>free_area_init_node: node 0, pgdat c044b41c, node_mem_map c049f000<br><7> DMA zone: 16256 pages, LIFO batch:3<br>CPU0: D VIVT write-back cache<br>CPU0: I cache: 16384 bytes, associativity 4, 32 byte lines, 128 sets<br>CPU0: D cache: 16384 bytes, associativity 4, 32 byte lines, 128 sets<br>Built 1 zonelists in Zone order, mobility grouping on. Total pages: 16256<br><5>Kernel command line: root=/dev/ram rw mem=64M console=ttymxc0,115200<br><6>MXC GPIO hardware<br><6>MXC IRQ initialized<br>PID hash table entries: 256 (order: 8, 1024 bytes)<br><1>Unhandled fault: external abort on non-linefetch (0x008) at 0xf4300000<br>Internal error: : 8 [#1]<br>Modules linked in:<br>CPU: 0 Not tainted (2.6.27 #11)<br>PC is at mx27ads_timer_init+0x14/0x44<br>LR is at time_init+0x1c/0x24<br>pc : [<c0011390>] lr : [<c000f8ac>] psr: 800000d3<br>sp : c0429fa8 ip : c0429fb8 fp : c0429fb4<br>r10: a0021b58 r9 : 41069264 r8 : a0021b8c<br>r7 : c042ce5c r6 : c0023f14 r5 : c044bcf0 r4 : c044bce4<br>r3 : f4300000 r2 : 00000000 r1 : 00000000 r0 : 019bfcc0<br>Flags: Nzcv IRQs off FIQs off Mode SVC_32 ISA ARM Segment kernel<br>Control: 0005317f Table: a0004000 DAC: 00000017<br>Process swapper (pid: 0, stack limit = 0xc0428268)<br>Stack: (0xc0429fa8 to 0xc042a000)<br>9fa0: c0429fc4 c0429fb8 c000f8ac c001138c c0429ff4 c0429fc8 <br>9fc0: c0008ae8 c000f8a0 c000853c 00000000 00000000 c0023f14 00000000 00053175 <br>9fe0: c044c60c c0024318 00000000 c0429ff8 a0008034 c0008970 00000000 00000000 <br>Backtrace: <br>[<c001137c>] (mx27ads_timer_init+0x0/0x44) from [<c000f8ac>] (time_init+0x1c/0x24)<br>[<c000f890>] (time_init+0x0/0x24) from [<c0008ae8>] (start_kernel+0x188/0x30c)<br>[<c0008960>] (start_kernel+0x0/0x30c) from [<a0008034>] (0xa0008034)<br> r6:c0024318 r5:c044c60c r4:00053175<br>Code: e92dd800 e24cb004 e59f3020 e59f0020 (e1d330b0) <br><4>---[ end trace 1b75b31a2719ed1c ]---<br><0>Kernel panic - not syncing: Attempted to kill the idle task!<br><br><br><br><br><font size="4"><span style="font-weight: bold;">So we did a change at clock </span></font><br><br>arch/arm/mach-mx2/mx27ads.c : function : static void __init mx27ads_timer_init(void) : <br><br>For our board the fref = 26000000. <br><br>But it is taking fref = 27000000<br>so we have commented the following line. <br>/*<br> if ((__raw_readw(PBC_VERSION_REG) & CKIH_27MHZ_BIT_SET) == 0)<br> fref = 27000000;<br>*/<br>and made fref = 26000000<br><br>and the output log as follows....<br><br><br><span style="font-weight: bold;">LOGS :</span><br><br><br> BOARD INFO <br>------------------------------------------------<br> Area Start address End address Size<br>------------------------------------------------<br> SDRAM 0xa000_0000 0xa3ff_ffff 64 MB<br> Data section 0xa3e0_0000 0xa3ef_ffff 1 MB<br> UsrStack 0xa3f0_0000 0xa3f0_ffff 64 KB<br> IRQStack 0xa3f1_0000 0xa3f1_ffff 64 KB<br> FIQStack 0xa3f2_0000 0xa3f2_ffff 64 KB<br> UndefStack 0xa3f3_0000 0xa3f3_ffff 64 KB<br> AbortStack 0xa3f4_0000 0xa3f4_ffff 64 KB<br> SVCStack 0xa3f5_0000 0xa3f5_ffff 64 KB<br> SYSStack 0xa3f6_0000 0xa3f6_ffff 64 KB<br> Flash 0xc000_0000 0xc1ff_ffff 32 MB<br> Bootloader 0xc000_0000 0xc00f_ffff 1 MB<br> Kernel 0xc010_0000 0xc02f_ffff 2 MB<br> Initrd 0xc030_0000 0xc04f_ffff 2 MB<br> Filesystems 0xc050_0000 0xc1ff_ffff 27 MB<br>------------------------------------------------<br>Going to Bring up GUI Menu. Press any key with in 5 sec for diagnostics<br><br> Switching on LCD <br> Switched on LCD<br> Drawing Screen 1<br> Drawn Screen<br> Going to next Screen<br> Drawing Screen 2<br> Drawn Screen<br> valid value:<br> adc value: ( 442 , 446 )<br> Screen value: ( 142 , 188 )<br> Selected menu id is = A<br> Going to next Screen<br> Drawing Screen 13<br> Drawn Screen<br> valid value:<br> adc value: ( 406 , 279 )<br> Screen value: ( 151 , 245 )<br> Selected menu id is = B<br> Going to next Screen<br> Drawing Screen 3<br> Drawn Screen<br> valid value:<br> adc value: ( 415 , 628 )<br> Screen value: ( 149 , 125 )<br> Selected menu id is = A<br> Going to next Screen<br> Drawing Screen 5<br> Drawn Screen<br> Launch linux with lcd menu function<br><br> SD/MMC Card Detected<br> SD Card Initialised #<br> Dat is a3c0d5e4<br><br> *************************************<br> * Card Information *<br> *************************************<br> Card Type : SD<br> Manufacturer ID : 28<br> OEM/Application ID : S<br> Product name : SC <br> Product revision : 1.0<br> Product serial number : 141073e<br> Size of Card : 952 MBytes <br> ################<br> Read 2158592 bytes from file /zImage#<br> Dat is a3c0d5e4#############<br> Read 1773568 bytes from file /initrd.gz<br> Launching Linux ...<br> Copying 20efac bytes of zImage from a1000000 to a0008000<br><br> Launch LinuxUncompressing Linux..............................................................................................................................<br>Initializing cgroup subsys cpu<br>Linux version 2.6.27 (root@localhost.localdomain) (gcc version 4.1.1) #9 Tue Nov 17 21:49:00 IST 2009<br>CPU: ARM926EJ-S [41069264] revision 4 (ARMv5TEJ), cr=00053177<br>Machine: Freescale i.MX27ADS<br>Prabha COMMAND LINE cmdline_p is root=/dev/ram rw console=ttymxc0,115200<br>and from is root=/dev/ram rw mem=64M console=ttymxc0,115200<br>Memory policy: ECC disabled, Data cache writeback<br>CPU0: D VIVT write-back cache<br>CPU0: I cache: 16384 bytes, associativity 4, 32 byte lines, 128 sets<br>CPU0: D cache: 16384 bytes, associativity 4, 32 byte lines, 128 sets<br>Built 1 zonelists in Zone order, mobility grouping on. Total pages: 16256<br>Kernel command line: root=/dev/ram rw mem=64M console=ttymxc0,115200<br>MXC GPIO hardware<br>MXC IRQ initialized<br>PID hash table entries: 256 (order: 8, 1024 bytes)<br>Console: colour dummy device 80x30<br>Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)<br>Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)<br>Memory: 64MB = 64MB total<br>Memory: 58384KB available (4092K code, 469K data, 128K init)<br>SLUB: Genslabs=12, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1<br>Calibrating delay loop... 132.71 BogoMIPS (lpj=663552)<br>Security Framework initialized<br>SELinux: Initializing.<br>Mount-cache hash table entries: 512<br>Initializing cgroup subsys ns<br>Initializing cgroup subsys cpuacct<br>CPU: Testing write buffer coherency: ok<br>net_namespace: 616 bytes<br>NET: Registered protocol family 16<br>SCSI subsystem initialized<br>usbcore: registered new interface driver usbfs<br>usbcore: registered new interface driver hub<br>usbcore: registered new device driver usb<br>NetLabel: Initializing<br>NetLabel: domain hash size = 128<br>NetLabel: protocols = UNLABELED CIPSOv4<br>NetLabel: unlabeled traffic allowed by default<br>NET: Registered protocol family 2<br>IP route cache hash table entries: 1024 (order: 0, 4096 bytes)<br>TCP established hash table entries: 2048 (order: 2, 16384 bytes)<br>TCP bind hash table entries: 2048 (order: 1, 8192 bytes)<br>TCP: Hash tables configured (established 2048 bind 2048)<br>TCP reno registered<br>NET: Registered protocol family 1<br>checking if image is initramfs...it isn't (no cpio magic); looks like an initrd<br>Freeing initrd memory: 1792K<br>NetWinder Floating Point Emulator V0.97 (extended precision)<br>audit: initializing netlink socket (disabled)<br>type=2000 audit(1.480:1): initialized<br>VFS: Disk quotas dquot_6.5.1<br>Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)<br>Installing knfsd (copyright (C) 1996 okir@monad.swb.de).<br>JFFS2 version 2.2. (NAND) (SUMMARY) �© 2001-2006 Red Hat, Inc.<br>fuse init (API version 7.9)<br>JFS: nTxBlock = 470, nTxLock = 3765<br>msgmni has been set to 117<br>Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253)<br>io scheduler noop registered<br>io scheduler anticipatory registered<br>io scheduler deadline registered<br>io scheduler cfq registered (default)<br>Serial: IMX driver<br>imx-uart.0: ttymxc0 at MMIO 0x1000a000 (irq = 20) is a IMX<br>console [ttymxc0] enabled<br>imx-uart.1: ttymxc1 at MMIO 0x1000b000 (irq = 19) is a IMX<br>imx-uart.2: ttymxc2 at MMIO 0x1000c000 (irq = 18) is a IMX<br>imx-uart.3: ttymxc3 at MMIO 0x1000d000 (irq = 17) is a IMX<br>imx-uart.4: ttymxc4 at MMIO 0x1001b000 (irq = 49) is a IMX<br>imx-uart.5: ttymxc5 at MMIO 0x1001c000 (irq = 48) is a IMX<br>brd: module loaded<br>loop: module loaded<br>nbd: registered device at major 43<br>SLIP: version 0.8.4-NET3.019-NEWTTY (dynamic channels, max=256).<br>CSLIP: code copyright 1989 Regents of the University of California.<br>SLIP linefill/keepalive option.<br>console [netcon0] enabled<br>netconsole: network logging started<br>mice: PS/2 mouse device common for all mice<br>usbcore: registered new interface driver hiddev<br>usbcore: registered new interface driver usbhid<br>usbhid: v2.6:USB HID core driver<br>TCP cubic registered<br>Initializing XFRM netlink socket<br>NET: Registered protocol family 17<br>NET: Registered protocol family 15<br>RPC: Registered udp transport module.<br>RPC: Registered tcp transport module.<br>registered taskstats version 1<br>RAMDISK: Compressed image found at block 0<br>EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended<br>VFS: Mounted root (ext2 filesystem).<br>Freeing init memory: 128K<br><br>After this some junk characters start coming .... <br><br>Please help us to go forward.....<br><br>Thanks and regards , <br>Vadivelan M<br><br><font color="#990099">-----Daniel Mack <daniel@caiaq.de> wrote: -----</daniel@caiaq.de></font><div><blockquote style="border-left: 2px solid black; padding-right: 0px; padding-left: 5px; margin-left: 5px; margin-right: 0px;">To: Vadivelan M <vadivelan.m@tcs.com><br>From: Daniel Mack <daniel@caiaq.de><br>Date: 11/17/2009 02:47PM<br>cc: linux-arm-kernel@lists.infradead.org, linux-arm@lists.infradead.org<br>Subject: Re: imx27 - hanging at freeing init memory -- getting some junk characters here after on console ..<br><br><pre>On Tue, Nov 17, 2009 at 01:57:11PM +0530, Vadivelan M wrote:<br>> Did you measure the junk characters or the 'working' serial output. The<br>> question is whether the baud rate really changes.<br>> -- Yes. we have measured the baud rate when the junk characters starts coming.<br><br>Then the only explanation I have is that something seriously crashes<br>your userspace binaries and makes the kernel go wild.<br><br>> Please send in patches of your modifications so people here can have a<br>> look to what you did.<br>> -- Please find the patches [please find the attachment . ]<br><br>I don't get what you're doing and why. Why do you patch around in<br>vmalloc.h? What reason is there to modify the clock framework for that<br>platform? And Those patches are obvisouly agains version 2.6.19.2 and<br>not mainline? Without any word of elaboration, I'm afraid you're on your<br>own.<br><br>My suggestion is to take the MX27ADS platform which your kernel config<br>is made for and try the current mainline kernel on that hardware.<br>Without any of your patches. Then find out the difference between that<br>setup and your own board.<br><br>Albeit I don't have such hardware, but I'm quite confident the reference<br>platform works well. Maybe someone of the MX2 people can acknowledge that.<br><br>Daniel<br><br></pre>
</blockquote></div><div></div></font><pre>=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain
confidential or privileged information. If you are
not the intended recipient, any dissemination, use,
review, distribution, printing or copying of the
information contained in this e-mail message
and/or attachments to it are strictly prohibited. If
you have received this communication in error,
please notify us by reply e-mail or telephone and
immediately and permanently delete the message
and any attachments. Thank you
</pre>