Skip to contentSkip to conversation

Porting ELKS

DISCUSSION Raghavan 4 participants 9 messages Jul 18, 2003 – Jul 29, 2003

lore
Share & tools
lore

Raghavan

author
#0 lore raw

Hi,

I am intending to port ELKS on to Analog Devices's Blackfin DSP Processor.

I am having a couple of questions

(1) Does ELKS take advantage of the MMU facility of the x86 Systems ?. I ask this because the Blackfin does not.

(2) What would be a good strategy to start the porting exercise ? Any previous porting lessons would help.

Bye,
Raghavan V

#1 lore raw
Quoted 2 lines · Raghavan

(1) Does ELKS take advantage of the MMU facility of the x86 Systems ?. I ask this because the Blackfin does not.

ELKS uses the segmentation on the 8086 CPU.

Quoted 2 lines

(2) What would be a good strategy to start the porting exercise ? Any previous porting lessons would help.

It depends what you need the OS for and what size you want. eCOS is probably the better embedded OS and there is mmuless support in the 2.6 development Linux kernels if you want the full thing.

#2 lore raw
In reply to Raghavan

Hi Raghavan,

I think that porting ELKS to the Blackfin is a waste of time. ELKS is written to take advantage of 8086 processor quirks. The Blackfin (or MSA) architecture is quite a bit different.

(1) The Blackfin does not have an TLB based MMU. You cannot use Linux, but you can use uClinux. ELKS is similar to uClinux but the memory models are very different.

(2) You may want to start using uClinux. There already exists a port for Blackfin. You will probably have to contact Analog Devices to get more information regarding this.

Regards,
Faisal

Quoted 21 lines · Raghavan

Hi,

I am intending to port ELKS on to Analog Devices's Blackfin DSP Processor.

I am having a couple of questions

(1) Does ELKS take advantage of the MMU facility of the x86 Systems ?. I ask this because the Blackfin does not.

(2) What would be a good strategy to start the porting exercise ? Any previous porting lessons would help.

Bye,
Raghavan V

-
To unsubscribe from this list: send the line "unsubscribe linux-8086" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

author
#3 lore raw

Syed et al,

Thanks for the Info.

Let me explain the background a little bit as to why I am exploring this. It will give you a better picture.

I wanted to have a few applications on Blackfin DSP. Let's say like web server, rtsp server etc...

I pick up any free application on the Web , they all run on POSIX compliant OS like LINUX.
Porting a full fledged LINUX is really a tough job ( ?) , so I thought ELKS was a good option and started looking at it.

ucLinux seemed a good Idea, I checked with ADI, the answer I got is "The ucLinux port is on the way , but it could take a while .."

I need to have a OS on the BLACKFIN quickly ..so that I get the applications on it ..and hence I was thinking ELKS ...;

Are you saying ELKS would be inefficient on the DSP Processor ..or is it that porting ELKS on Blackfin be like a total rewrite ?

Is eCOS port feasible like say in a 3-4 months time frame ? Is eCOS POSIX compliant ..so that we can get any application compile & run on it easily ?

Bye,
Raghavan V

----- Original Message -----
From: "Syed Faisal Akber" <[email protected]>
To: "Raghavan" <[email protected]>
Cc: <[email protected]>
Sent: Monday, July 21, 2003 1:12 AM
Subject: Re: Porting ELKS

Quoted 10 lines

Hi Raghavan,

I think that porting ELKS to the Blackfin is a waste of time. ELKS is written to take advantage of 8086 processor quirks. The Blackfin (or MSA) architecture is quite a bit different.

(1) The Blackfin does not have an TLB based MMU. You cannot use Linux, but you can use uClinux. ELKS is similar to uClinux but the memory models are very different.

Quoted 12 lines

(2) You may want to start using uClinux. There already exists a port for Blackfin. You will probably have to contact Analog Devices to get more information regarding this.

Regards,
Faisal

Quoted 3 lines · Raghavan

Hi,

I am intending to port ELKS on to Analog Devices's Blackfin DSP

Processor.

Quoted 4 lines
Quoted 4 lines

I am having a couple of questions

(1) Does ELKS take advantage of the MMU facility of the x86 Systems ?. I

ask

Quoted 15 lines
Quoted 14 lines

this because the Blackfin does not.

(2) What would be a good strategy to start the porting exercise ? Any previous porting lessons would help.

Bye,
Raghavan V

-
To unsubscribe from this list: send the line "unsubscribe linux-8086" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#4 lore raw

Hi.

The major part of any port would be to port GCC to the selected processor (which means writing the GCC backend for that processor) so it can compile the relevant source code. Once you've done that, you've cracked 90% of porting either Linux or ELKS across since GCC will compile that much of either for you.

Quoted 15 lines

Let me explain the background a little bit as to why I am exploring this. It will give you a better picture.

I wanted to have a few applications on Blackfin DSP. Let's say like web server, rtsp server etc...

I pick up any free application on the Web , they all run on POSIX compliant OS like LINUX. Porting a full fledged LINUX is really a tough job ( ?) , so I thought ELKS was a good option and started looking at it.

ucLinux seemed a good Idea, I checked with ADI, the answer I got is "The ucLinux port is on the way , but it could take a while .."

Quoted 6 lines

I need to have a OS on the BLACKFIN quickly ..so that I get the applications on it ..and hence I was thinking ELKS ...;

Are you saying ELKS would be inefficient on the DSP Processor ... or is it that porting ELKS on Blackfin be like a total rewrite ?

With either ELKS or Linux, the bulk of the porting job would be with getting GCC to compile for that processor. You'd then be faced with rewriting the assembly language parts of whatever OS you wished to port, and that would essentially be the port done.

Quoted 3 lines

Is eCOS port feasible like say in a 3-4 months time frame ? Is eCOS POSIX compliant ... so that we can get any application compile & run on it easily ?

I can't personally comment on eCOS as I know nothing about it, sorry.

Best wishes from Riley.
---
* Nothing as pretty as a smile, nothing as ugly as a frown.

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.502 / Virus Database: 300 - Release Date: 18-Jul-2003

#5 lore raw

The GCC port does exist, but as with the uClinux kernel you need to contact Analog Devices to get it.

Faisal

Quoted 56 lines · Riley Williams

Hi.

The major part of any port would be to port GCC to the selected processor (which means writing the GCC backend for that processor) so it can compile the relevant source code. Once you've done that, you've cracked 90% of porting either Linux or ELKS across since GCC will compile that much of either for you.

Quoted 15 lines

Let me explain the background a little bit as to why I am exploring this. It will give you a better picture.

I wanted to have a few applications on Blackfin DSP. Let's say like web server, rtsp server etc...

I pick up any free application on the Web , they all run on POSIX compliant OS like LINUX. Porting a full fledged LINUX is really a tough job ( ?) , so I thought ELKS was a good option and started looking at it.

ucLinux seemed a good Idea, I checked with ADI, the answer I got is "The ucLinux port is on the way , but it could take a while .."

Quoted 6 lines

I need to have a OS on the BLACKFIN quickly ..so that I get the applications on it ..and hence I was thinking ELKS ...;

Are you saying ELKS would be inefficient on the DSP Processor ... or is it that porting ELKS on Blackfin be like a total rewrite ?

With either ELKS or Linux, the bulk of the porting job would be with getting GCC to compile for that processor. You'd then be faced with rewriting the assembly language parts of whatever OS you wished to port, and that would essentially be the port done.

Quoted 3 lines

Is eCOS port feasible like say in a 3-4 months time frame ? Is eCOS POSIX compliant ... so that we can get any application compile & run on it easily ?

I can't personally comment on eCOS as I know nothing about it, sorry.

Best wishes from Riley.
---
* Nothing as pretty as a smile, nothing as ugly as a frown.

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.502 / Virus Database: 300 - Release Date: 18-Jul-2003

