Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.


  Search this Thread
Old 11-14-2010, 07:55 AM   #1
LQ Newbie
Registered: Nov 2010
Posts: 4

Rep: Reputation: 0
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!
Old 11-14-2010, 06:52 PM   #2
Senior Member
Registered: Sep 2009
Location: Orange County, CA
Distribution: Kubuntu x64, Raspbian, CentOS
Posts: 1,850
Blog Entries: 36

Rep: Reputation: 455Reputation: 455Reputation: 455Reputation: 455Reputation: 455
Welcome to LQ,

If uClinux uses a patched kernel from the official kernel then I would hop on over to 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.

Last edited by sag47; 11-14-2010 at 06:58 PM.
Old 11-16-2010, 11:41 AM   #3
LQ Newbie
Registered: Nov 2010
Posts: 4

Original Poster
Rep: Reputation: 0
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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
difficulty in compiling the uClinux for lpc2478 ARM7TDMI using ubuntu9.04 aneeshradhakrishnan Linux - Embedded & Single-board computer 1 04-30-2010 02:05 AM
Compiling uClinux kernel dpeterson3 Linux From Scratch 1 12-30-2009 07:31 AM
uClinux kernel image for ARM7 processor systeme2 Linux - Newbie 0 04-28-2009 05:59 AM
Creating Kernel threads in uClinux!!! ananth86coolguy Programming 0 03-14-2009 07:40 AM
problem in building uClinux kernel bm_soe Red Hat 0 05-29-2007 11:55 PM > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

All times are GMT -5. The time now is 05:00 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration