[Yaffs] Kernel panic - not syncing: No init found ARM linux …

Top Page
Attachments:
Message as email
+ (text/plain)
+ (text/html)
Delete this message
Reply to this message
Author: Gigin Jose
Date:  
To: yaffs@lists.aleph1.co.uk
Subject: [Yaffs] Kernel panic - not syncing: No init found ARM linux 3.6.6



----- Forwarded Message -----
From: Gigin Jose <>
To: Laurie van Someren <>
Sent: Wednesday, 30 January 2013 3:35 PM
Subject: Re: [Yaffs] Kernel panic - not syncing: No init found ARM linux 3.6.6


Dear Laurie, 

I am trying to put the YAFFS , with patch for linux 3.6.(http://www.gnu.org/licenses/gpl-2.0.html) into the linux 3.6.6 version. The compilation happens fine, but shows kernel panic error once put on board. 
The same YAFFS patch, with the same file system image works fine for linux 2.6.21 version. 


Here are the relevant serial port debug outputs from both the versions of linux

Linux 2.6.21
[    1.170000] S3C NAND Driver, (c) 2007 Samsung Electronics
[    1.175000] S3C NAND Driver is using hardware ECC.
[    1.175000] NAND device: Manufacturer ID: 0xec, Chip ID: 0xf1 (Samsung NAND 128MiB 3,3V 8-bit)
[    1.180000] Creating 3 MTD partitions on "NAND 128MiB 3,3V 8-bit":
[    1.185000] 0x00000000-0x00040000 : "Bootloader"
[    1.195000] 0x00040000-0x00400000 : "Kernel"
[    1.200000] 0x00400000-0x08000000 : "File System"
[    1.230000] s3c2410-ohci s3c2410-ohci: S3C24XX OHCI

[root@user]#




Linux 3.6.6
[    0.425000] S3C24XX NAND Driver, (c) 2004 Simtec Electronics

[    0.425000] s3c24xx-nand s3c2412-nand: Tacls=3, 22ns Twrph0=8 60ns, Twrph1=3 22ns
[    0.430000] s3c24xx-nand s3c2412-nand: System booted from NAND
[    0.435000] s3c24xx-nand s3c2412-nand: NAND hardware ECC
[    0.440000] NAND device: Manufacturer ID: 0xec, Chip ID: 0xf1 (Samsung NAND 128MiB 3,3V 8-bit), page size: 2048, OOB size: 64
[    0.445000] Scanning device for bad blocks
[    0.450000] Bad eraseblock 0 at 0x000000000000
[    0.455000] Bad eraseblock 1 at 0x000000020000
.....

 0.670000] Bad eraseblock 441 at 0x000003720000
[    0.710000] Creating... 3 MTD partitions on "NAND":
[    0.710000] 0x000000000000-0x000000040000 : "Bootloader"
[    0.720000] 0x000000040000-0x000000400000 : "Kernel"
[    0.725000] 0x000000400000-0x000008000000 : "File System"
[    0.730000] mousedev: PS/2 mouse device common for all mice
[    0.735000] TCP: cubic registered
[    0.740000] yaffs: dev is 32505858 name is "mtdblock2" rw
[    0.740000] yaffs: passed flags ""
[    3.645000] VFS: Mounted root (yaffs2 filesystem) on device 31:2.
[    3.650000] Freeing init memory: 84K
[    3.650000] Failed to execute /linuxrc.  Attempting defaults...
[    3.670000] Kernel panic - not syncing: No init found.  Try passing init= option to kernel. See Linux Documentation/init.txt for guidance.
[    3.670000] [<c001493c>] (unwind_backtrace+0x0/0xf8) from [<c001dd30>] (panic+0x80/0x210)
[    3.670000] [<c001dd30>] (panic+0x80/0x210) from [<c00088f0>] (init_post+0xa0/0xc8)
[    3.670000] [<c00088f0>] (init_post+0xa0/0xc8) from [<c0270664>] (kernel_init+0x16c/0x1c8)

