From owner-freebsd-arm@FreeBSD.ORG Tue Sep 6 12:05:49 2011 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B2E00106566C for ; Tue, 6 Sep 2011 12:05:49 +0000 (UTC) (envelope-from mattia.rossi.mate@gmail.com) Received: from mail-yx0-f182.google.com (mail-yx0-f182.google.com [209.85.213.182]) by mx1.freebsd.org (Postfix) with ESMTP id 64BAC8FC17 for ; Tue, 6 Sep 2011 12:05:49 +0000 (UTC) Received: by yxn22 with SMTP id 22so3321296yxn.13 for ; Tue, 06 Sep 2011 05:05:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:reply-to:organization:user-agent:mime-version :to:cc:subject:references:in-reply-to:content-type :content-transfer-encoding; bh=80I0PzhLmb/S3FyGTVMu4nud4ZpTpMDQbYaoPOqTuOY=; b=ca9xmUbj7vdKvV4R7E9F8oiBEGtVmHQuBXtZmh6fNq732S6RpPjp76+rRy1HZWTnon CrDXT9DPaILvUyco5MDtf6W08CriIaYautdA97I4YHQMgMvYjegGikHRRwgywpzCcxMR mgBZAashg3RuMFXzvUdh7WZ20zblASkzGKFwo= Received: by 10.90.7.29 with SMTP id 29mr3534973agg.89.1315309036078; Tue, 06 Sep 2011 04:37:16 -0700 (PDT) Received: from [192.168.15.65] (124-148-158-203.dyn.iinet.net.au [124.148.158.203]) by mx.google.com with ESMTPS id p7sm12999988ank.1.2011.09.06.04.37.12 (version=SSLv3 cipher=OTHER); Tue, 06 Sep 2011 04:37:14 -0700 (PDT) Message-ID: <4E6605E8.70903@swin.edu.au> Date: Tue, 06 Sep 2011 21:37:12 +1000 From: Mattia Rossi Organization: Swinburne University of Technology User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:6.0) Gecko/20110812 Thunderbird/6.0 MIME-Version: 1.0 To: freebsd-arm@freebsd.org References: <20110708120025.5C94210656D9@hub.freebsd.org> <1310178351.5681.4.camel@bmcgover-laptop.beta.com> <4E18403C.8010203@gmail.com> <1310344111.1455.3.camel@bmcgover-laptop.beta.com> <4E1A4F18.5000802@gmail.com> <1310412331.1466.41.camel@bmcgover-laptop.beta.com> <4E1B83F8.3070700@gmail.com> <1310439696.1438.6.camel@bmcgover-laptop.beta.com> <4E1C48EE.3070905@gmail.com> <1310674865.1447.71.camel@bmcgover-laptop.beta.com> <4E1FA4E0.5050703@gmail.com> <1311045159.1508.3.camel@bmcgover-laptop.beta.com> <6E4BB877-4039-41A8-96B7-AB36AE2774C0@gmail.com> <1311808468.1465.10.camel@bmcgover-laptop.beta.com> In-Reply-To: <1311808468.1465.10.camel@bmcgover-laptop.beta.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: "Brian J. McGovern" Subject: Re: Suggestions for arm build for qemu? X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: mrossi@swin.edu.au List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Sep 2011 12:05:49 -0000 On 28/07/11 09:14, Brian J. McGovern wrote: > On Wed, 2011-07-27 at 16:08 +0200, Damjan Marion wrote: >> On Jul 19, 2011, at 5:12 AM, Brian J. McGovern wrote: >> >>> That got it. The kernel is now booting, and I'm able to run the >>> applications in /rescue. The other binaries seem to be hit or miss >>> (signal 11s), although the C compiler can build 'hello world', so I'm >>> guessing that either the dynamic linker isn't set up right (/etc isn't >>> populated by the installworld, so I continue to add files by hand) and >>> its having a problem finding all the dynamic libraries it wants, or the >>> 64MB memory limit is a problem, and I need to get swap going. In any >>> event, its enough to get my hacking until Globalscale ships my board. >> >> Hi Brian, >> >> Can you share how did you setup root file system? I tried to play with >> qemu network settings but didn't reach far away from: >> >> Received DHCP Ack packet on smc0 from 10.0.2.2 (accepted) (no root path) >> DHCP/BOOTP timeout for server 255.255.255.255 >> >> Thanks, >> >> Damjan >> >> > Sure. Happy to share what others helped with... I'm going to assume > you've read through http://wiki.freebsd.org/FreeBSDMarvell, have built > and the exported file system. It looks like you're getting hung up on > passing the root filesystem via DHCP. I'm using the isc-dhcp server, so > I had to add > > option root-path "dotted.quad.ip.addr:/path/to/exported root"; > > to the section that will give an address to the device. This will get > the device to mount the NFS export as the root filesystem. > > Once you can boot the device, you can use the standard tools to build > local filesystems if you've defined hard disks or other storage. > Hi Brian, Coming back to this whole qemu issue, following the various posts in this thread, I've been able to boot the kernel and to get a DHCP offer from my DHCP server. It also comes as far as trying to set the NFS root up, using the hint you gave above, but then it will fail with an RPC timeout. I suspect that the NFS server wont bind to the tap0 interface? I start qemu the following way: qemu-system-arm -M connex -m 289 -pflash -nographic -serial tcp::4000,server -net nic,macaddr=,vlan=0,model=smc91c111 -net tap,vlan=0,ifname=tap0,script=no I have a tap0 interface with the IP address, which I point the option root-path to (it's a 10 dot something address). The NFS server is set to listen on the 10 dot something subnet. Do you have some other trick in there to make it working? I've tried to bridge tap0 to em0 as well, but couldn't get any DHCP requests on em0 in that case.. The host system is 8.2, the Qemu arm system is CURRENT. Any help would be highly appreciated! Mat