Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Nov 2001 14:46:59 +0530
From:      Bruce Montague <brucem@cse.iitkgp.ernet.in>
To:        freebsd-small@freebsd.org
Subject:   picobsd ref configs all fail on 4.4-Release
Message-ID:  <200111140916.fAE9Gxd03892@cse.iitkgp.ernet.in>

next in thread | raw e-mail | index | archive | help


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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200111140916.fAE9Gxd03892>