-
To unsubscribe from this list: send the line "unsubscribe linux-8086" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#6 lore raw
In reply to Raghavan

Porting ELKS to Blackfin would be a complete and total rewrite of the memory management. The segmented memory model doesn't suit the Blackfin processor well and would probably degrade the performance on that processor.

eCOS is POSIX compliant.

Quoted 73 lines · Raghavan

Are you saying ELKS would be inefficient on the DSP Processor ..or is it that porting ELKS on Blackfin be like a total rewrite ?

Is eCOS port feasible like say in a 3-4 months time frame ? Is eCOS POSIX compliant ..so that we can get any application compile & run on it easily ?

Bye,
Raghavan V

----- Original Message -----
From: "Syed Faisal Akber" <[email protected]>
To: "Raghavan" <[email protected]>
Cc: <[email protected]>
Sent: Monday, July 21, 2003 1:12 AM
Subject: Re: Porting ELKS

Quoted 10 lines

Hi Raghavan,

I think that porting ELKS to the Blackfin is a waste of time. ELKS is written to take advantage of 8086 processor quirks. The Blackfin (or MSA) architecture is quite a bit different.

(1) The Blackfin does not have an TLB based MMU. You cannot use Linux, but you can use uClinux. ELKS is similar to uClinux but the memory models are very different.

Quoted 12 lines

(2) You may want to start using uClinux. There already exists a port for Blackfin. You will probably have to contact Analog Devices to get more information regarding this.

Regards,
Faisal

Quoted 3 lines · Raghavan

Hi,

I am intending to port ELKS on to Analog Devices's Blackfin DSP

Processor.

Quoted 4 lines
Quoted 4 lines

I am having a couple of questions

(1) Does ELKS take advantage of the MMU facility of the x86 Systems ?. I

ask

Quoted 9 lines
Quoted 9 lines

this because the Blackfin does not.

(2) What would be a good strategy to start the porting exercise ? Any previous porting lessons would help.

Bye,
Raghavan V

Quoted 6 lines
Quoted 5 lines

-
To unsubscribe from this list: send the line "unsubscribe linux-8086" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

-
To unsubscribe from this list: send the line "unsubscribe linux-8086" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

author
#7 lore raw

Fasal,

Thanks very much for the reply.

If I understand you correctly, we "can" have a port of ELKS as is without change in Memory model , but it
will possibly be pedestrian.

I took a look at eCOS , but it looks like a nice full fledged OS with excellent features. Porting it might be
a difficult task might be like an Year or so ...

I am inclined towards ELKS because I can possibly have a port like in 3 to 4 months ...
My priority is really to have applications running on Blackfin ASAP.

Also, why do we need to have gcc ported ?
Cant I use the native compiler provided by ADI guys for the Blackfin Processor ?
Yeah..I need to tweak the compiler options to the respective equivalents on Blackfin Compiler ..; I am not seeing anything else ...
Am I missing something ?

Am I looking too optimistic to assume a 'as is' port of ELKS to Blackfin in 3 to 4 months ? I was thinking of taking Memory management after I have a 'working' version of ELKS ...

Does this sound reasonable ?

Bye,
Raghavan V

----- Original Message -----
From: "Syed Faisal Akber" <[email protected]>
To: "Raghavan" <[email protected]>
Cc: <[email protected]>
Sent: Monday, July 21, 2003 10:18 PM
Subject: Re: Porting ELKS

Quoted 5 lines

Porting ELKS to Blackfin would be a complete and total rewrite of the memory management. The segmented memory model doesn't suit the Blackfin processor well and would probably degrade the performance on that processor.

Quoted 11 lines

eCOS is POSIX compliant.

Quoted 7 lines · Raghavan

Are you saying ELKS would be inefficient on the DSP Processor ..or is it that porting ELKS on Blackfin be like a total rewrite ?

Is eCOS port feasible like say in a 3-4 months time frame ? Is eCOS

POSIX

Quoted 1 line
Quoted 1 line

compliant ..so that we can get any application compile & run on it

