public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] Problems in building Redboot with ROM File System
@ 2004-09-16 13:56 Manoj Abraham
  2004-09-16 14:31 ` [ECOS] " Andrew Lunn
  0 siblings, 1 reply; 7+ messages in thread
From: Manoj Abraham @ 2004-09-16 13:56 UTC (permalink / raw)
  To: Andrew Lunn, ecos-discuss

Hai,

    Thanks for your reply. I tried to include ROM File System package while building image for Redboot. I also included following packages


  1. IO Subsystem
  2. eCos Kernel
  3. C Lib
  4. Linux Comp.layer
  5. File IO
  6. Posix File IO Comp. layer

I have selected the Base of ROM FS as 0xFE10000

When I give build it is giving the following error

make[1]: Leaving directory `/working/xalted/test/b_build/redboot/current'
ecos-c/cygwin/working/xalted/test/b_install/lib/extras.o: In function `fcc_eth_RxEvent':
make: Leaving directory `/working/xalted/test/b_build'
/ecos-c/cygwin/opt/ecos/updates/ecos/packages/devs/eth/powerpc/fcc/current/src/if_fcc.c:515: undefined reference to `sscanf'
collect2: ld returned 1 exit status
make[1]: *** [/ecos-c/cygwin/working/xalted/test/b_install/bin/redboot.elf] Error 1
make: *** [build] Error 2


I am surprised to see that the file if_fcc.c doesnot use the fn sscanf()..

Can you please tell me what is the mistake I have made while selecting the pkges?


Thank you

Manoj K Abraham
Dept.of Comp. Sc,
M.I.T Manipal,
INDIA






----- Original Message -----
From: Andrew Lunn <andrew@lunn.ch>
Date: Thu, 16 Sep 2004 11:23:47 +0200
To: Manoj Abraham <manojkabraham@india.com>
Subject: Re: [ECOS] Laoding Filesystem to the target

> On Thu, Sep 16, 2004 at 05:11:52PM +0800, Manoj Abraham wrote:
> > Hi all,
> >          
> 
> > Thanks in advnce. Can anyone help me in loading the filesystem? My
> > flash is working fine and i loaded the redboot.bin and I got
> > Redbboot prompt. Now I want to load the file system into the Flash.I
> > have 32MB ROM and 128MB RAM on Board.I loaded the Redboot img to ROM
> > at 0xFE000000. I have created one romfs.img from ROM
> > directory. Where should i load this image?
> 
> You should think of eCos as a set of tools in a toolbox. How you
> configure and use them is up to you and your target hardware. 
> 
> For the ROMFS there are a number of locations the romfs can be in. The
> fileio1 test actually puts the filesystem inside the test image, not
> in ROM. You could do the same for your application if you want. Or you
> can put it into flash if you want. Where is up to you. When you mount
> the filesystem you just need to pass the address. Redboot can be used
> to put the filesystem image into flash. Just use the same procedure
> you used for installing the redboot rom image, ie load it into RAM and
> then write it to flash.
> 
>         Andrew
> 
> -- 
> Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
> and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
> 

-- 
India.com free e-mail - www.india.com. 
Check out our value-added Premium features, such as an extra 20MB for mail storage, POP3, e-mail forwarding, and ads-free mailboxes!

Powered by Outblaze

-- 
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] 7+ messages in thread

* [ECOS] Re: Problems in building Redboot with ROM File System
  2004-09-16 13:56 [ECOS] Problems in building Redboot with ROM File System Manoj Abraham
@ 2004-09-16 14:31 ` Andrew Lunn
  0 siblings, 0 replies; 7+ messages in thread
From: Andrew Lunn @ 2004-09-16 14:31 UTC (permalink / raw)
  To: Manoj Abraham; +Cc: Andrew Lunn, ecos-discuss

On Thu, Sep 16, 2004 at 09:55:22PM +0800, Manoj Abraham wrote:
> Hai,
> 
> Thanks for your reply. I tried to include ROM File System package
> while building image for Redboot. I also included following packages

This seems a bit strange to me, although not totally
unreasonable. Please could you explain why you want to do this. Im
just woundering if you don't fully understand the eCos architecture
and are making a mistake, or there really is a reason you need a ROMFS
in redboot.

        Thanks
                Andrew


-- 
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] 7+ messages in thread

* Re: [ECOS] Re: Problems in building Redboot with ROM File System
  2004-09-17  4:32 Manoj Abraham
@ 2004-09-17  7:08 ` Andrew Lunn
  0 siblings, 0 replies; 7+ messages in thread
From: Andrew Lunn @ 2004-09-17  7:08 UTC (permalink / raw)
  To: Manoj Abraham; +Cc: Andrew Lunn, ecos-discuss

On Fri, Sep 17, 2004 at 12:32:31PM +0800, Manoj Abraham wrote:
> Thanks for your kind advice.My answers for your questions are
> 
>  
> 1. What do you want to place in this   filesystem?
> 
>     Application images, eCos Kernel
> 
> 2. It is read only or do you need to be able to write to it?
>  
>     Read/Write
> 
> 3. Does it only contain your application image you want Redboot to boot?
> 
>     yes
> 
> 4. Or is it a filesystem for your application?
> 
>     yes
> 
> 5. Or is it a combination of both? 
> 
>     yes


You should be using jffs2, not ROMFS. ROMFS is not writable.

Also, you say 
"Application images, eCos Kernel"

You have the wrong idea here. eCos is statically linked to the
application, not a seperate thing like Linux. Also, eCos is quite
happy to run without what we call the kernel. ie you can run eCos with
just the HAL and the device drivers. The normal redboot configuration
for example does not have the kernel.

        Andrew

-- 
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] 7+ messages in thread

* Re: [ECOS] Re: Problems in building Redboot with ROM File System
@ 2004-09-17  4:32 Manoj Abraham
  2004-09-17  7:08 ` Andrew Lunn
  0 siblings, 1 reply; 7+ messages in thread
From: Manoj Abraham @ 2004-09-17  4:32 UTC (permalink / raw)
  To: Andrew Lunn; +Cc: Andrew Lunn, ecos-discuss

Thanks for your kind advice.My answers for your questions are

 
1. What do you want to place in this   filesystem?

    Application images, eCos Kernel

2. It is read only or do you need to be able to write to it?
 
    Read/Write

3. Does it only contain your application image you want Redboot to boot?

    yes

4. Or is it a filesystem for your application?

    yes

5. Or is it a combination of both? 

    yes

Thanking  you,

Manoj K Abraham,
Dept. of Comp.Sc,
M.I.T,Manipal,
INDIA.


----- Original Message -----
From: Andrew Lunn <andrew@lunn.ch>
Date: Thu, 16 Sep 2004 17:22:53 +0200
To: Manoj Abraham <manojkabraham@india.com>
Subject: [ECOS] Re: Problems in building Redboot with ROM File System

> On Thu, Sep 16, 2004 at 10:50:45PM +0800, Manoj Abraham wrote:
> 
> > I am able to boot the board and got Redboot prompt. Now I want to
> > implement the Flash File System. I built a romfs image using
> > mkfs.exe(in fs dir).In mkfs docs they have mentioned about setting a
> > ROM BASE ADD in config tool.So I included ROMFS in Redboot and other
> > pkgs for removing the conflicts. I need a ROM FS becoz my board is
> > having 32MB. I want to use a file system for this area. Is it make a
> > problem while adding the ROMFS pkg along with Redboot?Or can you
> > suggest me the right method for this?
> 
> A ROMFS does not sound right. A JFFS2 filesystem seams more reasonable
> and that will work with Redboot. 
> 
> Its back to my first question. What are you trying to do? What do you
> want to place in this filesystem? It is read only or do you need to be
> able to write to it? Does it only contain your application image you
> want Redboot to boot? Or is it a filesystem for your application? Or
> is it a combination of both? 
> 
> Once we understand what you want to do we can advise you the best way
> to do it. 
> 
>         Andrew
> 
> -- 
> Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
> and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
> 

-- 
India.com free e-mail - www.india.com. 
Check out our value-added Premium features, such as an extra 20MB for mail storage, POP3, e-mail forwarding, and ads-free mailboxes!

Powered by Outblaze

-- 
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] 7+ messages in thread

* [ECOS] Re: Problems in building Redboot with ROM File System
  2004-09-16 14:51 Manoj Abraham
  2004-09-16 14:55 ` Gary Thomas
@ 2004-09-16 15:23 ` Andrew Lunn
  1 sibling, 0 replies; 7+ messages in thread
From: Andrew Lunn @ 2004-09-16 15:23 UTC (permalink / raw)
  To: Manoj Abraham; +Cc: Andrew Lunn, ecos-discuss

On Thu, Sep 16, 2004 at 10:50:45PM +0800, Manoj Abraham wrote:

> I am able to boot the board and got Redboot prompt. Now I want to
> implement the Flash File System. I built a romfs image using
> mkfs.exe(in fs dir).In mkfs docs they have mentioned about setting a
> ROM BASE ADD in config tool.So I included ROMFS in Redboot and other
> pkgs for removing the conflicts. I need a ROM FS becoz my board is
> having 32MB. I want to use a file system for this area. Is it make a
> problem while adding the ROMFS pkg along with Redboot?Or can you
> suggest me the right method for this?

A ROMFS does not sound right. A JFFS2 filesystem seams more reasonable
and that will work with Redboot. 

Its back to my first question. What are you trying to do? What do you
want to place in this filesystem? It is read only or do you need to be
able to write to it? Does it only contain your application image you
want Redboot to boot? Or is it a filesystem for your application? Or
is it a combination of both? 

Once we understand what you want to do we can advise you the best way
to do it. 

        Andrew

-- 
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] 7+ messages in thread

* Re: [ECOS] Re: Problems in building Redboot with ROM File System
  2004-09-16 14:51 Manoj Abraham
@ 2004-09-16 14:55 ` Gary Thomas
  2004-09-16 15:23 ` Andrew Lunn
  1 sibling, 0 replies; 7+ messages in thread
From: Gary Thomas @ 2004-09-16 14:55 UTC (permalink / raw)
  To: Manoj Abraham; +Cc: Andrew Lunn, ecos-discuss

On Thu, 2004-09-16 at 08:50, Manoj Abraham wrote:
> I am able to boot the board and got Redboot prompt. Now I want to 
> implement the Flash File System. I built a romfs image using 
> mkfs.exe(in fs dir).In mkfs docs they have mentioned about setting 
> a ROM BASE ADD in config tool.So I included ROMFS in Redboot and 
> other pkgs for removing the conflicts. I need a ROM FS becoz my 
> board is having 32MB. I want to use a file system for this area. 
> Is it make a problem while adding the ROMFS pkg along with 
> Redboot?Or can you suggest me the right method for this?

Use RedBoot's Flash Image System.  This lets you manipulate the FLASH
(ROM) space from the RedBoot command line. FIS images can contain
anything, including file systems.  You can then write your eCos
application to access the file system (ROMFS or JFFS2) from the
FLASH.

RedBoot should *not* be build with ROMFS included.

-- 
Gary Thomas <gary@mlbassoc.com>
MLB Associates


-- 
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] 7+ messages in thread

* [ECOS] Re: Problems in building Redboot with ROM File System
@ 2004-09-16 14:51 Manoj Abraham
  2004-09-16 14:55 ` Gary Thomas
  2004-09-16 15:23 ` Andrew Lunn
  0 siblings, 2 replies; 7+ messages in thread
From: Manoj Abraham @ 2004-09-16 14:51 UTC (permalink / raw)
  To: Andrew Lunn; +Cc: Andrew Lunn, ecos-discuss

I am able to boot the board and got Redboot prompt. Now I want to implement the Flash File System. I built a romfs image using mkfs.exe(in fs dir).In mkfs docs they have mentioned about setting a ROM BASE ADD in config tool.So I included ROMFS in Redboot and other pkgs for removing the conflicts. I need a ROM FS becoz my board is having 32MB. I want to use a file system for this area. Is it make a problem while adding the ROMFS pkg along with Redboot?Or can you suggest me the right method for this?

Thanking You,

Manoj K Abraham,
Dept. of Comp.Sc,
M.I.T,Manipal,
INDIA.









----- Original Message -----
From: Andrew Lunn <andrew@lunn.ch>
Date: Thu, 16 Sep 2004 16:24:24 +0200
To: Manoj Abraham <manojkabraham@india.com>
Subject: Re: Problems in building Redboot with ROM File System

> On Thu, Sep 16, 2004 at 09:55:22PM +0800, Manoj Abraham wrote:
> > Hai,
> > 
> > Thanks for your reply. I tried to include ROM File System package
> > while building image for Redboot. I also included following packages
> 
> This seems a bit strange to me, although not totally
> unreasonable. Please could you explain why you want to do this. Im
> just woundering if you don't fully understand the eCos architecture
> and are making a mistake, or there really is a reason you need a ROMFS
> in redboot.
> 
>         Thanks
>                 Andrew
> 

-- 
India.com free e-mail - www.india.com. 
Check out our value-added Premium features, such as an extra 20MB for mail storage, POP3, e-mail forwarding, and ads-free mailboxes!

Powered by Outblaze

-- 
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] 7+ messages in thread

end of thread, other threads:[~2004-09-17  7:08 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-09-16 13:56 [ECOS] Problems in building Redboot with ROM File System Manoj Abraham
2004-09-16 14:31 ` [ECOS] " Andrew Lunn
2004-09-16 14:51 Manoj Abraham
2004-09-16 14:55 ` Gary Thomas
2004-09-16 15:23 ` Andrew Lunn
2004-09-17  4:32 Manoj Abraham
2004-09-17  7:08 ` 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).