LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 11-14-2010, 08:55 AM   #1
xellsys
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, 07:52 PM   #2
sag47
Senior Member
 
Registered: Sep 2009
Location: Philly, PA
Distribution: Kubuntu x64, RHEL, Fedora Core, FreeBSD, Windows x64
Posts: 1,505
Blog Entries: 35

Rep: Reputation: 383Reputation: 383Reputation: 383Reputation: 383
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.

Last edited by sag47; 11-14-2010 at 07:58 PM.
 
Old 11-16-2010, 12:41 PM   #3
xellsys
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
 
  


Reply


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 03:05 AM
Compiling uClinux kernel dpeterson3 Linux From Scratch 1 12-30-2009 08:31 AM
uClinux kernel image for ARM7 processor systeme2 Linux - Newbie 0 04-28-2009 06:59 AM
Creating Kernel threads in uClinux!!! ananth86coolguy Programming 0 03-14-2009 08:40 AM
problem in building uClinux kernel bm_soe Red Hat 0 05-30-2007 12:55 AM


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

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