From owner-freebsd-current@FreeBSD.ORG Wed Jun 6 13:58:43 2007 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1EA4316A41F for ; Wed, 6 Jun 2007 13:58:43 +0000 (UTC) (envelope-from yuri.pankov@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.168]) by mx1.freebsd.org (Postfix) with ESMTP id A3FAA13C480 for ; Wed, 6 Jun 2007 13:58:42 +0000 (UTC) (envelope-from yuri.pankov@gmail.com) Received: by ug-out-1314.google.com with SMTP id u2so501401uge for ; Wed, 06 Jun 2007 06:58:42 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:received:received:x-authentication-warning:date:from:to:subject:message-id:mime-version:content-type:content-disposition:user-agent; b=S0sk6gMKmAQ0Foq7bnYzZfxKWz+CTFZcAl9wXjYEGZSNWFdJPhbLsk5VC9qgsI+aohVLPmtoz3h5jM+CfZ9xPf5rmgBDwUUt0ZxfJ2fdNoJOm1lfoX8OGrlMnXUIOMj37g3MDoiMFTT0FdAdi9v5a5kyA7GBVYwN7cF82mBe+o0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:x-authentication-warning:date:from:to:subject:message-id:mime-version:content-type:content-disposition:user-agent; b=So0sjUzAV8etX7RKHgv1+jZW2lfXJfu1ow8y3rWZgyc9MT9gJZb67enL2BFmQxUTROI8syR2aTXWqmTuholRf/o/wKJCCaa3ZhAKTgW32JlBOAA61dllBaLVaiUy0bcr6V1n/vnq4WEBwMlWZ57V3VvBt61Jb/9EuIkcv5QVwrM= Received: by 10.66.252.18 with SMTP id z18mr1287395ugh.1181138322395; Wed, 06 Jun 2007 06:58:42 -0700 (PDT) Received: from darklight.abyss ( [194.186.18.2]) by mx.google.com with ESMTP id o30sm1260038ugd.2007.06.06.06.58.39 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 06 Jun 2007 06:58:41 -0700 (PDT) Received: from darklight.abyss (localhost [127.0.0.1]) by darklight.abyss (8.14.1/8.14.1) with ESMTP id l56DwKnX001376 for ; Wed, 6 Jun 2007 17:58:21 +0400 (MSD) (envelope-from yuri.pankov@gmail.com) Received: (from yuri@localhost) by darklight.abyss (8.14.1/8.14.1/Submit) id l56DwIks001375 for freebsd-current@freebsd.org; Wed, 6 Jun 2007 17:58:18 +0400 (MSD) (envelope-from yuri.pankov@gmail.com) X-Authentication-Warning: darklight.abyss: yuri set sender to yuri.pankov@gmail.com using -f Date: Wed, 6 Jun 2007 17:58:15 +0400 From: Yuri Pankov To: freebsd-current@freebsd.org Message-ID: <20070606135815.GA913@darklight.abyss> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.15 (2007-04-06) Subject: /boot/mbr miscompiled? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Jun 2007 13:58:43 -0000 Hi, I've noticed lately that I can't install /boot/mbr using boot0cfg. [root@darklight:~]# boot0cfg -B -b /boot/mbr ad4 boot0cfg: /boot/mbr: unknown or incompatible boot code -r--r--r-- 1 root wheel - 512 Jun 6 17:45 /boot/mbr /boot/mbr: x86 boot sector That's how it's compiled here: [root@darklight:/usr/src/sys/boot/i386/mbr]# make as --defsym FLAGS=0x80 --32 -o mbr.o /usr/src/sys/boot/i386/mbr/mbr.s cc -O2 -fno-strict-aliasing -pipe -ffreestanding -mpreferred-stack-boundary=2 -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -m32 -march=i386 -N -e start -Ttext 0x600 -Wl,-S,--oformat,binary -nostdlib -m elf_i386_fbsd -o mbr mbr.o It's -CURRENT/amd64 updated today. Any hints? Yuri