LinHES Forums http://forum.linhes.org/ |
|
Patching and recompiling the KnoppMyth kernel http://forum.linhes.org/viewtopic.php?f=6&t=3027 |
Page 1 of 1 |
Author: | TomTom101 [ Wed Dec 08, 2004 5:29 am ] |
Post subject: | Patching and recompiling the KnoppMyth kernel |
Hey, due to my unknown IDE controller problem (http://mysettopbox.tv/phpBB2/viewtopic.php?t=3007), I need to patch the KnoppMyth kernel to version 2.4.27. (I bootet a Knoppix CD with that kernel and activating DMA does work there!) When applying the (kernel.org) patches, I either get a warning, that a patch has already been applied asking me to a) remove the previous patch and b) whether to apply the new one OR I am told that the patch wants to create a file, that already exist. All not to surprising, since the KnoppMyth kernel is not the standard kernel (that's what I heard), but I am unsure what to do in this situation. I do wonder however about some files already existing in the KnoppMyth source when they were added in a later kernel release?! Does someone has any suggestions on how to proceed with this in order to get a clean source? Should I diff the whole KnoppMyth kernel source against the kernel.org source and decide from file to file, how to go ahead (in case I am able to decide on that)? Or won't this work at all for some reason I can't see? Thanks for your opinions Thomas |
Author: | Liv2Cod [ Wed Dec 08, 2004 10:08 am ] |
Post subject: | |
Your message is too vague to give any specific advice. It would be useful it you would post EXACTLY which files already exist, or patches are complaining. Then someone with more experience (than me) could advise you on how to proceed. |
Author: | cesman [ Wed Dec 08, 2004 1:50 pm ] |
Post subject: | |
The kernel I use is always the standard kernel (kernel.org). The kernel is patched for various, things, v4l2, etc. I assume you're just trying to apply the 2.4.27 patch to 2.4.25-chw? If parts are redundant, then it is is possible what I've added has been added to the newer kernel. You can answer 'n' to those parts (will result in reject). You can also download the full .27 and apply whatever patches you need to to that (cleaner)). |
Author: | gr8nash [ Wed Dec 08, 2004 10:14 pm ] |
Post subject: | |
cesman do you think a new kernel on r4v5 would get the hd3000 drivers to build? would that pretty much get it working or is there other problems? |
Author: | cesman [ Wed Dec 08, 2004 10:17 pm ] |
Post subject: | |
A new kernel should get it working... |
Author: | gr8nash [ Wed Dec 08, 2004 11:17 pm ] |
Post subject: | |
cool then i have next weeks project layed out.. =) if you have any tips let me know.. if not.. ill just start fiddling..2.6.8 is sounding good to me =) |
Author: | TomTom101 [ Thu Dec 09, 2004 2:48 am ] |
Post subject: | |
UPDATE: Tidied up a bit. Thanks cesman, I did get myself a clean 2.4.27 source instead of patching the 2.4.25-chw: I made a symbolic link to the new source. I took the old config, made Code: make oldconfig I disabled pretty much every hardware support in there, I won't need (SCSI-drivers, chipset drivers (except mine of course), soundcard and network drivers and the like...) Did a Code: make-kpkg --append-to-version=.clean kernel_image and finally a Code: dpkg -i kernel-image-2.4.27.clean_10.00.Custom_i386.deb Updated lilo and added the new kernel instead of dpkg messing around there (dpkg creates a terrible lilo.conf imho) All works, new kernel boots, I CAN activate DMA! (relief arose) Can't compile ivtv-drivers! ![]() The Code: make after a Code: make clean bails out with a whole bunch of errors, even parse errors it apparently found in the source?! (the /lib/modules/2.4.27.clean/build/ tree, if I remember correctly).
What could I possible have done wrong for such a result? I guess it's not helpful to post the error output, since I don't expect the solution to be in there. Probably there are just some pitfalls I need to maneuver around. Did I just forget some step? Thanks again! Thomas PS: I'd need a Tier 12 section for my installation ![]() |
Author: | cecil [ Thu Dec 09, 2004 10:33 am ] |
Post subject: | |
You're welcome. Did you make clean first? |
Author: | TomTom101 [ Thu Dec 09, 2004 10:38 am ] |
Post subject: | |
did so, yeah ... |
Author: | gr8nash [ Thu Dec 09, 2004 11:22 am ] |
Post subject: | |
tom would it be to much of a problem to goback and edit your post into more of a howto using the code botton and all so others like myself can use it? |
Author: | TomTom101 [ Fri Dec 10, 2004 3:58 am ] |
Post subject: | |
Hi everyone, so I did again ... I reconfigured my kernel, threw out scsi emulation and disabled AGP support since my NVIDIA driver didn't compile either. I removed the lib/modules/2.4.27.clean/ dir and did the same steps to recompile my kernel. Only difference was, that I did not touch lilo this time, because the correct boot settings were alread done. After the first reboot with the newly compiled kernel, nothing happend at all after lilo showed the Code: Loading Linux27 message.I botted with the 2.4.25 kernel, did a Code: $ lilo , rebooted the new one and for whatever reason compilation does work now!
I have no idea what really made the difference, it must have been a small one! So thanks for your time and consider this problem solved! (Well, sure I got new ones with my new kernel ![]() thomas |
Page 1 of 1 | All times are UTC - 6 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |