LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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-12-2004, 03:44 PM   #1
Straterra
LQ Newbie
 
Registered: Mar 2004
Location: Indianapolis, Indiana
Distribution: Slackware 9.1, Slackware 10, Mandrake 9.1, Mandrake 9.2, Mandrake 10
Posts: 21

Rep: Reputation: 15
Patching


I have the 2.4.22 kernel and I am trying to patch it to 2.4.24. I downloaded the ide and module files and md5sums match. I then burnt them to CD and transfered the files to the machine. I used upgradepkg. It deleted all of my old stuff, but then it says that the files are corrupted and gives me error 2. I have tried many different mirrors for these files, but it still always says they are corrupted. How can I make this work?
 
Old 03-12-2004, 05:09 PM   #2
jimdaworm
Member
 
Registered: Aug 2003
Location: Spain
Distribution: Ubuntu
Posts: 888

Rep: Reputation: 30
If you ask me your post is bloody confusing... I have never patched a kernel but I did a little searching in google and came up with this... hope it helps.
http://www.aerospacesoftware.com/ker...ile-howto.html

Quote:
I downloaded the ide and module files and md5sums match. I then burnt them to CD and transfered the files to the machine. I used upgradepkg. It deleted all of my old stuff, but then it says that the files are corrupted and gives me error 2.
as for the above I donīt understand.

Adam
 
Old 03-12-2004, 06:28 PM   #3
flyfishin
Member
 
Registered: Aug 2003
Location: KC, MO
Distribution: CentOS, RHEL, SuSE, Fedora
Posts: 243

Rep: Reputation: 30
Did you verify the md5sums after getting them to your machine? It sounds like you downloaded the files, checked the sums, then burnt them to cd. Is your cd bad? Do you have another way to get the files to the machine?
 
Old 03-12-2004, 09:32 PM   #4
dslboy
Member
 
Registered: Aug 2003
Location: Norway
Distribution: Slackware -current
Posts: 157

Rep: Reputation: 30
Errhmm, let me get this right;

You downloaded a patch.
And deleted the files you were going to patch?

Sorry, if I got you wrong, just had to find out...
 
Old 03-13-2004, 08:44 AM   #5
Straterra
LQ Newbie
 
Registered: Mar 2004
Location: Indianapolis, Indiana
Distribution: Slackware 9.1, Slackware 10, Mandrake 9.1, Mandrake 9.2, Mandrake 10
Posts: 21

Original Poster
Rep: Reputation: 15
Fly, I did verify the MD5 sums after the transfer. They match as well. I cannot transfer them another way, since I need to upgrade to 2.4.24 to install the drivers for my wireless card. dslboy, no. When you use upgradepkg, it deletes the old files automatically to prepare for the new files. After it deleted, it tried to install the new files, and gave me the corruption info and error 2.

Also, jinda, that url doesn't pertain to me because I am not compiling it. The files are in .tgz format. installpkg would normally do the grunt work, but it says that the files are corrupted.

Last edited by Straterra; 03-13-2004 at 08:48 AM.
 
Old 03-14-2004, 07:40 AM   #6
Straterra
LQ Newbie
 
Registered: Mar 2004
Location: Indianapolis, Indiana
Distribution: Slackware 9.1, Slackware 10, Mandrake 9.1, Mandrake 9.2, Mandrake 10
Posts: 21

Original Poster
Rep: Reputation: 15
Bump
 
Old 03-14-2004, 07:54 AM   #7
ringwraith
Senior Member
 
Registered: Sep 2003
Location: Indiana
Distribution: Slackware-current
Posts: 1,244

Rep: Reputation: 47
I think you are misusing upgradepkg. And it is not clear what you are doing from your post. Are you currently using the stock kernel from slackware? Did you build your own kernel?

Upgradepkg is used to replace one slack package with another one. NOTE: Replace. So if you have the stock Slack kernel currently and wanted to upgradepkg it, you would need to download a new Slack kernel from one of the slackware mirrors. Make certain you get all the necessary packages to do that.

The kernel patch to upgrade the kernel would be used only if you are compiling your own kernels. Upgradepkg would not enter into it, unless you are manually building a Slackware packaged kernel and going to install it. I doubt that is what you are doing since if you were at that ability level you would not be here asking this question.
 
Old 03-14-2004, 11:33 AM   #8
jimdaworm
Member
 
Registered: Aug 2003
Location: Spain
Distribution: Ubuntu
Posts: 888

Rep: Reputation: 30
Hey Straterra

If you want to patch a kernel as far as I know you HAVE to patch the SOURCE for the kernel and compile it afterwards to make your new patched kernel.

I donīt even know if there are kernels packaged for upgradepkg... but donīt see why not.

If you have a īslackware packageī with the kernel you want to install you shouldnīt need to burn it to any cd as an image... just straight burn the file to the cd.

Also... your not trying to use upgradepkg with a normal .tgz file, maby its not a slackware package your trying to install???

Adam

Last edited by jimdaworm; 03-14-2004 at 11:39 AM.
 
