LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 06-30-2004, 08:00 PM   #1
fckalya
LQ Newbie
 
Registered: Jun 2004
Location: Hagen, Germany
Distribution: Slackware 10.0 & WinXP Professional (SP2)
Posts: 11

Rep: Reputation: 0
Kernel compiled, but doesnt work


Hi, I've compiled my own 2.4.26 kernel and added it to lilo. At boot it get the errormassage:

No Setup Signature found...

Luckily i've kept the old kernel in there, too and it boots correctly.
I am new to slackware, so pleaze be understanding... Whats wrong? Who can help?! Th4Nx a lot in advance!

Last edited by fckalya; 06-30-2004 at 08:02 PM.
 
Old 06-30-2004, 08:05 PM   #2
deloptes
Member
 
Registered: Feb 2004
Location: AT
Distribution: debian etch and SUSE 10.2
Posts: 123

Rep: Reputation: 15
I have seen this message before
Did you compile devfs support and did you say "mount at boot"?

What about initrd and so
 
Old 06-30-2004, 08:06 PM   #3
Shade
Senior Member
 
Registered: Mar 2003
Location: Burke, VA
Distribution: RHEL, Slackware, Ubuntu, Fedora
Posts: 1,418
Blog Entries: 1

Rep: Reputation: 46
how did you create the kernel

did you copy the bzImage to /boot/vmlinuz-2.4.26 or somesuch?

--Shade
 
Old 06-30-2004, 08:43 PM   #4
fckalya
LQ Newbie
 
Registered: Jun 2004
Location: Hagen, Germany
Distribution: Slackware 10.0 & WinXP Professional (SP2)
Posts: 11

Original Poster
Rep: Reputation: 0
Tanks a lot for your fast replies! I did:
make xconfig, make dep, make clean, make zImage, make modules, make install with a lilo.conf, that is edited correctly, i think (copied, pasted and .old added to old kernel) Have no devfs selected, cause not needed i think.
 
Old 06-30-2004, 09:00 PM   #5
fckalya
LQ Newbie
 
Registered: Jun 2004
Location: Hagen, Germany
Distribution: Slackware 10.0 & WinXP Professional (SP2)
Posts: 11

Original Poster
Rep: Reputation: 0
ok, i got it! i've just copied the wrong image, as you supposed, shade. I've copied zImage instead of bzImage. thx btw!
 
Old 07-01-2004, 02:27 PM   #6
fckalya
LQ Newbie
 
Registered: Jun 2004
Location: Hagen, Germany
Distribution: Slackware 10.0 & WinXP Professional (SP2)
Posts: 11

Original Poster
Rep: Reputation: 0
Hi,

I've now compiled the 2.6.7 Kernel but i doens't work as it should. :-/ The system freezes after following lines while booting:

...
NTFS-fs warning (device hda8): ntfs_fill_super(): Atime updates are not implemented yet. Disabling them.
UDF-fs: No partition found (1)
Kernel panic: VFS: Unable to mount root fs on hda8
_


hda8 is my root partition with ReiserFS. I've unchecked UDF-FS support, but don't understand why the NTFS-fs warning points to hda8. My hda1 is NTFS. Please help!
 
Old 07-01-2004, 03:42 PM   #7
deloptes
Member
 
Registered: Feb 2004
Location: AT
Distribution: debian etch and SUSE 10.2
Posts: 123

Rep: Reputation: 15
Exclamation

When I am in trouble compiling a kernel I copy .config to a save place

cp .config ../myconfig

and than I make mrproper that cleans up everything

after that I copy cp ../myconfig .config

