Results 1 to 5 of 5

Thread: Modified kernel results in Kernel Panic - No init found.

  1. #1
    Junior Member
    Join Date
    Jun 2003
    Posts
    1

    Modified kernel results in Kernel Panic - No init found.

    I have seen several reports of this problem in the forum, but no solutions.

    I tried to modify the kernel in a CD-boot Knoppix (I needed devfs support, so I grabbed the Knoppix-kernel-source package, kept the same kernel config except for devfs, and recompiled). When I boot the CD, it grabe root.img, and then gives the following message:

    Kernel panic : No init found. Try passing init= option to kernel

    If I use the default boot.img, my slightly modified Knoppix CD boots fine. It's only when I try to use the image with my kernel that I have problems.

    When I made the new boot.img, I modified as little as possible. I kept the same mroot, I just replaced the kernel.

    Is there something else I'm missing? Or, does anyone else have a working boot.img that includes a kernel with devfs support?

    Thanks,
    Todd

  2. #2
    Member registered user
    Join Date
    Mar 2003
    Posts
    35
    hmm...

    I had a similar error once....
    try re-running syslinux on your new boot.img (the one with your kernel on it)

    http://syslinux.zytor.com/

  3. #3
    Senior Member registered user
    Join Date
    Mar 2003
    Posts
    872
    That is the last message but what about other messages like can the script linuxrc find your clooped image and mount it etc.

    INIT not found just mean that when the linuxrc exit, the kernel will proceed to use the new root system and search for /etc/init to run and failed. So the most likely cause(as KNOPPIX doesn't not switch real root device) would be that it failed to mount the image does the KNOPPIX fs is not 'imported' in.

    More messages are needed.

  4. #4
    Junior Member registered user
    Join Date
    May 2003
    Posts
    10

    Re: Modified kernel results in Kernel Panic - No init found.

    Quote Originally Posted by tji
    Kernel panic : No init found. Try passing init= option to kernel

    If I use the default boot.img, my slightly modified Knoppix CD boots fine. It's only when I try to use the image with my kernel that I have problems.
    I would imagine that you don't have the necessary kernel modules in your initial root filesystem (I suppose that's boot.img) to mount your root filesystem. At least, that's my experience from other distributions and from the typical behaviour of "make install" on the Linux kernel sources.

    Quote Originally Posted by tji
    When I made the new boot.img, I modified as little as possible. I kept the same mroot, I just replaced the kernel.

    Is there something else I'm missing? Or, does anyone else have a working boot.img that includes a kernel with devfs support?
    My standard workaround when trying out a custom kernel is to reuse the old initial root filesystem image for the shipped kernel and to replace the kernel and modules in that image (or rather a copy of it). I don't know how wise that is, but the standard kernel Makefiles don't really help me find a reliable alternative.

  5. #5
    Junior Member registered user
    Join Date
    Mar 2003
    Posts
    14
    I've run into this problen myself. To be safe you should replace the kernel modules in the miniroot and recompile cloop and replace that, but this is not the cause of your problem. I beleve that your problem is caused by the init in the miniroot being uncompatable with your new kernel. In the case of knoppix init is statically linked with ash (the initial shell). So you will need to recompile ash-knoppix against your new kernel and sources(it's on Klaus's site somewhere).

    jTal

Similar Threads

  1. kernel panic: no init found.
    By Haslemer in forum General Support
    Replies: 1
    Last Post: 01-03-2005, 08:39 PM
  2. Replies: 1
    Last Post: 08-11-2004, 11:36 AM
  3. Kernel panic : no init found.!!!!!!
    By MrAhmad in forum Customising & Remastering
    Replies: 9
    Last Post: 01-20-2004, 08:23 PM
  4. Kernel panic: no init found
    By fingers99 in forum Hdd Install / Debian / Apt
    Replies: 5
    Last Post: 10-23-2003, 12:01 AM
  5. Replies: 12
    Last Post: 08-18-2003, 06:25 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


ZipLink ZL-2CBL2-2P picture

ZipLink ZL-2CBL2-2P

$19.50



Intel - Core i7-12700K Desktop Processor 12 (8P+4E) Cores up to 5.0 GHz Unloc... picture

Intel - Core i7-12700K Desktop Processor 12 (8P+4E) Cores up to 5.0 GHz Unloc...

$242.99



Intel - Core i9-12900K Desktop Processor 16 (8P+8E) Cores up to 5.2 GHz Unloc... picture

Intel - Core i9-12900K Desktop Processor 16 (8P+8E) Cores up to 5.2 GHz Unloc...

$347.99



Intel - Core i9-14900K 14th Gen 24-Core 32-Thread - 4.4GHz (6.0GHz Turbo) Soc... picture

Intel - Core i9-14900K 14th Gen 24-Core 32-Thread - 4.4GHz (6.0GHz Turbo) Soc...

$544.99



Intel SR2L6 Core i5-6500 3.2GHz 6th Gen LGA1151 Socket Quad-Core Processor picture

Intel SR2L6 Core i5-6500 3.2GHz 6th Gen LGA1151 Socket Quad-Core Processor

$24.59



Intel 6 Core i5-8600 3.1GHZ Desktop Processor SR3X0 picture

Intel 6 Core i5-8600 3.1GHZ Desktop Processor SR3X0

$50.00



Intel - Core i7-14700K 14th Gen 20-Core 28-Thread - 4.3GHz (5.6GHz Turbo) Soc... picture

Intel - Core i7-14700K 14th Gen 20-Core 28-Thread - 4.3GHz (5.6GHz Turbo) Soc...

$399.99



AMD RYZEN 7 PRO 1700 PROCESSOR | 3.00GHZ | YD170BBBM88AE picture

AMD RYZEN 7 PRO 1700 PROCESSOR | 3.00GHZ | YD170BBBM88AE

$49.99



AMD Ryzen 7 2700X CPU Processor 3.7GHz AM4 picture

AMD Ryzen 7 2700X CPU Processor 3.7GHz AM4

$74.99



Intel Core i9-13900K Raptor Lake 24-Core (8P+16E) Desktop Processor CPU picture

Intel Core i9-13900K Raptor Lake 24-Core (8P+16E) Desktop Processor CPU

$499.00