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 02-02-2004, 01:16 AM   #121
snocked
Member
 
Registered: Dec 2002
Location: St. Louis, MO
Distribution: Slackware 9.1
Posts: 482

Rep: Reputation: 30

I'm confused. So I don't do all those different makes like?:
make dep
make clean
make bzImage
make
make install
make modules
make modules_install
 
Old 02-02-2004, 01:21 AM   #122
snacky
Member
 
Registered: Feb 2004
Distribution: Debian
Posts: 286

Rep: Reputation: 30
"make" now makes the kernel image AND modules.

Although you CAN still do just "make modules"

make dep isn't necessary, it's done by make modules_install now.

"make clean" still does what it always did.
 
Old 02-02-2004, 01:43 AM   #123
snocked
Member
 
Registered: Dec 2002
Location: St. Louis, MO
Distribution: Slackware 9.1
Posts: 482

Rep: Reputation: 30
I was trying to go from default slack kernel 2.4.xx to 2.6.1 after fresh install. Weird because I got a 2 errors at the very end that said /boot/vmlinuz.old did not exist. So I rebooted and saw that lilo had not had my new entries in. I then ran lilo to update it and it said my new entry was added. I rebooted and lilo still didn't have my new entry. only my first kernel under it's original name appeared. blah i'm done with messing around with kernels.

Last edited by snocked; 02-02-2004 at 01:46 AM.
 
Old 02-02-2004, 09:13 AM   #124
RyanThaDude29
LQ Newbie
 
Registered: Sep 2003
Location: Northwest Indiana USA
Distribution: Slackware 10
Posts: 4

Rep: Reputation: 0
I just want to say a big thank you for this guide! I've messed with Slackware for quite some time, but never compiled my own kernel until now. This make it very easy, and now I'm running 2.6.1 without any problems.

Now I'm off to do some tweaking.
 
Old 02-03-2004, 01:51 AM   #125
snocked
Member
 
Registered: Dec 2002
Location: St. Louis, MO
Distribution: Slackware 9.1
Posts: 482

Rep: Reputation: 30
vmlinuz is still my old kernel after doing this 3 different times. where is this new kernel being saved to, because /boot/vmlinuz is still my old kernel though a different file size. after loading it still says "Welcome to 2.4.22!" I don't know what I'm doing wrong. I even tried cping /usr/src/linux-2.6.1/arch/i386/boot/bzImage and System.map to /boot. Still says it's 2.4.22 after loading.

Last edited by snocked; 02-03-2004 at 01:59 AM.
 
Old 02-03-2004, 05:03 AM   #126
BroX
Member
 
Registered: Oct 2003
Location: Sweden
Distribution: Slackware64-current, SlackwareARM-15.0
Posts: 833

Rep: Reputation: 90
keeping original kernel

Thanx to DaOne (MASTER!!) even I now succesfully recompiled my kernel (2.4.22). However, a simple (?) question remains:

After the first recompile I ended up with my new kernel and the original one (Slack.old). Good!

But when I tried to further tweak the new kernel, the .old one was replaced with the first new one (now called Slack.old) and the second tweaked one. I would have liked to keep the original one (Slack.old) and have the new one to fool around with.

I did not change anything in lilo.conf nor in the Makefile (after the changes made to recompile for the first time). I guess I should have?

Leon.

Lots of compliments to the good-hearted people here at the Slack forum!!!
 
Old 02-03-2004, 08:44 AM   #127
DaOne
Member
 
Registered: Jan 2003
Location: USA
Distribution: Slackware
Posts: 498

Original Poster
Rep: Reputation: 30
LJSBrokken...

Yes, this can be a problem if you have to compile several kernels until you get it the way you want/need it to be. What I like to do to get around this is this...

Before I install any newly compiled kernels, I will cp /boot/vmlinuz /boot/vmlinuz.safe
cp /boot/System.map /boot/System.safe

What this does is copies you current working kernel image to .safe so that it will always be there for booting. This is useful if you compile several bad kernels in a row, because vmlinuz.old is removed, and vmlinuz becomes vmlinuz.old, and your newly installed kernel image becomes vmlinuz every time you run make install. Make sense?

Anyway, once you add the .old and .safe entries, you will see the kernel images are added after make install runs /sbin/lilo.

HTH

Last edited by DaOne; 02-03-2004 at 10:54 AM.
 
Old 02-03-2004, 10:45 AM   #128
snocked
Member
 
Registered: Dec 2002
Location: St. Louis, MO
Distribution: Slackware 9.1
Posts: 482

Rep: Reputation: 30
i have no problems recompiling a kernel, but compiling a new one. su -c "make modules_install" only does something for one second and it spits out something about if System.map.... fi. then if I continue to make install and reboot to new kernel I can't even make out the screen.


if I haven't compiled a kernel on a system before, do I need a System.map or a .config from a previous compile(and not from just a fresh install of slack)?

Last edited by snocked; 02-03-2004 at 10:54 AM.
 
Old 02-03-2004, 10:56 AM   #129
DaOne
Member
 
Registered: Jan 2003
Location: USA
Distribution: Slackware
Posts: 498

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by snocked
i have no problems recompiling a kernel, but compiling a new one. su -c "make modules_install" only does something for one second and it spits out something about if System.map.... fi. then if I continue to make install and reboot to new kernel I can't even make out the screen.
You added the .old entries in lilo.conf and uncommented line 450 in /usr/src/linux-2.6.1 right?
 
Old 02-03-2004, 10:59 AM   #130
DaOne
Member
 
Registered: Jan 2003
Location: USA
Distribution: Slackware
Posts: 498

Original Poster
Rep: Reputation: 30
If you run make mrproper, then cp /boot/config-ide-2.4.22 /usr/src/linux-2.6.1/.config, you will now have a config file to start with. This is the config file for the bare.i kernel from the Slack install CD. You can then do make menuconfig and configure the rest of the options and save the configuration. Then just do...

make
su -c"make modules_install"
make install

See if that works for you.
 
Old 02-03-2004, 11:53 AM   #131
DGAlexandru
LQ Newbie
 
Registered: Jan 2004
Location: Bucharest - Romania
Distribution: Slackware 9.1
Posts: 9

Rep: Reputation: 0
Me again....

A few days ago I asked here if someone could help me ... but nobody answered.
So I'm asking you again ... How can I install SlackWare on a system with S-ATA HDD ?
I don't have a spare IDE HDD, I can't make the controller emulate an IDE HDD ... But now I have a FDD. ... if this could help. I found on the net a sata.i but is for Silicon controller not for Promise, which I have.

So could you please help me ...\

P.S. If I boot from a FDD or a Boot-CD in DOS I can see one partition on my HDD which is Fat32.
 
Old 02-03-2004, 02:20 PM   #132
DaOne
Member
 
Registered: Jan 2003
Location: USA
Distribution: Slackware
Posts: 498

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by DGAlexandru
Me again....

A few days ago I asked here if someone could help me ... but nobody answered.
So I'm asking you again ... How can I install SlackWare on a system with S-ATA HDD ?
I don't have a spare IDE HDD, I can't make the controller emulate an IDE HDD ... But now I have a FDD. ... if this could help. I found on the net a sata.i but is for Silicon controller not for Promise, which I have.

So could you please help me ...\

P.S. If I boot from a FDD or a Boot-CD in DOS I can see one partition on my HDD which is Fat32.
I don't know much about S-ATA...you may get more responses by creating a new thread, and also try posting in the hardware forum. Alot of members frquent hardware and never see what is in the distro specific forums.
 
Old 02-03-2004, 06:37 PM   #133
snocked
Member
 
Registered: Dec 2002
Location: St. Louis, MO
Distribution: Slackware 9.1
Posts: 482

Rep: Reputation: 30
Quote:
Originally posted by DaOne
You added the .old entries in lilo.conf and uncommented line 450 in /usr/src/linux-2.6.1 right?
correct. first added entry to lilo. changed linux to point to linux-2.6.1. so in /usr/src/linux... then uncommented export install path=/boot line in Makefile, which for 2.6.1 is actually a few more lines down than 450. then ran mrproper. then did menuconfig and saved config as .config, make, su -c "make modules_install" and make install. like i said the command involving make modules_install just spits out 2 lines and then some part of a script involving System.map, hence the fi.

Last edited by snocked; 02-03-2004 at 06:39 PM.
 
Old 02-04-2004, 10:07 AM   #134
mimsmall
Member
 
Registered: Dec 2003
Location: FL
Distribution: Fedora
Posts: 79

Rep: Reputation: 15
patch?

I downloaded the kernel from www.kernel.org and the file is named patch-2.6.1; should I rename it linux-2.6.1?
 
Old 02-04-2004, 09:23 PM   #135
snocked
Member
 
Registered: Dec 2002
Location: St. Louis, MO
Distribution: Slackware 9.1
Posts: 482

Rep: Reputation: 30
no, download F(full source). If you just click on 2.6.1 name it will download the patch, not source.
 
  


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
Help - Need guide on how to (re)compile kernel in 9.2 timko SUSE / openSUSE 1 02-17-2005 08:17 AM
re :kernel compile guide sh4d0w331 Slackware 1 10-02-2004 05:38 PM
Kernel re-compile guide marlor Slackware 6 08-08-2004 03:57 AM
What happened to the Newbie Compile Guide? boutrosboutros Slackware 6 07-14-2004 12:37 AM
mandrake specific kernel compile guide? e1000 Mandriva 4 01-09-2004 12:27 PM

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

All times are GMT -5. The time now is 06:38 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