View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 11 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Wed Dec 08, 2004 5:29 am 
Offline
Joined: Sun Nov 28, 2004 10:30 am
Posts: 19
Location: Old Europe
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


Top
 Profile  
 
 Post subject:
PostPosted: Wed Dec 08, 2004 10:08 am 
Offline
Joined: Fri May 21, 2004 11:55 pm
Posts: 1206
Location: Silicon Valley, CA
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.

_________________
Do you code to live, or live to code?
Search LinHES forum through Google


Top
 Profile  
 
 Post subject:
PostPosted: Wed Dec 08, 2004 1:50 pm 
Offline
Joined: Fri Sep 19, 2003 7:05 pm
Posts: 5088
Location: Fontana, Ca
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)).

_________________
cesman

When the source is open, the possibilities are endless!


Top
 Profile  
 
 Post subject:
PostPosted: Wed Dec 08, 2004 10:14 pm 
Offline
Joined: Thu Apr 01, 2004 10:44 am
Posts: 677
Location: WA
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?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Dec 08, 2004 10:17 pm 
Offline
Joined: Fri Sep 19, 2003 7:05 pm
Posts: 5088
Location: Fontana, Ca
A new kernel should get it working...

_________________
cesman

When the source is open, the possibilities are endless!


Top
 Profile  
 
 Post subject:
PostPosted: Wed Dec 08, 2004 11:17 pm 
Offline
Joined: Thu Apr 01, 2004 10:44 am
Posts: 677
Location: WA
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 =)


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 09, 2004 2:48 am 
Offline
Joined: Sun Nov 28, 2004 10:30 am
Posts: 19
Location: Old Europe
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! :o (utils do btw)

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 :wink:


Last edited by TomTom101 on Thu Dec 09, 2004 12:04 pm, edited 1 time in total.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 09, 2004 10:33 am 
Offline
Site Admin
Joined: Fri Sep 19, 2003 6:37 pm
Posts: 2659
Location: Whittier, Ca
You're welcome. Did you make clean first?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 09, 2004 10:38 am 
Offline
Joined: Sun Nov 28, 2004 10:30 am
Posts: 19
Location: Old Europe
did so, yeah ...


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 09, 2004 11:22 am 
Offline
Joined: Thu Apr 01, 2004 10:44 am
Posts: 677
Location: WA
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?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 10, 2004 3:58 am 
Offline
Joined: Sun Nov 28, 2004 10:30 am
Posts: 19
Location: Old Europe
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 :cry: , but I'm a fighter!

thomas


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 11 posts ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 11 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu