LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 07-07-2010, 01:04 PM   #1
japreja
LQ Newbie
 
Registered: Jul 2010
Posts: 2

Rep: Reputation: 0
Question Porting question...


Hi all, I am not new to linux, but I am new to porting and programming with linux. I guess this is more of a kernel question since I am interested in porting linux to Paralax's Propeller microcontroller.

The Propeller is an 8 core RISC based mcu that does not support interupts. more info about the mcu at http://www.parallax.com/ProductInfo/...2/Default.aspx

I know I have to tell gcc or gas about the opcodes, then I have to make or obtain src for a micro kernel and successfully. I will basicaly have to create my own BIOS too.

I think my first starting point should be to create a linux standard for the Propeller so the kernel can find devices like keyboard/mouse/video/SD-Card on specific pins of the mcu.

I have never written a kernel, only compiled/configured them for my various systems. I started delving into the kernel source and it is overwhelming. Where do I start?? Do I have to start coding from scratch?? How do I add/create files to tell gcc/gas about the supported opcodes and what they do?? Am i on the right path??

One last question, is anyone with core knowledge of linux willing to help with samples or templates to get me started, or is this already a work in progress??
 
Old 07-07-2010, 01:17 PM   #2
Sergei Steshenko
Senior Member
 
Registered: May 2005
Posts: 4,481

Rep: Reputation: 453Reputation: 453Reputation: 453Reputation: 453Reputation: 453
Quote:
Originally Posted by japreja View Post
... I know I have to tell gcc or gas about the opcodes ...
This is pretty serious project by itself. Especially taking into account the issue of optimization to be performed by 'gcc'.

If there is a good compiler for the controller, you better consider converting produced by it object files into the form acceptable by gcc/ld.
 
Old 07-07-2010, 02:08 PM   #3
japreja
LQ Newbie
 
Registered: Jul 2010
Posts: 2

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Sergei Steshenko View Post
This is pretty serious project by itself. Especially taking into account the issue of optimization to be performed by 'gcc'.

If there is a good compiler for the controller, you better consider converting produced by it object files into the form acceptable by gcc/ld.
I know this is a big project that will not only require support from linux enthusiasts but from the propeller enthusiests as well, I have posted a thread on the forums at parallax and I am hoping to get alot of support there, which will be required. There on the propeller forum, most users will, I hope, support it and will have fun with it. There are one or two users there who are activly trying to create an OS but they are doing it alone for the most part. here is a link for cross referance to the thread I just posted http://forums.parallax.com/forums/de...?f=25&m=467521 over the next few days support there should grow and I know a project this size will not get support here unless it is supported there first.

Lets hope for the best....
 
  


Reply

Tags
kernel, linux, port, porting


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
Porting help Me_Nit General 11 06-15-2009 11:17 PM
porting help tamilm Linux - Networking 1 09-25-2008 08:49 PM
Porting question kwt0 Linux - Software 1 05-25-2005 12:50 PM
Huge Porting application question el_scrub Programming 5 06-10-2004 06:05 AM
Game porting question , please take part jamaso General 11 03-06-2003 01:11 PM


All times are GMT -5. The time now is 10:54 AM.

Main Menu
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