public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] Some simple questitions
@ 2006-09-04  7:05 Dmitry Varakin
  2006-09-04 11:37 ` Jürgen Lambrecht
  2006-09-04 18:47 ` [ECOS] " Grant Edwards
  0 siblings, 2 replies; 9+ messages in thread
From: Dmitry Varakin @ 2006-09-04  7:05 UTC (permalink / raw)
  To: ecos-discuss

Hello!

I have questitions about eCos:
1. Is it possible to change MAC and IP addresses "on the fly". For
example, function like "set_mac_addr (eth0, my_mac)".
2. Can I have direct access to processor's registers from my user
application? Linux has "mmap()" function for that purpose.
3. Is it possible to unload RedBoot from RAM when my user application
is starting (to increase amount of free RAM)?
4. Where can I download the toolchain to compile eCos with cygwin?

Thanks for all answers!

--
Dmitry.

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 9+ messages in thread
* Re: [ECOS] Some simple questitions
@ 2006-09-04  7:22 bob.koninckx
  2006-09-04  8:18 ` Andrew Lunn
  0 siblings, 1 reply; 9+ messages in thread
From: bob.koninckx @ 2006-09-04  7:22 UTC (permalink / raw)
  To: Dmitry Varakin, ecos-discuss


>-----Original Message-----
>From: Dmitry Varakin [mailto:dvarakin@gmail.com]
>Sent: Monday, September 4, 2006 03:05 AM
>To: ecos-discuss@ecos.sourceware.org
>Subject: [ECOS] Some simple questitions
>
>Hello!
>
>I have questitions about eCos:
>1. Is it possible to change MAC and IP addresses "on the fly". For
>example, function like "set_mac_addr (eth0, my_mac)".

Don't think so. I am not 100% sure though

>2. Can I have direct access to processor's registers from my user
>application? Linux has "mmap()" function for that purpose.

eCos does not make the distinction between user and kernel space. Since everything runs in the same address space, you can do something like

volatile cyg_uint32 * some_register = 0x12345678;

Or use the HAL_WRITE and HAL_READ macros.

>3. Is it possible to unload RedBoot from RAM when my user application
>is starting (to increase amount of free RAM)?

Why should redboot reside in RAM? Better let redboot live in ROM and load your application in RAM. If you app will never return to redboot, you can use the very little amount of RAM used by redboot in your app. You'll have to set up your memory maps carefully in order to prevent redboot overwriting its own data when loading the application when doing this. However, if your resources are that scarce, maybe leaving redboot out of the picture alltogether and using ROM or ROMRAM startup for your application is a better and also safer approach.

>4. Where can I download the toolchain to compile eCos with cygwin?

The pointers can be found on the eCos website.

Hth,

Bob

>
>Thanks for all answers!
>
>--
>Dmitry.
>
>--
>Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
>and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
>
>



--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

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

end of thread, other threads:[~2006-09-06 16:42 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-09-04  7:05 [ECOS] Some simple questitions Dmitry Varakin
2006-09-04 11:37 ` Jürgen Lambrecht
2006-09-04 18:47 ` [ECOS] " Grant Edwards
2006-09-05  0:17   ` Grant Edwards
2006-09-05  9:10     ` Dmitry Varakin
2006-09-05  9:41       ` Andrew Lunn
2006-09-06 16:42         ` Dmitry Varakin
2006-09-04  7:22 [ECOS] " bob.koninckx
2006-09-04  8:18 ` Andrew Lunn

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).