Hi Ameet,<br>
<br>
Today I tried the System ACE driver in interrupt mode.<br>
The driver is connected to the processor through IRQ4 .<br>
<br>
So, in xparameter_ml300.h , I have changed the <br><br>
#define XPAR_OPB_INTC_0_SYSACE_COMPACTFLASH_SYSACE_IRQ_INTR 4<br>
<br>
Also, in "xsysace_init", if I have xsa_device.gd = alloc_disk(16); , then the kernel hangs. <br>
So I have assigned alloc_disk(1), in which case the kernel boots-up fine.<br>
<br>
But when I issue 'fdisk / mount ', it goes through - '
XSysAce_SectorRead' which is being called from
"xsysace_do_request".<br>
And at the nd of the function it hangs. I couldn't trace exactly where it hangs.<br>
<br>
Could you please suggest some pointers to debug on this issue?<br>
<br>
This is very critical for us and I am held up with this issue for the last 1 week. <br>
<br>
Thanks so much for all your help.<br>
<br>
Thanks<br>
Sudheer<br>
<br>
<br>
<br><div><span class="gmail_quote">On 9/8/06, <b class="gmail_sendername">Ameet Patil</b> <<a href="mailto:ammubhai@gmail.com">ammubhai@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Sudheer,<br> Ah! I never did the test for polled mode. There might be issue with<br>that. Will have a look....<br><br>-Ameet<br><br>sudheer wrote:<br>> Hi Ameet Patil<br>><br>> Ameet Patil wrote:<br>>> Hi Sudheer,
<br>>> Frank has already answered your questions. If you have any problems<br>>> with the SysAce patch... do let me know. I have written a small<br>>> tutorial here if it helps...<br>> I have used your SystemAce patch with
linux-2.6.16-2. The kernel gets<br>> loaded with the ace module and is fine.<br>> I want the driver in polling mode. So i have commented few lines related<br>> to interrupt in the adapter.c file- xsysace_init function.
<br>><br>> When i give the fdisk command, it gives few errors and then enters to<br>> the fdisk commad promt. It prints the partitions, etc.<br>><br>> But when i try to quit from the fdisk, it hangs. I am not able to
<br>> complete the request properly (i guess in xsa_thread function in<br>> adapter.c file)<br>><br>> The dump is as follows:<br>> SystemACE: Error 1 when reading sector 60.<br>> end_request: I/O error, dev xsa, sector 56
<br>> SystemACE: Error 1351 when reading sector 62.<br>> end_request: I/O error, dev xsa, sector 56<br>><br>> Command (m for help): p<br>><br>> Disk /dev/xsysace: 512 MB, 512483328 bytes<br>> 16 heads, 62 sectors/track, 1009 cylinders
<br>> Units = cylinders of 992 * 512 = 507904 bytes<br>> Device Boot Start End Blocks Id System<br>> /dev/xsysace1 1 1009 500433 6 FAT16<br>><br>> Command (m for help): q<br>> -------<br>> The fdisk enters into xsysace_ioctl function but no commands are
<br>> implemented in the ioctl function and returns an error.<br>><br>> Please help me in this issue and let me know if any other details required.<br>><br>> Thanks<br>> Sudheer<br>><br>>><br>>>
<a href="http://linux.get2knowmore.com">http://linux.get2knowmore.com</a><br>>><br>>><br>>> -Ameet<br>>><br>>> sudheer wrote:<br>>>> Hello Ameet Patil<br>>>><br>>>> I am looking for linux kernel source
2.6.16 with system ace<br>>>> controller support. I downloaded the linux-2.6.16 and linux-2.6.17-1<br>>>> source from <a href="http://kernel.org">kernel.org</a> but could not find any files related to system
<br>>>> ace controller ( No xilinx_sysace directory in drivers/block/) . I<br>>>> have checked <a href="http://penguinppc.org">penguinppc.org</a> also but could not get it.<br>>>><br>>>> Can you please send to me the link where i could download the
<br>>>> linuxppc-2.6.16 source with system ace support.<br>>>><br>>>> Thanks & Regards<br>>>> Sudheer<br>>>><br>>>> Ameet Patil wrote:<br>>>>> Hi Raja,
<br>>>>> I have ported the Xilinx System ACE driver to 2.6 kernel. Find<br>>>>> the latest one here:<br>>>>> <a href="http://www.cs.york.ac.uk/rtslab/demos/amos/xupv2pro/patches/linuxppc-2.6.17.1-sysace-1.2.patch">
http://www.cs.york.ac.uk/rtslab/demos/amos/xupv2pro/patches/linuxppc-2.6.17.1-sysace-1.2.patch</a><br>>>>><br>>>>><br>>>>> NOTE: this patch wouldn't work if you are using the TEMAC driver. In
<br>>>>> which case use the -after-TEMAC patch found in the patches folder<br>>>>> above.<br>>>>><br>>>>> Check the following discussions (threads) for more details:<br>>>>> 1. "Xilinx SystemACE driver for
2.6"<br>>>>> 2. "Xilinx BSP for linux 2.6"<br>>>>> 3. "Kernel hangs after "Now booting the kernel"."<br>>>>><br>>>>> cheers,<br>>>>> -Ameet
<br>>>>><br>>>>> Raja Chidambaram wrote:<br>>>>><br>>>>>> Hi all,<br>>>>>> We are working on customized board with amcc 440SPe<br>>>>>> processor & xilinx System Ace controller. The System
<br>>>>>> Ace controller is connected to compact flash driver.<br>>>>>><br>>>>>> We use u-boot 1.2 as bootloader & linux kernel<br>>>>>> 2.6.16-2.<br>>>>>>
<br>>>>>> On the process the u-boot is able to detect compact<br>>>>>> flash through Xilinx SystemAce controller & able to<br>>>>>> load the kernel image into compact flash.But
when the<br>>>>>> linux boot's up it not able to detect the System Ace<br>>>>>> controller or compact flash.<br>>>>>><br>>>>>> Note:we need to have the root file system in compact
<br>>>>>> flash.<br>>>>>><br>>>>>> Is their any drivers available for SystemAce<br>>>>>> controller on linux 2.6,if their how to get it.please<br>>>>>> help me in this
<br>>>>>>
with regards<br>>>>>> raja<br>>>>>><br>>>>>><br>>>>>><br>>>>>> __________________________________________________
<br>>>>>> Do You Yahoo!?<br>>>>>> Tired of spam? Yahoo! Mail has the best spam protection around<br>>>>>> <a href="http://mail.yahoo.com">http://mail.yahoo.com</a> _______________________________________________
<br>>>>>> Linuxppc-embedded mailing list<br>>>>>> <a href="mailto:Linuxppc-embedded@ozlabs.org">Linuxppc-embedded@ozlabs.org</a><br>>>>>> <a href="https://ozlabs.org/mailman/listinfo/linuxppc-embedded">
https://ozlabs.org/mailman/listinfo/linuxppc-embedded</a><br>>>>>><br>>>>>><br>>>>> _______________________________________________<br>>>>> Linuxppc-embedded mailing list
<br>>>>> <a href="mailto:Linuxppc-embedded@ozlabs.org">Linuxppc-embedded@ozlabs.org</a><br>>>>> <a href="https://ozlabs.org/mailman/listinfo/linuxppc-embedded">https://ozlabs.org/mailman/listinfo/linuxppc-embedded
</a><br>>>>><br>>>>><br>>>><br>>><br>><br></blockquote></div><br>