From owner-freebsd-small@FreeBSD.ORG Mon May 9 09:20:36 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 D975616A4E7 for ; Mon, 9 May 2005 09:20:36 +0000 (GMT) Received: from mbox1.network-i.net (pop32.network-i.net [212.21.121.156]) by mx1.FreeBSD.org (Postfix) with SMTP id 8EA9E43D76 for ; Mon, 9 May 2005 09:20:35 +0000 (GMT) (envelope-from howie@thingy.com) Received: (qmail 51163 invoked from network); 9 May 2005 09:20:34 -0000 Received: from unknown (HELO ?10.1.1.134?) (212.21.99.52) by newmail.network-i.net with SMTP; 9 May 2005 09:20:34 -0000 Message-ID: <427F2BA6.1020204@thingy.com> Date: Mon, 09 May 2005 10:21:42 +0100 From: Howard Jones User-Agent: Mozilla Thunderbird 0.6 (Windows/20040502) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-small@freebsd.org Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: [Fwd: MD_ROOT and syslinux?] X-BeenThere: freebsd-small@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 May 2005 09:20:37 -0000 Hi Folks, Has anyone tried using a FreeBSD 5.x kernel with MD_ROOT, and booting off a FAT-formatted media with something like syslinux? I'd like to be able to download new fs-images to a flash-booting system and still have the ability to select which image to boot (something like Cisco IOS images). Ideally the flash would be readable with a regular PC (hence FAT) for upgrading too. All the info I can find on this type of kernel+mfsroot booting is for PXE rather than a local image... can anyone point me in the right direction? I'm also concerned that there might be a maximum size for the md_root device - my 'root' will actually be around 100MB in size - is there an issue with large md_roots? Thanks for any pointers, Best Regards, Howard From owner-freebsd-small@FreeBSD.ORG Mon May 9 11:01:50 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 BA05116A512 for ; Mon, 9 May 2005 11:01:48 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5F03043D73 for ; Mon, 9 May 2005 11:01:48 +0000 (GMT) (envelope-from owner-bugmaster@freebsd.org) Received: from freefall.freebsd.org (peter@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j49B1mv8097725 for ; Mon, 9 May 2005 11:01:48 GMT (envelope-from owner-bugmaster@freebsd.org) Received: (from peter@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j49B1lEf097717 for freebsd-small@freebsd.org; Mon, 9 May 2005 11:01:47 GMT (envelope-from owner-bugmaster@freebsd.org) Date: Mon, 9 May 2005 11:01:47 GMT Message-Id: <200505091101.j49B1lEf097717@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: peter set sender to owner-bugmaster@freebsd.org using -f From: FreeBSD bugmaster To: freebsd-small@FreeBSD.org Subject: Current problem reports assigned to you X-BeenThere: freebsd-small@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 May 2005 11:01:50 -0000 Current FreeBSD problem reports Critical problems Serious problems Non-critical problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2000/01/04] misc/15876 small PicoBSD message of the day problems o [2001/06/18] misc/28255 small picobsd documentation still references ol o [2002/09/13] kern/42728 small many problems in src/usr.sbin/ppp/* afte o [2003/05/14] misc/52255 small picobsd build script fails under FreeBSD o [2003/05/14] misc/52256 small picobsd build script does not read in use 5 problems total. From owner-freebsd-small@FreeBSD.ORG Mon May 9 22:21:49 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 D79DB16A4EB for ; Mon, 9 May 2005 22:21:49 +0000 (GMT) Received: from tranq1.tranquility.net (tranq1.tranquility.net [206.156.230.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id 03A3743D49 for ; Mon, 9 May 2005 22:21:49 +0000 (GMT) (envelope-from wittend@wwrinc.com) Received: from [192.168.1.13] (oblivion.wwrinc.com [206.152.116.84] (may be forged))j49MLm6p083644 for ; Mon, 9 May 2005 17:21:48 -0500 (CDT) (envelope-from wittend@wwrinc.com) Message-ID: <427FE276.3030505@wwrinc.com> Date: Mon, 09 May 2005 17:21:42 -0500 From: David Witten User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-small@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Problems building nanoBSD X-BeenThere: freebsd-small@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 May 2005 22:21:50 -0000 Pardon my naivete, but I keep failing in my attempts to build the nanobsd image using the directions in phk's "nanobsd prototype" message dated Tue Mar 9 15:16:40 PST 2004. There is probably something blatant that I just don't get. Can anyone point me to the error of my ways? There is much that I don't understand in this process. Perhaps I am expecting the wrong end product. In the past, I have successfully built the monoBSD package and gotten it running on a Soekris 4526 board, but at present I really have no specific objective (or target board) in mind. What I expected to come out of this exercise was a a disk image that could simply be dd'd or physdiskwrite'd to removable media of appropriate size and booted, as with monoBSD or picoBSD. I am doing this mucking about on a VIA miniITX machine with 0.5GB ram and a 65GB drive, etc. I am running freeBSD 5.3-RELEASE with a freshly installed /usr/src tree. Over the last couple of days, I have succeeded in provoking the build system into producing a number of different kinds of 'stop in build' situations, but I think my most recent is representative. -- Dave #-------------------------------------------- # The last few lines on stdout read: #-------------------------------------------- ... touch /usr/obj/usr/src/nanobsd/_.w/etc/diskless mkdir -p /usr/obj/usr/src/nanobsd/_.w/conf/base/var mtree -deU -f /usr/obj/usr/src/nanobsd/_.w/etc/mtree/BSD.var.dist -p /usr/obj/usr/src/nanobsd/_.w/conf/base/var ./account missing (created) ./at missing (created) ./at/jobs missing (created) ./at/spool missing (created) ... ./spool/opielocks missing (created) ./spool/output missing (created) ./spool/output/lpd missing (created) ./tmp missing (created) ./tmp/vi.recover missing (created) ./yp missing (created) mkdir -p /usr/obj/usr/src/nanobsd/_.w/conf/base/etc ( cd /usr/obj/usr/src/nanobsd/_.w/etc && find . -print | cpio -dumpl ../conf/base/etc ) 0 blocks mkdir -p /usr/obj/usr/src/nanobsd/_.w/conf/default/etc echo "mount -o ro /dev/ad0s3" > /usr/obj/usr/src/nanobsd/_.w/conf/default/etc/remount ln -s var/tmp /usr/obj/usr/src/nanobsd/_.w/tmp mtree -deU -f /usr/obj/usr/src/nanobsd/_.w/etc/mtree/BSD.root.dist -p /usr/obj/usr/src/nanobsd/_.w/ tmp changed type expected dir found link mtree -deU -f /usr/obj/usr/src/nanobsd/_.w/etc/mtree/BSD.usr.dist -p /usr/obj/usr/src/nanobsd/_.w/usr mtree -deU -f /usr/obj/usr/src/nanobsd/_.w/etc/mtree/BSD.include.dist -p /usr/obj/usr/src/nanobsd/_.w/usr/include (cd /usr/obj/usr/src/nanobsd/_.w && mtree -c -Kmd5digest ) > _.mtree.tmp /usr/src/nanobsd/i386.diskimage 501760 16 32 2048 /usr/obj/usr/src/nanobsd/_.w /usr/obj/usr/src/nanobsd/_.i > _.md.tmp 2>&1 *** Error code 126 Stop in /usr/src/nanobsd. #-------------------------------------------- # the last few lines of _.bw.tmp are: #-------------------------------------------- .... ===> usr.sbin/yppoll ===> usr.sbin/yppush ===> usr.sbin/ypserv ===> usr.sbin/ypset ===> usr.sbin/zic ===> usr.sbin/zic/zic ===> usr.sbin/zic/zdump ===> usr.sbin/zzz #-------------------------------------------- # the entirety of _.md.tmp is one line: #-------------------------------------------- /usr/src/nanobsd/i386.diskimage: Permission denied #-------------------------------------------- # the file _.iw begins by complaining about # a missing environment variable, but continues # to a conclusion that doesn't seem to imply # a problem #-------------------------------------------- env: not found "/usr/src/Makefile.inc1", line 94: warning: "env -i PATH=/usr/obj/usr/src/i386/legacy/usr/sbin:/usr/obj/usr/src/i386/legacy/usr/bin: /usr/obj/usr/src/i386/legacy/usr/games:/usr/obj/usr/src/i386/usr/sbin:/usr/obj/usr/src/i386/usr/bin:/usr/obj/usr/src/i386/usr/games: /tmp/install.3dZi2r4g MAKEFLAGS=" -j 12 -s DESTDIR=/usr/obj/usr/src/nanobsd/_.w __MAKE_CONF=/usr/src/nanobsd/make.conf -m /usr/src/s hare/mk" make -f /dev/null -V MAKEOBJDIRPREFIX dummy" returned non-zero status -------------------------------------------------------------- >>> Making hierarchy -------------------------------------------------------------- env: not found "/usr/src/Makefile.inc1", line 94: warning: "env -i PATH=/usr/obj/usr/src/i386/legacy/usr/sbin:/usr/obj/usr/src/i386/legacy/usr/bin: /usr/obj/usr/src/i386/legacy/usr/games:/usr/obj/usr/src/i386/usr/sbin:/usr/obj/usr/src/i386/usr/bin:/usr/obj/usr/src/i386/usr/games: /tmp/install.3dZi2r4g MAKEFLAGS=" -j 12 -s DESTDIR=/usr/obj/usr/src/nanobsd/_.w __MAKE_CONF=/usr/src/nanobsd/make.conf -m /usr/src/s hare/mk" make -f /dev/null -V MAKEOBJDIRPREFIX dummy" returned non-zero status ./bin missing (created) ./boot missing (created) ./boot/defaults missing (created) ... etc. From owner-freebsd-small@FreeBSD.ORG Tue May 10 21:13:32 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 7D53016A4D0 for ; Tue, 10 May 2005 21:13:32 +0000 (GMT) Received: from eql145.neoplus.adsl.tpnet.pl (eql145.neoplus.adsl.tpnet.pl [83.20.79.145]) by mx1.FreeBSD.org (Postfix) with SMTP id F397943DB5 for ; Tue, 10 May 2005 21:13:29 +0000 (GMT) (envelope-from effortless@culbreth.com) Received: from [53.69.28.81] (port=2471 helo=[bowlers]) by eql145.neoplus.adsl.tpnet.pl with esmtp id 998774318cheek73488 for freebsd-small@freebsd.org; Tue, 10 May 2005 23:05:47 +0300 Mime-Version: 1.0 (Apple Message framework v728) Content-Transfer-Encoding: 7bit Message-Id: <4691012731.15509@eql145.neoplus.adsl.tpnet.pl> Content-Type: text/plain; charset=US-ASCII; format=flowed To: freebsd-small@freebsd.org From: Bobby Date: Tue, 10 May 2005 23:05:46 +0300 X-Mailer: Apple Mail (2.728) Subject: Feel insecure about your penis size? X-BeenThere: freebsd-small@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 May 2005 21:13:32 -0000 Feel insecure about your penis size? http://www.tullam.info/ss/ Experience more powerful orgasms From owner-freebsd-small@FreeBSD.ORG Sat May 14 17:43:41 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 6481516A4CE for ; Sat, 14 May 2005 17:43:41 +0000 (GMT) Received: from smtp805.mail.sc5.yahoo.com (smtp805.mail.sc5.yahoo.com [66.163.168.184]) by mx1.FreeBSD.org (Postfix) with SMTP id 3EC2343D62 for ; Sat, 14 May 2005 17:43:41 +0000 (GMT) (envelope-from dnasoc@swbell.net) Received: from unknown (HELO ?192.168.1.102?) (dnasoc@swbell.net@66.69.184.64 with plain) by smtp805.mail.sc5.yahoo.com with SMTP; 14 May 2005 17:43:40 -0000 From: Randy Dawson To: freebsd-small@freebsd.org Date: Sat, 14 May 2005 12:41:59 +0000 User-Agent: KMail/1.7 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200505141242.00057.dnasoc@swbell.net> Subject: I/O, flash, usb general embedded BSD questions X-BeenThere: freebsd-small@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 14 May 2005 17:43:41 -0000 Hi all First thanks for the list, and Luigi, your script got me started! I am making a remote digital camera to communicate over a serial line. It is PicoBSD running a file transfer program connected to a digital camera that acts as a USB mass storage device. I am attempting to install picoBSD on a Kontron DIMM-PC credit card size PC. I have success with the bridge config, to genereate a picobsd.bin, make a floppy. it boots just fine. Then I tried a dd of the image to the 32MB flash on the kontron, set the bios to boot from it, and that boots OK to, yet still asking for /etc from the floppy. My development environment has a motherboard to hold this little PC, so I have keyboard and video there and ethernet for the host-target development. I can talk to it from a desktop PC with a full FreeBSD 5.3 and all the comforts so I am all set, but I need just a little help to learn how to configure my picoBSD with these generic embedded facilities: usb and mass storage scsi drivers discrete i/o to the lpt port from my application (I need to set bits from my app) headless diskless, how do I remove the floppy mount requirement at the end of the boot the end of the build I desire a .bin I dd to the flash. So far, I have done this: To fork from the standard working build, I copied /usr/src/release/picobsd/bridge to /usr/src/release/picobsd/kontron I added at the end of PICOBSD device uhci device usb device umass device scbus device da device pass The new directory shows up in the script menu when I run Luigis latest and it builds without complaints. I dont know what to do about the floppy size, so I set it to 4 meg, it did make a 4 meg image (wrong I am sure) The resulting image does not boot, on any hardware. The previous(bridge) image I could dd to a usb thumb drive and boot from that on different machines as a hardware sanity check. So group, how do we really go about making a tiny FreeBSD to put on an emembedded flash PC? If you throw me back to the fishes, let me tell you I already have been down the WhiteDwarf-Linux, Linux From Scratch trail. Everything seems to just work better, (The ports!) in FreeBSD. Randy Dawson