public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* RE: [ECOS] enabling flash from configtool
@ 2005-08-25 16:33 Matt Sartori
  2005-08-26  9:12 ` [ECOS] error while linking : flash problem Indra Antonius Simalango
  0 siblings, 1 reply; 5+ messages in thread
From: Matt Sartori @ 2005-08-25 16:33 UTC (permalink / raw)
  To: Gary Thomas; +Cc: eCos Discussion

I've worked it out. I didn't realise (until I started looking through
the "Embedded software development with eCos" book) that I need to
import the redboot_ROM.ecm file as a separate step when using
configtool. 
Thanks for your responses anyway. I hope this info proves useful to
someone else in the future.

m@

-----Original Message-----
From: Gary Thomas [mailto:gary@mlbassoc.com] 
Sent: 25 August 2005 17:06
To: Matt Sartori
Cc: eCos Discussion
Subject: RE: [ECOS] enabling flash from configtool

On Thu, 2005-08-25 at 17:02 +0100, Matt Sartori wrote:
> Yes my redboot_ROM.ecm contains a 
> 	CYGPKG_IO_FLASH current ;
> Inside its cdl_configuration definition.

You should be able to look in the .ecc file to see why your FLASH driver
is not being enabled.

> 
> -----Original Message-----
> From: ecos-discuss-owner@ecos.sourceware.org
> [mailto:ecos-discuss-owner@ecos.sourceware.org] On Behalf Of Gary
Thomas
> Sent: 25 August 2005 16:52
> To: Matt Sartori
> Cc: eCos Discussion
> Subject: Re: [ECOS] enabling flash from configtool
> 
> On Thu, 2005-08-25 at 16:45 +0100, Matt Sartori wrote:
> > Argh. I'm attempting to enable my flash driver code from the
> configtool
> > by:
> > 
> > 1) writing a flash.c and flash.h and putting them in my
> > /ecos/packages/devs/flash/arm/myboard/current/src/
> > 
> > 2)writing a flash_myboard.cdl and putting it in
> > /ecos/packages/devs/flash/arm/myboard/current/cdl
> > 
> > 3) adding a package -hardware CYGPKG_HAL_ARM_MYBOARD current ;
> > to my redboot_ROM.ecm
> > 
> > 4) adding a package CYGPKG_DEVS_FLASH_ARM_MYBOARD in ecos.db
> > 
> > 5) adding CYGPKG_DEVS_FLASH_ARM_MYBOARD to the packages defined for
> the
> > target of my board in ecos.db
> > 
> > 6) opening the configtool, selecting the template for my board and
> > redboot from the packages popup menu.
> > 
> > What I get is a grayed out MYBOARD FLASH memory support entry in my
> > configuration but I don't believe it is actually compiled (I tested
> this
> > by placing an obvious syntax error in my flash.c code so that the
> > compilation would fail). The compilation doesn't fail.
> > 
> > What am I missing?
> 
> Did you add the generic FLASH layer?  FLASH drivers come in at least
> two parts - the generic layer and a hardware specific driver.  Also
> many hardware drivers are built of two parts - the generic driver for
> a chipset and the platform specific driver.  You'll need to make sure
> that all the pieces have been loaded and enabled.
> 
> Normally, if you configured your target correctly (in ecos.db), just
> adding the CYGPKG_IO_FLASH will be sufficient to enable everything.
> 
> -- 
> ------------------------------------------------------------
> Gary Thomas                 |  Consulting for the
> MLB Associates              |    Embedded world
> ------------------------------------------------------------
> 
> 
-- 
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------


--------------------------------------------------------------------------------


The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited.

If you received this in error, please contact the sender or postmaster (postmaster@hanoverdisplays.com) and delete the material from any computer.

Although we routinely screen for viruses, addressees should check this e-mail and any attachment for viruses. We make no warranty as to absence of viruses in this e-mail or any attachments.

Our Company's email policy is to permit incidental personal use. If this email is of a personal nature, it must not be relied upon as expressing the views or opinions of the company.

Visit out website at www.hanoverdisplays.com



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

* [ECOS] error while linking : flash problem
  2005-08-25 16:33 [ECOS] enabling flash from configtool Matt Sartori
@ 2005-08-26  9:12 ` Indra Antonius Simalango
  2005-08-26  9:41   ` Andrew Lunn
  0 siblings, 1 reply; 5+ messages in thread
From: Indra Antonius Simalango @ 2005-08-26  9:12 UTC (permalink / raw)
  To: ecos-discuss


Dear all,

I've built my eCos for pc_rltk8139 target with all package. While linking 
my application, I've some error messages like this :
---------------------------------------------------------------------------------
[root@pinguin eFax]# gcc -o efax efax.o efaxlib.o efaxio.o efaxos.o 
efaxmsg.o -L /home/indra/eCos/install/lib/ -Ttarget.ld -nostdlib
/home/indra/eCos/install/lib//libtarget.a(io_flash_flash.o)(.text.flash_init+0x21): 
In function `flash_init':
/home/indra/anoncvs/ecos/packages/io/flash/current/src/flash.c:92: 
undefined reference to `flash_hwr_init'
/home/indra/eCos/install/lib//libtarget.a(io_flash_flash.o)(.text.flash_dev_query+0x7): 
In function `flash_dev_query':
/home/indra/anoncvs/ecos/packages/io/flash/current/src/flash.c:118: 
undefined reference to `flash_query'
/home/indra/eCos/install/lib//libtarget.a(io_flash_flash.o)(.text.flash_erase+0x25): 
In function `flash_erase':
/home/indra/anoncvs/ecos/packages/io/flash/current/src/flash.c:179: 
undefined reference to `flash_erase_block'
/home/indra/eCos/install/lib//libtarget.a(io_flash_flash.o)(.text.flash_erase+0x90):/home/indra/anoncvs/ecos/packages/io/flash/current/src/flash.c:216: 
undefined reference to `flash_hwr_map_error'
/home/indra/eCos/install/lib//libtarget.a(io_flash_flash.o)(.text.flash_program+0x31): 
In function `flash_program':
/home/indra/anoncvs/ecos/packages/io/flash/current/src/flash.c:265: 
undefined reference to `flash_program_buf'
/home/indra/eCos/install/lib//libtarget.a(io_flash_flash.o)(.text.flash_program+0x99):/home/indra/anoncvs/ecos/packages/io/flash/current/src/flash.c:287: 
undefined reference to `flash_hwr_map_error'
collect2: ld returned 1 exit status
----------------------------------------------------------------------------------

If I don't want to use any flash component, which part of my file ecos.ecc 
should I modify?

Please share your experiences. 

Thank you.

-- 
	regards, 	

	IndrA on 16:04, Aug 26

	http://ic.ee.itb.ac.id/~antonius	


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

* Re: [ECOS] error while linking : flash problem
  2005-08-26  9:12 ` [ECOS] error while linking : flash problem Indra Antonius Simalango
