LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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
  Search this Thread
Old 03-29-2004, 04:04 AM   #1
chopp
Member
 
Registered: Sep 2003
Location: AB. Canada
Distribution: Slackware
Posts: 126

Rep: Reputation: 16
Unhappy compile kernel over, and over, and over.......


What the heck am I doing wrong?!

I am using the 2.6.0 kernel guide by DaOne command by command. I'll start with what I have here, and what I'm trying to achieve.

Laptop, with slackware 9.1, with the 2.4.22 kernel. I would like to upgrade to the 2.6.0 kernel.

Here are the step's I am using. Download linux-2.6.0.tar.gz, to my home directory.
Now I need to be root to move this tar file to /usr/src...........so I become root, move it, then cd to /usr/src.
I extract it as root with: tar zxvf linux-2.6.0.tar.gz.

Then I open my lilo.conf with: nano /etc/lilo.conf..........add this:

image = /boot/vmlinuz.old
root = /dev/hda5
label = Slack.old
read-only save that, then open Makefile with nano:

nano /usr/src/linux-2.6.0/Makefile........uncomment line 450

export INSTALL_PATH=/boot

I'm already in /usr/src......so now I: rm -f linux, ln -s linux-2.6.0 linux, cd into linux,
make mrproper
Then I: cp /usr/src/linux-2.4.22/.config /usr/src/linux

then: make menuconfig
exit and save my changes
make
now this part confuses me. I am already root, so why the su -c infront of the make modules_install?
so I do: su -c make modules_install
make install.......restart to nothing.
When I say nothing, I don't mean being able to log on, and startx blind. I mean nothing.

Yesterday at one point at least I could boot. Everything seemed to work fine, except I could not get my usb printer, or my usb cd-rw to work. I tried many time's to compile it with no success, so last night I re-installed again with the adaptec.s kernel. Both printer, and burner are seen right away as alway's with that kernel.

Since I started trying to upgrade to 2.6.0, never has lsmod spit me back one module?
I'm ashamed to admit this, but after 33 tries and still no luck, I really must be doing something wrong.

someone pleeease steer me in the right direction.

chopp

Last edited by chopp; 03-29-2004 at 04:21 AM.
 
Old 03-29-2004, 04:31 AM   #2
profjohn
Member
 
Registered: Mar 2004
Location: Jinhua, People's Republic of China
Distribution: MDK, RH, KNPX
Posts: 161

Rep: Reputation: 30
Relax. Have a beer. Then read this:

http://www.linuxquestions.org/questi...threadid=73436

Keep at it!
 
Old 03-29-2004, 08:08 AM   #3
lozz1978
Member
 
Registered: Jan 2004
Location: Sunny UK
Distribution: Slackware 9.1
Posts: 53

Rep: Reputation: 15
After you re-boot and select your new kernel, does the display go black ?
 
Old 03-29-2004, 08:42 AM   #4
chopp
Member
 
Registered: Sep 2003
Location: AB. Canada
Distribution: Slackware
Posts: 126

Original Poster
Rep: Reputation: 16
Actually it's black, with a little dust.

Quote:
When I say nothing, I don't mean being able to log on, and startx blind. I mean nothing.
well that's the third kernel guide I've tried without success. I get to where I'm supposed to delete /boot/initrd.img and there is no such file. Ok so I skip that step, and try to make a new one. /sbin/mkinitrd /boot/initrd-2.6.0.img 2.6.0........and it kick's me upside the head again with: /sbin/mkinitrd No such file or directory. Seem's like this has happened to more than just myself, but no one has answered why.

This is starting to really suck. Why does there seem to be so many opinion's about what is the proper procedure on how to do this.

Someone answer me this. If you copy your .config from your present kernel directory, to /linux, and then do a "make oldconfig".....changed nothing for module's or anything, would'nt you have an updated kernel with the exact same module's and everything else?

chopp
 
Old 03-29-2004, 08:54 AM   #5
Projekt2
Member
 
Registered: Sep 2003
Location: Naples, Fl
Distribution: Slackware Current
Posts: 34

Rep: Reputation: 15
Have you tried installing the latest module-init-tools.
 
Old 03-29-2004, 09:02 AM   #6
chopp
Member
 
Registered: Sep 2003
Location: AB. Canada
Distribution: Slackware
Posts: 126

Original Poster
Rep: Reputation: 16
I had it installed, along with all the latest alsa file's. I tried a few compile's, then re-installed last night. Didn't seem to make a difference either way.

chopp
 
Old 03-29-2004, 09:33 AM   #7
lozz1978
Member
 
