LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Patching (https://www.linuxquestions.org/questions/slackware-14/patching-156843/)

Straterra 03-12-2004 03:44 PM

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?

jimdaworm 03-12-2004 05:09 PM

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

flyfishin 03-12-2004 06:28 PM

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?

dslboy 03-12-2004 09:32 PM

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...

Straterra 03-13-2004 08:44 AM

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.

Straterra 03-14-2004 07:40 AM

Bump

ringwraith 03-14-2004 07:54 AM

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.

jimdaworm 03-14-2004 11:33 AM

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

Straterra 03-14-2004 01:08 PM

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.

jimdaworm 03-14-2004 01:14 PM

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

ringwraith 03-14-2004 04:34 PM

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.

Straterra 03-14-2004 04:39 PM

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.

jimdaworm 03-14-2004 05:09 PM

Your still not answering the questions

ringwraith 03-14-2004 07:20 PM

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.

Straterra 03-15-2004 05:42 AM

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.


All times are GMT -5. The time now is 07:16 PM.