From owner-freebsd-fs@FreeBSD.ORG Tue Jul 25 17:54:24 2006 Return-Path: X-Original-To: freebsd-fs@freebsd.org Delivered-To: freebsd-fs@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B01BC16A4DE for ; Tue, 25 Jul 2006 17:54:24 +0000 (UTC) (envelope-from adamsch1@yahoo.com) Received: from web31806.mail.mud.yahoo.com (web31806.mail.mud.yahoo.com [68.142.207.69]) by mx1.FreeBSD.org (Postfix) with SMTP id 2D16343D95 for ; Tue, 25 Jul 2006 17:53:47 +0000 (GMT) (envelope-from adamsch1@yahoo.com) Received: (qmail 78304 invoked by uid 60001); 25 Jul 2006 17:53:31 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=O5sF4FLG4Gx5OtZ3lirebPYVWbaGwA5w1g3m86mjudfcU9fjn1jbK7Ko7tIdw+C+oDQjz4gENkaFO1/k7H6MzBzmvLG2fY1Pdr0Zudft1Cd90nQSYdDpN4o88tXKZr8zWz5CYuj2MPGU/Xw8EfNcKHQ6KCXKbdrrZfDjVW4fN3c= ; Message-ID: <20060725175331.78302.qmail@web31806.mail.mud.yahoo.com> Received: from [207.126.230.225] by web31806.mail.mud.yahoo.com via HTTP; Tue, 25 Jul 2006 10:53:31 PDT Date: Tue, 25 Jul 2006 10:53:31 -0700 (PDT) From: Shane Adams To: Eric Anderson , =?utf-8?q?Dag-Erling=20Sm=C3=B8rgrav?= In-Reply-To: <44C6430D.1050506@centtech.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-fs@freebsd.org Subject: Re: Advice for hacking on ufs/ffs X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Shane Adams List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Jul 2006 17:54:24 -0000 Thanks for the tip DES! I will probably break down and buy a cheap machine= or dust off my old P3 box. I have a PXE card at home too. I want to try = qemu as well cause if I get it to work I can tool around on my laptop. Eric, I hate to bother you but I didn't get the cheat sheet. Here's what I= attempted last night. I built qemu from ports I used dd to create 1G file. I did mdconfig -a -t vnode -f /bigdrive/bsdfilesystem -u 0 I downloaded the 20M boot only ISO. I ran qemu specifying -cdrom as the 20M iso, and -hda to /bigdrive/bsdfiles= ystem. Qemu started fine, and I proceeded to go through the basic install process,= at that point it asked me to toss in the correct CD with the packages to c= omplete the installation (Which I didnt' have the CD handy and it was late = so I will try again tonight). Anyway - you said you do a make DESTDIR to your mdconfig'd file. Did you m= ount the file you mdconfiged? If so, does a make installworld install a bo= ot loader as well? I'm not clear on how you used qemu to boot agains that = device. Perhaps you did a normal BSD install on it then later mounted it t= o get your stuff on there? Cheers, Shane ----- Original Message ---- From: Eric Anderson To: Dag-Erling Sm=C3=B8rgrav Cc: Shane Adams ; freebsd-fs@freebsd.org Sent: Tuesday, July 25, 2006 9:13:01 AM Subject: Re: Advice for hacking on ufs/ffs On 07/25/06 10:13, Dag-Erling Sm=C3=B8rgrav wrote: > Shane Adams writes: >> I'm a programmer that is new to kernel development. I'm interested >> in hacking around on UFS and FFS. I only have one machine so I >> copied the complete sys/ufs code to a new directory under fs, and >> changed a few things to get it to compile and mount. Everything >> works, and I was ready to start hacking without worrying so much >> about screwing up my system. >> >> Naturally I've rebooted the machine a few times since then, and I >> was wondering if anyone has advice for a fledgling kernel >> programmer. (Best practices) >=20 > Get a test machine with a PXE-capable network adapter, and set up your > workstation as bootp / dhcp and NFS server. Having a dedicated test > box will save time as you won't have to reboot your workstation to > test your code, and setting it up diskless will help even further. A > serial console cable will help even more, as it will save you from > moving from one keyboard to another and will give you a scrollback of > the test machine's console from which you can copy / paste error > messages, backtraces etc. >=20 > DES DES - anything special with the nfs root'ed box, to make this work well?=20 The only reason I didn't set this up for my work is because it isn't=20 portable.. :) Eric --=20 ------------------------------------------------------------------------ Eric Anderson Sr. Systems Administrator Centaur Technology Anything that works is better than anything that doesn't. ------------------------------------------------------------------------