Re: [U-Boot] Enabling POST for canyonlands board

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@denx.de] Sent: Thursday, January 29, 2009 9:17 PM To: u-boot@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@denx.de =====================================================================

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
- 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.
- 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.
- 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@denx.de =====================================================================

Dear Stefan Roese,
In message 200901301129.00489.sr@denx.de you wrote:
- 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!
- 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.
- 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

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
- 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.)
- 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.
- 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
participants (3)
-
Afzal Nadirshah
-
Stefan Roese
-
Wolfgang Denk