@ 2005-08-26  9:41   ` Andrew Lunn
  2005-08-26 14:24     ` Indra Antonius Simalango
  0 siblings, 1 reply; 5+ messages in thread
From: Andrew Lunn @ 2005-08-26  9:41 UTC (permalink / raw)
  To: Indra Antonius Simalango; +Cc: ecos-discuss

On Fri, Aug 26, 2005 at 04:07:47PM +0700, Indra Antonius Simalango wrote:
> 
> Dear all,
> 
> I've built my eCos for pc_rltk8139 target with all package. While linking 
> my application, I've some error messages like this :
> ---------------------------------------------------------------------------------
> [root@pinguin eFax]# gcc -o efax efax.o efaxlib.o efaxio.o efaxos.o 
> efaxmsg.o -L /home/indra/eCos/install/lib/ -Ttarget.ld -nostdlib
> /home/indra/eCos/install/lib//libtarget.a(io_flash_flash.o)(.text.flash_init+0x21): 
> In function `flash_init':
> /home/indra/anoncvs/ecos/packages/io/flash/current/src/flash.c:92: 
> undefined reference to `flash_hwr_init'
> /home/indra/eCos/install/lib//libtarget.a(io_flash_flash.o)(.text.flash_dev_query+0x7): 
> In function `flash_dev_query':
> /home/indra/anoncvs/ecos/packages/io/flash/current/src/flash.c:118: 
> undefined reference to `flash_query'
> /home/indra/eCos/install/lib//libtarget.a(io_flash_flash.o)(.text.flash_erase+0x25): 
> In function `flash_erase':
> /home/indra/anoncvs/ecos/packages/io/flash/current/src/flash.c:179: 
> undefined reference to `flash_erase_block'
> /home/indra/eCos/install/lib//libtarget.a(io_flash_flash.o)(.text.flash_erase+0x90):/home/indra/anoncvs/ecos/packages/io/flash/current/src/flash.c:216: 
> undefined reference to `flash_hwr_map_error'
> /home/indra/eCos/install/lib//libtarget.a(io_flash_flash.o)(.text.flash_program+0x31): 
> In function `flash_program':
> /home/indra/anoncvs/ecos/packages/io/flash/current/src/flash.c:265: 
> undefined reference to `flash_program_buf'
> /home/indra/eCos/install/lib//libtarget.a(io_flash_flash.o)(.text.flash_program+0x99):/home/indra/anoncvs/ecos/packages/io/flash/current/src/flash.c:287: 
> undefined reference to `flash_hwr_map_error'
> collect2: ld returned 1 exit status
> ----------------------------------------------------------------------------------
> 
> If I don't want to use any flash component, which part of my file ecos.ecc 
> should I modify?

ecosconfig remove 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

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

* Re: [ECOS] error while linking : flash problem
  2005-08-26  9:41   ` Andrew Lunn
@ 2005-08-26 14:24     ` Indra Antonius Simalango
  2005-08-26 15:29       ` Andrew Lunn
  0 siblings, 1 reply; 5+ messages in thread
From: Indra Antonius Simalango @ 2005-08-26 14:24 UTC (permalink / raw)
  To: Andrew Lunn; +Cc: ecos-discuss


Thanks for your response,

I've done this :
#ecosconfig new pc_rltk8139 all
#ecosconfig remove flash
C_CYGPKG_JFFS2, "requires" constraint not satisfied: CYGPKG_IO_FLASH
C_CYGPKG_JFFS2, "requires" constraint not satisfied: 
CYGPKG_IO_FLASH_BLOCK_DEVICE

Is this allright?

Thank you.

On Fri, 26 Aug 2005, Andrew Lunn wrote:

> ecosconfig remove flash
 

-- 
	regards, 	

	IndrA on 21:21, Aug 26

	http://ic.ee.itb.ac.id/~antonius	


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

* Re: [ECOS] error while linking : flash problem
  2005-08-26 14:24     ` Indra Antonius Simalango
@ 2005-08-26 15:29       ` Andrew Lunn
  0 siblings, 0 replies; 5+ messages in thread
From: Andrew Lunn @ 2005-08-26 15:29 UTC (permalink / raw)
  To: Indra Antonius Simalango; +Cc: ecos-discuss

On Fri, Aug 26, 2005 at 09:23:44PM +0700, Indra Antonius Simalango wrote:
> 
> Thanks for your response,
> 
> I've done this :
> #ecosconfig new pc_rltk8139 all
> #ecosconfig remove flash
> C_CYGPKG_JFFS2, "requires" constraint not satisfied: CYGPKG_IO_FLASH
> C_CYGPKG_JFFS2, "requires" constraint not satisfied: 
> CYGPKG_IO_FLASH_BLOCK_DEVICE
> 
> Is this allright?

No, you also need to remove the jffs2 packet since it depends on
having a flash driver, which you don't have.

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

end of thread, other threads:[~2005-08-26 15:29 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-08-25 16:33 [ECOS] enabling flash from configtool Matt Sartori
2005-08-26  9:12 ` [ECOS] error while linking : flash problem Indra Antonius Simalango
2005-08-26  9:41   ` Andrew Lunn
2005-08-26 14:24     ` Indra Antonius Simalango
2005-08-26 15:29       ` 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).