From owner-freebsd-mips@FreeBSD.ORG Wed Nov 19 17:52:57 2014 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 975F84D3 for ; Wed, 19 Nov 2014 17:52:57 +0000 (UTC) Received: from mail-wi0-x230.google.com (mail-wi0-x230.google.com [IPv6:2a00:1450:400c:c05::230]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 2AA48AF3 for ; Wed, 19 Nov 2014 17:52:57 +0000 (UTC) Received: by mail-wi0-f176.google.com with SMTP id ex7so6228815wid.3 for ; Wed, 19 Nov 2014 09:52:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:content-type; bh=r8VzqqR7Ii4xcGFg9/gysXZf321UKN+bedzZQvP1qpg=; b=twOQfV03bg/lDgZ5xRmo2P+vBrNwl8XTUEJJrK5YwSfzZZOKDJIi16dbBcwXLTcoxq XNMQ2qk+A0PAXFbegX131DvERD3cmY119aoA5zS7IFZLFLLPeuvod/8J8b1tQ9KH3w7S jcirO+gSr6Kg4aJTsACoEnBrT+1lR1DeS34K9ovew//eFiGRNCIEcqQH4+khQBc4X0Ac Bt1cYHjp1EF2iZvRaa0uMnF0V57Iw5oiGCcBAszOS26cZ7SB/vWUod9ibO9GkELna+vS IR9hoaB9UEPOYepxr8VTe5nzFwNAEePDfO04/VfXdsb+SvjL3G5WgxkGxFsPnKf0WMqQ AlHQ== MIME-Version: 1.0 X-Received: by 10.180.80.133 with SMTP id r5mr7836730wix.20.1416419575702; Wed, 19 Nov 2014 09:52:55 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.216.106.136 with HTTP; Wed, 19 Nov 2014 09:52:55 -0800 (PST) In-Reply-To: References: Date: Wed, 19 Nov 2014 09:52:55 -0800 X-Google-Sender-Auth: tmpQ7uiVmeqJxmp3Kxk1sqVqL0Y Message-ID: Subject: Re: freebsd-wifi-build: emulator builds now possible From: Adrian Chadd To: "freebsd-mips@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Nov 2014 17:52:57 -0000 Hi, there's also a maltael target now - both build and boot -HEAD in the qemu emulator. I'll write up some documentation for it soon. Thanks! -adrian On 19 November 2014 08:13, Adrian Chadd wrote: > Hi, > > I've just added a 'malta' target to my wifi build scripts. 'malta' is > a mips32 big-endian target for qemu-devel. > > Steps: > > * update your freebsd-wifi-build git tree > (http://github.com/freebsd/freebsd-wifi-build) > * grab the latest -head > * install qemu-devel > * (ensure that makefs is up to date on your box or the fullfsimage > pass won't work) > * /path/to/build malta buildworld buildkernel installworld > installkernel distribution fullroot fullfsimage > * dd if=/dev/zero of=../malta-swap.img bs=1k count=1 seek=1048576 > * qemu-system-mips -M malta -kernel /tftpboot/kernel.MALTA -hda > ../fullroot-malta.img -hdb ../swap-malta.img -nographic -m 256 > > It'll create a 4gig FS image and a 1gig swap file. > > You can fire up dhclient in the emulator on le0 and get an IP address. > ping and non-socket things won't work as the default networking bridge > is a socket-based emulation - I haven't sat down to make the > tap+bridge version of it work. > > The memory is specified by '-m 256'. Give smaller footprints a shot; > see what happens. > > The swapfile is -hdb - I added that above so I could run a buildworld > inside the VM. You don't _need_ to use swap, but then building > software may be pretty amusing to watch. > > I'm going to add mipsel next, then the 64 bit versions of the above. > > My qemu VM is currently building world / kernel.