Hi all,
Kernel : Linux-2.6.29
Arch: Powerpc (ppc44x)
Target: Xilinx ML507 Virtex5
I have an issue in "Reset System" of Xilinx ML507 target board. I am using
Compact Flash to boot the target ( using system ACE file to boot the
target), during the process reset or reboot command on the target, I am not
able to reboot the target completely, here is the snapshot:
---------------------------------------------------------------------------------------------------
root@ml507:~# reboot
INIT: Sending processes the TERM signalWed Jul
INIT: Stopping OpenBSD Secure Shell server: sshdstopped /usr/sbin/sshd (pid
1052)
.
Stopping Vixie-cron.
Stopping network benchmark server: netserverstopped /usr/sbin/netserver (pid
1058)
.
Stopping syslogd/klogd: stopped syslogd (pid 1061)
stopped klogd (pid 1063)
done
NOT deconfiguring network interfaces: / is an NFS mount
Sending all processes the TERM signal...
Sending all processes the KILL signal...
hwclock: can't open '/dev/misc/rtc': No such file or directory
Unmounting remote filesystems...
Deactivating swap...
/etc/rc6.d/S40umountfs: line 9: swapoff: not found
Unmounting local filesystems...
umount2: Device or resource busy
umount: none busy - remounted read-only
Rebooting... Restarting system. <--------------- Target
hangs here..
-----------------------------------------------------------------------------------------------------
The target again doesn't provide me the boot options as obtained when done
hard reset :
Welcome to the Xilinx Virtex-5 ML507 Evaluation Platform Bootloader
Menu!
Please choose a demo by typing in the number of the demo you want to
use
Or select a demo using the directional buttons (C,W,S,E,N)
(Then press the center (C) button to start the selected demo)
1. Virtex-5 Slide Show
2. Web Server Demo
3. Simon Game
4. Board Diagnostics (XROM)
5. USB Demo
6. My own ACE file
7. Ring Tone Player
Rebooting to System ACE Configuration Address 6...
zImage starting: loaded at 0x00800000 (sp: 0x00a44fb0)
Allocating 0x4e9138 bytes for kernel ...
gunzipping (0x00000000 <- 0x0080e000:0x00a437cc)...done 0x4a1bcc bytes
Any comments or suggestions are appreciated !!
Thanks
-Sriknt
On Mon, Jul 13, 2009 at 1:16 AM, srikanth
krishnakar[off-list ref] wrote:
Hi all,
Kernel : Linux-2.6.29
Arch: Powerpc (ppc44x)
Target: Xilinx ML507 Virtex5
I have an issue in "Reset System" of Xilinx ML507 target board. I am using
Compact Flash to boot the target ( using system ACE file to boot the
target), during the process reset or reboot command on the target, I am not
able to reboot the target completely, here is the snapshot:
Where is your boot code located? In BRAM? or SDRAM? If it is in
RAM, then it is likely that your boot code gets overwritten when the
Linux kernel boots and so soft resetting the processor will result in
a hung system (because it doesn't have any boot code to run).
-----------------------------------------------------------------------------------------------------
The target again doesn't provide me the boot options as obtained when done
hard reset :
What boot options are you referring to? SystemACE boot configuration?
The current system ace driver doesn't have any support for either
setting the boot options or using the systemace to reboot the system
by reconfiguring the FPGA. It shouldn't be hard to do, it just hasn't
been written.
g.
--
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.
On Mon, Jul 13, 2009 at 8:32 PM, Grant Likely [off-list ref]wrote:
On Mon, Jul 13, 2009 at 1:16 AM, srikanth
krishnakar[off-list ref] wrote:
quoted
Hi all,
Kernel : Linux-2.6.29
Arch: Powerpc (ppc44x)
Target: Xilinx ML507 Virtex5
I have an issue in "Reset System" of Xilinx ML507 target board. I am
using
quoted
Compact Flash to boot the target ( using system ACE file to boot the
target), during the process reset or reboot command on the target, I am
not
quoted
able to reboot the target completely, here is the snapshot:
Where is your boot code located? In BRAM? or SDRAM?
It is located in BRAM.
If it is in
RAM, then it is likely that your boot code gets overwritten when the
Linux kernel boots and so soft resetting the processor will result in
a hung system (because it doesn't have any boot code to run).
quoted
-----------------------------------------------------------------------------------------------------
quoted
The target again doesn't provide me the boot options as obtained when
done
quoted
hard reset :
What boot options are you referring to?
Boot options: console=ttyS0,9600 ip=bootp root=/dev/nfs rw
SystemACE boot configuration?
Yes. I have created SystemACE file using XMD to boot the target, I place
system.ace file in compact flash with rootfs NFS,
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 ;
void ppc4xx_reset_system(char *cmd)
{
mtspr(SPRN_DBCR0, mfspr(SPRN_DBCR0) | DBCR0_RST_SYSTEM); << Tried
using DBCR0_RST_CORE
while (1)
; /* Just in case the reset doesn't work */
}
--------------------------------------------------------------
root@xilinx-ml507:~# reboot
INIT: Sending processes the TERM signal
INIT: Stopping OpenBSD Secure Shell server: sshdstopped /usr/sbin/sshd (pid
105)
.
Stopping Vixie-cron.
Stopping network benchmark server: netserverstopped /usr/sbin/netserver (pid
10)
.
Stopping syslogd/klogd: stopped syslogd (pid 1060)
stopped klogd (pid 1062)
done
NOT deconfiguring network interfaces: / is an NFS mount
Sending all processes the TERM signal...
Sending all processes the KILL signal...
hwclock: can't open '/dev/misc/rtc': No such file or directory
Unmounting remote filesystems...
Deactivating swap...
/etc/rc6.d/S40umountfs: line 9: swapoff: not found
Unmounting local filesystems...
umount2: Device or resource busy
umount: none busy - remounted read-only
Rebooting... Restarting system.
Oops: Exception in kernel mode, sig: 11 [#1]
PREEMPT LTT NESTING LEVEL : 0
Xilinx Virtex440
Modules linked in: nls_iso8859_1 ipv6
NIP: fffffffc LR: c000d14c CTR: c0018b64
REGS: cf373d50 TRAP: 0700 Not tainted (2.6.29.6)
MSR: 00000000 <> CR: 22444428 XER: 20000001
TASK = cf9acbf0[1101] 'reboot' THREAD: cf372000
GPR00: 50000000 cf373e00 cf9acbf0 00000000 000018ef ffffffff c026493c
00004000
GPR08: c04a5c8c c04a0000 00003fff 000018ef 22444422 1001a5a0 00008000
ffffffff
GPR16: 00000000 00000000 10000000 00000004 00000001 00000000 00000000
00000001
GPR24: 01230000 00000001 00000000 00000000 00000000 01234567 28121969
00000000
NIP [fffffffc] 0xfffffffc
LR [c000d14c] machine_restart+0x34/0x48
Call Trace:
[cf373e00] [c000d130] machine_restart+0x18/0x48 (unreliable)
[cf373e10] [c0046530] kernel_restart+0x34/0x5c
[cf373e20] [c0046684] sys_reboot+0x124/0x1a4
[cf373f40] [c000e164] ret_from_syscall+0x0/0x3c
Instruction dump:
XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX
XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX
---[ end trace 51d087d0d6d3d0e5 ]---
Segmentation fault
----------------------------------------------------------------------------------
How can I reboot the system, while resetting the FPGA core completely ?
The current system ace driver doesn't have any support for either
setting the boot options or using the systemace to reboot the system
by reconfiguring the FPGA. It shouldn't be hard to do, it just hasn't
been written.
g.
--
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.
Thanks for you patience !
-Srikanth
--
"The Good You Do, The Best You GET"
Regards
Srikanth Krishnakar
**********************
On Mon, Jul 13, 2009 at 9:39 AM, srikanth
krishnakar[off-list ref] wrote:
On Mon, Jul 13, 2009 at 8:32 PM, Grant Likely [off-list ref]
wrote:
quoted
On Mon, Jul 13, 2009 at 1:16 AM, srikanth
krishnakar[off-list ref] wrote:
quoted
Hi all,
Kernel : Linux-2.6.29
Arch: Powerpc (ppc44x)
Target: Xilinx ML507 Virtex5
I have an issue in "Reset System" of Xilinx ML507 target board. I am
using
Compact Flash to boot the target ( using system ACE file to boot the
target), during the process reset or reboot command on the target, I a=
m
quoted
quoted
not
able to reboot the target completely, here is the snapshot:
Where is your boot code located? =A0In BRAM? =A0or SDRAM?
It is located in BRAM.
Then most likely the process of booting modifies the initial data in
BRAM such that it will not be able to reboot the system.
How can I reboot the system, while resetting the FPGA core completely ?
To reset and reconfigure the FPGA, you need to modify the systemace
driver to provide a system reset routine. See the systemace user
manual for details on how to do this.
g.
--=20
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.
On Mon, Jul 13, 2009 at 9:31 PM, Grant Likely [off-list ref]wrote:
On Mon, Jul 13, 2009 at 9:39 AM, srikanth
krishnakar[off-list ref] wrote:
quoted
On Mon, Jul 13, 2009 at 8:32 PM, Grant Likely <grant.likely@secretlab.ca
wrote:
quoted
On Mon, Jul 13, 2009 at 1:16 AM, srikanth
krishnakar[off-list ref] wrote:
quoted
Hi all,
Kernel : Linux-2.6.29
Arch: Powerpc (ppc44x)
Target: Xilinx ML507 Virtex5
I have an issue in "Reset System" of Xilinx ML507 target board. I am
using
Compact Flash to boot the target ( using system ACE file to boot the
target), during the process reset or reboot command on the target, I
am
quoted
quoted
quoted
not
able to reboot the target completely, here is the snapshot:
Where is your boot code located? In BRAM? or SDRAM?
It is located in BRAM.
Then most likely the process of booting modifies the initial data in
BRAM such that it will not be able to reboot the system.
quoted
How can I reboot the system, while resetting the FPGA core completely ?
To reset and reconfigure the FPGA, you need to modify the systemace
driver to provide a system reset routine. See the systemace user
manual for details on how to do this.
g.
--
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.
Thank You very much.
Will look into it.
Regards
Srikanth Krishnakar
**********************