From owner-freebsd-arm@FreeBSD.ORG Wed Jul 27 23:14:29 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 935A81065670 for ; Wed, 27 Jul 2011 23:14:29 +0000 (UTC) (envelope-from mcgovern@beta.com) Received: from spoon.beta.com (spoon.beta.com [199.165.180.2]) by mx1.freebsd.org (Postfix) with ESMTP id 195F18FC14 for ; Wed, 27 Jul 2011 23:14:28 +0000 (UTC) Received: from [199.165.180.39] (dhcp9.beta.com [199.165.180.39]) by spoon.beta.com (8.14.4/8.14.4) with ESMTP id p6RNEQQG025417; Wed, 27 Jul 2011 19:14:26 -0400 (EDT) (envelope-from mcgovern@beta.com) From: "Brian J. McGovern" To: Damjan Marion In-Reply-To: <6E4BB877-4039-41A8-96B7-AB36AE2774C0@gmail.com> 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> Content-Type: text/plain; charset="us-ascii" Date: Wed, 27 Jul 2011 19:14:28 -0400 Message-ID: <1311808468.1465.10.camel@bmcgover-laptop.beta.com> Mime-Version: 1.0 X-Mailer: Evolution 2.30.2 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=0.5 required=5.0 tests=S25R_6,T_RP_MATCHES_RCVD autolearn=no version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on spoon.beta.com Cc: freebsd-arm@freebsd.org Subject: Re: Suggestions for arm build for qemu? X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Jul 2011 23:14:29 -0000 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.