public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Mike Frysinger <vapier@gentoo.org>
To: u-boot@lists.denx.de
Subject: [U-Boot] [[Patch V2] mips: 01/16] add mips64 standalone support
Date: Wed, 22 Aug 2012 23:12:26 -0400	[thread overview]
Message-ID: <201208222312.27832.vapier@gentoo.org> (raw)
In-Reply-To: <CACFOYQnwoWkDYYU4S2uoi_5+=CVL2aDEuVA=_+HVrRGdZfM8Tw@mail.gmail.com>

On Saturday 18 August 2012 22:25:24 Zhi-zhou Zhang wrote:
> On 8/18/12, Mike Frysinger <vapier@gentoo.org> wrote:
> > On Saturday 18 August 2012 08:22:51 Zhi-zhou Zhang wrote:
> >> On Sat, Aug 18, 2012 at 3:31 AM, Mike Frysinger wrote:
> >> > On Friday 17 August 2012 11:30:44 Zhizhou Zhang wrote:
> >> > > --- a/arch/mips/config.mk
> >> > > +++ b/arch/mips/config.mk
> >> > > 
> >> > > +ifeq "$(CPU)" "mips64"
> >> > > +CONFIG_STANDALONE_LOAD_ADDR ?= 0xFfffFfff80200000 -T mips64.lds
> >> > > +else
> >> > >  CONFIG_STANDALONE_LOAD_ADDR ?= 0x80200000 -T mips.lds
> >> > > +endif
> >> > 
> >> > the cpu config.mk is sourced after this one.  you could change this
> >> > to: CONFIG_STANDALONE_LOAD_ADDR ?=
> >> > $(DEFAULT_MIPS_STANDALONE_LOAD_ADDR)
> >> > DEFAULT_MIPS_STANDALONE_LOAD_ADDR = 0x80200000 -T mips.lds
> >> > 
> >> > then in the mips64/config.mk:
> >> > DEFAULT_MIPS_STANDALONE_LOAD_ADDR = 0xFfffFfff80200000 -T mips64.lds
> >> 
> >> Thanks for you advising. But if I changed like so, I should modify
> >> mips32/
> >> config.mk and xburst/config.mk as also.
> > 
> > why ?  my suggestion shouldn't affect any other cpu config.mk.
> 
> Oh, I'm so sorry, I think that you mean to replace
> CONFIG_STANDALONE_LOAD_ADDR by DEFAULT_MIPS_STANDALONE_LOAD_ADDR.
> So your idea is to keep both CONFIG_STANDALONE_LOAD_ADDR and
> DEFAULT_MIPS_STANDALONE_LOAD_ADDR, one for mips64, anther for mips32.
> Actually I haven't test standalone example. I add standalone config
> and build option for I would get an error if didn't do that. It brings
> me a lot of mess. I want to disable stanalone support in TOP Makefile,
> could I do that?

i don't know what you mean.  you should be able to do:

--- a/arch/mips/config.mk
+++ b/arch/mips/config.mk
@@ -23,7 +23,8 @@
 
 CROSS_COMPILE ?= mips_4KC-
 
-CONFIG_STANDALONE_LOAD_ADDR ?= 0x80200000 -T mips.lds
+CONFIG_STANDALONE_LOAD_ADDR ?= $(DEFAULT_MIPS_STANDALONE_LOAD_ADDR)
+DEFAULT_MIPS_STANDALONE_LOAD_ADDR = 0x80200000 -T mips.lds
 
 PLATFORM_CPPFLAGS += -DCONFIG_MIPS -D__MIPS__
 

then in your arch/mips/mips64/config.mk, add this one line:
DEFAULT_MIPS_STANDALONE_LOAD_ADDR = 0xFfffFfff80200000 -T mips64.lds

does that not work ?
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20120822/c7f6b597/attachment.pgp>

  reply	other threads:[~2012-08-23  3:12 UTC|newest]

Thread overview: 53+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-17 15:30 [U-Boot] [[Patch V2] mips: 00/16] add mips64 support to U-Boot Zhizhou Zhang
2012-08-17 15:30 ` [U-Boot] [[Patch V2] mips: 01/16] add mips64 standalone support Zhizhou Zhang
2012-08-17 19:31   ` Mike Frysinger
2012-08-18 12:22     ` Zhi-zhou Zhang
2012-08-18 15:38       ` Mike Frysinger
2012-08-19  2:25         ` Zhi-zhou Zhang
2012-08-23  3:12           ` Mike Frysinger [this message]
2012-08-19  6:17         ` Zhi-zhou Zhang
2012-09-01 12:29   ` Wolfgang Denk
2012-08-17 15:30 ` [U-Boot] [[Patch V2] mips: 02/16] add cpu/mips64/Makefile Zhizhou Zhang
2012-08-17 15:30 ` [U-Boot] [[Patch V2] mips: 03/16] add cpu/mips64/config.mk Zhizhou Zhang
2012-08-17 19:32   ` Mike Frysinger
2012-08-17 15:30 ` [U-Boot] [[Patch V2] mips: 04/16] add cpu/mips64/cpu.c Zhizhou Zhang
2012-08-17 19:34   ` Mike Frysinger
2012-08-18  3:17     ` Zhi-zhou Zhang
2012-08-17 15:30 ` [U-Boot] [[Patch V2] mips: 05/16] add cpu/mips64/interrupts.c Zhizhou Zhang
2012-08-17 15:30 ` [U-Boot] [[Patch V2] mips: 06/16] add cpu/mips64/start.S Zhizhou Zhang
2012-08-17 19:38   ` Mike Frysinger
2012-08-17 15:30 ` [U-Boot] [[Patch V2] mips: 07/16] add cpu/mips64/time.c Zhizhou Zhang
2012-08-17 15:30 ` [U-Boot] [[Patch V2] mips: 08/16] Let UNCACHED_SDRAM be available to mips64 Zhizhou Zhang
2012-08-17 15:30 ` [U-Boot] [[Patch V2] mips: 09/16] add cache description struct Zhizhou Zhang
2012-08-17 15:30 ` [U-Boot] [[Patch V2] mips: 10/16] modify io operation for mips64 Zhizhou Zhang
2012-08-17 15:30 ` [U-Boot] [[Patch V2] mips: 11/16] Make size_t equaled to unsigned long Zhizhou Zhang
2012-08-17 15:30 ` [U-Boot] [[Patch V2] mips: 12/16] modify u-boot.lds for mips64 Zhizhou Zhang
2012-08-17 17:09   ` Andrew Dyer
2012-08-17 15:30 ` [U-Boot] [[Patch V2] mips: 13/16] add board define in boards.cfg Zhizhou Zhang
2012-08-17 15:30 ` [U-Boot] [[Patch V2] mips: 14/16] add mips64 standalone link script Zhizhou Zhang
2012-08-17 17:08   ` Andrew Dyer
2012-08-18  3:04     ` Zhi-zhou Zhang
2012-08-19 13:31       ` Daniel Schwierzeck
2012-08-19 13:25   ` Daniel Schwierzeck
2012-08-17 15:30 ` [U-Boot] [[Patch V2] mips: 15/16] add configs/qemu-mips64.h Zhizhou Zhang
2012-08-19 13:41   ` Daniel Schwierzeck
2012-08-17 15:30 ` [U-Boot] [[Patch V2] mips: 16/16] modify qemu-mips/config.mk Zhizhou Zhang
2012-08-19 13:38   ` Daniel Schwierzeck
2012-08-17 15:31 ` [U-Boot] [[Patch V2] mips: 00/16] add mips64 support to U-Boot Zhizhou Zhang
2012-08-19 13:00   ` Daniel Schwierzeck
2012-08-17 15:31 ` [U-Boot] [[Patch V2] mips: 01/16] add mips64 standalone support Zhizhou Zhang
2012-08-17 15:31 ` [U-Boot] [[Patch V2] mips: 02/16] add cpu/mips64/Makefile Zhizhou Zhang
2012-08-17 15:31 ` [U-Boot] [[Patch V2] mips: 03/16] add cpu/mips64/config.mk Zhizhou Zhang
2012-08-17 15:31 ` [U-Boot] [[Patch V2] mips: 04/16] add cpu/mips64/cpu.c Zhizhou Zhang
2012-08-17 15:31 ` [U-Boot] [[Patch V2] mips: 05/16] add cpu/mips64/interrupts.c Zhizhou Zhang
2012-08-17 15:31 ` [U-Boot] [[Patch V2] mips: 06/16] add cpu/mips64/start.S Zhizhou Zhang
2012-08-17 15:31 ` [U-Boot] [[Patch V2] mips: 07/16] add cpu/mips64/time.c Zhizhou Zhang
2012-08-17 15:31 ` [U-Boot] [[Patch V2] mips: 08/16] Let UNCACHED_SDRAM be available to mips64 Zhizhou Zhang
2012-08-17 15:31 ` [U-Boot] [[Patch V2] mips: 09/16] add cache description struct Zhizhou Zhang
2012-08-17 15:31 ` [U-Boot] [[Patch V2] mips: 10/16] modify io operation for mips64 Zhizhou Zhang
2012-08-17 15:31 ` [U-Boot] [[Patch V2] mips: 11/16] Make size_t equaled to unsigned long Zhizhou Zhang
2012-08-17 15:31 ` [U-Boot] [[Patch V2] mips: 12/16] modify u-boot.lds for mips64 Zhizhou Zhang
2012-08-17 15:31 ` [U-Boot] [[Patch V2] mips: 13/16] add board define in boards.cfg Zhizhou Zhang
2012-08-17 15:31 ` [U-Boot] [[Patch V2] mips: 14/16] add mips64 standalone link script Zhizhou Zhang
2012-08-17 15:31 ` [U-Boot] [[Patch V2] mips: 15/16] add configs/qemu-mips64.h Zhizhou Zhang
2012-08-17 15:31 ` [U-Boot] [[Patch V2] mips: 16/16] modify qemu-mips/config.mk Zhizhou Zhang

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=201208222312.27832.vapier@gentoo.org \
    --to=vapier@gentoo.org \
    --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