From patchwork Fri Aug 17 15:31:01 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhi-zhou Zhang X-Patchwork-Id: 178259 X-Patchwork-Delegate: daniel.schwierzeck@googlemail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id B9D172C009F for ; Sat, 18 Aug 2012 01:34:35 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id AC4E8283C0; Fri, 17 Aug 2012 17:34:00 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id c1QND4GIKs3m; Fri, 17 Aug 2012 17:34:00 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 02F9A28395; Fri, 17 Aug 2012 17:33:35 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id EE65F2835D for ; Fri, 17 Aug 2012 17:33:31 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id a7uFHo2LEw57 for ; Fri, 17 Aug 2012 17:33:31 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-gh0-f172.google.com (mail-gh0-f172.google.com [209.85.160.172]) by theia.denx.de (Postfix) with ESMTPS id 91825282FD for ; Fri, 17 Aug 2012 17:33:04 +0200 (CEST) Received: by mail-gh0-f172.google.com with SMTP id g16so4548715ghb.3 for ; Fri, 17 Aug 2012 08:33:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; bh=cOYnAwCGvT3fuWbY1qCBFQnQs0cBQBCYHcr6CmfBgew=; b=coIug1mNGJXg3CQEKPEhrxJ3DhqttEQkO28dHhFa1HTM6UFYyoXenA2KJmppEUPesh XPcmr9o1MtVpbD3m8WxhbCBllXPjT1wZDmp2FS04H2nCs6yv5BGOkjsmEktasMBfuBjx VxGavSSciDtR182bvE2HK19HBkkq63Tfiwo2iNDtjaNIhx4Uqr48e7Hm8nCmkonvCyIV lluC6kF/fgO0IZXnyPxNzMsP0KM5fU6xoaaLODAOfRs6BszDX2rByk9vN2SnTLdAs8zM c+MO4y8xXnt3ijgzxvTasitdf0RUGOjR6OczgBGCUbGmIcg+um3Q0ke+fPsW/vXyE+nl 11LA== Received: by 10.66.87.2 with SMTP id t2mr10433116paz.6.1345217583762; Fri, 17 Aug 2012 08:33:03 -0700 (PDT) Received: from localhost.localdomain ([124.165.216.64]) by mx.google.com with ESMTPS id ka9sm5109862pbb.59.2012.08.17.08.33.00 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 17 Aug 2012 08:33:03 -0700 (PDT) From: Zhizhou Zhang To: u-boot@lists.denx.de Date: Fri, 17 Aug 2012 23:31:01 +0800 Message-Id: <1345217476-32034-19-git-send-email-etou.zh@gmail.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1345217476-32034-1-git-send-email-etou.zh@gmail.com> References: <1345217476-32034-1-git-send-email-etou.zh@gmail.com> Subject: [U-Boot] [[Patch V2] mips: 01/16] add mips64 standalone support X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.11 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de Daniel Schwierzeck told me to do it with macro, But it seems not work. For u-boot.lds was genarete by gcc. It's hard to do that without a lot modify. --- arch/mips/config.mk | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/mips/config.mk b/arch/mips/config.mk index 6ab8acd..56996cc 100644 --- a/arch/mips/config.mk +++ b/arch/mips/config.mk @@ -23,7 +23,11 @@ CROSS_COMPILE ?= mips_4KC- +ifeq "$(CPU)" "mips64" +CONFIG_STANDALONE_LOAD_ADDR ?= 0xFfffFfff80200000 -T mips64.lds +else CONFIG_STANDALONE_LOAD_ADDR ?= 0x80200000 -T mips.lds +endif PLATFORM_CPPFLAGS += -DCONFIG_MIPS -D__MIPS__