[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[microblaze-uclinux] Systemace driver problems
Hi,
I have the spartan3 MB1500 Memec board with optional systemace board
installed.
If I download the bitstream with jtag table the systemace driver fails without
print any error code, so I modified the adapter.c to report the error.
The error was XSA_ER_CFG_READ: "JTAG controller couldn't read configuration
from the CompactFlash". I can't understand why linux driver check for the
configuration file, however after hours trying anything I finally close the
JP2 jumper on the systemace board (MODE jumper) and Linux finally print
Partition check:
xsysacea: xsysacea0
System ACE at 0xFFFE0000 mapped to 0xFFFE0000, irq=2, 125440KB
Howerver at boot prompt when I tried to mount the device I got the same error
again:
# mount -t vfat /dev/xsysacea0 /mnt
JTAG controller couldn't read configuration from the CompactFlash
Is there someone who solved this problem??
Regards,
Claudio Lanconelli
Here is the diff to uClinux-2.4.x/drivers/block/xilinx_sysace/adapter.c to
print the error message:
diff -r1.2 adapter.c
334d333
< /* Called by the Xilinx interrupt handler to give us an event. */
336c335
< EventHandler(void *CallbackRef, int Event)
---
> xsysace_printerrcode(u32 ErrorMask)
338,347d336
< u32 ErrorMask;
<
< switch (Event) {
< case XSA_EVENT_DATA_DONE:
< xsa_complete_request(1); /* The request succeeded. */
< break;
<
< case XSA_EVENT_ERROR:
< ErrorMask = XSysAce_GetErrors(&SysAce);
<
384a374,390
> }
>
> /* Called by the Xilinx interrupt handler to give us an event. */
> static void
> EventHandler(void *CallbackRef, int Event)
> {
> u32 ErrorMask;
>
> switch (Event) {
> case XSA_EVENT_DATA_DONE:
> xsa_complete_request(1); /* The request succeeded. */
> break;
>
> case XSA_EVENT_ERROR:
> ErrorMask = XSysAce_GetErrors(&SysAce);
>
> xsysace_printerrcode(ErrorMask);
743a750
>
792a800,801
> if ( stat == XST_FAILURE )
> xsysace_printerrcode( XSysAce_GetErrors(&SysAce) );
___________________________
microblaze-uclinux mailing list
microblaze-uclinux@itee.uq.edu.au
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/