This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
DMA promblem on iq80321 redboot
- From: "xuelian"<xuelianlu at 21cn dot com>
- To: ecos-discuss at sources dot redhat dot com
- Cc:
- Date: Mon, 10 Nov 2003 17:17:45 +0800 (CST)
- Subject: [ECOS] DMA promblem on iq80321 redboot
Hi all,
I am new to reboot and working on a iq80321 board. I made a simple test about a memory to memory DMA on redboot.
To copy 64 bytes
form 0x830000(redboot virtue address,physical address is 0xa0830000),
to 0x840000(redboot virtue address,physical address is 0xa0840000),
the DMA discriptor at 0x800000(redboot virtue address,physical address is 0xa0800000)
what I did is filling the DMA Chain Descriptors at DDR RAM as the following,
mfill -b 0xffffe400 -l 4 -p 0 //clear CSR0
mfill -b 0x800000 -l 4 -p 0 //Next Descriptor Address is 0
mfill -b 0x800004 -l 4 -p 0xa0830000 //source physical Address
mfill -b 0x80000c -l 4 -p 0xa0840000 //destination physical address
mfill -b 0x800010 -l 4 -p 0x40 //DMA count 64 bytes
mfill -b 0x80001c -l 4 -p 0x5e //memory to memory ,interrupt enable
mfill -b 0xffffe410 -l 4 -p 0xa0800000 //write the DAR,0xa0800000 is the physical address of the DMA Chain Descriptors
mfill -b 0xffffe400 -l 4 -p 1 //write 1 to CSR0,start DMA
but it didn't work ,No data was transfered. But I could get right result using bdi2000,not loading redboot.
I am puzzled. What should i do? Any suggestion will be of great help.
Lucy
----------------------------------------------
Óµ±§ÀËÂþ£¬³¢ÊÔ¼¤Ç飬¼ÓÈë¿¡ÄÐÃÀÅ®µÄ¼¤Çé½»ÓÑÀÖÔ°
http://y.21cn.com
21cnÐÂÎÅ ¿ì¸ÐÐÂÎÅ
http://news.21cn.com
¸öÈËÍøÕ¾Á÷Á¿±ä½ðÇ®£¬»¶Ó¼ÓÈë21CNÓʼþÁªÃË£¡
http://mail.21cn.com/alliance/
¾ªÆØ:Ä«Î÷¸ç6¸»ÎÌ10Äê²Ðɱ100ÉÙÅ®
http://news.21cn.com/social/
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss