public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* Re: [ECOS] How to run eCos in SMDK41100 board
@ 2001-01-30 18:42 james chen
  2001-01-30 19:04 ` Jonathan Larmour
  0 siblings, 1 reply; 14+ messages in thread
From: james chen @ 2001-01-30 18:42 UTC (permalink / raw)
  To: ecos-discuss

Hello,
       I knew eCos a few days ago, so eCos is very new for me, but eCos is a
quite good RTOS for our requirement. Now I have a SMDK41100 board (Samsung
MCU Development Kit) based on S3C44B0X (CPU is ARM7TDMI), I don't know how
to let eCos run on it. the SMDK41100 board doesn't have eth net, can I run
RedBoot through serial port and how to do it?

  Many thanks,

  James





^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [ECOS] How to run eCos in SMDK41100 board
  2001-01-30 18:42 [ECOS] How to run eCos in SMDK41100 board james chen
@ 2001-01-30 19:04 ` Jonathan Larmour
  2001-01-30 19:45   ` james chen
  0 siblings, 1 reply; 14+ messages in thread
From: Jonathan Larmour @ 2001-01-30 19:04 UTC (permalink / raw)
  To: james chen; +Cc: ecos-discuss

james chen wrote:
> 
> Now I have a SMDK41100 board (Samsung
> MCU Development Kit) based on S3C44B0X (CPU is ARM7TDMI), I don't know how
> to let eCos run on it. the SMDK41100 board doesn't have eth net, can I run
> RedBoot through serial port and how to do it?

Yes RedBoot can be used over serial. To port a new board, generally the
advice is to copy an existing port that is closest to what you have. In
your case, the PID may be a good start. Then adapt it bit by bit for your
board.

See http://sources.redhat.com/ecos/docs-latest/porting/index.html for some
more detail.

Jifl
-- 
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [ECOS] How to run eCos in SMDK41100 board
  2001-01-30 19:04 ` Jonathan Larmour
@ 2001-01-30 19:45   ` james chen
  2001-01-30 19:50     ` Jonathan Larmour
  0 siblings, 1 reply; 14+ messages in thread
From: james chen @ 2001-01-30 19:45 UTC (permalink / raw)
  To: Jonathan Larmour; +Cc: ecos-discuss

Thank you for your reply. now I have another question. I have installed
linux(RedHat7) and gcc version is 2.96, now I can use it to compile Linux
synthetic target, can I use this gcc to compile arm based CPU( for example
ARM7)? or I should have another( arm-elf-gcc), if then where can I get it?

Thanks

James Chen

> james chen wrote:
> >
> > Now I have a SMDK41100 board (Samsung
> > MCU Development Kit) based on S3C44B0X (CPU is ARM7TDMI), I don't know
how
> > to let eCos run on it. the SMDK41100 board doesn't have eth net, can I
run
> > RedBoot through serial port and how to do it?
>
> Yes RedBoot can be used over serial. To port a new board, generally the
> advice is to copy an existing port that is closest to what you have. In
> your case, the PID may be a good start. Then adapt it bit by bit for your
> board.
>
> See http://sources.redhat.com/ecos/docs-latest/porting/index.html for some
> more detail.
>
> Jifl
> --
> Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
> Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine
>


^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [ECOS] How to run eCos in SMDK41100 board
  2001-01-30 19:45   ` james chen
@ 2001-01-30 19:50     ` Jonathan Larmour
  2001-01-30 19:54       ` Lewin A.R.W. Edwards
  0 siblings, 1 reply; 14+ messages in thread
From: Jonathan Larmour @ 2001-01-30 19:50 UTC (permalink / raw)
  To: james chen; +Cc: ecos-discuss

james chen wrote:
> 
> Thank you for your reply. now I have another question. I have installed
> linux(RedHat7) and gcc version is 2.96, now I can use it to compile Linux
> synthetic target, can I use this gcc to compile arm based CPU( for example
> ARM7)? or I should have another( arm-elf-gcc), if then where can I get it?

Follow the instructions on the eCos web site to build ARM development tools
for linux. http://sources.redhat.com/ecos/install-linux.html

Jifl
-- 
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [ECOS] How to run eCos in SMDK41100 board
  2001-01-30 19:50     ` Jonathan Larmour
@ 2001-01-30 19:54       ` Lewin A.R.W. Edwards
  2001-01-30 20:05         ` Jonathan Larmour
  0 siblings, 1 reply; 14+ messages in thread
From: Lewin A.R.W. Edwards @ 2001-01-30 19:54 UTC (permalink / raw)
  To: ecos-discuss

> > linux(RedHat7) and gcc version is 2.96, now I can use it to compile Linux
> > synthetic target, can I use this gcc to compile arm based CPU( for example
> > ARM7)? or I should have another( arm-elf-gcc), if then where can I get it?
>
>Follow the instructions on the eCos web site to build ARM development tools
>for linux. http://sources.redhat.com/ecos/install-linux.html

But ignore the instructions on how to build for arm-thumb, because it 
doesn't seem to work with any downloadable version of the gcc source tree. 
Build the regular arm-elf version.

(If anyone has a fix for this problem, I'd be keen to hear. My code is just 
MPEG, JPEG and a DOS filesystem, and it is about 630K in size).

=== Lewin A.R.W. Edwards (Embedded Engineer)
Work: http://www.digi-frame.com/
Personal: http://www.zws.com/ and http://www.larwe.com/

"Und setzet ihr nicht das Leben ein,
Nie wird euch das Leben gewonnen sein."

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [ECOS] How to run eCos in SMDK41100 board
  2001-01-30 19:54       ` Lewin A.R.W. Edwards
@ 2001-01-30 20:05         ` Jonathan Larmour
  2001-01-30 20:11           ` Lewin A.R.W. Edwards
  0 siblings, 1 reply; 14+ messages in thread
From: Jonathan Larmour @ 2001-01-30 20:05 UTC (permalink / raw)
  To: Lewin A.R.W. Edwards; +Cc: ecos-discuss

"Lewin A.R.W. Edwards" wrote:
> 
> But ignore the instructions on how to build for arm-thumb, because it
> doesn't seem to work with any downloadable version of the gcc source tree.
> Build the regular arm-elf version.

If you are referring to the change in gcc that meant that you could no
longer configure gcc for "thumb-elf", and instead using regular arm-elf
tools with -mthumb, then that was fixed quite a while ago.

Jifl
-- 
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [ECOS] How to run eCos in SMDK41100 board
  2001-01-30 20:05         ` Jonathan Larmour
@ 2001-01-30 20:11           ` Lewin A.R.W. Edwards
  2001-01-30 20:14             ` Jonathan Larmour
  0 siblings, 1 reply; 14+ messages in thread
From: Lewin A.R.W. Edwards @ 2001-01-30 20:11 UTC (permalink / raw)
  To: Jonathan Larmour; +Cc: ecos-discuss

> > But ignore the instructions on how to build for arm-thumb, because it
> > doesn't seem to work with any downloadable version of the gcc source tree.
> > Build the regular arm-elf version.
>
>If you are referring to the change in gcc that meant that you could no
>longer configure gcc for "thumb-elf", and instead using regular arm-elf
>tools with -mthumb, then that was fixed quite a while ago.

Two things:

1. When is "quite a while ago"? The last time I tried it was about two 
months ago, maybe less. TTBOMK there has not been a new gcc release since 
then...?

2. Correct me if I misunderstand the situation, but the state of affairs 
with the current versions of gcc and binutils seems to be that you can 
configure binutils so that it will support assembly of thumb instructions 
(with -mthumb to gas) but gcc will not take advantage of this. So you can 
only take advantage of thumb if you are writing in assembler, meaning that 
thumb support is basically broken at this time.

=== Lewin A.R.W. Edwards (Embedded Engineer)
Work: http://www.digi-frame.com/
Personal: http://www.zws.com/ and http://www.larwe.com/

"Und setzet ihr nicht das Leben ein,
Nie wird euch das Leben gewonnen sein."

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [ECOS] How to run eCos in SMDK41100 board
  2001-01-30 20:11           ` Lewin A.R.W. Edwards
@ 2001-01-30 20:14             ` Jonathan Larmour
  2001-01-30 20:19               ` Lewin A.R.W. Edwards
  0 siblings, 1 reply; 14+ messages in thread
From: Jonathan Larmour @ 2001-01-30 20:14 UTC (permalink / raw)
  To: Lewin A.R.W. Edwards; +Cc: ecos-discuss

"Lewin A.R.W. Edwards" wrote:
> 
> > > But ignore the instructions on how to build for arm-thumb, because it
> > > doesn't seem to work with any downloadable version of the gcc source tree.
> > > Build the regular arm-elf version.
> >
> >If you are referring to the change in gcc that meant that you could no
> >longer configure gcc for "thumb-elf", and instead using regular arm-elf
> >tools with -mthumb, then that was fixed quite a while ago.
> 
> Two things:
> 
> 1. When is "quite a while ago"? The last time I tried it was about two
> months ago, maybe less. TTBOMK there has not been a new gcc release since
> then...?

I meant that the instructions were updated to reflect the change in gcc.

> 2. Correct me if I misunderstand the situation, but the state of affairs
> with the current versions of gcc and binutils seems to be that you can
> configure binutils so that it will support assembly of thumb instructions
> (with -mthumb to gas) but gcc will not take advantage of this. So you can
> only take advantage of thumb if you are writing in assembler, meaning that
> thumb support is basically broken at this time.

My understanding is that compiling with "arm-elf-gcc -mthumb" should work.
Does it not?

Jifl
-- 
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [ECOS] How to run eCos in SMDK41100 board
  2001-01-30 20:14             ` Jonathan Larmour
@ 2001-01-30 20:19               ` Lewin A.R.W. Edwards
  2001-01-30 20:24                 ` Jonathan Larmour
  0 siblings, 1 reply; 14+ messages in thread
From: Lewin A.R.W. Edwards @ 2001-01-30 20:19 UTC (permalink / raw)
  To: Jonathan Larmour; +Cc: ecos-discuss

> > > > Build the regular arm-elf version.
> > >
> > >If you are referring to the change in gcc that meant that you could no
> > >longer configure gcc for "thumb-elf", and instead using regular arm-elf
> > >tools with -mthumb, then that was fixed quite a while ago.
> >
>
>I meant that the instructions were updated to reflect the change in gcc.

Ummm.. which change is this? From extensive talking with people who 
understand a lot more about gcc/binutils than I do, it seems that thumb 
just no worky. The specific thumb target is broken (or rather, removed) and 
the codegen option is broken or missing.

> > (with -mthumb to gas) but gcc will not take advantage of this. So you can
> > only take advantage of thumb if you are writing in assembler, meaning that
> > thumb support is basically broken at this time.
>
>My understanding is that compiling with "arm-elf-gcc -mthumb" should work.
>Does it not?

Nope. cc1.exe says it's an invalid option. (gcc 2.95.2)

=== Lewin A.R.W. Edwards (Embedded Engineer)
Work: http://www.digi-frame.com/
Personal: http://www.zws.com/ and http://www.larwe.com/