Registered: Jan 2004
Location: Sunny UK
Distribution: Slackware 9.1
Posts: 53

Rep: Reputation: 15
OK, I had the black screen problem, I re-compiled the kernel, without using the old config, and that seemed to work for me,

When i copied the old config to the new kernel directory and run xconfig, i noticed that every option was enabled ?

Try compiling your kernel from scratch. Im sure your problem is the old config,
 
Old 03-29-2004, 05:54 PM   #8
chopp
Member
 
Registered: Sep 2003
Location: AB. Canada
Distribution: Slackware
Posts: 126

Original Poster
Rep: Reputation: 16
well I'm trying once again. 2.6.2 is compiling as I type. I did not use my old config.

Hopefully thing's will go better this time round.

chopp
 
Old 03-29-2004, 06:40 PM   #9
bashrc2
Member
 
Registered: Feb 2004
Distribution: slackware 9.1
Posts: 106

Rep: Reputation: 15
in page 2 under the "compiling 2.6 kernel" thread.. it says, to avoid blank screen, make sure:
Device Drivers ==> Graphics support ===> [*] support frame buffer[*] vesa vga graphics support
Console display driver support ===>[*] video mode selection support
<*> Framebuffer Console support <-- make sure its * not M... so easy to forget[*] select compiled-in fonts[*] vga 8x8 font[*] vga 8x16 font
Logo configuration ==>[*] to everything


cant actually remember whats on page 2.. but im sure that will get you to the booting stage, not the blank screen with dust. copying your old .config seems to be useless.. the reason you want to compile a new kernel is to use only the stuff you want so if all is enabled then why do you want to upgrade a kernel with thesame features? good luck.. i manage to fix mine after 28 tries... so 33 is not that bad.. heh
 
Old 03-29-2004, 06:50 PM   #10
bashrc2
Member
 
Registered: Feb 2004
Distribution: slackware 9.1
Posts: 106

Rep: Reputation: 15
also you might want to read every post in the "kernel 2.6 compile guide" thread.. there are some usefull tips.

before you compile:
cd /boot
cp vmlinuz-ide-2.4.22 vmlinuz-bak-2.4.22
vi /etc/lilo.conf
#######add an entry of you vmlinuz-bak-2.4.22 here
image = /boot/vmlinuz-bak-2.4.22
root = /dev/hdaN # where N in hdaN is the number of your roots dir.
label = FailSafe
read-only
#######

that way.. even if you screwup 2.6 kernel you still have a back up and dont need to reinstall.
(note: you might not be using vmlinuz-ide-2.4.22 maybe its something else.. just change it to what your using.)
make sure you run lilo before you restart
 
Old 03-30-2004, 05:23 AM   #11
chopp
Member
 
Registered: Sep 2003
Location: AB. Canada
Distribution: Slackware
Posts: 126

Original Poster
Rep: Reputation: 16
Talking success at last.

Finally! a shiny new 2.6.4 kernel.

This would have happened about 35 compile's ago if I would have been using the right version of module-init-tool's.

I installed module-init-tools-3.0-i486-1 from slack packages, and my next compile went like a dream.

Even the framebuffer console work's. I am getting a couple error's though. Someone know what these might be all about?

mtrr: 0xfd000000,0x400000 overlaps existing 0xfd000000,0x200000
atkbd.c: Unknown key released (translated set 2, code 0x7a on isa0060/serio0).
atkbd.c: This is an XFree86 bug. It shouldn't access hardware directly.
atkbd.c: Unknown key released (translated set 2, code 0x7a on isa0060/serio0).
atkbd.c: This is an XFree86 bug. It shouldn't access hardware directly.

The other is an alsa issue. I am going to try to re-install it and see what happen's.


thank's to everyone that has helped thus far. Much appreciated

chopp

Last edited by chopp; 03-30-2004 at 05:24 AM.
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
upgraded kernel, won't let me compile kernel once Suspend2 patches are applied microsoft/linux Linux - Laptop and Netbook 3 10-02-2005 02:37 PM
I want to compile 2.6 kernel and keep everything from 2.4 intact (dual kernel system) sina_kish Linux - Software 7 02-02-2005 09:01 AM
Kernel Problems. Howto Compile a new kernel from 4.2 with backwards compatibility ? ShoCkwave Linux - General 2 06-19-2004 06:02 AM
can i compile just one kernel module whithout recompiling the whole kernel? edman007 Linux - Software 3 02-17-2004 03:05 PM
Kernel 2.4.23 compile causes kernel panics on ATA RAID-1 (mirror) array Raptor Ramjet Slackware 3 12-18-2003 01:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:59 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration