From owner-freebsd-small Wed Nov 14 1:10:45 2001 Delivered-To: freebsd-small@freebsd.org Received: from iitkgp.iitkgp.ernet.in (iitkgp.iitkgp.ernet.in [203.197.98.10]) by hub.freebsd.org (Postfix) with ESMTP id 8153C37B419 for ; Wed, 14 Nov 2001 01:10:28 -0800 (PST) Received: from cse.iitkgp.ernet.in (IDENT:root@cse.iitkgp.ernet.in [144.16.192.57]) by iitkgp.iitkgp.ernet.in (8.9.3/8.9.3) with ESMTP id OAA08926 for ; Wed, 14 Nov 2001 14:36:37 -0500 (GMT) Received: (from brucem@localhost) by cse.iitkgp.ernet.in (8.11.0/8.8.7) id fAE9Gxd03892 for freebsd-small@freebsd.org; Wed, 14 Nov 2001 14:46:59 +0530 Date: Wed, 14 Nov 2001 14:46:59 +0530 From: Bruce Montague Message-Id: <200111140916.fAE9Gxd03892@cse.iitkgp.ernet.in> To: freebsd-small@freebsd.org Subject: picobsd ref configs all fail on 4.4-Release Sender: owner-freebsd-small@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG It was a dark and stormy night... Luckily, brand new FreeBSD 4.4-Release CD's are in hand. Why not test build standard picobsd reference configurations? None of the picobsd reference configs work as-is under 4.4-Release (actually, none will even get very far on a build). The "router" and "bridge" configs can be made to work with minor tweaks. What to do for the other configurations seems a bit problematic. The core problem seems to be that the miibus ethernet stuff (and probably things in general) have simply made things bigger... and what with planned migration to 5.0 things there seems a high state of general flux... (ARE THESE ASSUMPTIONS ACCURATE??) Maybe just considering these starting-point doc is the best thing to do right now? What's the likely future of these files? ---------------------- With the help of an enterprising student (thanks, Rajarshi Chakraborty, rajarshi_chakraborty@hotmail.com) here's all that's needed to get "router" and "bridge" working: * Add "device miibus" to all PICOBSD configs, except bridge which already has it. =============== "router" Config * router - Change "router" PICOBSD config file args to: #marker def_sz init MFS_inodes floppy_inodes #PicoBSD 1500 oinit 3072 32768 options MD_ROOT_SIZE=1500 (MFS size of 1500 instead of 1200) ================= "bridge" Config Bridge fails because it looks like it expects a more current ports tree then is in 4.4-Release: ------ cd: can't cd to /usr/ports/picobsd/more ------ Remove the following lines from "bridge/crunch.conf" and bridge builds and works fine. #progs more # 12KB #special more srcdir /usr/ports/picobsd/more I'm including some of the other results hoping that this will save someone some time, sorry for the length but maybe its better to have it all in one place.... ========= DEBUG LOG =========== ============ ROUND 1 ---------- bridge dies:----------- cd: can't cd to /usr/ports/picobsd/more -------- dial, isp, net, router dies:---------- ../../dev/fxp/if_fxp.c:91: #error "You need to add 'device miibus' to your kernel config!" ------------------------------------- ============= ROUND 2 --- With "device miibus" added: *** dial - Builds, boots through UserConfig and panics, "no init". *** isp - kernel.gz is too big for floppy image: --------- + cp -p kernel.gz /tmp/picobsd.tPBgM2jQsW/kernel /tmp/picobsd.tPBgM2jQsW: write failed, file system is full cp: /tmp/picobsd.tPBgM2jQsW/kernel: No space left on device -rwxr-xr-x 1 root wheel 3969920 Nov 13 21:23 kernel -rwxr-xr-x 1 root wheel 1482631 Nov 13 21:23 kernel.gz -rw-r--r-- 1 root wheel 1474560 Nov 13 21:23 picobsd.bin --------- (no way that gzip will fit on picobsd.bin floppy image) *** net - /tmp/picobsd.IZYDC8sose: write failed, file system is full *** router - /tmp/picobsd.9tPj9Pg5lW: write failed, file system is full ---- NOTE, this is on the MFS, not floppy image: ----------- df -Hi Filesystem Size Used Avail Capacity iused ifree %iused Mounted on /dev/vn0c 1.1M 1.1M 0B 100% 226 220 51% /tmp/picobsd.9tPj9Pg5lW ----------- =============== ROUND 3 * dial - Added "progs init login" to crunch.conf, then it errors on file system full, even when built with UserConfig stuff removed. It does build and boot if oinit is used, but that's probably not what people want... * isp - Commented out all ethernet/miibus devices and it builds/runs fine... Size (compare with kernel.gz above): -rwxr-xr-x 1 root wheel 1419271 Nov 13 19:14 kernel.kgz but that's probably not so workable either! Without "device miibus", enabled a single "device ed0 ...". undefined references are: mii_tick(), mii_mediachg(), mii_mediachg(), mii_pollstat(). - bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-small" in the body of the message