LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Embedded & Single-board computer (https://www.linuxquestions.org/questions/linux-embedded-and-single-board-computer-78/)
-   -   Patching the uClinux kernel for LPC2478 (https://www.linuxquestions.org/questions/linux-embedded-and-single-board-computer-78/patching-the-uclinux-kernel-for-lpc2478-844190/)

xellsys 11-14-2010 07:55 AM

Patching the uClinux kernel for LPC2478
 
Hi everybody,
I'm new to this forum, but I'm not new to linux. I have been developing under linux (mostly ubuntu) for a few years now. Unfortunately I have not yet much experience when it comes to the kernel.

My latest project (part of my bachelor thesis) is patching the uClinux kernel for the LPC2478 to the latest linux kernel (currently 2.6.36). Officially uClinux supports this architecture (and many more) up to the 2.6.26 kernel.

My problem is the general approach of this. How to approach this task, when trying to patch a kernel for uClinux?

I have been looking all over the web for related information and/or literature but I wasn't able to find something relevant.

I thoroughly hope I could express myself and you can help me with this. I'm not asking for you to do any work that I should be doing (of course), I just need some guideline (or whatever) on how to start.

Thanks in advance!

sag47 11-14-2010 06:52 PM

Welcome to LQ,

If uClinux uses a patched kernel from the official kernel then I would hop on over to kernel.org and get the last official version of the kernel uClinux uses (2.6.26 kernel according to your above post). Then run diff on the uClinux kernel against the official kernel to see what changes were made. Once you know what changes and what files were changed you can view the affected files in the latest kernel.

Hopefully if the changes are relatively minor and the parts which are patched are unchanged from 2.6.26-2.6.36 then you can simply run patch to patch the new kernel. Otherwise you might have to make some changes to your uClinux patch to match the latest kernel.

It would be prudent to run diff on only the affected files between the 2.6.26 and latest kernel to more easily tell if there were any changes in those files between the two versions.

That's how I would tackle it. Please let us know of your results.

xellsys 11-16-2010 11:41 AM

Thanks a lot, I will take a deeper look into the patches as soon as I get to it.
Hopefully the next thing I post will be a stable solution, but I kinda doubt it ;)


All times are GMT -5. The time now is 01:50 AM.