ukez Posted August 29, 2005 Report Share Posted August 29, 2005 Can anyone explain to me how to update the mandriva kernel to version 2.6.13? Ive downloaded a patch from the linux kernel archives but it doesnt explain how to execute the patch, can anyone help! patch file name is (patch-2.6.13) from www . kernel . org thanks! Moved from Installing Mandriva by theYinYeti. Welcome aboard! Quote Link to comment Share on other sites More sharing options...
theYinYeti Posted August 29, 2005 Report Share Posted August 29, 2005 You cannot "install" a patch file. Such a file is intended to be applied to the previous official kernel release. So there's nothing you can do with it. The easiest way to install a newer kernel is to wait for it to be available in Cooker and install it with urpmi. But I much prefer myself to have the official kernel tarball from kernel.org, and compile/install it myself. Yves. Quote Link to comment Share on other sites More sharing options...
ukez Posted August 29, 2005 Author Report Share Posted August 29, 2005 Ok, so could you explain how i could add this to my original kernel please, if possible. im trying this as im told my lr6650 dvb card will only work on the updated kernel Quote Link to comment Share on other sites More sharing options...
theYinYeti Posted August 29, 2005 Report Share Posted August 29, 2005 Basically, if you want to compile your own kernel in Mandriva, you get the full kernel code from kernel.org (eg: linux-2.6.13.tar.bz2), and you do this: # cd /usr/src # rm -f linux # tar xjf /path/to/linux-2.6.13.tar.bz2 # mv linux-2.6.13 linux-2.6.13-perso # ln -s linux-2.6.13-perso linux # cd linux # make menuconfig (This is if you thereafter choose "-perso" as the subversion) Then you have to configure your kernel. Be sure to read the inline help whenever you are not sure, and don't hesitate to ask in this forum if you don't know what to choose for an option (the default is often safe). With ESC on the top-level menu, you can exit the program and save the configuration at this point; just rerun "make menuconfig" to continue where you left the time before. Take your time, it takes a lot. When you're done, you can compile and install the kernel: # make bzImage modules # make modules_install # cp arch/i386/boot/bzImage /boot/vmlinuz-2.6.13-perso # cp System.map /boot/System.map-2.6.13-perso # mkinitrd /boot/initrd-2.6.13-perso.img 2.6.13-perso You then configure lilo (/etc/lilo.conf) to have a new entry for this new kernel (copy and paste from an existing one, and change the label and paths) and run: # /sbin/lilo -v Give attention to the output of the above command: the paths and labels have to match what you thought you did in lilo.conf. Finally, reboot :) Yves. Quote Link to comment Share on other sites More sharing options...
scarecrow Posted August 29, 2005 Report Share Posted August 29, 2005 http://www.digitalhermit.com/linux/Kernel-Build-HOWTO.html Quote Link to comment Share on other sites More sharing options...
ukez Posted August 29, 2005 Author Report Share Posted August 29, 2005 (edited) You guys are brilliant, i'll give it a shot in a bit... if you dont hear anything back from me its probably becuase ive f'd my computer lol up. i wont let that bother me, if all systems fail i'll just reinstall and try again.. may the force be with me!! :unsure: Edited August 29, 2005 by ukez Quote Link to comment Share on other sites More sharing options...
ukez Posted August 29, 2005 Author Report Share Posted August 29, 2005 i log in as root, start to follow your commands step by step... and before i get anywhere i end up with this Password: [root@192 ~]# cd /usr/src [root@192 src]# rm -f linux [root@192 src]# tar xjf /home/ukez/patch-2.6.13.bz2 tar: This does not look like a tar archive tar: Skipping to next header tar: Archive contains obsolescent base-64 headers tar: Error exit delayed from previous errors [root@192 src]# Quote Link to comment Share on other sites More sharing options...
SoulSe Posted August 30, 2005 Report Share Posted August 30, 2005 I'd reccommend a vanilla kernel. Easy to set up and, imho, far superior to the patched affair you'll get from Mandriva. http://www.kernel.org/ Go pristine, it's the only way to roll. Quote Link to comment Share on other sites More sharing options...
theYinYeti Posted August 30, 2005 Report Share Posted August 30, 2005 The file you have is a patch. To follow my instructions, you have to use the full kernel archive, from kernel.org. It is a file named "linux-xxx", not "patch-xxx". Yves. Quote Link to comment Share on other sites More sharing options...
ukez Posted August 30, 2005 Author Report Share Posted August 30, 2005 ok..just got back from work....damn long day i've had, Boohoo!! Anyways, im going to hunt for the one you said, and give it a go, but this time with feeling Thanks again!! Quote Link to comment Share on other sites More sharing options...
ukez Posted August 31, 2005 Author Report Share Posted August 31, 2005 ok..just got back from work....damn long day i've had, Boohoo!! Anyways, im going to hunt for the one you said, and give it a go, but this time with feeling Thanks again!! <{POST_SNAPBACK}> All went fine up until these lines : cp arch/i386/boot/bzImage /boot/vmlinuz-2.6.13-perso cp System.map /boot/System.map-2.6.13-perso mkinitrd /boot/initrd-2.6.13-perso.img 2.6.13-perso said something about directory not found Quote Link to comment Share on other sites More sharing options...
theYinYeti Posted August 31, 2005 Report Share Posted August 31, 2005 If all went well up to this point, it's a good sign :) Which exactly of those three commands gave the error? And are you running Mandrake or Mandriva? (some here don't) Yves. Quote Link to comment Share on other sites More sharing options...
ukez Posted August 31, 2005 Author Report Share Posted August 31, 2005 If all went well up to this point, it's a good sign :) Which exactly of those three commands gave the error? And are you running Mandrake or Mandriva? (some here don't) Yves. <{POST_SNAPBACK}> to be hoonest i cant remember, don't quote me on it but i think it was : cp arch/i386/boot/bzImage /boot/vmlinuz-2.6.13-perso whats the perso bit anyway? lol I'm using the most recent Mandriva 2005 le i feel so stupid ,. i swear i've been using pcs for year, since the zx81 with the expansion pack lol, bbc computer, commodore vic20 , 64 and even amstrads and sinclair 128+ i should be a guru of this linux thing but to be honest 'i've never looked into it til now. i've only ever known Microsoft.. The Dark Side!!!! But i can gladly say i've only ever bought 1 original licenced copy, and that was just this year lol woohoo... i don't even feel bad. But now i've seen the light... ok not quite, not til i've set up my DVB Tv Card lol, but almost!! Quote Link to comment Share on other sites More sharing options...
ukez Posted August 31, 2005 Author Report Share Posted August 31, 2005 I loved them old computers, i use to have the biggest collection of pirate games that i copied on my dads twin cassette tape deck, and then id sell them on so i could get the money to buy guns and ammunition to take over the world...maybe not, to buy my next game even! Rightfully i should be a millionaire now, cos i was about 9 then. Quote Link to comment Share on other sites More sharing options...
theYinYeti Posted September 1, 2005 Report Share Posted September 1, 2005 As I write this all from memory, I probably wrote a wrong path... Try and execute this: # cd /usr/src/linux # find . -name bzImage -print Yves. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.