Both the linux versions shows same partitions. How do I debug this ? 

Thank You

From: Laurie van Someren <>
To: Gigin Jose <>
Sent: Wednesday, 30 January 2013 3:15 PM
Subject: Re: [Yaffs] Kernel panic - not syncing: No init found ARM linux 3.6.6


On Wed, 2013-01-30 at 17:26 +0800, Gigin Jose wrote:
Dear Laurie, 

>
>

Thanks for the reply. 
The same YAFFS patch works fine on an older version of kernel. 
In that case it seems even more important to tell the List exactly which versions of the kernel you are talking about,
as well as exactly which version of Yaffs.
If you imagine a List reader who has some relevant experience he might be willing to contribute to the List for you, is he more likely to do so if you DO describe the components you are using, or if you do NOT describe them?
LvS


>


>________________________________
>
>From:Laurie van Someren <>
>To:Gigin Jose <>
>Sent:Wednesday, 30 January 2013 2:27 PM
>Subject:Re: [Yaffs] Kernel panic - not syncing: No init found ARM linux 3.6.6
>
>


>

On Wed, 2013-01-30 at 13:41 +0800, Gigin Jose wrote:
>
>Hi, 
>>
>>
>>I am working on ARM Linux 3.6.6 version. YAFFS file system is downloaded from the following link:
>>http://www.gnu.org/licenses/gpl-2.0.html
>>
>>

Mr Jose,
>That is not, of course, the source of your Yaffs image.
>I am an administrator and do not know the cause of your difficulty, but you are more likely to get a useful answer from the List if you do give an exact reference to the version you are using. I believe problems like this are often caused in the  mtd  part of the associated non-Yaffs code.
>Thanks,
>LvS
>
>
>I am getting a kernel panic once the filesystem is burnt on the ARM platform. 
>>
>>
>>[    0.535000] yaffs: dev is 32505858 name is "mtdblock2" rw
>>[    0.535000] yaffs: passed flags ""
>>[    0.635000] VFS: Mounted root (yaffs2 filesystem) on device 31:2.
>>[    0.635000] Freeing init memory: 104K
>>[    0.640000] Failed to execute /linuxrc.  Attempting defaults...
>>[    0.645000] Kernel panic - not syncing: No init found.  Try passing init= opt
>>ion to kernel. See Linux Documentation/init.txt for guidance.
>>[    0.645000] [<c000eb7c>] (unwind_backtrace+0x0/0xf8) from [<c0018530>] (panic
>>+0x80/0x210)
>>[    0.645000] [<c0018530>] (panic+0x80/0x210) from [<c0008948>] (init_post+0xa0
>>/0xc8)
>>[    0.645000] [<c0008948>] (init_post+0xa0/0xc8) from [<c0260664>] (kernel_init
>>+0x16c/0x1c8)
>>
>>
>>
>>
>>The ARM device uses 128MB nand flash. 
>>
>>
>>The below states the relevant parts of .config file:
>>CONFIG_AEABI=y
>>
>>CONFIG_OABI_COMPAT=y
>>
>>CONFIG_YAFFS_FS=y
>>CONFIG_YAFFS_YAFFS1=y
>>CONFIG_YAFFS_YAFFS2=y
>>CONFIG_YAFFS_AUTO_YAFFS2=y
>>CONFIG_YAFFS_XATTR=y
>>
>>
>>The tool (mkyaffs2image) used is obtained from yaffs source tree compilation. 
>>
>>
>>
>>Please help with a proper solution for the above. 
>>
>>
>>Thank You
>>
>>
>>
>>
>
>LvS
>
>
>
>
>

--
Laurie van Someren, Aleph One Ltd, The Old Courthouse, Bottisham,
CAMBRIDGE  CB25 9BA  UK  www.aleph1.co.uk  & www.yaffs.net