LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-10-2007, 03:15 PM   #1
astonzorro
LQ Newbie
 
Registered: Dec 2007
Posts: 3

Rep: Reputation: 0
Why cramfs can mount, but kernel show "No init found"?


Hello,
everybody, I maked a new linux-kernel for my s3c2440, kernel is well, but I don't what error in my this step. I use cramfs for rootFS, it can mount (I think), because I see in Debug-Info "VFS: Mounted root (cramfs filesystem) readonly", and go on to show "No init found".
what can I do in this error, Please help me!



///////////////////////////////////////////////////////////
Linux version 2.6.23.9 (root@zorro) (gcc version 3.4.1) #12 Tue Dec 11 01:32:51 CST 2007
CPU: ARM920T [41129200] revision 0 (ARMv4T), cr=c0007177
Machine: SMDK2440
ATAG_INITRD is deprecated; please update your bootloader.
Memory policy: ECC disabled, Data cache writeback
CPU S3C2440A (id 0x32440001)
S3C244X: core 399.651 MHz, memory 133.217 MHz, peripheral 66.608 MHz
S3C24XX Clocks, (c) 2004 Simtec Electronics
CLOCK: Slow mode (2.116 MHz), fast, MPLL on, UPLL on
CPU0: D VIVT write-back cache
CPU0: I cache: 16384 bytes, associativity 64, 32 byte lines, 8 sets
CPU0: D cache: 16384 bytes, associativity 64, 32 byte lines, 8 sets
Built 1 zonelists in Zone order. Total pages: 16256
Kernel command line: root=/dev/mtdblock2 console=ttySAC0,115200 init=/linuxrc
irq: clearing subpending status 00000012
PID hash table entries: 256 (order: 8, 1024 bytes)
timer tcon=00000000, tcnt d8d2, tcfg 00000200,00000000, usec 0000170f
Console: colour dummy device 80x30
console [ttySAC0] enabled
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory: 64MB = 64MB total
Memory: 61744KB available (2596K code, 393K data, 116K init)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
NET: Registered protocol family 16
:::::::::::smdk2440 is coming............
S3C2410 Power Management, (c) 2004 Simtec Electronics
S3C2440: Initialising architecture
S3C2440: IRQ Support
S3C2440: Clock Support, DVS off
S3C24XX DMA Driver, (c) 2003-2004,2006 Simtec Electronics
DMA channel 0 at c4800000, irq 33
DMA channel 1 at c4800040, irq 34
DMA channel 2 at c4800080, irq 35
DMA channel 3 at c48000c0, irq 36
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 2048 (order: 2, 16384 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
TCP reno registered
NetWinder Floating Point Emulator V0.97 (double precision)
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
s3c2440-uart.0: s3c2410_serial0 at MMIO 0x50000000 (irq = 70) is a S3C2440
s3c2440-uart.1: s3c2410_serial1 at MMIO 0x50004000 (irq = 73) is a S3C2440
s3c2440-uart.2: s3c2410_serial2 at MMIO 0x50008000 (irq = 76) is a S3C2440
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
loop: module loaded
dm9000 Ethernet Driver
S3C24XX NAND Driver, (c) 2004 Simtec Electronics
s3c2440-nand s3c2440-nand: Tacls=3, 22ns Twrph0=8 60ns, Twrph1=3 22ns
NAND device: Manufacturer ID: 0xec, Chip ID: 0x76 (Samsung NAND 64MiB 3,3V 8-bit)
NAND_ECC_NONE selected by board driver. This is not recommended !!
Scanning device for bad blocks
Creating 4 MTD partitions on "NAND 64MiB 3,3V 8-bit":
0x00000000-0x00040000 : "bootloader"
0x00040000-0x00240000 : "kernel"
0x00240000-0x00a40000 : "rootfs"
0x00a40000-0x02a40000 : "user"
s3c2410-ohci s3c2410-ohci: S3C24XX OHCI
s3c2410-ohci s3c2410-ohci: new USB bus registered, assigned bus number 1
s3c2410-ohci s3c2410-ohci: irq 42, io mem 0x49000000
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
mice: PS/2 mouse device common for all mice
S3C24XX RTC, (c) 2004,2006 Simtec Electronics
S3C2410 Watchdog Timer, (c) 2004 Simtec Electronics
s3c2410-wdt s3c2410-wdt: watchdog inactive, reset disabled, irq enabled
TCP cubic registered
NET: Registered protocol family 1
drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
VFS: Mounted root (cramfs filesystem) readonly.
Freeing init memory: 116K
Warning: unable to open an initial console.
Failed to execute /linuxrc. Attempting defaults...
Kernel panic - not syncing: No init found. Try passing init= option to kernel.
 
Old 12-10-2007, 06:58 PM   #2
ehawk
Senior Member
 
Registered: Jul 2003
Posts: 1,257

Rep: Reputation: 48
look at

http://mailman.uclinux.org/pipermail...er/028500.html

http://www.busybox.net/lists/busybox...er/025015.html

http://osdir.com/ml/network.thinstat.../msg00010.html

from http://forums.arm.com/lofiversion/index.php/t9542.html


Normally this means the kernel cannot find the cramfs, so either the cramfs is corrupt, or the mtdparts partition table is wrong.

Your address map & command line:
QUOTE
0x34040000 NFU
0x34080000 u-boot_versatilepb
0x340C0000 uImage-2.6
0x34200000 armbase

Kernel command line: root=/dev/mtdblock0 mtdparts=armflash.0:4280k@1c0000(cramfs)ro mem=128M console=ttyAMA0


The cramfs is the "armbase" - this is what your mtdparts partition must reflect. Currently you are giving the mtd partition an offset of 0x1c0000 from the start of the armflash.0 device. As your memory list shows, the offset is actually 0x200000. So change your command line to:

Kernel command line: root=/dev/mtdblock0 mtdparts=armflash.0:4280k@200000(cramfs)ro mem=128M console=ttyAMA0

And try again...

Cheers,

I
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
"Kernel panic - not syncing: No init found." rwhite7890 Linux - General 6 06-26-2005 05:13 AM
"kernel panic : no init found " error with user-mode-linux tuxfood Linux - Software 2 05-06-2005 03:29 PM
2.6.3 kernel upgrade reiserfs boot problems "no init found" riskable Mandriva 3 05-28-2004 04:11 PM
"Kernel panic: no init found..." garnetlion Slackware 2 05-22-2004 05:10 AM
Zipslack getting "Kernel panic: no init found. Try passing init= option to kernel" Sam Hobbs Linux - Newbie 4 03-28-2002 10:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:58 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration