All of lore.kernel.org
 help / color / mirror / Atom feed
* U-Boot on Xilinx ML403/patch for ml403&ml300 UBoot
@ 2006-08-09 17:53 stevea-mdi
  0 siblings, 0 replies; only message in thread
From: stevea-mdi @ 2006-08-09 17:53 UTC (permalink / raw)
  To: linuxppc-embedded

Ming Lui asks

>Are there any patches needed? Any document about this topic is 
>appreciated. Thanks a lot for your help.

Yes.  I'd recommend applying Ameet's patches at
http://www.linux.get2knowmore.com/
however you will still need to change a few macro lines for the
COMPACTFLASH addresses.

There is also a major error in the board_info structure.  Someone
changed this data structure for the ml403 & ml300 so that it
no longer matches the UBoot form.  The one in asm/ppcboot.h is
correct. Someone else asked about this back in June.  So ....


diff -Naur linux-2.6.17-4.patch1/arch/ppc/platforms/4xx/xilinx_ml300.h linux-2.6.17-4.working/arch/ppc/platforms/4xx/xilinx_ml300.h
--- linux-2.6.17-4.patch1/arch/ppc/platforms/4xx/xilinx_ml300.h 2006-07-25 16:42:50.000000000 -0400
+++ linux-2.6.17-4.working/arch/ppc/platforms/4xx/xilinx_ml300.h        2006-08-02 19:47:00.000000000 -0400
@@ -19,14 +19,7 @@
 #ifndef __ASSEMBLY__

 #include <linux/types.h>
-
-typedef struct board_info {
-       unsigned int     bi_memsize;            /* DRAM installed, in bytes */
-       unsigned char    bi_enetaddr[6];        /* Local Ethernet MAC address */
-       unsigned int     bi_intfreq;            /* Processor speed, in Hz */
-       unsigned int     bi_busfreq;            /* PLB Bus speed, in Hz */
-       unsigned int     bi_pci_busfreq;        /* PCI Bus speed, in Hz */
-} bd_t;
+#include <asm/ppcboot.h>

 /* Some 4xx parts use a different timebase frequency from the internal clock.
 */
diff -Naur linux-2.6.17-4.patch1/arch/ppc/platforms/4xx/xilinx_ml403.h linux-2.6.17-4.working/arch/ppc/platforms/4xx/xilinx_ml403.h
--- linux-2.6.17-4.patch1/arch/ppc/platforms/4xx/xilinx_ml403.h 2006-07-25 16:42:50.000000000 -0400
+++ linux-2.6.17-4.working/arch/ppc/platforms/4xx/xilinx_ml403.h        2006-08-02 19:46:46.000000000 -0400
@@ -23,14 +23,7 @@
 #ifndef __ASSEMBLY__

 #include <linux/types.h>
-
-typedef struct board_info {
-       unsigned int     bi_memsize;            /* DRAM installed, in bytes */
-       unsigned char    bi_enetaddr[6];        /* Local Ethernet MAC address */
-       unsigned int     bi_intfreq;            /* Processor speed, in Hz */
-       unsigned int     bi_busfreq;            /* PLB Bus speed, in Hz */
-       unsigned int     bi_pci_busfreq;        /* PCI Bus speed, in Hz */
-} bd_t;
+#include <asm/ppcboot.h>

 /* Some 4xx parts use a different timebase frequency from the internal clock.
 */

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-08-09 18:05 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-09 17:53 U-Boot on Xilinx ML403/patch for ml403&ml300 UBoot stevea-mdi

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.