* [ECOS] Question on PCI DMA memory
@ 2003-09-12 16:39 kevin_lemay
[not found] ` <008e01c37b7e$08b0dc10$d8496fa6@PredNotebook>
0 siblings, 1 reply; 4+ messages in thread
From: kevin_lemay @ 2003-09-12 16:39 UTC (permalink / raw)
To: ecos-discuss
I have looked through the mailing archives and found several discussions on assigning memory for a bus master PCI device. It appears that we should be using the pci_window memory.
I am attempting to port a driver to ecos. It has the concept of DMA memory which is non-cached or cache coherent memory.
We would ordinarily program the MMU to set up a section of memory to be uncached.
Is the memory defined by pci_window uncached memory? How would I define a large pool of uncached memory (say 8Mb)?
Thanks for any help,
Kevin Lemay
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss
^ permalink raw reply [flat|nested] 4+ messages in thread
* [ECOS] Question on FIS
[not found] ` <008e01c37b7e$08b0dc10$d8496fa6@PredNotebook>
@ 2003-09-15 11:48 ` Pred
2003-09-15 12:04 ` Jani Monoses
0 siblings, 1 reply; 4+ messages in thread
From: Pred @ 2003-09-15 11:48 UTC (permalink / raw)
To: ecos-discuss
Dear ECOS experts,
I failed in using the fis create command to create a image larger than
256K(0x400000) on flash. But it works well on images less than 256K. It
seems that I can't unlock all the space needed.
Redboot gave the following information:
----------------------------------------------------------------------------
-------
RedBoot> fis unlock -f 0x50080000 -l 0x100000
... Unlock from 0x50080000-0x50180000: ....
RedBoot> fis create zImage
... Erase from 0x500c0000-0x50180000: ...
... Program from 0x00100000-0x001a443c at 0x500c0000: Err = 920092
Can't program region at 0x500c0000: Error trying to program
RedBoot>
----------------------------------------------------------------------------
-------
My platform is a pxa255 based development board like lubbock, with 32M
strata flash(e28f128j3).
I'm using the redboot v2_0. I have downloaded the newest snapshot today, but
failed to get it complied.
The compile tool complains the following:
----------------------------------------------------------------------------
-------
/tmp/unnamed7_install/include/pkgconf/system.h:35:1: warning: this is the
location of the previous definition
/tmp/unnamed7_install/lib/libtarget.a(io_flash_flash.o): In function
`flash_dev_query':
/home/pred/ecos/packages/io/flash/current/src/flash.c:132: undefined
reference to `flash_query_end'
/tmp/unnamed7_install/lib/libtarget.a(io_flash_flash.o): In function
`flash_erase':
/home/pred/ecos/packages/io/flash/current/src/flash.c:233: undefined
reference to `flash_erase_block_end'
/tmp/unnamed7_install/lib/libtarget.a(io_flash_flash.o): In function
`flash_program':
/home/pred/ecos/packages/io/flash/current/src/flash.c:317: undefined
reference to `flash_program_buf_end'
/tmp/unnamed7_install/lib/libtarget.a(io_flash_flash.o): In function
`flash_lock':
/home/pred/ecos/packages/io/flash/current/src/flash.c:389: undefined
reference to `flash_lock_block_end'
/tmp/unnamed7_install/lib/libtarget.a(io_flash_flash.o): In function
`flash_unlock':
/home/pred/ecos/packages/io/flash/current/src/flash.c:461: undefined
reference to `flash_unlock_block_end'
collect2: ld returned 1 exit status
make[1]: *** [/tmp/unnamed7_install/bin/redboot.elf] Error 1
----------------------------------------------------------------------------
-------
Please give me a hand! Thanks in advance.
Pred
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [ECOS] Question on FIS
2003-09-15 11:48 ` [ECOS] Question on FIS Pred
@ 2003-09-15 12:04 ` Jani Monoses
2003-09-16 11:12 ` [ECOS] newlib includes Fredrik Hederstierna
0 siblings, 1 reply; 4+ messages in thread
From: Jani Monoses @ 2003-09-15 12:04 UTC (permalink / raw)
To: ecos-discuss
> My platform is a pxa255 based development board like lubbock, with 32M
> strata flash(e28f128j3).
> I'm using the redboot v2_0. I have downloaded the newest snapshot
> today, but failed to get it complied.
new ecosconfig tree and make? there's been a recent change to strata
flash which makes it not need CYGHWR_IO_FLASH_DEVICE_NOT_IN_RAM
interface and it seems that is set for you.Turn that off in your ecc.
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss
^ permalink raw reply [flat|nested] 4+ messages in thread
* [ECOS] newlib includes
2003-09-15 12:04 ` Jani Monoses
@ 2003-09-16 11:12 ` Fredrik Hederstierna
0 siblings, 0 replies; 4+ messages in thread
From: Fredrik Hederstierna @ 2003-09-16 11:12 UTC (permalink / raw)
Cc: ecos-discuss
Newlib + eCos question:
I have built my GCC with newlib, but how can I control if I would like to
use any newlib-functions with my own code?
E.g. I know there is optimized versions of libm and libc functions, but
eCos implements same function, and I would like to use the newlib version
of e.g. sin(), strcat() etc.
Do I have to switch completly to newlib or can I pick up just parts of it
and link it with my eCos code?
Best Regards,
/Fredrik
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2003-09-16 11:12 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-09-12 16:39 [ECOS] Question on PCI DMA memory kevin_lemay
[not found] ` <008e01c37b7e$08b0dc10$d8496fa6@PredNotebook>
2003-09-15 11:48 ` [ECOS] Question on FIS Pred
2003-09-15 12:04 ` Jani Monoses
2003-09-16 11:12 ` [ECOS] newlib includes Fredrik Hederstierna
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).