<br><br><div class="gmail_quote">On Mon, Jul 13, 2009 at 8:32 PM, Grant Likely <span dir="ltr">&lt;<a href="mailto:grant.likely@secretlab.ca">grant.likely@secretlab.ca</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">On Mon, Jul 13, 2009 at 1:16 AM, srikanth<br>
krishnakar&lt;<a href="mailto:skrishnakar@gmail.com">skrishnakar@gmail.com</a>&gt; wrote:<br>
&gt; Hi all,<br>
&gt;<br>
&gt; Kernel : Linux-2.6.29<br>
&gt; Arch: Powerpc (ppc44x)<br>
&gt; Target: Xilinx ML507 Virtex5<br>
&gt;<br>
&gt; I have an issue in &quot;Reset System&quot; of Xilinx ML507 target board. I am using<br>
&gt; Compact Flash to boot the target ( using system ACE file to boot the<br>
&gt; target), during the process reset or reboot command on the target, I am not<br>
&gt; able to reboot the target completely, here is the snapshot:<br>
<br>
</div>Where is your boot code located?  In BRAM?  or SDRAM? </blockquote><div><br>It is located in BRAM.<br> <br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
 If it is in<br>
RAM, then it is likely that your boot code gets overwritten when the<br>
Linux kernel boots and so soft resetting the processor will result in<br>
a hung system (because it doesn&#39;t have any boot code to run).<br>
<div class="im"><br>
&gt; -----------------------------------------------------------------------------------------------------<br>
&gt;<br>
&gt; The target again doesn&#39;t provide me the boot options as obtained when done<br>
&gt; hard reset :<br>
<br>
</div>What boot options are you referring to? </blockquote><div><br>Boot options: console=ttyS0,9600 ip=bootp root=/dev/nfs rw <br> <br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
 SystemACE boot configuration?</blockquote><div><br>Yes. I have created SystemACE file using XMD to boot the target, I place system.ace file in compact flash with rootfs NFS, <br><br>I see current ppc4xx_reset_system has been set to : DBCR_RST_SYSTEM  so that is system reset but leaves the FPGA still programmed, I tried writing DBCR_RST_CORE to DBCR0 that leads to segmentation fault as ;<br>
<br>void ppc4xx_reset_system(char *cmd)<br>{<br>        mtspr(SPRN_DBCR0, mfspr(SPRN_DBCR0) | DBCR0_RST_SYSTEM);  <span style="color: rgb(204, 0, 0);">&lt;&lt; <span style="color: rgb(0, 0, 0);">Tried using</span> DBCR0_RST_CORE</span><br>
        while (1)<br>                ;       /* Just in case the reset doesn&#39;t work */<br>}<br><br>--------------------------------------------------------------<br><br>root@xilinx-ml507:~# reboot<br><br>INIT: Sending processes the TERM signal<br>
INIT: Stopping OpenBSD Secure Shell server: sshdstopped /usr/sbin/sshd (pid 105)<br>.<br>Stopping Vixie-cron.<br>Stopping network benchmark server: netserverstopped /usr/sbin/netserver (pid 10)<br>.<br>Stopping syslogd/klogd: stopped syslogd (pid 1060)<br>
stopped klogd (pid 1062)<br>done<br>NOT deconfiguring network interfaces: / is an NFS mount<br>Sending all processes the TERM signal...<br>Sending all processes the KILL signal...<br>hwclock: can&#39;t open &#39;/dev/misc/rtc&#39;: No such file or directory<br>
Unmounting remote filesystems...<br>Deactivating swap...<br>/etc/rc6.d/S40umountfs: line 9: swapoff: not found<br>Unmounting local filesystems...<br>umount2: Device or resource busy<br>umount: none busy - remounted read-only<br>
Rebooting... Restarting system.<br>Oops: Exception in kernel mode, sig: 11 [#1]<br>PREEMPT LTT NESTING LEVEL : 0 <br>Xilinx Virtex440<br>Modules linked in: nls_iso8859_1 ipv6<br>NIP: fffffffc LR: c000d14c CTR: c0018b64<br>
REGS: cf373d50 TRAP: 0700   Not tainted  (2.6.29.6)<br>MSR: 00000000 &lt;&gt;  CR: 22444428  XER: 20000001<br>TASK = cf9acbf0[1101] &#39;reboot&#39; THREAD: cf372000<br>GPR00: 50000000 cf373e00 cf9acbf0 00000000 000018ef ffffffff c026493c 00004000 <br>
GPR08: c04a5c8c c04a0000 00003fff 000018ef 22444422 1001a5a0 00008000 ffffffff <br>GPR16: 00000000 00000000 10000000 00000004 00000001 00000000 00000000 00000001 <br>GPR24: 01230000 00000001 00000000 00000000 00000000 01234567 28121969 00000000 <br>
NIP [fffffffc] 0xfffffffc<br>LR [c000d14c] machine_restart+0x34/0x48<br>Call Trace:<br>[cf373e00] [c000d130] machine_restart+0x18/0x48 (unreliable)<br>[cf373e10] [c0046530] kernel_restart+0x34/0x5c<br>[cf373e20] [c0046684] sys_reboot+0x124/0x1a4<br>
[cf373f40] [c000e164] ret_from_syscall+0x0/0x3c<br>Instruction dump:<br>XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX <br>XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX <br>
---[ end trace 51d087d0d6d3d0e5 ]---<br>Segmentation fault<br>----------------------------------------------------------------------------------<br><br>How can I reboot the system, while resetting the FPGA core completely ?<br>
<br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
The current system ace driver doesn&#39;t have any support for either<br>
setting the boot options or using the systemace to reboot the system<br>
by reconfiguring the FPGA.  It shouldn&#39;t be hard to do, it just hasn&#39;t<br>
been written.<br>
<br>
g.<br>
<font color="#888888"><br>
--<br>
Grant Likely, B.Sc., P.Eng.<br>
Secret Lab Technologies Ltd.<br>
</font></blockquote></div><br>Thanks for you patience !<br><br>-Srikanth<br><br clear="all"><br>-- <br>&quot;The Good You Do, The Best You GET&quot;<br><br>Regards<br>Srikanth Krishnakar<br>**********************<br>