and make xconfig (it's also linking asm with the machine type asembler headers and stuff)

than make dep && make bzImage && make modules

than make install && make modules install

copying just bzImage is not always enough - if you want to have your headers in place I noticed.

I hope it helps
 
Old 07-01-2004, 03:45 PM   #8
deloptes
Member
 
Registered: Feb 2004
Location: AT
Distribution: debian etch and SUSE 10.2
Posts: 123

Rep: Reputation: 15
I had one more thing in mind ....

what kernel are you using while compiling and did this kernel has devfs enabled or initrd
 
Old 07-01-2004, 04:11 PM   #9
Shade
Senior Member
 
Registered: Mar 2003
Location: Burke, VA
Distribution: RHEL, Slackware, Ubuntu, Fedora
Posts: 1,418
Blog Entries: 1

Rep: Reputation: 46
Code:
NTFS-fs warning (device hda8): ntfs_fill_super(): Atime updates are not implemented yet. Disabling them.
UDF-fs: No partition found (1)
Kernel panic: VFS: Unable to mount root fs on hda8
Post up your fstab.

I think linux thinks your root partition is ntfs. linux can't write to ntfs reliably yet, there's one problem.
If your / is reiserfs, make darn certain that you compiled reiserfs file support into the kernel, it cannot be a module without using an initrd. I much prefer to go without an initrd and simply compile everything I need to boot in. The less important things I load as modules.

--Shade
 
Old 07-01-2004, 05:28 PM   #10
fckalya
LQ Newbie
 
Registered: Jun 2004
Location: Hagen, Germany
Distribution: Slackware 10.0 & WinXP Professional (SP2)
Posts: 11

Original Poster
Rep: Reputation: 0
thanks again for your replies!

while compiling my new 2.6.7 kernel i was running 2.4.26. of course my old kernel is booting properly. i have no ramdisk installed.

my fstab seems to be ok, beacuse it is accepted by the 2.4.26 kernel and i think both kernels share the same fstab.

hda1 /mnt/MTFS-C : NTFS
hda5 /mnt/FAT32 : FAT32
hda6 /boot : ext2
hda7 : swap
hda8 / : reiserfs
hda9 /usr : reiserfs
hda10 /home : reiserfs

i have no idea, cause everything seems well configured, and i have support for reiserfs checked. what about this UDF-fs ?! Maybe some more ideas?! I would be very grateful if someone could help!
 
Old 07-01-2004, 08:38 PM   #11
fckalya
LQ Newbie
 
Registered: Jun 2004
Location: Hagen, Germany
Distribution: Slackware 10.0 & WinXP Professional (SP2)
Posts: 11

Original Poster
Rep: Reputation: 0
Hi again,

I've reinstalled my system, but now with the ext2 fs. After compiling my 2.6.7 kernel it booted correctly! no errors, like before while i had reiserfs, what i really do not understand... I've recognized, that i can only build the kernel once. If i compile a new kernel after another there are no changes made. Why not?! i've done make mrproper, but should i do make clean, too?!

I'm just getting used to slackware, so I'm sorry for my "stupid" comments. I think i have learnd a lot till now and gonna ask some more. hope you'll help!

best regards!
 
Old 07-01-2004, 08:59 PM   #12
lupin_the_3rd
Member
 
Registered: Oct 2003
Location: Memphis, TN
Distribution: Slackware current
Posts: 485

Rep: Reputation: 30
When you compile a kernel there are a few steps you have to take...

1. in /usr/src/linux-2.6.x edit the Makefile (look for a line that says export=install path /boot --or something like this-- and remove the # in front of it)---> this makes sure that make install installs your kernel to /boot.
2. cd to /boot and make sure that your current running kernel has a seperate vmlinuz, System.map, and config ---> I usually
cp vmlinuz vmlinuz-2.6.7-mm4
cp System.map System.map-2.6.7-mm4
cp config config-2.6.7-mm4

3. Edit /etc/lilo.conf and make an entry to boot your vmlinuz-2.6.7-mm4 (just copy the current entry and change the label and point the image to your vmlinuz (image = /boot/vmlinuz-2.6.7-mm4).
4. run lilo

For configuring your kernel it's good to get an understanding of what type of support you need to compile in dmesg can give you some pointers.

kernel commands

make menuconfig (select what you need ---> make sure alsa is compiled as modules, and the type of filesystem your using is compiled into the kernel or you'll get a kernel panic as you did before)
make
make modules_install
make install

That's it... you're next boot will boot Linux entry in lilo to your new kernel... and you'll have you're working kernel in case something went wrong...

Each kernel compile after this will overwrite vmlinuz, System.map, config in boot and make install will update lilo so you'll just need to reboot...

*Edit* Note: above the 2.6.7-mm4 should be replaced by whatever kernel version your building (just in case it wasn't obvious )

Last edited by lupin_the_3rd; 07-01-2004 at 10:58 PM.
 
Old 07-01-2004, 09:19 PM   #13
fckalya
LQ Newbie
 
Registered: Jun 2004
Location: Hagen, Germany
Distribution: Slackware 10.0 & WinXP Professional (SP2)
Posts: 11

Original Poster
Rep: Reputation: 0
Thanks a lot for these tips. i'll do it this way next. one question: does "make" do the same like "make all" ?!
 
Old 07-01-2004, 10:57 PM   #14
lupin_the_3rd
Member
 
Registered: Oct 2003
Location: Memphis, TN
Distribution: Slackware current
Posts: 485

Rep: Reputation: 30
make for 2.6 combines make, make modules, and make bzImage
 
Old 07-02-2004, 01:34 PM   #15
deloptes
Member
 
Registered: Feb 2004
Location: AT
Distribution: debian etch and SUSE 10.2
Posts: 123

Rep: Reputation: 15
Thumbs up

lupin_the_3rd you are right.
The first thing after I do make xconfig is to check .config and Makefile

In .config I put my own subversion

and in Makefile I remove the # before export=install so the install process knows where to find vmlinuz

didn't think that fckalya does not know this

fckalya you've got to the kernel docs - it's odd but I think it's the proper way

regards
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
program compiled under kernel <=2.4 don't work under kernel 2.6 mihaimdl Linux - Software 3 11-08-2005 06:09 PM
keyboard won't work with newly compiled kernel dr_zayus69 Linux - Hardware 10 06-05-2005 11:23 AM
Wireless doesnt work after kernel update CLOSETGEEK Linux - Wireless Networking 2 05-25-2005 08:12 PM
3d doesnt work with 2.6.3 kernel (riva tnt) yevgen Mandriva 2 09-05-2004 02:27 PM
new compiled kernel 2.6.6 didnt work karfei00 Linux - General 4 06-09-2004 12:50 AM


All times are GMT -5. The time now is 03:19 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration