public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: CKM367 <intel.regressions@gmail.com>
To: ecos-discuss@ecos.sourceware.org
Subject: [ECOS] Filling in cyg_flash_devtab[] array
Date: Fri, 13 Dec 2013 08:29:00 -0000	[thread overview]
Message-ID: <1386923355115-254547.post@n7.nabble.com> (raw)

Hi everyone!

I suppose my question is easy for those who know eCos.
I tried to write driver for flash device. Following the manual, I wrote 

/	DEVIO_TABLE(
		p8p_handlers,
	    p8p_write,
	    p8p_read,
	    p8p_select,
	    p8p_get_config,
	    p8p_set_config,
	    p8p_close
	    );

	DEVTAB_ENTRY(
		p8p_label,
		p8p_name,
		0,    //does not depend upon a lower level interface
		&p8p_handlers,
		p8p_init,
		p8p_lookup,
		p8p_priv
	    );/
in p8p.c and created such a flash_p8p.cdl:

/cdl_package CYGPKG_DEVS_FLASH_P8P {
    display       "P8P FLASHlike memory support"
    parent		  CYGPKG_IO_FLASH 
    description   "FLASHlike memory device support for P8P"
    implements	  CYGHWR_IO_FLASH_DEVICE
    hardware
    compile       p8p.c
}  
/

I added my package in ecos.db and built it alright. However, RedBoot tells
me: *FLASH: driver init failed: Invalid FLASH address*. I see
&(cyg_flashdevtab[0]) == &cyg_flashdevtab_end, so,  cyg_flashdevtab[] seems
empy, right? Why may that be?
TIA
 



--
View this message in context: http://sourceware-org.1504.n7.nabble.com/Filling-in-cyg-flash-devtab-array-tp254547.html
Sent from the Sourceware - ecos-discuss mailing list archive at Nabble.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

                 reply	other threads:[~2013-12-13  8:29 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1386923355115-254547.post@n7.nabble.com \
    --to=intel.regressions@gmail.com \
    --cc=ecos-discuss@ecos.sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).