LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Kernel (https://www.linuxquestions.org/questions/linux-kernel-70/)
-   -   Linux kernel - No init found error (https://www.linuxquestions.org/questions/linux-kernel-70/linux-kernel-no-init-found-error-749153/)

rohshall 08-20-2009 06:59 PM

Linux kernel - No init found error
 
Hi,

I am trying to boot up rather a large root-fs of 21MB. After changing the root file system size, I could get the kernel to recognize the root file system at least, but it does not find init in it. Any ideas?
(I tried passing init=/sbin/init on the command line, but somehow that line is ignored by the kernel)

Here is the log:

## Booting kernel from Legacy Image at 21900000 ...
Image Name: Linux-2.6.30-00001-ga0c23b6-dirt
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 784028 Bytes = 765.7 kB
Load Address: 20008000
Entry Point: 20008000
Verifying Checksum ... OK
Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux.................................................... done, b.
Linux version 2.6.30-00001-ga0c23b6-dirty (salil@salil-laptop) (gcc version 4.39
CPU: ARM920T [41129200] revision 0 (ARMv4T), cr=c0007177
CPU: VIVT data cache, VIVT instruction cache
Machine: Atmel AT91RM9200-DK
Memory policy: ECC disabled, Data cache writeback
Clocks: CPU 179 MHz, master 59 MHz, main 18.432 MHz
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 8128
Kernel command line: mem=32M console=ttyS0,115200 initrd=0x20410000,3145728 roow
NR_IRQS:192
AT91: 128 gpio irqs in 4 banks
PID hash table entries: 128 (order: 7, 512 bytes)
Console: colour dummy device 80x30
console [ttyS0] enabled
Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
Memory: 32MB = 32MB total
Memory: 27760KB available (1388K code, 123K data, 96K init, 0K highmem)
SLUB: Genslabs=11, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Calibrating delay loop... 89.79 BogoMIPS (lpj=350208)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
bio: create slab <bio-0> at 0
Trying to unpack rootfs image as initramfs...
rootfs image is not initramfs (junk in compressed archive); looks like an initrd
Freeing initrd memory: 3072K
NetWinder Floating Point Emulator V0.97 (double precision)
msgmni has been set to 60
io scheduler noop registered
io scheduler anticipatory registered (default)
fb0: S1D13513 frame buffer device
atmel_usart.0: ttyS0 at MMIO 0xfefff200 (irq = 1) is a ATMEL_SERIAL
atmel_usart.1: ttyS1 at MMIO 0xfffc4000 (irq = 7) is a ATMEL_SERIAL
brd: module loaded
atmel_spi atmel_spi.0: Atmel SPI Controller at 0xfffe0000 (irq 13)
atmel_spi atmel_spi.0: can't setup spi0.0, status -1
mice: PS/2 mouse device common for all mice
ADS touch state 0
ads7846 spi0.3: touchscreen, irq 93
ADS touch state 0
input: ADS784x Touchscreen as /class/input/input0
IRQ 1/at91_rtc: IRQF_DISABLED is not guaranteed on shared IRQs
at91_rtc at91_rtc: rtc core: registered at91_rtc as rtc0
AT91 Real Time Clock driver.
AT91 Watchdog Timer enabled (5 seconds, nowayout)
at91_rtc at91_rtc: setting system clock to 1998-01-01 00:01:17 UTC (883612877)
RAMDISK: ext2 filesystem found at block 0
RAMDISK: Loading 20768KiB [1 disk] into ram disk... done.
VFS: Mounted root (ext2 filesystem) on device 1:0.
Freeing init memory: 96K
Warning: unable to open an initial console.
Kernel panic - not syncing: No init found. Try passing init= option to kernel.
Backtrace:
[<c0024750>] (dump_backtrace+0x0/0x10c) from [<c012ba34>] (dump_stack+0x18/0x1c)
r7:00000000 r6:00000000 r5:c001a490 r4:c01801c4
[<c012ba1c>] (dump_stack+0x0/0x1c) from [<c012ba74>] (panic+0x3c/0x120)
[<c012ba38>] (panic+0x0/0x120) from [<c0020544>] (init_post+0x13c/0x174)
r3:00000000 r2:c1c17500 r1:c019c000 r0:c015e453
[<c0020408>] (init_post+0x0/0x174) from [<c0008604>] (kernel_init+0xbc/0xe4)
r4:c018e5f8
[<c0008548>] (kernel_init+0x0/0xe4) from [<c0039e04>] (do_exit+0x0/0x57c)
r5:00000000 r4:00000000

mesiol 08-21-2009 08:50 AM

Hi,

did you boot from a recovery CD or a live cd and checked if there is really /sbin/init?


All times are GMT -5. The time now is 10:45 PM.