[ECOS] DMA promblem on iq80321 redboot
xuelian
xuelianlu@21cn.com
Mon Nov 10 09:19:00 GMT 2003
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
More information about the Ecos-discuss
mailing list