Reg Linux-2.6.27 hang

Marek Vasut marek.vasut at gmail.com
Sat Dec 5 10:13:27 EST 2009


Dne Út 10. listopadu 2009 12:26:34 Prabha J napsal(a):
> <font face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif"
>  size="2"> Hi,<br>i tried enabling the EABI option in the kernel
>  configuaration. Then also its hanging in the same place.<br>We are using
>  /opt/freescale/usr/local/gcc-4.1.1-glibc-2.4-nptl-sf-1/arm-926ejs-linux/bi
> n/arm-926ejs-linux-&nbsp; toolchain.<br><br>Note: We have Linux-2.6.19.2
>  kernel working with or without enabling EABI option in the Kernel. If we
>  use working kernels rootfilesystem with our zImage it is <br>hanging at
>  Freeing init memory.<br><br>We also checked that Baudrate is
>  correct(115200n8) and serial console is configured correctly.<br>We&nbsp;
>  are blocked here for almost 2 weeks. Are we missing any
>  configurations????<br>Please help us in this regard.<br><br>Thanks and
>  Regards,<br>Prabha<br><br>We built our own filesystem with same toolchain
>  as above. With this we are getting error as follows:<br><br><br><font
>  face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif"
>  size="2">*************************************
>  <br>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Card
>  Information&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; *
>  <br>&nbsp;*************************************
> <br>&nbsp;Card
>  Type&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs
> p; : SD <br>&nbsp;Manufacturer ID&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : 28
>  <br>&nbsp;OEM/Application ID&nbsp;&nbsp;&nbsp; : S
> <br>&nbsp;Product
>  name&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : SC
>  <br>&nbsp;Product revision&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : 1.0
> <br>&nbsp;Product serial number : 141073e
> <br>&nbsp;Size of
>  Card&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : 952 MBytes
>  <br>&nbsp;############
> <br>&nbsp;Read 1544192 bytes from file /zImage#
> <br>&nbsp;Dat is a3c0d5e4#######
> <br>&nbsp;Read 937984 bytes from file /initrd.gz
> <br>&nbsp;Launching Linux ...
> <br>&nbsp;Copying 178fe0 bytes of zImage from a1000000 to a0008000
> <br><br>&nbsp;Launch LinuxUncompressing
> Linux......................................................................
> ....................... done, booting the kernel.
> <br>Linux version 2.6.28-arm2-00001-gace230c-dirty
> (root at localhost.localdomain) (gcc version 4.4.1 (Sourcery G++ Lite
> 2009q3-68) ) #91 PREEMPT Wed Nov 4 22:50:459
> <br>CPU: ARM926EJ-S [41069264] revision 4 (ARMv5TEJ), cr=00053177
> <br>CPU: VIVT data cache, VIVT instruction cache
> <br>Machine: Freescale i.MX27ADS
> <br>Memory policy: ECC disabled, Data cache writeback
> <br>Built 1 zonelists in Zone order, mobility grouping on.&nbsp; 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><br>&nbsp;Clock input source is 26000000
> <br><br>&nbsp;After for loop
> <br>&nbsp;test1
> <br>&nbsp;CCM_PCCR1 = fe5aef88
> <br>&nbsp;b4 spll_clk.disable&lt;6&gt;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: 60140KB available (2672K code, 161K data, 100K init)
> <br>Calibrating delay loop... 132.71 BogoMIPS (lpj=663552)
> <br>Mount-cache hash table entries: 512
> <br>CPU: Testing write buffer coherency: ok
> <br>kernel thread started : M.V&lt;6&gt;net_namespace: 288 bytes
> <br>NET: Registered protocol family 16
> <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>JFFS2 version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
> <br>JFS: nTxBlock = 484, nTxLock = 3875
> <br>msgmni has been set to 121
> <br>io scheduler noop 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>physmap platform flash device: 02000000 at c0000000
> <br>physmap-flash.0: Found 1 x16 devices at 0x0 in 16-bit bank
> <br>Support for command set 0002 not present
> <br>gen_probe: No supported Vendor Command Set found
> <br>physmap-flash physmap-flash.0: map_probe failed
> <br>TCP cubic registered
> <br>NET: Registered protocol family 17
> <br>RPC: Registered udp transport module.
> <br>RPC: Registered tcp transport module.
> <br>RAMDISK: Compressed image found at block 0
> <br>RAMDISK: incomplete write (-28 != 32768) 4194304
> <br>VFS: Mounted root (ext2 filesystem).
> <br>Freeing init memory: 100K
> <br>attempt to access beyond end of device
> <br>ram0: rw=0, want=16530, limit=8192
> <br>EXT2-fs error (device ram0): ext2_get_inode: unable to read inode block
>  - inode=2082, block=8264 <br>Warning: unable to open an initial console.
> <br>after call to sys_dup second time&lt;6&gt;attempt to access beyond end
>  of device <br>ram0: rw=0, want=10244, limit=8192
> <br>attempt to access beyond end of device
> <br>ram0: rw=0, want=10244, limit=8192
> <br>/sbin/init exit code: -2
> <br>after call to /sbin/init&lt;6&gt;attempt to access beyond end of device
> <br>ram0: rw=0, want=16542, limit=8192
> <br>EXT2-fs error (device ram0): ext2_get_inode: unable to read inode block
>  - inode=2129, block=8270 <br>/etc/init exit code: -5
> <br>after call to /etc/init&lt;6&gt;attempt to access beyond end of device
> <br>ram0: rw=0, want=16522, limit=8192
> <br>EXT2-fs error (device ram0): ext2_get_inode: unable to read inode block
>  - inode=2049, block=8260 <br>/bin/init exit code: -5
> <br>after call to /bin/init&lt;6&gt;attempt to access beyond end of device
> <br>ram0: rw=0, want=16522, limit=8192
> <br>EXT2-fs error (device ram0): ext2_get_inode: unable to read inode block
>  - inode=2049, block=8260 <br>/bin/sh exit code: -5
> <br>after call to /sh/init&lt;0&gt;Kernel panic - not syncing: No init
>  found.&nbsp; Try passing init= option to kernel.
>  </font><br><br>____________<br><br><font
>  color="#990099">-----linux-arm-bounces at lists.infradead.org wrote:
>  -----</font><div><blockquote style="border-left: 2px solid black;
>  padding-right: 0px; padding-left: 5px; margin-left: 5px; margin-right:
>  0px;">To: Prabha J &lt;prabha.j at tcs.com&gt;<br>From: Wan ZongShun
>  <mcuos.com at gmail.com><br>Sent by:
>  linux-arm-bounces at lists.infradead.org<br>Date: 11/05/2009 08:07PM<br>cc:
>  linux-arm at lists.infradead.org<br>Subject: Re: Reg Linux-2.6.27
>  hang<br><br><pre>Hi Prabha,<br><br>Please pay attention to the EABI
>  configure option.<br><br>2009/11/2 Prabha J
>  &lt;prabha.j at tcs.com&gt;:<br>&gt;<br>&gt; Hi ,<br>&gt;<br>&gt; we are
>  porting linux 2.6.27 on imx27 based platform. we did all the
>  platform<br>&gt; dependent changes .<br>&gt;<br>&gt; With this linux is
>  booting till a point and stopping there ..<br>&gt;<br>&gt; stopping
>  at<br>&gt;<br>&gt; (VFS) Mounting file system<br>&gt; Freeing init
>  memory<br>&gt;<br>&gt; While debugging through printk we could go
>  till<br>&gt;<br>&gt; rest_init()&nbsp; -&gt; kernel _init() -&gt;
>  init_post() ---&gt;<br>&gt;<br>&gt; Going for opening initial console .
>  .... using sys_open() .... After that no<br>&gt; prints
>  .......<br>&gt;<br>&gt;<br>&gt; Can any body help us to go forward
>  ?<br>&gt;<br>&gt; Thanks in advance ,<br>&gt;
>  Prabha<br>&gt;<br>&gt;<br>&gt; Please see the following logs
>  ..<br>&gt;<br>&gt; Launch LinuxUncompressing<br>&gt;
>  Linux.....................................................................
> .<br>&gt; done, booting the kernel.<br>&gt; Linux version 2.6.28-arm2
>  (root at localhost.localdomain) (gcc version 4.1.1)<br>&gt; #75 Wed Oct 28
>  13:12:53 IST 2009<br>&gt; CPU: ARM926EJ-S [41069264] revision 4
>  (ARMv5TEJ), cr=00053177<br>&gt; CPU: VIVT data cache, VIVT instruction
>  cache<br>&gt; Machine: Freescale i.MX27ADS<br>&gt; Memory policy: ECC
>  disabled, Data cache writeback<br>&gt; Built 1 zonelists in Zone order,
>  mobility grouping on.&nbsp; Total pages: 16256<br>&gt; Kernel command
>  line: root=/dev/ram rw mem=64M console=ttymxc0,115200<br>&gt; MXC GPIO
>  hardware<br>&gt; MXC IRQ initialized<br>&gt; PID hash table entries: 256
>  (order: 8, 1024 bytes)<br>&gt;<br>&gt; &nbsp;Clock input source is
>  26000000<br>&gt;<br>&gt; &nbsp;After for loop<br>&gt; &nbsp;test1<br>&gt;
>  &nbsp;CCM_PCCR1 = fe5aef88<br>&gt; &nbsp;b4 spll_clk.disableConsole:
>  colour dummy device 80x30<br>&gt; Dentry cache hash table entries: 8192
>  (order: 3, 32768 bytes)<br>&gt; Inode-cache hash table entries: 4096
>  (order: 2, 16384 bytes)<br>&gt; Memory: 64MB = 64MB total<br>&gt; Memory:
>  60780KB available (1956K code, 252K data, 92K init)<br>&gt; Calibrating
>  delay loop... 132.71 BogoMIPS (lpj=663552)<br>&gt; Security Framework
>  initialized<br>&gt; Mount-cache hash table entries: 512<br>&gt; CPU:
>  Testing write buffer coherency: ok<br>&gt; kernel thread started :
>  M.V&lt;5&gt;SCSI subsystem initialized<br>&gt; checking if image is
>  initramfs...it isn't (no cpio magic); looks like an<br>&gt; initrd<br>&gt;
>  do_sys_open entry&lt;6&gt;Freeing initrd memory: 1792K<br>&gt; NetWinder
>  Floating Point Emulator V0.97 (extended precision)<br>&gt; VFS: Disk
>  quotas dquot_6.5.1<br>&gt; Dquot-cache hash table entries: 1024 (order 0,
>  4096 bytes)<br>&gt; JFS: nTxBlock = 489, nTxLock = 3914<br>&gt; msgmni has
>  been set to 122<br>&gt; io scheduler noop registered<br>&gt; io scheduler
>  anticipatory registered<br>&gt; io scheduler deadline registered<br>&gt;
>  io scheduler cfq registered (default)<br>&gt; Serial: IMX driver<br>&gt;
>  imx-uart.0: ttymxc0 at MMIO 0x1000a000 (irq = 20) is a IMX<br>&gt; console
>  [ttymxc0] enabled<br>&gt; imx-uart.1: ttymxc1 at MMIO 0x1000b000 (irq =
>  19) is a IMX<br>&gt; imx-uart.2: ttymxc2 at MMIO 0x1000c000 (irq = 18) is
>  a IMX<br>&gt; imx-uart.3: ttymxc3 at MMIO 0x1000d000 (irq = 17) is a
>  IMX<br>&gt; imx-uart.4: ttymxc4 at MMIO 0x1001b000 (irq = 49) is a
>  IMX<br>&gt; imx-uart.5: ttymxc5 at MMIO 0x1001c000 (irq = 48) is a
>  IMX<br>&gt; brd: module loaded<br>&gt; loop: module loaded<br>&gt; st:
>  Version 20080504, fixed bufsize 32768, s/g segs 256<br>&gt; Driver 'st'
>  needs updating - please use bus_type methods<br>&gt; Driver 'sd' needs
>  updating - please use bus_type methods<br>&gt; drivers/rtc/hctosys.c:
>  unable to open rtc device (rtc0)<br>&gt; do_sys_open entrydo_sys_open
>  entry&lt;5&gt;RAMDISK: Compressed image found at<br>&gt; block 0<br>&gt;
>  EXT2-fs warning: mounting unchecked fs, running e2fsck is
>  recommended<br>&gt; VFS: Mounted root (ext2 filesystem).<br>&gt; Freeing
>  init memory: 92K<br>&gt;<br>&gt;<br>&gt; After this some junk characters
>  are coming like ....<br>&gt;<br>&gt;
>  &#65533;&#65533;&#1421;&#65533;&amp;#531488;0^&#1949;&#65533;&#65533;r&#65
> 533;'&#65533;&#65533;&#65533;&#970;&#65533;&#65533;r:&#65533;&#65533;&#6553
> 3;&#65533;&#65533;&#65533;&#65533;:&#65533;&#65533;M&#65533;
>  &#65533;&#65533;D&#65533;d&#65533;z ?&#65533;&#65533;<br>&gt;
>  &#932;&#65533;&#65533;8V&#65533;`&#65533;&#1058;&#65533;&#65533;&#65533;V&
> #51082;]nn]^&#65400;&#65533;m8m&#65533;&#65533;^&#65533; &#65533;m&#65533;
>  E&#65533;&#65533;N&#65533;&#65533;8&#65533;&#65533;6&#65533;&#65533;&#6553
> 3;:]&#65533;&#65533;&#65533;<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt;</pre>
>  </mcuos.com at gmail.com></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>
> 
I'm not reading this sh*t, fix your mailer !!!



More information about the linux-arm mailing list