From owner-freebsd-testing@FreeBSD.ORG Mon Feb 16 06:58:44 2015 Return-Path: Delivered-To: freebsd-testing@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 408E913B; Mon, 16 Feb 2015 06:58:44 +0000 (UTC) Received: from mail-lb0-x235.google.com (mail-lb0-x235.google.com [IPv6:2a00:1450:4010:c04::235]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A3B64852; Mon, 16 Feb 2015 06:58:43 +0000 (UTC) Received: by mail-lb0-f181.google.com with SMTP id b6so25383546lbj.12; Sun, 15 Feb 2015 22:58:41 -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:cc:content-type; bh=IwmBasZ7K/mX+POpIakGcUAiH3mXYuNFVf2CMx9Ji7w=; b=tFbQaMGyKDXo1B2r3d9ekBVyx8yQeliYf7mh5WKuNlHyQaGLf3Mm8UlybFENnhjnyq 6xlTUNSs2OC+vTkEVKpr5DPgexVlPLMQRoBV1syU35wY6XKR4+hJreux0bb+204jV/+A hI98X7uQVYrIZKUEaS0cM3v9XczHladXT15TDS/P2HEKE3yiiNP1To6R2S1gsicoLORm I5AST9P46ts85m/IxzKPvUCt9yAKlHfB4lo4+4yTHwtdRW80IYhD/p9X0vnfl+5DIEMH wA+gKpK6KEvFuSbVfXED/8D9h3jccj8ZCMqSg+KT9CqaY4FyK9L1wpkVHFohW1k9w4sT vZVg== MIME-Version: 1.0 X-Received: by 10.152.3.42 with SMTP id 10mr4463302laz.84.1424069921645; Sun, 15 Feb 2015 22:58:41 -0800 (PST) Sender: crodr001@gmail.com Received: by 10.112.28.40 with HTTP; Sun, 15 Feb 2015 22:58:41 -0800 (PST) In-Reply-To: References: Date: Sun, 15 Feb 2015 22:58:41 -0800 X-Google-Sender-Auth: SwKnKYGxCpFctuFEVYedBfHQb_o Message-ID: Subject: Re: Building Kyua inside qemu mips VM From: Craig Rodrigues To: Adrian Chadd Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 Cc: "freebsd-testing@freebsd.org" X-BeenThere: freebsd-testing@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Testing on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Feb 2015 06:58:44 -0000 Hi, Yes, le0 interface works, I can use dhclient to get an address. Building kyua and its dependencies takes a super long time even though there are not that many. Building sqlite3 failed because the compiler ran out of RAM (I did not have swap configured), since I only had 256MB of RAM. I'm going to allocate a swap partition and see how far I get. -- Craig On Sun, Feb 15, 2015 at 5:44 PM, Adrian Chadd wrote: > Cool. Does that work for you? > > Building the packages in the VM may take a while, but it's IMHO a good > test of the VM/platform support anyway. > > > -adrian > > > On 15 February 2015 at 11:32, Craig Rodrigues wrote: > > Oh OK, I do have it. I guess I missed it: > > > > ifconfig > > le0: flags=8843 metric 0 mtu 1500 > > options=8 > > ether 52:54:00:12:34:56 > > media: Ethernet autoselect > > status: active > > lo0: flags=8049 metric 0 mtu 16384 > > options=600003 > > inet 127.0.0.1 netmask 0xff000000 > > groups: lo > > > > > > On Sun, Feb 15, 2015 at 11:11 AM, Adrian Chadd > wrote: > >> > >> I run qemu-devel, and: > >> > >> adrian 3361 101.2 9.7 639416 381572 1 S+ 9:13PM 986:02.93 > >> qemu-system-mips -M malta -kernel /tftpboot/kernel.MALTA -hda > >> ../fullroot-malta.img -hdb ../malta-swap.img -nographic -m 256 > >> > >> > >> > >> -adrian > >> > >> > >> On 15 February 2015 at 11:10, Adrian Chadd wrote: > >> > It should just work by default. are you using qemu-devel ? If not, you > >> > should be. > >> > > >> > > >> > > >> > -adrian > >> > > >> > On 15 February 2015 at 11:08, Craig Rodrigues > >> > wrote: > >> >> Can you to https://wiki.freebsd.org/FreeBSD/MipsEmulation the > >> >> command-line > >> >> flags to QEMU > >> >> that allow usage of this NIC? > >> >> > >> >> Thanks. > >> >> > >> >> > >> >> > >> >> On Sun, Feb 15, 2015 at 11:03 AM, Adrian Chadd > >> >> wrote: > >> >>> > >> >>> Yeah, it does: > >> >>> > >> >>> le0: irq 10 at device 11.0 on pci0 > >> >>> le0: Lazy allocation of 0x20 bytes rid 0x10 type 4 at 0x120 > >> >>> le0: 16 receive buffers, 4 transmit buffers > >> >>> le0: bpf attached > >> >>> le0: Ethernet address: 52:54:00:12:34:56 > >> >>> > >> >>> (I'm doing a buildworld right now inside it.) > >> >>> > >> >>> > >> >>> -adrian > >> >>> > >> >>> > >> >>> On 15 February 2015 at 10:55, Craig Rodrigues > >> >>> wrote: > >> >>> > Also, can the MALTA kernel config support any network drivers > >> >>> > compatible > >> >>> > with QEMU? > >> >>> > I didn't see anything compiled into the default kernel config, > but I > >> >>> > might > >> >>> > have missed it. > >> >>> > > >> >>> > -- > >> >>> > Craig > >> >>> > > >> >>> > On Sun, Feb 15, 2015 at 10:51 AM, Craig Rodrigues > >> >>> > > >> >>> > wrote: > >> >>> >> > >> >>> >> Hi, > >> >>> >> > >> >>> >> Have you tried any of these options to cross-build ports: > >> >>> >> > >> >>> >> https://wiki.freebsd.org/QemuUserModeHowTo > >> >>> >> > >> >>> >> Those options look complicated, but workable. > >> >>> >> -- > >> >>> >> Craig > >> >>> >> > >> >>> >> > >> >>> >> On Sun, Feb 15, 2015 at 10:26 AM, Adrian Chadd < > adrian@freebsd.org> > >> >>> >> wrote: > >> >>> >>> > >> >>> >>> ... ask the ports people to support cross-building as a "thing" > >> >>> >>> one > >> >>> >>> can > >> >>> >>> do? > >> >>> >>> > >> >>> >>> All of those ports you've mentioned should be a perfectly good > >> >>> >>> target > >> >>> >>> for cross-building; I've done them before individually. > >> >>> >>> > >> >>> >>> > >> >>> >>> > >> >>> >>> -adrian > >> >>> >>> > >> >>> >>> > >> >>> >>> On 15 February 2015 at 10:23, Craig Rodrigues > >> >>> >>> > >> >>> >>> wrote: > >> >>> >>> > Adrian, > >> >>> >>> > > >> >>> >>> > I am continuing on the work started in the Hackathon which > >> >>> >>> > you organized in January. I have this Jenkins job which > >> >>> >>> > builds a UFS image built for mips using the MALTA kernel > config: > >> >>> >>> > > >> >>> >>> > https://jenkins.freebsd.org/job/FreeBSD_HEAD_mips32_be/ > >> >>> >>> > > >> >>> >>> > I am using this invocation of QEMU to boot the image with > 256MB > >> >>> >>> > RAM: > >> >>> >>> > > >> >>> >>> > > https://wiki.freebsd.org/FreeBSD/MipsEmulation#Configuring_QEMU > >> >>> >>> > > >> >>> >>> > I am now trying to build /usr/ports/devel/kyua > >> >>> >>> > inside the VM, so that I can do "cd /usr/tests ; kyua test" to > >> >>> >>> > run > >> >>> >>> > all the tests. > >> >>> >>> > > >> >>> >>> > However, building kyua and all its dependencies (atf, sqlite, > >> >>> >>> > lua, > >> >>> >>> > lutok) > >> >>> >>> > is taking a really long time inside this VM, on the order of > >> >>> >>> > many > >> >>> >>> > hours. > >> >>> >>> > > >> >>> >>> > Is there something I can do to boost performance so I can at > >> >>> >>> > least > >> >>> >>> > build > >> >>> >>> > kyua faster in this VM? > >> >>> >>> > > >> >>> >>> > -- > >> >>> >>> > Craig > >> >>> >> > >> >>> >> > >> >>> > > >> >> > >> >> > > > > >