From owner-freebsd-small Tue Apr 3 15:43:18 2001 Delivered-To: freebsd-small@freebsd.org Received: from info.iet.unipi.it (info.iet.unipi.it [131.114.9.184]) by hub.freebsd.org (Postfix) with ESMTP id 1FB6F37B71C for ; Tue, 3 Apr 2001 15:43:16 -0700 (PDT) (envelope-from luigi@info.iet.unipi.it) Received: (from luigi@localhost) by info.iet.unipi.it (8.9.3/8.9.3) id AAA70603; Wed, 4 Apr 2001 00:42:29 +0200 (CEST) (envelope-from luigi) From: Luigi Rizzo Message-Id: <200104032242.AAA70603@info.iet.unipi.it> Subject: Re: what do the bytes 85 170 at location 510 in the fs image mean? In-Reply-To: <3AC9FD88.34CEF268@aurora.regenstrief.org> from Gunther Schadow at "Apr 3, 2001 04:42:48 pm" To: Gunther Schadow Date: Wed, 4 Apr 2001 00:42:28 +0200 (CEST) Cc: freebsd-small@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL61 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-small@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > Hi, > > I am looking at the PicoBSD build/Makefile wondering what this > > awk 'BEGIN {printf "%c%c", 85, 170}' | \ > dd of=$(FS_NAME) obs=1 seek=510 conv=notrunc > > is supposed to do. I mean, I understand what it does, but not > why it needs this kind of magic? it's the magic 0xAA55 or so that it is expected to be in the boot sector. Turns out that this is unnecessary after you "dd" boot0 on the first sector of the image (see a recent picobsd script /usr/src/release/picobsd/build/picobsd, NOT THE MAKEFILE) cheers luigi To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-small" in the body of the message