linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Soft Reset for PPC44x Virtex 5 hangs saying Restarting System
@ 2009-07-13  7:16 srikanth krishnakar
  2009-07-13 15:02 ` Grant Likely
  0 siblings, 1 reply; 5+ messages in thread
From: srikanth krishnakar @ 2009-07-13  7:16 UTC (permalink / raw)
  To: Linuxppc-dev

[-- Attachment #1: Type: text/plain, Size: 2190 bytes --]

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

[-- Attachment #2: Type: text/html, Size: 2616 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Soft Reset for PPC44x Virtex 5 hangs saying Restarting System
  2009-07-13  7:16 Soft Reset for PPC44x Virtex 5 hangs saying Restarting System srikanth krishnakar
@ 2009-07-13 15:02 ` Grant Likely
  2009-07-13 15:39   ` srikanth krishnakar
  0 siblings, 1 reply; 5+ messages in thread
From: Grant Likely @ 2009-07-13 15:02 UTC (permalink / raw)
  To: srikanth krishnakar; +Cc: Linuxppc-dev

On Mon, Jul 13, 2009 at 1:16 AM, srikanth
krishnakar<skrishnakar@gmail.com> 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.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Soft Reset for PPC44x Virtex 5 hangs saying Restarting System
  2009-07-13 15:02 ` Grant Likely
@ 2009-07-13 15:39   ` srikanth krishnakar
  2009-07-13 16:01     ` Grant Likely
  0 siblings, 1 reply; 5+ messages in thread
From: srikanth krishnakar @ 2009-07-13 15:39 UTC (permalink / raw)
  To: Grant Likely; +Cc: Linuxppc-dev

[-- Attachment #1: Type: text/plain, Size: 4358 bytes --]

On Mon, Jul 13, 2009 at 8:32 PM, Grant Likely <grant.likely@secretlab.ca>wrote:

> On Mon, Jul 13, 2009 at 1:16 AM, srikanth
> krishnakar<skrishnakar@gmail.com> 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?


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).
>
> >
> -----------------------------------------------------------------------------------------------------
> >
> > The target again doesn't provide me the boot options as obtained when
> done
> > 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
**********************

[-- Attachment #2: Type: text/html, Size: 5791 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Soft Reset for PPC44x Virtex 5 hangs saying Restarting System
  2009-07-13 15:39   ` srikanth krishnakar
@ 2009-07-13 16:01     ` Grant Likely
  2009-07-13 16:07       ` srikanth krishnakar
  0 siblings, 1 reply; 5+ messages in thread
From: Grant Likely @ 2009-07-13 16:01 UTC (permalink / raw)
  To: srikanth krishnakar; +Cc: Linuxppc-dev

On Mon, Jul 13, 2009 at 9:39 AM, srikanth
krishnakar<skrishnakar@gmail.com> wrote:
>
>
> On Mon, Jul 13, 2009 at 8:32 PM, Grant Likely <grant.likely@secretlab.ca>
> wrote:
>>
>> On Mon, Jul 13, 2009 at 1:16 AM, srikanth
>> krishnakar<skrishnakar@gmail.com> 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 a=
m
>> > 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.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Soft Reset for PPC44x Virtex 5 hangs saying Restarting System
  2009-07-13 16:01     ` Grant Likely
@ 2009-07-13 16:07       ` srikanth krishnakar
  0 siblings, 0 replies; 5+ messages in thread
From: srikanth krishnakar @ 2009-07-13 16:07 UTC (permalink / raw)
  To: Grant Likely; +Cc: Linuxppc-dev

[-- Attachment #1: Type: text/plain, Size: 1474 bytes --]

On Mon, Jul 13, 2009 at 9:31 PM, Grant Likely <grant.likely@secretlab.ca>wrote:

> On Mon, Jul 13, 2009 at 9:39 AM, srikanth
> krishnakar<skrishnakar@gmail.com> wrote:
> >
> >
> > On Mon, Jul 13, 2009 at 8:32 PM, Grant Likely <grant.likely@secretlab.ca
> >
> > wrote:
> >>
> >> On Mon, Jul 13, 2009 at 1:16 AM, srikanth
> >> krishnakar<skrishnakar@gmail.com> 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?
> >
> > 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.
>
> --
> Grant Likely, B.Sc., P.Eng.
> Secret Lab Technologies Ltd.
>

Thank You very much.

Will look into it.

Regards
Srikanth Krishnakar
**********************

[-- Attachment #2: Type: text/html, Size: 2306 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-07-13 16:07 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-13  7:16 Soft Reset for PPC44x Virtex 5 hangs saying Restarting System srikanth krishnakar
2009-07-13 15:02 ` Grant Likely
2009-07-13 15:39   ` srikanth krishnakar
2009-07-13 16:01     ` Grant Likely
2009-07-13 16:07       ` srikanth krishnakar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).