All of lore.kernel.org
 help / color / mirror / Atom feed
From: stevea-mdi <alexander@mdivac.com>
To: linuxppc-embedded@ozlabs.org
Subject: U-Boot on Xilinx ML403/patch for ml403&ml300 UBoot
Date: Wed, 09 Aug 2006 13:53:17 -0400	[thread overview]
Message-ID: <44DA210D.5010101@mdivac.com> (raw)

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.
 */

                 reply	other threads:[~2006-08-09 18:05 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=44DA210D.5010101@mdivac.com \
    --to=alexander@mdivac.com \
    --cc=linuxppc-embedded@ozlabs.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.