From owner-freebsd-small Mon Jul 17 4:36:58 2000 Delivered-To: freebsd-small@freebsd.org Received: from ns1.sunesi.net (ns1.sunesi.net [196.15.192.194]) by hub.freebsd.org (Postfix) with ESMTP id 9C7C537B52F for ; Mon, 17 Jul 2000 04:36:54 -0700 (PDT) (envelope-from nbm@sunesi.net) Received: from nbm by ns1.sunesi.net with local (Exim 3.03 #1) id 13E9Bv-000PsM-00; Mon, 17 Jul 2000 13:36:07 +0200 Date: Mon, 17 Jul 2000 13:36:07 +0200 From: Neil Blakey-Milner To: Luigi Rizzo Cc: Doug White , Albert Yang , freebsd-small@FreeBSD.ORG Subject: 5.0-CURRENT PicoBSD Message-ID: <20000717133607.A99126@mithrandr.moria.org> References: <200006280824.KAA39572@info.iet.unipi.it> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <200006280824.KAA39572@info.iet.unipi.it>; from luigi@info.iet.unipi.it on Wed, Jun 28, 2000 at 10:24:39AM +0200 Organization: Sunesi Clinical Systems X-Operating-System: FreeBSD 3.3-RELEASE i386 X-URL: http://rucus.ru.ac.za/~nbm/ Sender: owner-freebsd-small@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wed 2000-06-28 (10:24), Luigi Rizzo wrote: > > That was the problem I kept running into. I tried to hack them up to get > > working on 4.0 but had no success. 4.0 has massive kernel bloat. :( > > exactly - this is one (not the only) reason i still stick with 3.5 > on most of my systems. How big does your compressed kernel get to? I can only get my 5.x kernel.gz to 508k at the moment. Removing snapshots code may get me back another 10k or so. Removing PS/2 mouse gets me 15k or so. atapi-cd gives me about the same. loader uses 83k, but I haven't tried to remove anything there. > > > natd, ipfw, dhcp, and ssh? That would be perfect... > > > > ssh is gigantic. Good luck. > > i managed to put ssh/sshd/scp and all the above on a 3.5-based > picobsd floppy. The thing is, ssh/sshd/scp (both the one in ports and the > openbsd version) are not crunchgen-friendly. They have a lot of > common objects which are not in a library, and reference symbols > with the same name and different implementations in the other > files. Plus if you put them in a library there are clashes with > names in other libraries... I have this hack for ssh on 5.x. Put: /-- ssh_rsa_OBJS= rsa_eay.o rsa_intlstubs.o ssh_OBJPATHS+= /devel/obj/usr/src/secure/lib/libssh/libssh.a ssh_OBJPATHS+= ${ssh_rsa_OBJS} LCRYPTO= /usr/src/crypto/openssl/crypto rsa_eay.o: ${LCRYPTO}/rsa/rsa_eay.c ${CC} ${CFLAGS} -I${LCRYPTO} -DPIC -i $@ -c $< rsa_intlstubs.o: ${LCRYPTO}/rsa/rsa_intlstubs.c ${CC} ${CFLAGS} -I${LCRYPTO} -DPIC -i $@ -c $< ssh.lo: ${ssh_rsa_OBJS} \-- in crunch.inc, and crunchgen -h crunch.inc, and append ".include crunch.inc" onto the Makefile. Adding ssh makes fs.PICOBSD.gz grow from 496k to 737k! I use 'progs ssh' and 'libs -lssl -lcrypto -lrsaINTL'. Neil -- Neil Blakey-Milner Sunesi Clinical Systems nbm@mithrandr.moria.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-small" in the body of the message