From patchwork Mon Aug 27 12:49:05 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: 180203 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 D0B702C010B for ; Mon, 27 Aug 2012 22:52:50 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 47BC0280AC; Mon, 27 Aug 2012 14:52:42 +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 UE-OFMRSmalp; Mon, 27 Aug 2012 14:52:41 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 5CB9B280B7; Mon, 27 Aug 2012 14:51:13 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 53BEF28091 for ; Mon, 27 Aug 2012 14:50:32 +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 GvTZ70r35lA8 for ; Mon, 27 Aug 2012 14:50:30 +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-pz0-f44.google.com (mail-pz0-f44.google.com [209.85.210.44]) by theia.denx.de (Postfix) with ESMTPS id 379C228093 for ; Mon, 27 Aug 2012 14:50:16 +0200 (CEST) Received: by dadf8 with SMTP id f8so2444386dad.3 for ; Mon, 27 Aug 2012 05:50:14 -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=GAkG5RvxMhmXN4brSCfpuYG1htRfwc5xzN0vfGyzFXY=; b=Pa4oWsmlbGZIBgYBVxEqL4QSYhLoTXmaM2qaOhZuP/zPuBoqNDyprqbcUeAiSRkf54 YblRbypUwOMC7HM2Ito4YbzTwPdYtRaM9N19yw28tAYjFxNjss80L+EZPw6960jxQcAX nAHsjm1LmCuocFuKBCxUqDyEK2pEax7/eoT3QpDW1xe8MDgeRHwVltTWYRYmoFeFKgrP H+Loi8u7jPEKY3z+ZcfXME0q+BjutEIX7muTDJMwjIDaOOlBEvRSt4vCqjkuQ2sL7gxE B+grfkJRU0ct/dnDX7DXWXN0IhLZQ8UELgrFmZR+2FJEYREqqNN0R5CQK3Of2I0SvQkP wG0g== Received: by 10.66.87.138 with SMTP id ay10mr29908305pab.38.1346071814029; Mon, 27 Aug 2012 05:50:14 -0700 (PDT) Received: from localhost.localdomain ([111.161.64.115]) by mx.google.com with ESMTPS id ou6sm14669782pbc.9.2012.08.27.05.50.10 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 27 Aug 2012 05:50:13 -0700 (PDT) From: Zhizhou Zhang To: u-boot@lists.denx.de Date: Mon, 27 Aug 2012 20:49:05 +0800 Message-Id: <1346071750-6634-5-git-send-email-etou.zh@gmail.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1346071750-6634-1-git-send-email-etou.zh@gmail.com> References: <1346071750-6634-1-git-send-email-etou.zh@gmail.com> Subject: [U-Boot] [Patch V4 4/4] MIPS: 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 Move CONFIG_SYS_TEXT_BASE to the board specified header file. So change qemu-mips.h also. board/qemu-mips/config.mk is not used, then remove it. Signed-off-by: Zhizhou Zhang --- board/qemu-mips/config.mk | 10 ------- examples/standalone/mips64.lds | 59 ++++++++++++++++++++++++++++++++++++++++ include/configs/qemu-mips.h | 1 + 3 files changed, 60 insertions(+), 10 deletions(-) delete mode 100644 board/qemu-mips/config.mk create mode 100644 examples/standalone/mips64.lds diff --git a/board/qemu-mips/config.mk b/board/qemu-mips/config.mk deleted file mode 100644 index 27cd34a..0000000 --- a/board/qemu-mips/config.mk +++ /dev/null @@ -1,10 +0,0 @@ -# -# Qemu -M mips system emulator -# See http://fabrice.bellard.free.fr/qemu -# - -# ROM version -CONFIG_SYS_TEXT_BASE = 0xbfc00000 - -# RAM version -#CONFIG_SYS_TEXT_BASE = 0x80001000 diff --git a/examples/standalone/mips64.lds b/examples/standalone/mips64.lds new file mode 100644 index 0000000..9b27ef4 --- /dev/null +++ b/examples/standalone/mips64.lds @@ -0,0 +1,59 @@ +/* + * (C) Copyright 2003 + * Wolfgang Denk Engineering, + * + * See file CREDITS for list of people who contributed to this + * project. + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation; either version 2 of + * the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + */ + +/* +OUTPUT_FORMAT("elf32-bigmips", "elf32-bigmips", "elf32-bigmips") +*/ +OUTPUT_FORMAT("elf64-tradbigmips", "elf64-tradbigmips", "elf64-tradlittlemips") +OUTPUT_ARCH(mips) +SECTIONS +{ + .text : + { + *(.text*) + } + + . = ALIGN(4); + .rodata : { *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*))) } + + . = ALIGN(4); + .data : { *(.data*) } + + . = .; + _gp = ALIGN(16) + 0x7ff0; + + .got : { + __got_start = .; + *(.got) + __got_end = .; + } + + .sdata : { *(.sdata*) } + + . = ALIGN(4); + __bss_start = .; + .sbss (NOLOAD) : { *(.sbss*) } + .bss (NOLOAD) : { *(.bss*) . = ALIGN(4); } + + _end = .; +} diff --git a/include/configs/qemu-mips.h b/include/configs/qemu-mips.h index b8b9705..bab3fb1 100644 --- a/include/configs/qemu-mips.h +++ b/include/configs/qemu-mips.h @@ -137,6 +137,7 @@ */ /* The following #defines are needed to get flash environment right */ +#define CONFIG_SYS_TEXT_BASE 0xbfc00000 /* Rom version */ #define CONFIG_SYS_MONITOR_BASE CONFIG_SYS_TEXT_BASE #define CONFIG_SYS_MONITOR_LEN (192 << 10)