From owner-freebsd-mips@FreeBSD.ORG Mon Oct 20 14:06:02 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 42505267 for ; Mon, 20 Oct 2014 14:06:02 +0000 (UTC) Received: from mail-ig0-f169.google.com (mail-ig0-f169.google.com [209.85.213.169]) (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 07E0FD06 for ; Mon, 20 Oct 2014 14:06:01 +0000 (UTC) Received: by mail-ig0-f169.google.com with SMTP id uq10so6421595igb.4 for ; Mon, 20 Oct 2014 07:05:55 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:content-type:mime-version:subject:from :in-reply-to:date:cc:message-id:references:to; bh=TFh+G1NVDBXMTT4u7YwKB8CnRucjtfpJZqhrCTQdrkQ=; b=L6JzJgXzkmOg1OFKTzQiKXmVBdyJo7w5aKneNxIzKpB1tTrfcOfIrlhLAwSJIgOyCa fHjV04d530el7cZLV/B81D4aIvzEmHZtp4q1fsnVrcHhZ26m+g3J1tjAiBA+sFtUtTdV R0skLhuIWlRk4GcCdiko8ArA7nq/M9Ge23+Joymsl2ncNpk4BQa9uTYTDsGuH43zA8ah gHNorR0GeEuUnqpFj1udEvHUL8UMHyGsE1Uct/GIUxPvxZqS4hsFdZZ869yw0FNxUn+o jEI6VRyqR9nSGlBkpmf1I4tOaN9CB81eioqdZhh94RkvLrhwXcT6ME5lileer2nyhjHv eCfQ== X-Gm-Message-State: ALoCoQmT7szS1NZSS7Ea4AZrzzqeyI1dhO4Ub1sA/kKbtj618rPr1QH82jtVaaQxmVlC7W40mQgh X-Received: by 10.50.128.163 with SMTP id np3mr18449352igb.28.1413813954931; Mon, 20 Oct 2014 07:05:54 -0700 (PDT) Received: from bsdimp.bsdimp.com ([50.253.99.174]) by mx.google.com with ESMTPSA id j4sm3831974igx.20.2014.10.20.07.05.54 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 20 Oct 2014 07:05:54 -0700 (PDT) Sender: Warner Losh Content-Type: multipart/signed; boundary="Apple-Mail=_377B3501-0062-4844-9C4D-BF767E5C7A62"; protocol="application/pgp-signature"; micalg=pgp-sha512 Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) Subject: Re: Trying to get MALTA64 running under qemu From: Warner Losh In-Reply-To: <20141019223447.GB12023@anubis.morrow.me.uk> Date: Mon, 20 Oct 2014 08:05:52 -0600 Message-Id: <3A1572B8-1CCE-49FD-BA08-476D0B9D8AB2@bsdimp.com> References: <20141018225950.GA12023@anubis.morrow.me.uk> <20141019223447.GB12023@anubis.morrow.me.uk> To: Ben Morrow X-Mailer: Apple Mail (2.1878.6) 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: Mon, 20 Oct 2014 14:06:02 -0000 --Apple-Mail=_377B3501-0062-4844-9C4D-BF767E5C7A62 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 On Oct 19, 2014, at 4:34 PM, Ben Morrow wrote: > Adrian Chadd wrote: >> On 18 October 2014 15:59, Ben Morrow wrote: >>> I'm considering buying an ERL to use as a local router, but before I = did >>> I thought I'd make sure the ports I want to run work properly with = MIPS, >>> so I'm trying to bring up a qemu-system-mips64 instance. I've built >>> world and kernel (using MALTA64) for mips.mips64, and built a disk = image >>> following the instructions on the MipsEmulation page on the wiki. = The >>> source I am using is a slightly patched 10-STABLE from 2014-09-09; = the >>> patches have nothing to do with MIPS. >>>=20 >>> However, when I try to bring qemu up, the system appears to hang = after >>> probing the ata devices. Over the course of about 30 seconds the = qemu >>> process goes up to 100% of one CPU, and no more output appears on = the >>> console. This appears to happen regardless of the disk images I pass = to >>> qemu; I've tried passing a UFS image, a file full of zeros, no disks = at >>> all, and (just in case) both -hda and -hdc. I've included the boot = log >>> below; I'd appreciate any advice. >>=20 >> can you try qemu-devel? >=20 > Thank you, that works. (Good God, it's slow... I wonder how hard it > would be to replace cc with something that runs a cross-compiler on = the > host? Maybe I can do something with distcc...) I=92ve been helping Sean Bruno do exactly this, but I think for mips32. = You build a chroot with the full world, then you build x86 binaries to produce = mips32/64 output and replace the cc, et al, in the chroot with those. Makes things = quite a bit faster. Still not quite as fast as a full native cross build, but = much faster than pure user mode and more reliable than the current state of the art = in cross building. Warner --Apple-Mail=_377B3501-0062-4844-9C4D-BF767E5C7A62 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQIcBAEBCgAGBQJURRbAAAoJEGwc0Sh9sBEAwnoP/3Euqbp/5sMc9JAP/ygQh8NX ZxpZalataAzZodceCE7kpzWY3CQ/ggHUwq+uCYC0S/nipTBG+Odrwy3azdCvFZXq Jm4hmMfLhzGwzchBbMIDSK9Ak1ioUgl4/4EgD3FYOTaHHfUXha/hdCyE/puKEN5z jyAjeV7a9CWKJ+D91B6zfX5UXL6QK4be+ZGit4Y8gvBdJY0CH6EA3ZTQpo1fmAfn d5GGee8S+bobgZG3gYQ7nXelWlB4E3wcjYkq07cwv7/H0iqql+Il73lmxlb5KX4h WGIcphc+hlepAuhdOnEM+mJYgph8ApsU2aQ/RaTiydaLlAw75PcbEjLzTWQXZpFs g867bYMdCjajmnPMntrYWTksPGu9COOunWaR0rCAi+JxEF961A7Yafb7jzc66he5 vcgw7x8dgiwOnRMYW2U1pBEVo47u3uQVvZdIAYK6FkWatXCluCHzlI2zjTUEGNmx BkTeqtoB1r6kl1/PBJB1th/jEu4aB4QZXRtalLf90gzgN8TKLVqoImkoar0aJzjg 2GqVVMxEtGJPAPd7TCvpvvGbwaMRCI1Jud4Z14oq+Ynj8BSCTXWavNQt/Wd7MIG8 ND8IKYs5JrmmKfSXcAovZL2Itc4RyAPmwLISMPqbe1f7kOrvOtyL+hqMJwnLnzXn t9EGMO8LUZ/sOOta96FQ =aevB -----END PGP SIGNATURE----- --Apple-Mail=_377B3501-0062-4844-9C4D-BF767E5C7A62--