From owner-freebsd-stable@FreeBSD.ORG Tue Mar 30 09:56:34 2010 Return-Path: Delivered-To: stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7F9F51065672 for ; Tue, 30 Mar 2010 09:56:34 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Received: from kabab.cs.huji.ac.il (kabab.cs.huji.ac.il [132.65.16.84]) by mx1.freebsd.org (Postfix) with ESMTP id 38E078FC1C for ; Tue, 30 Mar 2010 09:56:34 +0000 (UTC) Received: from pampa.cs.huji.ac.il ([132.65.80.32]) by kabab.cs.huji.ac.il with esmtp id 1NwWSU-000BDD-KZ for stable@freebsd.org; Tue, 30 Mar 2010 11:05:58 +0300 X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.2 To: stable@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 30 Mar 2010 11:05:58 +0300 From: Daniel Braniss Message-ID: Cc: Subject: boot and boot0cfg problem X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Mar 2010 09:56:34 -0000 hi, I have a this SBC that boots off a CF card, when it boots, I can select the boot partition via F1 or F2 and all is OK. when I do it via boot0cfg the 'default_selection' changes correctly, but the 'active' partition is not changed, so boot ignores it. I went ahead and changed boot0cfg.c to set the active partition and now I'm baffled: alix-3# ./boot0cfg -v ad0 # flag start chs type end chs offset size 1 0x00 0: 1: 1 0xa5 519: 15:63 63 524097 2 0x80 520: 0: 1 0xa5 1023: 15:63 524160 524160 ------+ 3 0x00 1023:255:63 0xa5 1023: 15:63 1048320 2951424 | | version=2.0 drive=0x80 mask=0xf ticks=182 bell=# (0x23) | options=packet,update,nosetdrv | volume serial ID 0000-800f | default_selection=F2 (Slice 2) <--------------------------------------------+ so far so good. alix-3# ./boot0cfg -v -s1 ad0 ... 1 0x80 0: 1: 1 0xa5 519: 15:63 63 524097 ... default_selection=F1 (Slice 1) ok right? but no! ./boot0cfg -v ad0 ... 2 0x80 520: 0: 1 0xa5 1023: 15:63 524160 524160 ... default_selection=F1 (Slice 1) so it seems that someone is preventing changes to the partition table! btw, this problem was not present in older boot0 (1.0) where the active partition flag is ignored. help needed here! danny