From owner-freebsd-mips@FreeBSD.ORG Wed Nov 19 16:13:11 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 576B2D4A for ; Wed, 19 Nov 2014 16:13:11 +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 E81E5D23 for ; Wed, 19 Nov 2014 16:13:10 +0000 (UTC) Received: by mail-wi0-f176.google.com with SMTP id ex7so5878122wid.15 for ; Wed, 19 Nov 2014 08:13:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:date:message-id:subject:from:to:content-type; bh=klz46Cppe7a2KwdJ3yKFgbX4BcZuz4jAv+mC+Z2PFzA=; b=vScJRkPnF6WjFmmDvqQk2QT+kPHmdUk8QPcBKNQpqedhOFmfwisPEcMqgK5J52VV6A AEQakTCavmfzGnZPsyHVCcGXfjmtUDaQRDxdTF4K4mLEWOtFOgL9RFtqM7L9K0AxP5Jc yK8FCfE4R0/A2AJJ+XUqgcnycCj4oAYxJhva8sRSpeI7kFE6sRLZ87//3BpHiL/3vY2f uabopnV6lhC3CjEVIUWQhJ+mX99xFBMtEMWy1Ar6/0V3Zpnd0qOLV4tArOu03cAEtpRi OC4J9pzgZay+6e3IHPMu6Ths1W25C/S64Amdgfay4iX21J2pnDr6HRYaF16SWtHwoq0E tzUQ== MIME-Version: 1.0 X-Received: by 10.180.108.35 with SMTP id hh3mr14565135wib.59.1416413589330; Wed, 19 Nov 2014 08:13:09 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.216.106.136 with HTTP; Wed, 19 Nov 2014 08:13:09 -0800 (PST) Date: Wed, 19 Nov 2014 08:13:09 -0800 X-Google-Sender-Auth: cdlBs6SJpCv0tbpEd2JnksCJx9Q Message-ID: Subject: 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 16:13:11 -0000 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.