"Und setzet ihr nicht das Leben ein,
Nie wird euch das Leben gewonnen sein."

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [ECOS] How to run eCos in SMDK41100 board
  2001-01-30 20:19               ` Lewin A.R.W. Edwards
@ 2001-01-30 20:24                 ` Jonathan Larmour
  2001-01-30 20:30                   ` Lewin A.R.W. Edwards
  0 siblings, 1 reply; 14+ messages in thread
From: Jonathan Larmour @ 2001-01-30 20:24 UTC (permalink / raw)
  To: Lewin A.R.W. Edwards; +Cc: ecos-discuss

"Lewin A.R.W. Edwards" wrote:
> 
> > > > > Build the regular arm-elf version.
> > > >
> > > >If you are referring to the change in gcc that meant that you could no
> > > >longer configure gcc for "thumb-elf", and instead using regular arm-elf
> > > >tools with -mthumb, then that was fixed quite a while ago.
> > >
> >
> >I meant that the instructions were updated to reflect the change in gcc.
> 
> Ummm.. which change is this? From extensive talking with people who
> understand a lot more about gcc/binutils than I do, it seems that thumb
> just no worky. The specific thumb target is broken (or rather, removed) and
> the codegen option is broken or missing.

No, the ARM/thumb backends in gcc were merged, which is why the specific
thumb target was removed.
 
> > > (with -mthumb to gas) but gcc will not take advantage of this. So you can
> > > only take advantage of thumb if you are writing in assembler, meaning that
> > > thumb support is basically broken at this time.
> >
> >My understanding is that compiling with "arm-elf-gcc -mthumb" should work.
> >Does it not?
> 
> Nope. cc1.exe says it's an invalid option. (gcc 2.95.2)

Thumb is not supported in any form in gcc 2.95.2. You have to use a
snapshot, which is what the instructions on the web page say.

Jifl
-- 
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [ECOS] How to run eCos in SMDK41100 board
  2001-01-30 20:24                 ` Jonathan Larmour
@ 2001-01-30 20:30                   ` Lewin A.R.W. Edwards
  2001-01-30 20:41                     ` Jonathan Larmour
  0 siblings, 1 reply; 14+ messages in thread
From: Lewin A.R.W. Edwards @ 2001-01-30 20:30 UTC (permalink / raw)
  To: Jonathan Larmour; +Cc: ecos-discuss

>Thumb is not supported in any form in gcc 2.95.2. You have to use a
>snapshot, which is what the instructions on the web page say.

These instructions still talk about the 20000313 snapshot. It may be my 
personal CVS jinx, but the instructions on 
< http://sources.redhat.com/ecos/tools/win-thumb-elf.html > do not work 
(fails either building or configuring that 20000313 gcc snapshot; I forget 
which). It's therefore fairly certain that this process was either not 
tested with the above checkout date under cygwin, or the Red Hat anoncvs 
server when requested for a snapshot of that date gives something 
different. (The stackalign.pat doesn't apply either, or at least didn't for 
me).

I remember discussing this whole matter when I first joined the 
ecos-discuss list in mid-November; has anything changed since then, to your 
knowledge?

Is anyone on the list actually using a thumb ARM?

=== Lewin A.R.W. Edwards (Embedded Engineer)
Work: http://www.digi-frame.com/
Personal: http://www.zws.com/ and http://www.larwe.com/

"Und setzet ihr nicht das Leben ein,
Nie wird euch das Leben gewonnen sein."

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [ECOS] How to run eCos in SMDK41100 board
  2001-01-30 20:30                   ` Lewin A.R.W. Edwards
@ 2001-01-30 20:41                     ` Jonathan Larmour
  2001-01-30 20:43                       ` Lewin A.R.W. Edwards
  0 siblings, 1 reply; 14+ messages in thread
From: Jonathan Larmour @ 2001-01-30 20:41 UTC (permalink / raw)
  To: Lewin A.R.W. Edwards; +Cc: ecos-discuss

"Lewin A.R.W. Edwards" wrote:
> 
> >Thumb is not supported in any form in gcc 2.95.2. You have to use a
> >snapshot, which is what the instructions on the web page say.
> 
> These instructions still talk about the 20000313 snapshot. It may be my
> personal CVS jinx, but the instructions on
> < http://sources.redhat.com/ecos/tools/win-thumb-elf.html > do not work
> (fails either building or configuring that 20000313 gcc snapshot; I forget
> which).

Ah, that's a mistake then. Mentioning that snapshot date was included by
accident because it was a boilerplate.

> It's therefore fairly certain that this process was either not
> tested with the above checkout date under cygwin, or the Red Hat anoncvs
> server when requested for a snapshot of that date gives something
> different. (The stackalign.pat doesn't apply either, or at least didn't for
> me).

Mentioning that checkout date was the mistake, that's all. Using a recent
snapshot should result in much better behaviour. And the descripion of
stackalign.pat does say it doesn't apply for snapshots after 2000-03-13.

I'll remove the snapshot date.

Jifl
-- 
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [ECOS] How to run eCos in SMDK41100 board
  2001-01-30 20:41                     ` Jonathan Larmour
