From owner-freebsd-hackers Mon Jan 19 12:10:47 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA12699 for hackers-outgoing; Mon, 19 Jan 1998 12:10:47 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from george.lbl.gov (george-2.lbl.gov [131.243.2.12]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id MAA12673; Mon, 19 Jan 1998 12:10:28 -0800 (PST) (envelope-from jin@george.lbl.gov) Received: (from jin@localhost) by george.lbl.gov (8.8.8/LBL-ITG) id MAA28004; Mon, 19 Jan 1998 12:09:57 -0800 (PST) Date: Mon, 19 Jan 1998 12:09:57 -0800 (PST) From: Jin Guojun (ITG staff) Message-Id: <199801192009.MAA28004@george.lbl.gov> To: FreeBSD-gnats-submit@FreeBSD.ORG, obrien@NUXI.com Subject: Re: kern/5481: boot blocks too big with BOOT_HD_BIAS defined Cc: hackers@FreeBSD.ORG Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk > You haven't installed boot blocks with NAMEBLOCK etc. defined. The default /sys/i386/boot/biosboot/Makefile works fine. However, the boot.nohdr ==> boot2 will be too big if any extra flag is defined (uncommented ) in this Makefile: #CFLAGS+= -DNAMEBLOCK #CFLAGS+= -DNAMEBLOCK_WRITEBACK ------------------------------------------ CFLAGS+= -DNAMEBLOCK #CFLAGS+= -DNAMEBLOCK_WRITEBACK # make ... text data bss dec hex 7664 96 49056 56816 ddf0 dd if=boot.strip of=boot.nohdr ibs=32 skip=1 obs=1024b 242+1 records in 0+1 records out 7760 bytes transferred in 0.002194 secs (3536843 bytes/sec) ls -l boot.nohdr -rw-r--r-- 1 root wheel 7760 Jan 19 11:51 boot.nohdr dd if=boot.nohdr of=boot1 bs=512 count=1 1+0 records in 1+0 records out 512 bytes transferred in 0.000391 secs (1309441 bytes/sec) dd if=boot.nohdr of=boot2 bs=512 skip=1 14+1 records in 14+1 records out 7248 bytes transferred in 0.001186 secs (6111845 bytes/sec) boot2 is too big *** Error code 2 Would someone please help how on compiling boot block with extra flag without making boot.nohdr size exceeding 7168 byte? Thanks, -Jin