From owner-freebsd-small@FreeBSD.ORG Sat Apr 30 21:57:59 2005 Return-Path: Delivered-To: freebsd-small@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2C82516A4CE for ; Sat, 30 Apr 2005 21:57:59 +0000 (GMT) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.198]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9B74043D2F for ; Sat, 30 Apr 2005 21:57:58 +0000 (GMT) (envelope-from inactiv8@gmail.com) Received: by zproxy.gmail.com with SMTP id 34so1860443nzf for ; Sat, 30 Apr 2005 14:57:58 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=IRkJ/8Ugfrn4vNugpI+NvnAztxTFeqrsA+/g7uDHwT5ODVtMTzrZnQkg9spK31YGUE/yYFWMwKgBH3nUtT4yjzjCOoaX9UoFmrKetWVKYorCfHuZIAa/pbxvbZEp/E8axQe5DHDiOAGz5BQ1T/yOwwE19CeIK8MVCeOOfzWHZJ8= Received: by 10.36.56.19 with SMTP id e19mr358966nza; Sat, 30 Apr 2005 14:57:58 -0700 (PDT) Received: by 10.36.19.20 with HTTP; Sat, 30 Apr 2005 14:57:58 -0700 (PDT) Message-ID: <844f54af05043014577d99152a@mail.gmail.com> Date: Sat, 30 Apr 2005 17:57:58 -0400 From: john thomas To: freebsd-small@freebsd.org In-Reply-To: <20050428121140.A94424@xorpc.icir.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <844f54af05042812041044a418@mail.gmail.com> <20050428121140.A94424@xorpc.icir.org> Subject: Re: picobsd and freebsd 5.3 X-BeenThere: freebsd-small@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: john thomas List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 30 Apr 2005 21:57:59 -0000 thanks, your script works on 5.3, all I had to do was install the makefs po= rt. On 4/28/05, Luigi Rizzo wrote: > maybe the attached version of the 'picobsd' script helps. >=20 > I have removed the need to run with vnconfig and/or root privs, > and rely on "makefs" (from the ports). It also removes > one instance of {bsd|disk}label, so that might help. >=20 > I have only tested this with 4.x and building picobsd > images based on 4.x and 5.x sources >=20 > cheers > luigi >=20 > On Thu, Apr 28, 2005 at 03:04:10PM -0400, john thomas wrote: > > Hi there - I'm trying to use picobsd on freebsd 5.3 and having a few pr= oblems. > > > > I am simply doing "/usr/src/release/picobsd/build/picobsd bridge" as > > root, accepting all the defaults and selecting 'build' from the > > dialog. It sucessfully compiles the kernel, does crunchgen ok (with a > > few errors re: sshd which im confident I can fix in crunch.conf > > later), and then starts to build the floppy image and dies like this: > > > > Filesystem 1K-blocks Used Avail Capacity iused ifree %iused Mounted on > > /dev/md0c 2967 1311 1656 44% 70 376 16% > > /tmp/picobsd.7g7xz6SAFI > > /dev/md0c: FILE SYSTEM CLEAN; SKIPPING CHECKS > > /dev/md0c: clean, 3312 free (8 frags, 413 blocks, 0.1% fragmentation) > > 0+1 records in > > 0+1 records out > > 13 bytes transferred in 0.000101 secs (128903 bytes/sec) > > disklabel -Brw -b /boot/boot1 -s /root/pico/build_dir-bridge/boot2 md0 = auto > > usage: bsdlabel disk > > (to read label) > > bsdlabel -w [-n] [-m machine] disk [type] > > (to write label with existing boot program) > > bsdlabel -e [-n] [-m machine] disk > > (to edit label) > > bsdlabel -R [-n] [-m machine] disk protofile > > (to restore label with existing boot program) > > bsdlabel -B [-b boot] [-m machine] disk > > (to install boot program with existing on-disk label) > > bsdlabel -w -B [-n] [-b boot] [-m machine] disk [type] > > (to write label and install boot program) > > bsdlabel -R -B [-n] [-b boot] [-m machine] disk protofile > > (to restore label and install boot program) > > ---> fail: Error <1> error code in <> > > Error while doing disklabel on of floppy.img size 1440 > > ---> Aborting ./picobsd > > > > I added an echo of what seems to be the command that causes it to > > fail, you can see it in the output above but I'll also put it here: > > disklabel -Brw -b /boot/boot1 -s /root/pico/build_dir-bridge/boot2 md0 = auto > > I'm pretty new to freebsd so I have no idea what that command is > > trying to achieve, but perusing the disklabel manpage shows no -r or > > -s arguments, and a quick look at > > http://www.freebsd.org/cgi/cvsweb.cgi/src/release/picobsd/build/picobsd > > shows that those options were both added in v1.29 (as well as a bunch > > of other things), which is the version that in 5.3. > > > > My end goal is to just end up with a kernel file (with embedded > > ramdisk image) that I can boot with grub (from a cf card), but I'm not > > sure how to fix the script to get there. > > > > Any suggestions would be great. > > > > Thanks. > > _______________________________________________ > > freebsd-small@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-small > > To unsubscribe, send any mail to "freebsd-small-unsubscribe@freebsd.org= " >=20 >=20 >