@ 2001-01-30 20:43                       ` Lewin A.R.W. Edwards
  2001-01-31  1:04                         ` Ling Su
  0 siblings, 1 reply; 14+ messages in thread
From: Lewin A.R.W. Edwards @ 2001-01-30 20:43 UTC (permalink / raw)
  To: Jonathan Larmour; +Cc: ecos-discuss

>Ah, that's a mistake then. Mentioning that snapshot date was included by
>accident because it was a boilerplate.

Argh!

> > different. (The stackalign.pat doesn't apply either, or at least didn't for
> > me).
>
>Mentioning that checkout date was the mistake, that's all. Using a recent
>snapshot should result in much better behaviour. And the descripion of
>stackalign.pat does say it doesn't apply for snapshots after 2000-03-13.

However, the web page does say that it is applicable to snaps up to and 
including 20000313!! Please fix that too.


=== Lewin A.R.W. Edwards (Embedded Engineer)
Work: http://www.digi-frame.com/
Personal: http://www.zws.com/ and http://www.larwe.com/

"Und setzet ihr nicht das Leben ein,
Nie wird euch das Leben gewonnen sein."

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [ECOS] How to run eCos in SMDK41100 board
  2001-01-30 20:43                       ` Lewin A.R.W. Edwards
@ 2001-01-31  1:04                         ` Ling Su
  0 siblings, 0 replies; 14+ messages in thread
From: Ling Su @ 2001-01-31  1:04 UTC (permalink / raw)
  To: Jonathan Larmour, Lewin A.R.W. Edwards; +Cc: ecos-discuss

>
> >Ah, that's a mistake then. Mentioning that snapshot date was included by
> >accident because it was a boilerplate.
>
> Argh!
>
> > > different. (The stackalign.pat doesn't apply either, or at least
didn't for
> > > me).
> >
> >Mentioning that checkout date was the mistake, that's all. Using a recent
> >snapshot should result in much better behaviour. And the descripion of
> >stackalign.pat does say it doesn't apply for snapshots after 2000-03-13.
>
> However, the web page does say that it is applicable to snaps up to and
> including 20000313!! Please fix that too.
>

I thought the same problems applied on vrc4373 environment, I followed the
instructions to build a cross compiler for vr4300 by using snapshot
20000313, I didn't find a stable way to do it in Window2000 environment. I
failed when I update to a new version cygwin. I can not find a simple rule
to follow, so at last I quit it and move it Linux. It is working always.

-Ling

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2001-01-31  1:04 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-01-30 18:42 [ECOS] How to run eCos in SMDK41100 board james chen
2001-01-30 19:04 ` Jonathan Larmour
2001-01-30 19:45   ` james chen
2001-01-30 19:50     ` Jonathan Larmour
2001-01-30 19:54       ` Lewin A.R.W. Edwards
2001-01-30 20:05         ` Jonathan Larmour
2001-01-30 20:11           ` Lewin A.R.W. Edwards
2001-01-30 20:14             ` Jonathan Larmour
2001-01-30 20:19               ` Lewin A.R.W. Edwards
2001-01-30 20:24                 ` Jonathan Larmour
2001-01-30 20:30                   ` Lewin A.R.W. Edwards
2001-01-30 20:41                     ` Jonathan Larmour
2001-01-30 20:43                       ` Lewin A.R.W. Edwards
2001-01-31  1:04                         ` Ling Su

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).