Re: Reboot Command Makes kernel to hang (MPC8560)

2007-08-02 Thread Ansari
Hi Koller  Kumar

Thanks for ur reply.

Is there a way to reset the full chip (MPC8560)  whenever core reset occurs 
(using hardware or software) ??

Regards
Haroun Ansari M A





- Original Message - 
From: Kumar Gala [EMAIL PROTECTED]
To: Clemens Koller [EMAIL PROTECTED]
Cc: Ansari [EMAIL PROTECTED]; linuxppc-embedded@ozlabs.org
Sent: Tuesday, July 31, 2007 7:41 PM
Subject: Re: Reboot Command Makes kernel to hang (MPC8560)



On Jul 31, 2007, at 6:44 AM, Clemens Koller wrote:

 Hi, Ansari!

 Ansari schrieb:
 Hi Kumar,
 First of all thanks for ur reply .
 Even i went through the linux source . And i have observe that the 
 reboot command used to hard reset the core . I have few doubts can  u 
 please clarify me.
 1. Is there any way to reset the full chip with out using any  external 
 signal (MPC8560) ? (like any register that can be used  for reseting the 
 processor)

 I RTFM:
 It should be the bits RST[1:0] in the Debug Control Register 0  (DBCR0).

This only resets the core on the 8560.

 I didn't find details how the external signals are affected:  HRESET_REQ# 
 and friends.
 The HRESET_REQ# is usually fed back to the CPU's HRESET#.
 So if the HRESET_REQ# gets asserted by writing to above registers  it 
 should really bring
 down the CPU, it's internal as well as it's external components,  which 
 are usually
 connected to a replication of that signal.

This is roughly correct.  The only way on 8560 to generate
HRESET_REQ# is to cause a core watchdog timeout.

 However the existence of cpm2_reset() and a qe_reset() (QuiccEngine?)
 in the code tells me that the above expectations could be wrong.

 Would be nice to have that verified by some hardware guys from 
 freescale...

cpm2_reset/qe_reset are more related to SW than any HW reset.


 2. Even same reboot command works fine for MPC8540 Processor ?.

 ...because it doesn't have a cpm ?

That's more luck than anything else.

 3. what are the factors that makes ramdisk hangs . When its 
 uncompressing ?

 Well, side effects ?

 Regards,
 -- 
 Clemens Koller
 __
 RD Imaging Devices
 Anagramm GmbH
 Rupert-Mayer-Straße 45/1
 Linhof Werksgelände
 D-81379 München
 Tel.089-741518-50
 Fax 089-741518-19
 http://www.anagramm-technology.com
___
Linuxppc-embedded mailing list
Linuxppc-embedded@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-embedded


Re: Reboot Command Makes kernel to hang (MPC8560)

2007-08-02 Thread Kumar Gala

On Aug 2, 2007, at 1:48 AM, Ansari wrote:

 Hi Koller  Kumar

 Thanks for ur reply.

 Is there a way to reset the full chip (MPC8560)  whenever core  
 reset occurs (using hardware or software) ??

what do you mean by core reset?

- k
___
Linuxppc-embedded mailing list
Linuxppc-embedded@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-embedded


Re: Reboot Command Makes kernel to hang (MPC8560)

2007-08-02 Thread Clemens Koller
Hi, Ansari!

Ansari schrieb:
 Hi Koller  Kumar
 
 Thanks for ur reply.
 
 Is there a way to reset the full chip (MPC8560)  whenever core reset 
 occurs (using hardware or software) ??

I recommend you to have a look at i.e. the MPC8540ADS reference design
(as an example, the 8560 should be similar) to see how the reset signals
are realized. I didn't run into problems with the reset circuitry.
u-boot resets my thing by issung a reset and linux does the same when
I do a shutdown -r now or similar thing.
Read the code at these places what's happening there.
AFAICT this is not done by enabling the Watchdog and wait
until it triggers. (Hence, that would be interesting to try...)

In your case I would have a look at the ramdisk code to see where it/what
fails in the first place.

Regards,
-- 
Clemens Koller
__
RD Imaging Devices
Anagramm GmbH
Rupert-Mayer-Straße 45/1
Linhof Werksgelände
D-81379 München
Tel.089-741518-50
Fax 089-741518-19
http://www.anagramm-technology.com
___
Linuxppc-embedded mailing list
Linuxppc-embedded@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-embedded


Re: Reboot Command Makes kernel to hang (MPC8560)

2007-07-31 Thread Ansari
Hi Kumar,

First of all thanks for ur reply .

Even i went through the linux source . And i have observe that the reboot 
command used to hard reset the core . I have few doubts can u please clarify 
me.

1. Is there any way to reset the full chip with out using any external 
signal (MPC8560) ? (like any register that can be used for reseting the 
processor)
2. Even same reboot command works fine for MPC8540 Processor ?.
3. what are the factors that makes ramdisk hangs . When its uncompressing ?

Regards
Haroun Ansari


