new port/code location
We have a port of a PPC 8245 based board and I would want to send a patch upstream with the board support files.
I still need to port it to the 1.1.2 release in CVS, but I have one main question.
At the end of the initialisation (before the main_loop()), we shortcut to our own boot sequence barcbcd_boot();
The boot code reads a number of bytes from a location from flash, and based on the values of these bytes, we boot the kernel locate 0xA or 0xB (after updating the value in flash). The practical effect is: try this kernel (and configuration); if it fails, an external source resets the PPC and we'll boot a version we know will work the next time around.
The only code changed in lib_ppc/board.c are:
#ifdef CONFIG_BARCOBCD_STREAMING
barcobcd_boot();
#endif
The question is if this is acceptable and if not, what would be a better location to obtain the same effect.
Signature · 11 lines
greetz, marc I'm Butch. This is Sundance. Crichton - Til the Blood Runs Clear scorpius 2.6.10 #1 Mon Dec 27 13:05:02 CET 2004 GNU/Linux -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: Digital signature Url : http://lists.denx.de/pipermail/u-boot/attachments/20050131/04f27890/attachment.pgp
Quoted 7 lines · In message <[email protected]> you wrote:
At the end of the initialisation (before the
main_loop()), we shortcut to our own boot sequencebarcbcd_boot();The boot code reads a number of bytes from a location from flash, and based on the values of these bytes, we boot the kernel locate
0xAor0xB(after updating the value in flash). The practical effect is: try
Why do you need special code to do this? The same can be done using existing commands and a few lines (actually one longer line) of U-Boot commands (probably you want to activate the hush shell as command parser for this).
Quoted 2 lines
The question is if this is acceptable and if not, what would be a better location to obtain the same effect.
No, this is not acceptable. I don;t want to have board specific code there, especially not when it's not necessary.
Best regards,
Wolfgang Denk
Signature · 5 lines
Software Engineering: Embedded and Realtime Systems, Embedded Linux Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de One essential to success is that you desire be an all-obsessing one, your thoughts and aims be co-ordinated, and your energy be concentra- ted and applied without letup.
Quoted 1 line
Why do you need special code to do this?
I don't k now :( This was one of the inherited but by now already severely cleaned up and rewritten code. I thought that this functionality must have been available in U-boot already..., seemed kind of too obvious...
Quoted 4 lines
The same can be done using
existing commands and a few lines (actually one longer line) of U-Boot commands (probably you want to activate the hush shell as command parser for this).
Tnx for the hint, I'll be happy to remove that code there...
Quoted 2 lines
No, this is not acceptable. I don;t want to have board specific code there, especially not when it's not necessary.
This was what I thought, I'll have a look into this.
Signature · 11 lines
greetz, marc Soft, yes. Weak, no. Zhaan - Throne for a Loss scorpius 2.6.10 #1 Mon Dec 27 13:05:02 CET 2004 GNU/Linux -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: Digital signature Url : http://lists.denx.de/pipermail/u-boot/attachments/20050201/069d1dd9/attachment.pgp