From owner-freebsd-mips@FreeBSD.ORG Tue Oct 21 00:01: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 D54DAB4F; Tue, 21 Oct 2014 00:01:57 +0000 (UTC) Received: from isis.morrow.me.uk (isis.morrow.me.uk [204.109.63.142]) by mx1.freebsd.org (Postfix) with ESMTP id AD5A3E76; Tue, 21 Oct 2014 00:01:57 +0000 (UTC) Received: from anubis.morrow.me.uk (unknown [93.89.81.46]) (Authenticated sender: mauzo) by isis.morrow.me.uk (Postfix) with ESMTPSA id A9ECA4508A; Tue, 21 Oct 2014 00:01:49 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.8.3 isis.morrow.me.uk A9ECA4508A DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=morrow.me.uk; s=dkim201101; t=1413849709; bh=niTmIpSnYaFjCOm5Sc7u96z19natFyFwxHXfE332Pps=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=C8VWsfjepYEmOtj5SOj06jzspPHvvR038OZhbbNMomRwWNNtw0NWe5/tIo7YqvQR5 IsXtS80U27SAShlfVyCEMzc7dvErfw6DGfp3507xDfPk2RjsmovfAT7+p4x3gceU5z mhM5I4s4mS1GfDyEvQgsyTmetjrERsRfixg1U3GI= X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.98.4 at isis.morrow.me.uk Received: by anubis.morrow.me.uk (Postfix, from userid 5001) id 0CDC915068; Tue, 21 Oct 2014 01:01:44 +0100 (BST) Date: Tue, 21 Oct 2014 01:01:43 +0100 From: Ben Morrow To: Adrian Chadd Subject: Re: Trying to get MALTA64 running under qemu Message-ID: <20141021000143.GC12023@anubis.morrow.me.uk> References: <20141018225950.GA12023@anubis.morrow.me.uk> <20141019223447.GB12023@anubis.morrow.me.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Cc: "freebsd-mips@freebsd.org" 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: Tue, 21 Oct 2014 00:01:57 -0000 Adrian Chadd wrote: > Would you please post an updated recipe for what you've done to get > freebsd-mips64 up on qemu-devel? The mkimg step is missing from the instructions on the wiki, as are the arguments to makefs to get it to include some spare inodes in the image. I haven't yet found any way to pass boot-time arguments to the kernel (qemu's -append option doesn't seem to work, or I'm passing the arguments wrong) so the root fs has to be on ada0s1a. This comes up successfully with qemu-devel-2.0.2_3. The 'malta' machine seems to be rather limited (one CPU, no more than 256M memory); I might see if I can get a kernel config that works with one of the other qemu machines. Ben #!/bin/sh set -ex export TARGET=mips export TARGET_ARCH=mips64 export KERNCONF=MALTA64 export DESTDIR=/tmp/mipsworld make -C /usr/src -j6 buildworld make -C /usr/src -j6 buildkernel make -C /usr/src installworld cp /usr/obj/mips.mips64/usr/src/sys/$KERNCONF/kernel mips64.kernel echo '/dev/ada0s1a / ufs rw 1 1' >$DESTDIR/etc/fstab echo '/dev/ada0s1b none swap sw 0 0' >>$DESTDIR/etc/fstab # don't build a be UFS2 image; there is a bug in makefs makefs -Z -B be -f 60% -b 60% -t ffs mips64.ufs $DESTDIR mkimg -s mbr -o mips64.img \ -p freebsd:-'mkimg -s bsd -p freebsd-ufs:=mips64.ufs -p freebsd-swap::1G' # not as root... #qemu-system-mips64 -M malta \ # -nographic -m 256M -kernel mips64.kernel -hda mips64.img