easily ?

Quoted 16 lines
Quoted 16 lines

Bye,
Raghavan V

----- Original Message -----
From: "Syed Faisal Akber" <[email protected]>
To: "Raghavan" <[email protected]>
Cc: <[email protected]>
Sent: Monday, July 21, 2003 1:12 AM
Subject: Re: Porting ELKS

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

Hi Raghavan,

I think that porting ELKS to the Blackfin is a waste of time. ELKS is written to take advantage of 8086 processor quirks. The Blackfin (or

MSA)

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

architecture is quite a bit different.

(1) The Blackfin does not have an TLB based MMU. You cannot use

Linux,

Quoted 1 line
Quoted 1 line
Quoted 1 line

but you can use uClinux. ELKS is similar to uClinux but the memory

models

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

are very different.

(2) You may want to start using uClinux. There already exists a port

for

Quoted 1 line
Quoted 1 line
Quoted 1 line

Blackfin. You will probably have to contact Analog Devices to get

more

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

information regarding this.

Regards,
Faisal

On Fri, 18 Jul 2003, Raghavan wrote:

Quoted 8 lines
Quoted 8 lines
Quoted 3 lines
Quoted 3 lines

Hi,

I am intending to port ELKS on to Analog Devices's Blackfin DSP

Processor.

Quoted 4 lines
Quoted 4 lines

I am having a couple of questions

(1) Does ELKS take advantage of the MMU facility of the x86 Systems

?. I

Quoted 4 lines
Quoted 4 lines

ask

Quoted 3 lines
Quoted 3 lines

this because the Blackfin does not.

(2) What would be a good strategy to start the porting exercise ?

Any

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

previous porting lessons would help.

Bye,
Raghavan V

-
To unsubscribe from this list: send the line "unsubscribe

linux-8086" in

Quoted 11 lines
Quoted 10 lines
Quoted 4 lines
Quoted 3 lines

the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

-
To unsubscribe from this list: send the line "unsubscribe linux-8086" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#8 lore raw
Quoted 7 lines · Raghavan

Fasal,

Thanks very much for the reply.

If I understand you correctly, we "can" have a port of ELKS as is without change in Memory model , but it
will possibly be pedestrian.

No, you will have to make major changes in the way the memory and other platform specific things are handled.

Quoted 5 lines

I took a look at eCOS , but it looks like a nice full fledged OS with excellent features. Porting it might be
a difficult task might be like an Year or so ...

Sounds about right if you are doing it alone with little knowledge of the OS you are working on.

Quoted 4 lines

I am inclined towards ELKS because I can possibly have a port like in 3 to 4 months ...
My priority is really to have applications running on Blackfin ASAP.

It would take longer to do this

Quoted 1 line

Also, why do we need to have gcc ported ?

Most of the opensource OS's require gcc as a compiler. This is because they take advantage of its special features. Also GCC is more likely to conform to C language standards than compilers provided by chip manufacturers.

Quoted 2 lines

Cant I use the native compiler provided by ADI guys for the Blackfin Processor ?

If you like but it would be more difficult to use and you would have to port much more of the code to support the compiler. I have used VisualDSP for BLACKfin and found it to have many quirks.

Quoted 3 lines

Yeah..I need to tweak the compiler options to the respective equivalents on Blackfin Compiler ..; I am not seeing anything else ...
Am I missing something ?

The two compilers are by no means the same at all. Using the commercial compiler will cause you grief and cause your project timelines to be extended 2 to 3 fold.

Quoted 5 lines

Am I looking too optimistic to assume a 'as is' port of ELKS to Blackfin in 3 to 4 months ? I was thinking of taking Memory management after I have a 'working' version of ELKS ...

An AS IS port will not work for you.

Quoted 2 lines

Does this sound reasonable ?

The eCOS does sound reasonable, but I think using ELKS would be in the same realm. The regular Linux 2.6 kernel now has full support of MMU-less systems. You might want to look at it as an alternative.

Regards,
Faisal