public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] Enabling POST for canyonlands board
@ 2009-01-29 14:24 Afzal Nadirshah
  2009-01-29 15:47 ` Stefan Roese
  0 siblings, 1 reply; 6+ messages in thread
From: Afzal Nadirshah @ 2009-01-29 14:24 UTC (permalink / raw)
  To: u-boot

Hi,
       Is the Power On Self Test enabled for the canyonlands board? What I want to know is whether I need to set any macro while compiling, to enable POST.
       I saw that there are some hot keys defined to start POST for certain boards. Is there anything defined like that for canyonlands board.How do I start the POST.
       Thanks in advance.
Regards,
Afzal Nadirshah



________________________________
http://www.mindtree.com/email/disclaimer.html

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

* [U-Boot] Enabling POST for canyonlands board
  2009-01-29 14:24 [U-Boot] Enabling POST for canyonlands board Afzal Nadirshah
@ 2009-01-29 15:47 ` Stefan Roese
  0 siblings, 0 replies; 6+ messages in thread
From: Stefan Roese @ 2009-01-29 15:47 UTC (permalink / raw)
  To: u-boot

Hi Afzal,

On Thursday 29 January 2009, Afzal Nadirshah wrote:
>        Is the Power On Self Test enabled for the canyonlands board?

A quick look at the canyonlands config header shows that it's not enabled.

>        What I 
> want to know is whether I need to set any macro while compiling, to enable
> POST.

Yes. I suggest you take a look at the kilauea.h header. Here POST is enabled 
by default.

> I saw that there are some hot keys defined to start POST for certain 
> boards. Is there anything defined like that for canyonlands board.How do I
> start the POST.

Some POST tests are run always after poweron, and some (longer) tests are only 
run under certain conditions. doc/README.POST should give you an overview 
here.

Best regards,
Stefan

=====================================================================
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80  Email: office at denx.de
=====================================================================

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

* [U-Boot] Enabling POST for canyonlands board
@ 2009-01-30  3:43 Afzal Nadirshah
  2009-01-30 10:29 ` Stefan Roese
  2009-01-30 14:17 ` Wolfgang Denk
  0 siblings, 2 replies; 6+ messages in thread
From: Afzal Nadirshah @ 2009-01-30  3:43 UTC (permalink / raw)
  To: u-boot


Hi Stefan,
     Thanks for the reply. I looked into the file that you mentioned and also the README as well as the POST directory.
      I could not go into the details very minutely. From this I have understood that
1. Support for POST for canyonlands board is present.
2. To enable POST for canyonlands board, I only have to define the required macros.
3. I do not have to add / modify code to test the peripherals on the canyonlands board.

Could you please let me know if I have understood it correctly?
Thanks a lot. I am hard pressed for time and your suggestions are invaluable.

Regards,
Afzal Nadirshah


-----Original Message-----
From: Stefan Roese [mailto:sr at denx.de]
Sent: Thursday, January 29, 2009 9:17 PM
To: u-boot at lists.denx.de
Cc: Afzal Nadirshah
Subject: Re: [U-Boot] Enabling POST for canyonlands board

Hi Afzal,

On Thursday 29 January 2009, Afzal Nadirshah wrote:
>        Is the Power On Self Test enabled for the canyonlands board?

A quick look at the canyonlands config header shows that it's not enabled.

>        What I
> want to know is whether I need to set any macro while compiling, to enable
> POST.

Yes. I suggest you take a look at the kilauea.h header. Here POST is enabled
by default.

> I saw that there are some hot keys defined to start POST for certain
> boards. Is there anything defined like that for canyonlands board.How do I
> start the POST.

Some POST tests are run always after poweron, and some (longer) tests are only
run under certain conditions. doc/README.POST should give you an overview
here.

Best regards,
Stefan

=====================================================================
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80  Email: office at denx.de
=====================================================================

http://www.mindtree.com/email/disclaimer.html

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

* [U-Boot] Enabling POST for canyonlands board
  2009-01-30  3:43 Afzal Nadirshah
@ 2009-01-30 10:29 ` Stefan Roese
  2009-01-30 14:21   ` Wolfgang Denk
  2009-01-30 14:17 ` Wolfgang Denk
  1 sibling, 1 reply; 6+ messages in thread
From: Stefan Roese @ 2009-01-30 10:29 UTC (permalink / raw)
  To: u-boot

Hi Afzal,

On Friday 30 January 2009, Afzal Nadirshah wrote:
>      Thanks for the reply. I looked into the file that you mentioned and
> also the README as well as the POST directory. I could not go into the
> details very minutely. From this I have understood that
> 1. Support for POST for canyonlands board is present.

Yes. General POST support for PPC4xx is available. Could be that the CPU 
specific POST test (like UART, EMAC etc) have to be adapter for 460EX though.

> 2. To enable POST for canyonlands board, I only have to define the required
> macros.

Yes. And IIRC add a small board specific function (post_hotkeys_pressed()). 
You can clone this function from kilauea again.

> 3. I do not have to add / modify code to test the peripherals on 
> the canyonlands board.

What peripherals are you referring to? Kilauea has the following POST tests 
defined/enabled by default:

/* POST support */
#define CONFIG_POST             (CONFIG_SYS_POST_CACHE          | \
                                 CONFIG_SYS_POST_CPU            | \
                                 CONFIG_SYS_POST_ETHER          | \
                                 CONFIG_SYS_POST_I2C            | \
                                 CONFIG_SYS_POST_MEMORY | \
                                 CONFIG_SYS_POST_UART)

Again, it's very likely that the UART and/or EMAC tests have to be adapter for 
460EX. I don't think POST has been tested on 460EX before.

Best regards,
Stefan

=====================================================================
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80  Email: office at denx.de
=====================================================================

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

* [U-Boot] Enabling POST for canyonlands board
  2009-01-30  3:43 Afzal Nadirshah
  2009-01-30 10:29 ` Stefan Roese
@ 2009-01-30 14:17 ` Wolfgang Denk
  1 sibling, 0 replies; 6+ messages in thread
From: Wolfgang Denk @ 2009-01-30 14:17 UTC (permalink / raw)
  To: u-boot

Dear Afzal Nadirshah,

In message <174230991E95D743B0C91DF471EF44E8434393E964@MTW02MSG02.mindtree.com> you wrote:
> 
>      Thanks for the reply. I looked into the file that you mentioned and also the README as well as the POST directory.
>       I could not go into the details very minutely. From this I have understood that
> 1. Support for POST for canyonlands board is present.

No. That's not quite correct. There is no specific POST support for
the PPC460 nor for the Canyonlands board.

There is generic support for 4xx which has been inplemented for and
tested on 440EPx intensively, and which has been enabled on other
boards as well without noticing any obvious problems.

If you need POST support for the 460, you will have to:

- go through the 460 specific processor features like special
  registers etc. anc check if (1) the existing code is still correct
  for the 460 and (2) if it covers all the features that should be
  tested
- go through board support for canyonlands and adapt the configuration
  for POST (like I2C addresses to verify, etc.)

> 2. To enable POST for canyonlands board, I only have to define the required macros.

No, this is not sufficient. You have to check the processor  and  the
board  support.  And  you  have  to  test  this, then. This is not as
trivial as it might  seem.  Good  POST  requires  a  really  intimate
understanding  of  all  parts  of  the  hardware involvec, processor,
board, etc.

> 3. I do not have to add / modify code to test the peripherals on the canyonlands board.

I think it is likely that you have to do that, if you want to do it
right.

> Could you please let me know if I have understood it correctly?

No, your view was too simplistic.

> Thanks a lot. I am hard pressed for time and your suggestions are invaluable.

Doing good POST and lack of time should never be used in the same
context - they are on opposite ends of the scale.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
The use of Microsoft crippleware systems is a sin that  carries  with
it its own punishment.
         -- Tom Christiansen in <6bo3fr$pj8$5@csnews.cs.colorado.edu>

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

* [U-Boot] Enabling POST for canyonlands board
  2009-01-30 10:29 ` Stefan Roese
@ 2009-01-30 14:21   ` Wolfgang Denk
  0 siblings, 0 replies; 6+ messages in thread
From: Wolfgang Denk @ 2009-01-30 14:21 UTC (permalink / raw)
  To: u-boot

Dear Stefan Roese,

In message <200901301129.00489.sr@denx.de> you wrote:
> 
> > 1. Support for POST for canyonlands board is present.
> 
> Yes. General POST support for PPC4xx is available. Could be that the CPU 
> specific POST test (like UART, EMAC etc) have to be adapter for 460EX though.

This must be checked thoroughly!

> > 2. To enable POST for canyonlands board, I only have to define the required
> > macros.
> 
> Yes. And IIRC add a small board specific function (post_hotkeys_pressed()). 
> You can clone this function from kilauea again.

No. Adaption for the  board  must  be  done  thoroughly,  too  -  for
example,  the I2C POST needs to know the list of I2C addresses on the
board, etc. All this must be verified carefully.

> > 3. I do not have to add / modify code to test the peripherals on 
> > the canyonlands board.
> 
> What peripherals are you referring to? Kilauea has the following POST tests 
> defined/enabled by default:

This is obviously only a very minimal sub-set of the POST code.

> Again, it's very likely that the UART and/or EMAC tests have to be adapter for 
> 460EX. I don't think POST has been tested on 460EX before.

It has not.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
A committee is a group that keeps the minutes and loses hours.
                                                      -- Milton Berle

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

end of thread, other threads:[~2009-01-30 14:21 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-29 14:24 [U-Boot] Enabling POST for canyonlands board Afzal Nadirshah
2009-01-29 15:47 ` Stefan Roese
  -- strict thread matches above, loose matches on Subject: below --
2009-01-30  3:43 Afzal Nadirshah
2009-01-30 10:29 ` Stefan Roese
2009-01-30 14:21   ` Wolfgang Denk
2009-01-30 14:17 ` Wolfgang Denk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox