From owner-freebsd-mips@FreeBSD.ORG Sun Oct 19 22:50:19 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 7961F474 for ; Sun, 19 Oct 2014 22:50:19 +0000 (UTC) Received: from mail-lb0-x22c.google.com (mail-lb0-x22c.google.com [IPv6:2a00:1450:4010:c04::22c]) (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 EB390206 for ; Sun, 19 Oct 2014 22:50:18 +0000 (UTC) Received: by mail-lb0-f172.google.com with SMTP id b6so2970470lbj.31 for ; Sun, 19 Oct 2014 15:50:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=clockworksquid.com; s=google; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=yjpNqjMeyEokBuY9bYiNbBNDmH4gw5JmPUCtefAWPQk=; b=f6QbDoMzrehXIMfmp/MrDM34WKmhX2MSkve5ZULToKkIZRsmVNqnG7bgyBexUxkMJ6 TUXzC8TFmbwF1gfXarqwKlZUWD9mTPQbMJocB2mv0K7a3kp0oy+3JJ0zfogNRYBI0Rm9 UFkYkMyO3qjprpINIVxVAxnEWU3idGZOAuTF4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc:content-type; bh=yjpNqjMeyEokBuY9bYiNbBNDmH4gw5JmPUCtefAWPQk=; b=UrOGvBQXdVFKnaQq2PR1kdUdSEGHt0aq4attzqy4DrUKz1O/Ic2/Uni7VUj9ufRBAp xrZmASPlKlKxx+cat3/G2f+ZhS+OUWnlHWeSsO7YFo9GGxK/SHwfnpuQMo/NPsv/Nqiu m4TZjtKbWnvmeFZZBoj7SsNvXUTL7MOoOM2ErSxHtZJHeCLMXJ+UnFJOuk0hUYCyK9dV lBEERqpjhZb71SABAsWHr4IETMZFOEd67pHDOEsf1w6Ak12hWUa7yURjDYDEmgSP6UU0 v/z7243npPpwV3gnnYLnrrW1AluLdHE4Dy2LKPtDeVuZxl/JhZHgor1vetRVG6S2sPo/ qREw== X-Gm-Message-State: ALoCoQl/B+aP4/nolq6M1p3Vwi/yO9kYDcCNVwMXiXM3sBW2ca1XKwFj8dzRhzghalQPHxl22ktc X-Received: by 10.112.140.135 with SMTP id rg7mr23660036lbb.24.1413759016684; Sun, 19 Oct 2014 15:50:16 -0700 (PDT) MIME-Version: 1.0 Sender: juli@clockworksquid.com Received: by 10.152.113.226 with HTTP; Sun, 19 Oct 2014 15:49:56 -0700 (PDT) In-Reply-To: <20141019223447.GB12023@anubis.morrow.me.uk> References: <20141018225950.GA12023@anubis.morrow.me.uk> <20141019223447.GB12023@anubis.morrow.me.uk> From: Juli Mallett Date: Sun, 19 Oct 2014 15:49:56 -0700 X-Google-Sender-Auth: DO4Rwtq9xofU8Xjnd0ENCj7VGSo Message-ID: Subject: Re: Trying to get MALTA64 running under qemu To: Ben Morrow Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 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: Sun, 19 Oct 2014 22:50:19 -0000 On Sun, Oct 19, 2014 at 3: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; th= e > > > patches have nothing to do with MIPS. > > > > > > However, when I try to bring qemu up, the system appears to hang afte= r > > > 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 lo= g > > > below; I'd appreciate any advice. > > > > can you try qemu-devel? > > 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...) > The optimal thing here is to use a user-mode emulator, whereby you can effectively run a MIPS userland through qemu on a FreeBSD host, so all of the kernel stuff is being done natively =E2=80=94 which is a lot for things= like package building; others have done this for ARM, and I believe that one of the groups using FreeBSD/MIPS was looking at doing so for MIPS as well for the sake of package builds, etc. You might create a new thread for user-mode MIPS emulation to see if any of the right people notice and respond, or perhaps dig into what the ARM folks have done. Thanks, Juli.