Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 4 Apr 2001 00:42:28 +0200 (CEST)
From:      Luigi Rizzo <luigi@info.iet.unipi.it>
To:        Gunther Schadow <gunther@aurora.regenstrief.org>
Cc:        freebsd-small@FreeBSD.ORG
Subject:   Re: what do the bytes 85 170 at location 510 in the fs image mean?
Message-ID:  <200104032242.AAA70603@info.iet.unipi.it>
In-Reply-To: <3AC9FD88.34CEF268@aurora.regenstrief.org> from Gunther Schadow at "Apr 3, 2001 04:42:48 pm"

next in thread | previous in thread | raw e-mail | index | archive | help
> 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




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