View previous topic :: View next topic |
Author |
Message |
Garbz Apprentice
Joined: 02 Jul 2003 Posts: 260 Location: Brisbane, Australia
|
Posted: Wed Jul 02, 2003 12:41 am Post subject: Kernel Panic (init not found), mkinitrd and bootsplashes. |
|
|
Hi everyone.
I'm new in this community and have been a linux user for the past 6 years. After some ppl peer preassured me into Gentoo i installed it, and it is good !
But enought about me and on to the problem:
Basically i am using a dell inspiron 4100 laptop with a radeon mobility (m6), so naturally i compiled in the radeon fb into the kernel (and vesafb just incase). But like always that's never enough. What i'm trying to do is create a background for the framebuffer to make my console look pretty, like the one on the gentoo live cd.
After a bit of research i found out there needs to be a patch in the kernel (which by the looks of things is already included in the 2.4.20-gentoo-r5) and also a initrd image to have the picutre inside. The problem is that gentoo doesn't appear to have mkinitrd and this is most likely what is leading to my kernel panics when i boot.
Before i go and explain what i've done i'll just ask me questions so u don't waste time reading:
1. Usine a mkinitrd from another distro doesn't work does it?
2. Is there a mkinitrd for gentoo?
3. Does the default gentoo kernel (2.4.20-gentoo-r5) actually support the bootsplash?
4. Is there another way to create the boot image, is it gentoo specific, does it need initrd?
Ok so here's what i've done / tried so far in my quest for a background for my frame buffer.
1. Compiled a kernel 2.4.20-gentoo-r5. This kernel is not modular. It has about 8 modules for devices I use once a month tops. I'm only using initrd to hold the boot image.
2. The kernel was placed in /boot/bzImage and boots perfectly with no problem. (Appendix A for good boot dmesg)
3. I installed rpm (because mkinitrd doesn't exist in tar.gz format that i can find).
4. I installed and have tried about 4 different version of mkinitrd ranging from 3.3 to 3.6 and all from different distributions (found on rpmfind.net) rpm -ivh --nodpes mkinitrd[tab] Dependancies fail becuase rpm isn't installed but all deps are infact already on the system.
5. I ran mkinitrd -vf /boot/initrd 2.4.20-gentoo-r5 . This resulted in the usual crap output but it worked and initrd was there.
6. I modified /boot/grub/menu.lst to reflect my new image to attempt to boot. (See below for printout)
7. The boot fails with a kernel panic : (also see below)
Ok so that's that. No sucess. For thoes who still might have an idea about how i can get an initrd image or if i'm on the wrong track to making a boot background read the configs / outputs below:
1. My kernel config file is linked here to save some space in this post: http://users.bigpond.net.au/decane/Laptop.config
2. My grub.conf:
Code: |
default 0
timeout 30
title=Gentoo Linux 1.4rc5-dev
root (hd0,1)
kernel /bzImage ro root=/dev/hda4 console=tty0 console=ttyS1,115200n8 #purely for recording purposes
initrd /initrd
title=Gentoo Linux 1.4rc5
root (hd0,1)
kernel (hd0,1)/bzImage ro root=/dev/hda4 vga=792
|
3. An dmesg of a sucessful boot:
Code: |
IPv6 v0.8 for NET4.0
IPv6 over IPv4 tunneling driver
systrace: systrace initialized
FAT: bogus logical sector size 0
reiserfs: checking transaction log (device 03:04) ...
Using r5 hash to sort names
ReiserFS version 3.6.25
VFS: Mounted root (reiserfs filesystem) readonly.
Mounted devfs on /dev
Freeing unused kernel memory: 112k freed
Adding Swap: 393584k swap-space (priority -1)
eth0: no IPv6 routers present
|
4. A demsg of a panic. (problem starts straight after systrace and ipv6)
Code: |
IPv6 v0.8 for NET4.0
IPv6 over IPv4 tunneling driver
systrace: systrace initialized
RAMDISK: Compressed image found at block 0
Freeing initrd memory: 277k freed
VFS: Mounted root (ext2 filesystem).
Mounted devfs on /dev
Red Hat nash version 3.4.42 starting
Mounting /proc filesystem
Creating block devices
failed to create /dev/ide/host0/bus0/target0/lun0/disc
failed to create /dev/ide/host0/bus0/target0/lun0/part1
failed to create /dev/ide/host0/bus0/target0/lun0/part2
failed to create /dev/ide/host0/bus0/target0/lun0/part3
failed to create /dev/ide/host0/bus0/target0/lun0/part4
Creating root device
mkrootdev: mknod failed: 17
Mounting root filesystem
reiserfs: checking transaction log (device 03:04) ...
Using r5 hash to sort names
ReiserFS version 3.6.25
pivotroot: pivot_root(/sysroot,/sysroot/initrd) failed: 2
umount /initrd/proc failed: 2
Mounted devfs on /dev
Freeing unused kernel memory: 112k freed
Kernel panic: No init found. Try passing init= option to kernel.
|
So does anyone have any ideas about what do do in this case?
Can i get my kernel to boot using an initrd image?
Do i even need an initrd image for a background?
I get the feeling this will be complicated! :[/b] _________________ Every begining is another begining's end. |
|
Back to top |
|
|
Deathwing00 Bodhisattva
Joined: 13 Jun 2003 Posts: 4087 Location: Dresden, Germany
|
Posted: Wed Jul 02, 2003 12:44 am Post subject: |
|
|
Quote: | 1. Usine a mkinitrd from another distro doesn't work does it? |
Usually it does not work, although on the same platform.
Quote: | 3. Does the default gentoo kernel (2.4.20-gentoo-r5) actually support the bootsplash?
|
It is said in the kernel's section of gentoo docs that it does. |
|
Back to top |
|
|
Garbz Apprentice
Joined: 02 Jul 2003 Posts: 260 Location: Brisbane, Australia
|
Posted: Wed Jul 02, 2003 2:13 am Post subject: |
|
|
am i going about this the right way is the main question.
as u can imagine i won't be too happy if i find out that just appending a kernel parameter to a picture or something will give this result. _________________ Every begining is another begining's end. |
|
Back to top |
|
|
Deathwing00 Bodhisattva
Joined: 13 Jun 2003 Posts: 4087 Location: Dresden, Germany
|
|
Back to top |
|
|
Garbz Apprentice
Joined: 02 Jul 2003 Posts: 260 Location: Brisbane, Australia
|
Posted: Wed Jul 02, 2003 2:57 pm Post subject: |
|
|
Sorry i spent all the time looking through the install and hardware threads for kernel configs etc, i never thought of looking under tips :opps:
Thanks. _________________ Every begining is another begining's end. |
|
Back to top |
|
|
Deathwing00 Bodhisattva
Joined: 13 Jun 2003 Posts: 4087 Location: Dresden, Germany
|
Posted: Thu Jul 03, 2003 12:05 am Post subject: |
|
|
NP mate! |
|
Back to top |
|
|
|