- Original Message - 
From: Kumar Gala [EMAIL PROTECTED]
To: Ansari [EMAIL PROTECTED]
Cc: linuxppc-embedded@ozlabs.org
Sent: Friday, July 27, 2007 1:21 AM
Subject: Re: Reboot Command Makes kernel to hang (MPC8560)



 On Jul 26, 2007, at 1:55 AM, Ansari wrote:

 Hi all,

 Processor (MPC8560)

 Whenever reboot command is given in the linux console. The  processor 
 gets reset and it loads bootloader , kernel and when  uncompressing the 
 ramdisk it gets hang. The sample log is given  below. Any u please tell 
 me what are the factors that can makes  this to happen.

 This is very board dependant.  The MPC8560 doesn't have a clean way  to 
 request reset, and odds are you're only getting the core reset and  not 
 the full chip.

 - k
 
___
Linuxppc-embedded mailing list
Linuxppc-embedded@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-embedded


Re: Reboot Command Makes kernel to hang (MPC8560)

2007-07-31 Thread Clemens Koller
Hi, Ansari!

Ansari schrieb:
 Hi Kumar,
 
 First of all thanks for ur reply .
 
 Even i went through the linux source . And i have observe that the reboot 
 command used to hard reset the core . I have few doubts can u please clarify 
 me.
 
 1. Is there any way to reset the full chip with out using any external 
 signal (MPC8560) ? (like any register that can be used for reseting the 
 processor)

I RTFM:
It should be the bits RST[1:0] in the Debug Control Register 0 (DBCR0).

I didn't find details how the external signals are affected: HRESET_REQ# and 
friends.
The HRESET_REQ# is usually fed back to the CPU's HRESET#.
So if the HRESET_REQ# gets asserted by writing to above registers it should 
really bring
down the CPU, it's internal as well as it's external components, which are 
usually
connected to a replication of that signal.

However the existence of cpm2_reset() and a qe_reset() (QuiccEngine?)
in the code tells me that the above expectations could be wrong.

Would be nice to have that verified by some hardware guys from freescale...

 2. Even same reboot command works fine for MPC8540 Processor ?.

...because it doesn't have a cpm ?

 3. what are the factors that makes ramdisk hangs . When its uncompressing ?

Well, side effects ?

Regards,
-- 
Clemens Koller
__
RD Imaging Devices
Anagramm GmbH
Rupert-Mayer-Straße 45/1
Linhof Werksgelände
D-81379 München
Tel.089-741518-50
Fax 089-741518-19
http://www.anagramm-technology.com
___
Linuxppc-embedded mailing list
Linuxppc-embedded@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-embedded


Re: Reboot Command Makes kernel to hang (MPC8560)

2007-07-31 Thread Kumar Gala

On Jul 31, 2007, at 6:44 AM, Clemens Koller wrote:

 Hi, Ansari!

 Ansari schrieb:
 Hi Kumar,
 First of all thanks for ur reply .
 Even i went through the linux source . And i have observe that the  
 reboot command used to hard reset the core . I have few doubts can  
 u please clarify me.
 1. Is there any way to reset the full chip with out using any  
 external signal (MPC8560) ? (like any register that can be used  
 for reseting the processor)

 I RTFM:
 It should be the bits RST[1:0] in the Debug Control Register 0  
 (DBCR0).

This only resets the core on the 8560.

 I didn't find details how the external signals are affected:  
 HRESET_REQ# and friends.
 The HRESET_REQ# is usually fed back to the CPU's HRESET#.
 So if the HRESET_REQ# gets asserted by writing to above registers  
 it should really bring
 down the CPU, it's internal as well as it's external components,  
 which are usually
 connected to a replication of that signal.

This is roughly correct.  The only way on 8560 to generate  
HRESET_REQ# is to cause a core watchdog timeout.

 However the existence of cpm2_reset() and a qe_reset() (QuiccEngine?)
 in the code tells me that the above expectations could be wrong.

 Would be nice to have that verified by some hardware guys from  
 freescale...

cpm2_reset/qe_reset are more related to SW than any HW reset.


 2. Even same reboot command works fine for MPC8540 Processor ?.

 ...because it doesn't have a cpm ?

That's more luck than anything else.

 3. what are the factors that makes ramdisk hangs . When its  
 uncompressing ?

 Well, side effects ?

 Regards,
 -- 
 Clemens Koller
 __
 RD Imaging Devices
 Anagramm GmbH
 Rupert-Mayer-Straße 45/1
 Linhof Werksgelände
 D-81379 München
 Tel.089-741518-50
 Fax 089-741518-19
 http://www.anagramm-technology.com

___
Linuxppc-embedded mailing list
Linuxppc-embedded@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-embedded


Re: Reboot Command Makes kernel to hang (MPC8560)

2007-07-26 Thread Kumar Gala

On Jul 26, 2007, at 1:55 AM, Ansari wrote:

 Hi all,

 Processor (MPC8560)

 Whenever reboot command is given in the linux console. The  
 processor gets reset and it loads bootloader , kernel and when  
 uncompressing the ramdisk it gets hang. The sample log is given  
 below. Any u please tell me what are the factors that can makes  
 this to happen.

This is very board dependant.  The MPC8560 doesn't have a clean way  
to request reset, and odds are you're only getting the core reset and  
not the full chip.

- k

___
Linuxppc-embedded mailing list
Linuxppc-embedded@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-embedded