From owner-freebsd-small@FreeBSD.ORG Tue Jun 28 12:48:29 2005 Return-Path: X-Original-To: freebsd-small@freebsd.org 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 F1BB816A41C for ; Tue, 28 Jun 2005 12:48:29 +0000 (GMT) (envelope-from jmelo@freebsdbrasil.com.br) Received: from capeta.freebsdbrasil.com.br (vrrp.freebsdbrasil.com.br [200.210.70.30]) by mx1.FreeBSD.org (Postfix) with SMTP id 33D4143D55 for ; Tue, 28 Jun 2005 12:48:27 +0000 (GMT) (envelope-from jmelo@freebsdbrasil.com.br) Received: (qmail 59173 invoked by uid 0); 28 Jun 2005 09:48:25 -0300 Received: from jmelo@freebsdbrasil.com.br by capeta.freebsdbrasil.com.br by uid 82 with qmail-scanner-1.22 (uvscan: v4.3.20/v4522. spamassassin: 2.64. Clear:RC:1(201.17.165.147):. Processed in 0.671402 secs); 28 Jun 2005 12:48:25 -0000 Received: from unknown (HELO ?10.69.69.2?) (201.17.165.147) by capeta.freebsdbrasil.com.br with SMTP; 28 Jun 2005 09:48:25 -0300 Message-ID: <42C14734.2040403@freebsdbrasil.com.br> Date: Tue, 28 Jun 2005 09:48:52 -0300 From: Jean Milanez Melo User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050614) X-Accept-Language: en-us, en MIME-Version: 1.0 To: joker@init.ru References: <844f54af05042812041044a418@mail.gmail.com> <20050428121140.A94424@xorpc.icir.org> <42C12D9F.8050409@init.ru> In-Reply-To: <42C12D9F.8050409@init.ru> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Luigi Rizzo , freebsd-small@freebsd.org Subject: Re: picobsd and freebsd 5.3 X-BeenThere: freebsd-small@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Jun 2005 12:48:30 -0000 Yuri Kurenkov wrote: > Thanx, Luigi, for your development. You script modified for using > makefs works with RELENG_4 and RELENG_5 and help to me migrate my CF > versions from RELENG_4 to RELENG_5. But i take one small trouble: I > can't build 1400K floppy images - makefs say me: > > ----8<------8<------8<------ > `getarptab.o' is up to date. > makefs: `/usr/src/release/picobsd/build/build_dir-tinet/mfs.tree' size > of 2359296 is larger than the maxsize of 2355200. > ----8<------8<------8<------ > > But native RELENG_4 `picobsd' build scrip make picobsd.bin with this > config set succesfully. Can you help with this trouble? I'm wating for > Your solutions :) > > Luigi Rizzo wrote: > >> maybe the attached version of the 'picobsd' script helps. >> >> 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. >> >> I have only tested this with 4.x and building picobsd >> images based on 4.x and 5.x sources >> >> cheers >> luigi >> >> 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 >>> problems. >>> >>> 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" >>> >>> > > Hi Luigi, Don't will you commit this "new" picobsd script? -- Atenciosamente Jean Milanez Melo FreeBSD Brasil LTDA. Fone: (31) 3281-9633 http://www.freebsdbrasil.com.br