From owner-freebsd-libh Sun Jun 11 8: 2: 2 2000 Delivered-To: freebsd-libh@freebsd.org Received: from mail.surf1.de (mail.surf1.de [194.25.165.21]) by hub.freebsd.org (Postfix) with ESMTP id 332E437B7D1 for ; Sun, 11 Jun 2000 08:01:56 -0700 (PDT) (envelope-from alex@big.endian.de) Received: from neutron.cichlids.com (p3E9C1177.dip0.t-ipconnect.de [62.156.17.119]) by mail.surf1.de (8.9.3/8.9.3) with ESMTP id RAA07231 for ; Sun, 11 Jun 2000 17:01:51 +0200 Received: from cichlids.cichlids.com (cichlids.cichlids.com [192.168.0.10]) by neutron.cichlids.com (Postfix) with ESMTP id 91094AC30 for ; Sun, 11 Jun 2000 17:02:07 +0200 (CEST) Received: by cichlids.cichlids.com (Postfix, from userid 1001) id 9DF0414AAB; Sun, 11 Jun 2000 17:01:49 +0200 (CEST) Date: Sun, 11 Jun 2000 17:01:49 +0200 From: Alexander Langer To: libh@freebsd.org Subject: setup design Message-ID: <20000611170149.A1635@cichlids.cichlids.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="HlL+5n6rz5pIUxbD" X-Mailer: Mutt 1.0.1i X-PGP-Fingerprint: 44 28 CA 4C 46 5B D3 A8 A8 E3 BA F3 4E 60 7D 7F X-PGP-at: finger alex@big.endian.de X-Verwirrung: Dieser Header dient der allgemeinen Verwirrung. Sender: owner-freebsd-libh@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG --HlL+5n6rz5pIUxbD Content-Type: text/plain; charset=us-ascii Hello! Take a look at this overall setup design. Alex -- (Imagine a big "FreeBSD - The Power To Serve" sticker here) --HlL+5n6rz5pIUxbD Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="main.c" static void signal_handler(int sig) { /* noop */ } int main(int argc, char **argv) { /* Catch fatal signals and complain about them if running as init */ if (getpid() == 1) { signal(SIGBUS, signal_handler); signal(SIGSEGV, signal_handler); } signal(SIGPIPE, SIG_IGN); /* Initialize bootup (USB, Floppy) */ /* Mount MFS */ /* If floppy, get second floppy with libs */ /* Get install-scripts from _install-media!_ */ /* Everything else is part of the distribution, and _not_ of setup */ return(0); } --HlL+5n6rz5pIUxbD-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-libh" in the body of the message From owner-freebsd-libh Thu Jun 15 4:49:33 2000 Delivered-To: freebsd-libh@freebsd.org Received: from mail.surf1.de (mail.surf1.de [194.25.165.21]) by hub.freebsd.org (Postfix) with ESMTP id 1F3E937B5B1 for ; Thu, 15 Jun 2000 04:49:30 -0700 (PDT) (envelope-from alex@big.endian.de) Received: from neutron.cichlids.com (p3E9C1136.dip0.t-ipconnect.de [62.156.17.54]) by mail.surf1.de (8.9.3/8.9.3) with ESMTP id NAA22532 for ; Thu, 15 Jun 2000 13:49:15 +0200 Received: from cichlids.cichlids.com (cichlids.cichlids.com [192.168.0.10]) by neutron.cichlids.com (Postfix) with ESMTP id 76EA2AC27 for ; Thu, 15 Jun 2000 13:49:41 +0200 (CEST) Received: by cichlids.cichlids.com (Postfix, from userid 1001) id 14EE414AAD; Thu, 15 Jun 2000 13:49:28 +0200 (CEST) Date: Thu, 15 Jun 2000 13:49:28 +0200 From: Alexander Langer To: freebsd-libh@freebsd.org Subject: boot floppies Message-ID: <20000615134928.A7173@cichlids.cichlids.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="opJtzjQTFsWo+cga" X-Mailer: Mutt 1.0.1i X-PGP-Fingerprint: 44 28 CA 4C 46 5B D3 A8 A8 E3 BA F3 4E 60 7D 7F X-PGP-at: finger alex@big.endian.de X-Verwirrung: Dieser Header dient der allgemeinen Verwirrung. Sender: owner-freebsd-libh@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG --opJtzjQTFsWo+cga Content-Type: text/plain; charset=us-ascii Hello! Could anyone make me a script that creates a working boot-1.44M-floppy with a given binary (setup) as init? I've tried it, but somehow I have no success - boot1 always gives the error "Read error", and I don't know, why. Help is also fine. I'm attaching my makefile, that I'm using at the moment. Thanks in advance! Alex, hoping for reply. Really. -- cat: /home/alex/.sig: No such file or directory --opJtzjQTFsWo+cga Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=Makefile # $FreeBSD$ FLOPPY_SIZE= 1440 floppy: @echo "Making a ${FLOPPY_SIZE}kb boot floppy..." umount /dev/vn0 vnconfig -u /dev/vn0 dd of=boot_floppy.img if=/dev/zero count=${FLOPPY_SIZE} bs=1k awk 'BEGIN {printf "%c%c", 85, 170}' | \ dd of=boot_floppy.img obs=1 seek=510 conv=notrunc vnconfig -s labels -c /dev/vn0 boot_floppy.img dd if=/boot/boot1 of=boot_floppy.img conv=notrunc disklabel -Brw -b /boot/boot1 -s /boot/boot2 /dev/vn0c fd${FLOPPY_SIZE} newfs -i 32768 -m 0 -p 0 -o space /dev/vn0c mount /dev/vn0 /mnt mkdir -p /mnt/boot cp -R /boot/* /mnt/boot rm -f /mnt/boot/*.old rm -f /mnt/boot/cdboot rm -f /mnt/boot/pxeboot # kzip -v /mnt/boot/loader # mv -f /mnt/boot/loader.kz /mnt/boot/loader cp -R floppy-tree/etc /mnt/ rm /mnt/etc/master.passwd cp floppy-tree/etc/master.passwd . pwd_mkdb -d . master.passwd mv spwd.db /mnt/etc/; \ rm pwd.db master.passwd; gzip -c /kernel > /mnt/kernel --opJtzjQTFsWo+cga-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-libh" in the body of the message From owner-freebsd-libh Thu Jun 15 5:18:36 2000 Delivered-To: freebsd-libh@freebsd.org Received: from mail.surf1.de (mail.surf1.de [194.25.165.21]) by hub.freebsd.org (Postfix) with ESMTP id 9C71037B723 for ; Thu, 15 Jun 2000 05:18:34 -0700 (PDT) (envelope-from alex@big.endian.de) Received: from neutron.cichlids.com (p3E9C1136.dip0.t-ipconnect.de [62.156.17.54]) by mail.surf1.de (8.9.3/8.9.3) with ESMTP id OAA30388 for ; Thu, 15 Jun 2000 14:18:19 +0200 Received: from cichlids.cichlids.com (cichlids.cichlids.com [192.168.0.10]) by neutron.cichlids.com (Postfix) with ESMTP id 170C7AC27 for ; Thu, 15 Jun 2000 14:18:46 +0200 (CEST) Received: by cichlids.cichlids.com (Postfix, from userid 1001) id 1405114AAD; Thu, 15 Jun 2000 14:18:33 +0200 (CEST) Date: Thu, 15 Jun 2000 14:18:33 +0200 From: Alexander Langer To: freebsd-libh@FreeBSD.ORG Subject: Re: boot floppies Message-ID: <20000615141833.A7634@cichlids.cichlids.com> References: <20000615134928.A7173@cichlids.cichlids.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <20000615134928.A7173@cichlids.cichlids.com>; from alex@big.endian.de on Thu, Jun 15, 2000 at 01:49:28PM +0200 X-PGP-Fingerprint: 44 28 CA 4C 46 5B D3 A8 A8 E3 BA F3 4E 60 7D 7F X-PGP-at: finger alex@big.endian.de X-Verwirrung: Dieser Header dient der allgemeinen Verwirrung. Sender: owner-freebsd-libh@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Thus spake Alexander Langer (alex@big.endian.de): > I've tried it, but somehow I have no success - boot1 always gives the > error "Read error", and I don't know, why. Bite me! One should vnconfig -u and umount the boot-image, before dd'ing on floppy :-) Alex -- cat: /home/alex/.sig: No such file or directory To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-libh" in the body of the message From owner-freebsd-libh Thu Jun 15 11: 9:18 2000 Delivered-To: freebsd-libh@freebsd.org Received: from pike.osd.bsdi.com (pike.osd.bsdi.com [204.216.28.222]) by hub.freebsd.org (Postfix) with ESMTP id 3CCDF37BC38 for ; Thu, 15 Jun 2000 11:09:15 -0700 (PDT) (envelope-from jhb@pike.osd.bsdi.com) Received: (from jhb@localhost) by pike.osd.bsdi.com (8.9.3/8.9.3) id LAA14161; Thu, 15 Jun 2000 11:07:55 -0700 (PDT) (envelope-from jhb) From: John Baldwin Message-Id: <200006151807.LAA14161@pike.osd.bsdi.com> Subject: Re: boot floppies In-Reply-To: <20000615134928.A7173@cichlids.cichlids.com> from Alexander Langer at "Jun 15, 2000 01:49:28 pm" To: Alexander Langer Date: Thu, 15 Jun 2000 11:07:55 -0700 (PDT) Cc: freebsd-libh@FreeBSD.org X-Mailer: ELM [version 2.4ME+ PL68 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-libh@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > Hello! > > Could anyone make me a script that creates a working boot-1.44M-floppy with > a given binary (setup) as init? > > I've tried it, but somehow I have no success - boot1 always gives the > error "Read error", and I don't know, why. > > Help is also fine. I'm attaching my makefile, that I'm using at the > moment. > > Thanks in advance! > > Alex, hoping for reply. Really. Look at how the makefile in src/release/Makefile makes the floppy images, or check the picoBSD scripts/makefiles. I think that fdformat/ disklabel -B/newfs is the basic combination you are looking for. -- John Baldwin To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-libh" in the body of the message From owner-freebsd-libh Thu Jun 15 11:42: 3 2000 Delivered-To: freebsd-libh@freebsd.org Received: from mail.surf1.de (mail.surf1.de [194.25.165.21]) by hub.freebsd.org (Postfix) with ESMTP id 785F737BDC6 for ; Thu, 15 Jun 2000 11:42:00 -0700 (PDT) (envelope-from alex@big.endian.de) Received: from neutron.cichlids.com (p3E9C1136.dip0.t-ipconnect.de [62.156.17.54]) by mail.surf1.de (8.9.3/8.9.3) with ESMTP id UAA20697; Thu, 15 Jun 2000 20:41:44 +0200 Received: from cichlids.cichlids.com (cichlids.cichlids.com [192.168.0.10]) by neutron.cichlids.com (Postfix) with ESMTP id 997D3AC27; Thu, 15 Jun 2000 20:42:12 +0200 (CEST) Received: by cichlids.cichlids.com (Postfix, from userid 1001) id 66ADE14AAD; Thu, 15 Jun 2000 20:41:59 +0200 (CEST) Date: Thu, 15 Jun 2000 20:41:59 +0200 From: Alexander Langer To: John Baldwin Cc: freebsd-libh@FreeBSD.ORG Subject: Re: boot floppies Message-ID: <20000615204159.B25235@cichlids.cichlids.com> References: <20000615134928.A7173@cichlids.cichlids.com> <200006151807.LAA14161@pike.osd.bsdi.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <200006151807.LAA14161@pike.osd.bsdi.com>; from jhb@pike.osd.bsdi.com on Thu, Jun 15, 2000 at 11:07:55AM -0700 X-PGP-Fingerprint: 44 28 CA 4C 46 5B D3 A8 A8 E3 BA F3 4E 60 7D 7F X-PGP-at: finger alex@big.endian.de X-Verwirrung: Dieser Header dient der allgemeinen Verwirrung. Sender: owner-freebsd-libh@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Thus spake John Baldwin (jhb@pike.osd.bsdi.com): ^^^^^^^^^^^^^^^^^ nice :) > Look at how the makefile in src/release/Makefile makes the floppy images, > or check the picoBSD scripts/makefiles. I think that fdformat/ > disklabel -B/newfs is the basic combination you are looking for. I've already done (even before I asked...). :) The kernel is even loaded by the loader, but then it reboots. I'm still trying to figure out if it's a kernel problem (I build a WAY small kernel, < 1 MB) or a machine problem or an Alex-Problem :) Alex -- cat: /home/alex/.sig: No such file or directory To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-libh" in the body of the message