Old 03-14-2004, 01:08 PM   #9
Straterra
LQ Newbie
 
Registered: Mar 2004
Location: Indianapolis, Indiana
Distribution: Slackware 9.1, Slackware 10, Mandrake 9.1, Mandrake 9.2, Mandrake 10
Posts: 21

Original Poster
Rep: Reputation: 15
Jim..I did put the package straight on the CD. Ring, how am I misusing upgradepkg? I was trying to use upgradepkg to upgrade the modules and stuff for my system.
 
Old 03-14-2004, 01:14 PM   #10
jimdaworm
Member
 
Registered: Aug 2003
Location: Spain
Distribution: Ubuntu
Posts: 888

Rep: Reputation: 30
Hey Straterra if you want us to know why things arnīt working you need to tell us EXACTLY what you are doing like the exact commands you are typing... etc ect.

Also are you sure its a slackware package?? Where did you download it from?

Adam
 
Old 03-14-2004, 04:34 PM   #11
ringwraith
Senior Member
 
Registered: Sep 2003
Location: Indiana
Distribution: Slackware-current
Posts: 1,244

Rep: Reputation: 47
Did you read the purpose of upgradepkg? If the above is clear read man upgradepkg. It is not a kernel tool per se. It is for replacing an old software package with a a newer version (generally).

You have not answered any of the questions put to you regarding what you are doing? So it is hard to help you any further.
 
Old 03-14-2004, 04:39 PM   #12
Straterra
LQ Newbie
 
Registered: Mar 2004
Location: Indianapolis, Indiana
Distribution: Slackware 9.1, Slackware 10, Mandrake 9.1, Mandrake 9.2, Mandrake 10
Posts: 21

Original Poster
Rep: Reputation: 15
I have said this many, many times. I need to upgrade to the 2.4.24 kernel. And to do so, I was told, I would have to download the files kernel-ide-2.4.24-i486-1.tgz and kernel-modules-2.4.24-i486-1.tgz. From there, I was told, I would have to run upgradepkg on each of the files, and then my kernel would be patched to 2.4.24. I am sorry if I seem angry, but I was supposed to have this system up two weeks ago. This is the same problem I have had for 2 weeks. Different people keep telling me different things, so I'm sure you can see where my anger is coming from.
 
Old 03-14-2004, 05:09 PM   #13
jimdaworm
Member
 
Registered: Aug 2003
Location: Spain
Distribution: Ubuntu
Posts: 888

Rep: Reputation: 30
Your still not answering the questions
 
Old 03-14-2004, 07:20 PM   #14
ringwraith
Senior Member
 
Registered: Sep 2003
Location: Indiana
Distribution: Slackware-current
Posts: 1,244

Rep: Reputation: 47
Okay Staterra. I got you now. These are not patches. They are the new kernels from a slackware mirror. Saying they are patches is what confused everyone. There is such a thing as kernel patches that will upgrade your kernel available from kernel.org and its mirrors but that is something else.

I would assume that the corruption is coming from downloading the files on one machine, burning to a cd and then copying them to the Slackware box. If you can download from the Slackware box I would do that as there is less chance for error. Sometimes files will get corrupted from one OS to another and going from one filesystem to another.

If your system is not bootable right now, you may want to boot from your Slack CD, mount your root partition and reinstall the 2 kernel packages. Then download the two newer versions and install them. Problems like these are why it is usually a good idea to installpkg the new kernels not upgradpkg them. Then make a new entry in lilo to boot both as options. That way if the new kernel is bad you can fall back on the old working one. Even if you do upgradepkg the new kernel. You must rerun lilo before rebooting, otherwise it will not reboot properly.

By the way 2.4.24 is now replaced by the following:

ftp://ftp.slackware.at/slackware-cur....25-i486-2.tgz
ftp://ftp.slackware.at/slackware-cur....25-i486-2.tgz

I hope this helps and that I have finally understood what you are asking. MOst of all be calm. Patience is a necessity when you do this stuff. When you get upset it clouds your mind and makes you more likely to make more errors.
 
Old 03-15-2004, 05:42 AM   #15
Straterra
LQ Newbie
 
Registered: Mar 2004
Location: Indianapolis, Indiana
Distribution: Slackware 9.1, Slackware 10, Mandrake 9.1, Mandrake 9.2, Mandrake 10
Posts: 21

Original Poster
Rep: Reputation: 15
Thanks for the help. The problem is that I need at least 2.4.24 so I can install drivers for my WIFI card. Maybe I will download the files on my Mandrake machine and try to burn them from there.
 
  


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
Patching 2.6 Biotachyonic Linux - Laptop and Netbook 2 08-24-2005 10:04 PM
patching kernel paulr1984 Linux - Newbie 3 04-05-2005 10:57 PM
Patching bong.mau Mandriva 4 04-25-2004 03:12 PM
patching ybaws Linux - Software 3 04-02-2004 04:52 PM
patching janu Linux - Software 1 01-06-2003 05:17 PM


All times are GMT -5. The time now is 02:51 AM.

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