-
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
-
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/
-
Senior Member
registered user
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.
-
Junior Member
registered user
Re: Modified kernel results in Kernel Panic - No init found.
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.
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.
-
Junior Member
registered user
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
-
By Haslemer in forum General Support
Replies: 1
Last Post: 01-03-2005, 08:39 PM
-
By ManiOne in forum General Support
Replies: 1
Last Post: 08-11-2004, 11:36 AM
-
By MrAhmad in forum Customising & Remastering
Replies: 9
Last Post: 01-20-2004, 08:23 PM
-
By fingers99 in forum Hdd Install / Debian / Apt
Replies: 5
Last Post: 10-23-2003, 12:01 AM
-
By berdy in forum General Support
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
-
Forum Rules
Asus H110M-C LGA 1151 DDR4 SDRAM Desktop Motherboard w/ I/O shield
$39.95
ASRock B550M Pro SE AM4 DDR4 SATA 6Gb/s 1 PCIe 4.0 x16 Micro ATX Motherboard
$80.99
MSI PRO B650-P WiFi AMD AM5 DDR5 WiFi 6E ProSeries Motherboard
$80.71
ASUS Prime B250M-C LGA1151 DDR4 Desktop Motherboard USB 3.0 w/ I/O Shield
$39.99
Motherboard AM4 B450m 4 slots Ryzen ASUS PRIME II
$50.00
Asrock Z390 Phantom Gaming 4S/AC Wifi 8th/9th Gen Intel 1151 Motherboard Bulk
$40.95
Gigabyte Aorus Ultra Durable B550 AORUS ELITE AX V2 Desktop Motherboard
$109.99
Gigabyte Ultra Durable B550 GAMING X V2 Desktop Motherboard
$84.99
MSI PRO B650-P WiFi AMD AM5 DDR5 WiFi 6E ProSeries Motherboard
$96.01
MSI PRO B650-P WiFi AMD AM5 DDR5 WiFi 6E ProSeries Motherboard
$84.96