From patchwork Tue Jan 8 17:13:24 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Schwierzeck X-Patchwork-Id: 210443 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 7AF772C008F for ; Wed, 9 Jan 2013 04:13:39 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id B1DFD4A109; Tue, 8 Jan 2013 18:13:35 +0100 (CET) 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 zKPnjkBLEDiH; Tue, 8 Jan 2013 18:13:35 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 020404A10E; Tue, 8 Jan 2013 18:13:34 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 4BDBC4A10E for ; Tue, 8 Jan 2013 18:13:31 +0100 (CET) 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 BXrz0PNoZm+L for ; Tue, 8 Jan 2013 18:13:30 +0100 (CET) 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-bk0-f51.google.com (mail-bk0-f51.google.com [209.85.214.51]) by theia.denx.de (Postfix) with ESMTPS id 145B54A109 for ; Tue, 8 Jan 2013 18:13:28 +0100 (CET) Received: by mail-bk0-f51.google.com with SMTP id ik5so393849bkc.24 for ; Tue, 08 Jan 2013 09:13:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer; bh=6Xa92GUQgjUkMjg0nmo6B0KQ4XHHpflb+CGNFCfEDLc=; b=ZYHbYJodeDkdl8pu3jHKmQTn4xbuyR7BaK+i51yo79LbqBvlRAYufKljJhl/tEL0Md JGP5BXljPyjSsl32M1UYDfTMjr78yAv9zvmcaBLRs1OMxWWv+i8t5OUOoNkPvHUOrYl6 lpq7djgDa/ZarGnkQNKhmk6kEJ878GMIZCStNfkUHltXI1ca3zhzz82UoSlwiymhhZI8 XnCrlUFm5qxONoIt++H7r4XFVPk++jiaDuVueWHbO6SYs0vEkp1o7i4ynF/a0Zzq6891 CpcqBznmlPr0VUVCXyObMZu1skS8OwY/z+THAfy1sTjwxsv2zJsmvn0zspVnXCiLEgOF q5Mg== X-Received: by 10.204.148.12 with SMTP id n12mr32073970bkv.138.1357665208324; Tue, 08 Jan 2013 09:13:28 -0800 (PST) Received: from workstation.sas.sys.sphairon.com (dslb-094-222-053-172.pools.arcor-ip.net. [94.222.53.172]) by mx.google.com with ESMTPS id c10sm46150576bkw.1.2013.01.08.09.13.27 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 08 Jan 2013 09:13:27 -0800 (PST) From: daniel.schwierzeck@gmail.com To: u-boot@lists.denx.de Date: Tue, 8 Jan 2013 18:13:24 +0100 Message-Id: <1357665204-15701-1-git-send-email-daniel.schwierzeck@gmail.com> X-Mailer: git-send-email 1.8.0.3 Subject: [U-Boot] [PATCH] MIPS: qemu-mips: update and fix example usage in README 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 From: Daniel Schwierzeck By now U-Boot supports Qemu MIPS for little and big endian as well as 32 bit and 64 bit. Update and fix the example usage in the README to reflect this. Signed-off-by: Daniel Schwierzeck --- board/qemu-mips/README | 28 +++++++++++++++++++++------- 1 file changed, 21 insertions(+), 7 deletions(-) diff --git a/board/qemu-mips/README b/board/qemu-mips/README index ec58ce4..1fdfbab 100644 --- a/board/qemu-mips/README +++ b/board/qemu-mips/README @@ -7,7 +7,7 @@ http://www.nongnu.org/qemu/ Limitations & comments ---------------------- Supports the "-M mips" configuration of qemu: serial,NE2000,IDE. -Support is big endian only for now (or at least this is what I tested). +Supports little and big endian as well as 32 bit and 64 bit. Derived from au1x00 with a lot of things cut out. Supports emulated flash (patch Jean-Christophe PLAGNIOL-VILLARD) with @@ -21,19 +21,33 @@ Notes for the Qemu MIPS port I) Example usage: -# ln -s u-boot.bin mips_bios.bin -start it: -qemu-system-mips -M mips -L . /dev/null -nographic +Using u-boot.bin as ROM (replaces Qemu monitor): -or +32 bit, big endian: +# make qemu_mips +# qemu-system-mips -M mips -bios u-boot.bin -nographic + +32 bit, little endian: +# make qemu_mipsel +# qemu-system-mipsel -M mips -bios u-boot.bin -nographic + +64 bit, big endian: +# make qemu_mips64 +# qemu-system-mips64 -cpu MIPS64R2-generic -M mips -bios u-boot.bin -nographic + +64 bit, little endian: +# make qemu_mips64el +# qemu-system-mips64el -cpu MIPS64R2-generic -M mips -bios u-boot.bin -nographic + +or using u-boot.bin from emulated flash: if you use a qemu version after commit 4224 create image: # dd of=flash bs=1k count=4k if=/dev/zero # dd of=flash bs=1k conv=notrunc if=u-boot.bin -start it: -# qemu-system-mips -M mips -pflash flash -monitor null -nographic +start it (see above): +# qemu-system-mips[64][el] [-cpu MIPS64R2-generic] -M mips -pflash flash -nographic 2) Download kernel + initrd