public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Stefan Roese <sr@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] MIPS: Add VCT board series support (Part 1/3)
Date: Tue, 16 Dec 2008 09:22:33 +0100	[thread overview]
Message-ID: <200812160922.33446.sr@denx.de> (raw)
In-Reply-To: <c166aa9f0812150846ncccbc7ft74b2c6a2a2c7870d@mail.gmail.com>

On Monday 15 December 2008, Andrew Dyer wrote:
> On Mon, Dec 15, 2008 at 8:51 AM, Stefan Roese <sr@denx.de> wrote:
> > This patch adds support for the Micronas VCT board series.
> > Currently the following platforms are supported:
> >
> >  vct_premium

<snip>

> > +/*
> > +OUTPUT_FORMAT("elf32-bigmips", "elf32-bigmips", "elf32-bigmips")
> > +*/
> > +OUTPUT_FORMAT("elf32-tradbigmips", "elf32-tradbigmips",
> > "elf32-tradbigmips")
>
> I believe that this should be:
>
> OUTPUT_FORMAT("elf32-tradbigmips", "elf32-tradbigmips",
> "elf32-tradlittlemips")
>
> as the parameters are for default, big, little endian compilation.

I copied this from another MIPS platform (purple). So other existing ports 
will have the same problem.

I'll fix this in the next patch version.

> > +OUTPUT_ARCH(mips)
> > +ENTRY(_start)
> > +SECTIONS
> > +{
> > +       . = 0x00000000;
> > +
> > +       . = ALIGN(4);
> > +       .text       :
> > +       {
> > +         *(.text)
> > +       }
> > +
> > +       . = ALIGN(4);
> > +       .rodata  : { *(.rodata) }
> > +
> > +       . = ALIGN(4);
> > +       .data  : { *(.data) }
> > +
> > +       . = .;
> > +       _gp = ALIGN(16) + 0x7ff0;
> > +
> > +       .got : {
> > +         __got_start = .;
> > +         *(.got)
> > +         __got_end = .;
> > +       }
> > +
>
> I would force alignment here for sdata

ok.

> > +       .sdata  : { *(.sdata) }
> > +
>
> and here

ok.

> > +       .u_boot_cmd : {
> > +         __u_boot_cmd_start = .;
> > +         *(.u_boot_cmd)
> > +         __u_boot_cmd_end = .;
> > +       }
> > +
>
> uboot_end_data is assumed to be word aligned in cpu/mips/start.S,
> enforce the alignment here

ok.

> > +       uboot_end_data = .;
> > +       num_got_entries = (__got_end - __got_start) >> 2;
> > +
> > +       . = ALIGN(4);
> > +       .sbss (NOLOAD)  : { *(.sbss) }
>
> I believe .bss is also expected to be word aligned

ok.

> > +       .bss (NOLOAD)  : { *(.bss) }
> > +       uboot_end = .;
> > +}

I'll fix this in the next patch version.

Thanks.

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
=====================================================================

      reply	other threads:[~2008-12-16  8:22 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-15 14:51 [U-Boot] [PATCH] MIPS: Add VCT board series support (Part 1/3) Stefan Roese
2008-12-15 16:46 ` Andrew Dyer
2008-12-16  8:22   ` Stefan Roese [this message]

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=200812160922.33446.sr@denx.de \
    --to=sr@denx.de \
    --cc=u-boot@lists.denx.de \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox