LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-30-2003, 01:05 PM   #1
Linuxiscomplex
LQ Newbie
 
Registered: Oct 2003
Posts: 13

Rep: Reputation: 0
How is the Kernel upgraded? I give up! Libranet.


Apparently the best kept secret on the Net this.

Installed Libranet 2.7 need to upgrade the Kernel before I can install nForce2 drivers (I think). And if I don't I want to do it anyway, the whole point of this is practice.

So I have downloaded the latest stable release which appears to be 2.4.22 from kernel.org, I think I have got that bit right : (

I clicked on it, some kind of console popped up and now I have essentially a HUGE text file which I assume now requires adding to the kernel I already have?

This is were I am totally stuck, I simply am not grasping what I am supposed to be doing. Every guide, however simplistic it is supposed to be ends up loosing me.

I really need a basic as it can possibly get set of instructions on what I do with this file.

This is driving me mad, and here I am thinking getting a dual boot with XP would be the hard part. DOH!

Newbie is an understatement!!!!

Last edited by Linuxiscomplex; 10-30-2003 at 01:07 PM.
 
Old 10-30-2003, 02:55 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,578

Rep: Reputation: 191Reputation: 191
The kernel you downloaded has filename ending with .tar.gz or .tar.bz2, right? It's kernel source, you need to unpack it and compile. But first place it in an directory it may be unpacked. Then
tar zxvf filename.tar.gz
or
tar jxvf filename.tar.bz2
A directory will be created. Enter it.

The compilation is usually:
make xconfig
make deps
make bzImage
make modules
make modules_install

When you run 'make xconfig' a configuration program will be run. Read help and choose everything you need (the default config won't run on all machines). If you're not in X, use 'make menuconfig' or 'make oldconfig' instead.

After 'make modules_install' is done, you need to copy the kernel (from arch/i386/boot) to /boot and change your LILO/GRUB configration to point to it.

The desctiption was quite brief. If you have doubts, write.
 
Old 10-30-2003, 03:16 PM   #3
musrum
Member
 
Registered: Oct 2003
Distribution: Slackware
Posts: 112

Rep: Reputation: 15
Quick addition - when you copy the kernel, give it a meaningful name other than the one used by your current kernel, for example:

cp arch/i386/boot/bzImage /boot/vmlinuz.2.4.22
 
Old 10-30-2003, 04:41 PM   #4
Linuxiscomplex
LQ Newbie
 
Registered: Oct 2003
Posts: 13

Original Poster
Rep: Reputation: 0
Mara - Excellent, that's exactly what I need, some basic pointers, you should do a website.

Musrum - Change name, I get ya, nice one.

Fingers crossed.
 
Old 10-30-2003, 05:06 PM   #5
ferrix
Member
 
Registered: Jun 2003
Location: Sydney, Australia
Distribution: Ultima, Blag, KateOS, PCLinuxOS, Frugalware
Posts: 216

Rep: Reputation: 31
You're in luck - Libranet makes compiling kernels exceptionally easy! Have a look at the option in adminmenu - it says something like "compile kernel" (I don't have a Libranet at the moment so I can't be sure). Going this way will save you many steps, in fact the only thing you'll need to do is selecting the actual kernel options - adminmenu will take care of all the making, moving and will even make an entry in the bootloader for you.
So basically, all you have to do is untar your new kernel source into /usr/src and make a link to it. Like so:

# cd /usr/src
# tar xjf linux-2.4.22.tar.bz2 <--- or whatever your kernel is called!
# rm linux <-- don't be afraid, this just removes the link
# ln -s linux-2.4.22 linux <--- now point that link to your new source

then go to adminmenu and continue.

But do some more reading so you know what you're doing! Libranet has a good mailing list, and a forum. Linuxquestions.org have a good kernel compiling howto floating somewhere. It will show you the manual way, but you can relate this to Libranet, and enjoy its advantage
 
Old 10-30-2003, 05:31 PM   #6
Linuxiscomplex
LQ Newbie
 
Registered: Oct 2003
Posts: 13

Original Poster
Rep: Reputation: 0
OK. This O/S hates me!

Downloaded the Kernel patch-2.4.22.bz2 to the desktop. Clicking it brings up Ark (This seems to be basically Win Zip/Rar like Windows) and I extracted the file to the Desktop. Now I have a 30Mb text file called patch-2.4.22. So now all I have to do is Cut or Copy and Paste that file into - Root Directory/Usr/Src? Trouble is I have NO write permissions for this folder, DOH! Were have I gone wrong? Why is it blocking me out? Is this some kind of administrator setting ala Windows?

Also can't extract directly to the folder, same error.

What's my next move? Please tell me you all had this much hassle on the first day of use, it will make me feel a bit better.

Bit of a side question were is the option to up the screen res? Would help if I could get it above 1024.

On the plus side I got dual boot to work, I have sound, Internet access and Opera is up and running, so today wasn't a total waste.
 
Old 10-30-2003, 05:58 PM   #7
Uchiha sasuke
LQ Newbie
 
Registered: Oct 2003
Posts: 21

Rep: Reputation: 15
agree that upgrading kernel is abit tricky . But don't worry , if you fail , try once more , fail again , try once more , if you fail a gain , then ...... you just like me ^o^ , me have enough of this , after trying 3 times , I decided to use Auto Up2date from Redhat and I succeeded
 
Old 10-30-2003, 06:01 PM   #8
ferrix
Member
 
Registered: Jun 2003
Location: Sydney, Australia
Distribution: Ultima, Blag, KateOS, PCLinuxOS, Frugalware
Posts: 216

Rep: Reputation: 31
Don't panic, it's OK
First of all, I didn't realise you were using a patch. The instructions I (and everyone before me) gave you related to installing a new version of the kernel. Frankly, I have no idea how to use a patch - I've never done it, I'm afraid. Why are you so keen to upgrade your kernel, i I may ask? It seems your system is working, I would respectfully suggest it would be better to leave the kernel alone until you've got some more understanding of how things work...

access to /usr/src: nothing has gone wrong, it is supposed to be this way! You need to login as root to access this directory. You also need to be root to do anything with your kernel, anyway. Also, you won't be able to do all this from KDE. Eventually you'll need to drop to the command line, I'm afraid!
So to move the file you downloaded, open a terminal, type su - when prompted for password, enter your root password. Then you can copy the file:
#cp patch-2.4.22.bz2 /usr/src

But once again, I'd suggest leaving this alone for now... there's plenty of other things for you to explore first
Screen resolution: in KDE, try Control Center -> Perpherals -> Display

PS. Mozilla is much better than Opera
 
Old 10-30-2003, 06:09 PM   #9
Uchiha sasuke
LQ Newbie
 
Registered: Oct 2003
Posts: 21

Rep: Reputation: 15
ok , I'm doing it , hope it won't crash this time.
 
Old 10-30-2003, 06:33 PM   #10
Linuxiscomplex
LQ Newbie
 
Registered: Oct 2003
Posts: 13

Original Poster
Rep: Reputation: 0
Yeah you are right, I didn't realise there was a difference, at kernel.org I clicked on the 2.4.22 which is a 5Mb patch (I thought it was small) you have to click on F for the full source (It's 28Mb, that's more like it).

Why am I doing it, why not? Seemed like a good idea at the time, just wanted to see how it works. I don't suppose I really need to. If I don't I will have to put the nForce2 driver on myself, so I will probably be back with a whole new set of stupid questions to test your sanity.

Peripherals/Display how the hell did I miss that?

And Opera is better.... : )
 
Old 10-30-2003, 07:05 PM   #11
Uchiha sasuke
LQ Newbie
 
Registered: Oct 2003
Posts: 21

Rep: Reputation: 15
$ make modules
make -C kernel CFLAGS="-D__KERNEL__ -I/usr/src/linux-2.4.22/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686 -DMODULE -DMODVERSIONS -include /usr/src/linux-2.4.22/include/linux/modversions.h" MAKING_MODULES=1 modules
make[1]: Entering directory `/usr/src/linux-2.4.22/kernel'
make[1]: Nothing to be done for `modules'.
make[1]: Leaving directory `/usr/src/linux-2.4.22/kernel'
make -C drivers CFLAGS="-D__KERNEL__ -I/usr/src/linux-2.4.22/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686 -DMODULE -DMODVERSIONS -include /usr/src/linux-2.4.22/include/linux/modversions.h" MAKING_MODULES=1 modules
make[1]: Entering directory `/usr/src/linux-2.4.22/drivers'
make -C block modules
make[2]: Entering directory `/usr/src/linux-2.4.22/drivers/block'
make[2]: Nothing to be done for `modules'.
make[2]: Leaving directory `/usr/src/linux-2.4.22/drivers/block'
make -C cdrom modules
make[2]: Entering directory `/usr/src/linux-2.4.22/drivers/cdrom'
make[2]: Nothing to be done for `modules'.
make[2]: Leaving directory `/usr/src/linux-2.4.22/drivers/cdrom'
make -C char modules
make[2]: Entering directory `/usr/src/linux-2.4.22/drivers/char'
make -C drm modules
make[3]: Entering directory `/usr/src/linux-2.4.22/drivers/char/drm'
make[3]: Nothing to be done for `modules'.
make[3]: Leaving directory `/usr/src/linux-2.4.22/drivers/char/drm'
make -C pcmcia modules
make[3]: Entering directory `/usr/src/linux-2.4.22/drivers/char/pcmcia'
make[3]: Nothing to be done for `modules'.
make[3]: Leaving directory `/usr/src/linux-2.4.22/drivers/char/pcmcia'
make[2]: Leaving directory `/usr/src/linux-2.4.22/drivers/char'
make -C hotplug modules
make[2]: Entering directory `/usr/src/linux-2.4.22/drivers/hotplug'
......
and alot more
any solution plz
 
Old 10-31-2003, 03:42 AM   #12
ferrix
Member
 
Registered: Jun 2003
Location: Sydney, Australia
Distribution: Ultima, Blag, KateOS, PCLinuxOS, Frugalware
Posts: 216

Rep: Reputation: 31
Could it be you just never specified anything to compile as a module when doing "make config"?
 
Old 10-31-2003, 04:54 AM   #13
nibbler
Member
 
Registered: Oct 2003
Location: Croatia
Distribution: Fedora 4
Posts: 46

Rep: Reputation: 15
I'm also a newbie with same/similar problems. I've downloaded the Kernel-HOWTO and followed the steps, but I would like to actually know what I'm doing so: can anyone tell me what is bzImage and what is vmlinuz? As I get it, these are both ( compressed ) kernels, but I'm obviously wrong
 
Old 10-31-2003, 05:22 PM   #14
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,578

Rep: Reputation: 191Reputation: 191
nibbler, usually it's the same. The file created during compilation is bzImage, but when copying it to /boot the name is usually changed to vmlinuz. But that's only tradition. You don't have to change it.
 
  


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



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 03:37 PM
Libranet. Installing drivers/Kernel update. Were do I start? Linuxiscomplex Libranet 13 11-11-2003 12:54 AM
Libranet problems...(kernel panic) J4DED Libranet 2 11-04-2003 03:02 PM
Where is the kernel source directory in Libranet? seppe Debian 1 09-21-2003 10:40 AM
Upgraded kernel to 2.4.13 jeremy LQ Suggestions & Feedback 3 11-17-2001 10:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:50 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration