From owner-freebsd-hackers@FreeBSD.ORG Sat May 3 10:05:51 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8B62D37B407 for ; Sat, 3 May 2003 10:05:51 -0700 (PDT) Received: from foem.leiden.webweaving.org (fia224-72.dsl.hccnet.nl [62.251.72.224]) by mx1.FreeBSD.org (Postfix) with ESMTP id D6E1243FBD for ; Sat, 3 May 2003 10:05:43 -0700 (PDT) (envelope-from dirkx@webweaving.org) Received: from foem (IDENT:chuckwebweaving.org@foem [10.11.0.2]) h43H5gOh002274; Sat, 3 May 2003 19:05:42 +0200 (CEST) (envelope-from dirkx@webweaving.org) Date: Sat, 3 May 2003 19:05:42 +0200 (CEST) From: Dirk-Willem van Gulik X-X-Sender: dirkx@foem To: Luigi Rizzo In-Reply-To: <20030503075932.A10701@xorpc.icir.org> Message-ID: <20030503171007.H62023-100000@foem> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: techniek@WirelessLeiden.NL cc: freebsd-hackers@freebsd.org Subject: Re: CompactFlash / new GEOM / boot fails on certain brand / Soekris X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 May 2003 17:05:51 -0000 Luigi, Wonderful; yes - the fix does indeed work around the issue - Mille Thanks for all the help. For completeness: At: http://webfolder.wleiden.webweaving.org/apacher-boot/ patch.txt patch for boot1.s on x86 Which is also used by boot2 (see xread refernence in boot2.s). However it also needs a fix in the BTX boot loader which gets called later by boot2: patch2.txt for i386/libi386/biosdisk.c What I did for now was set the 'maxfer=1' in the bd_read/bd_write after one error. I suppose that this does slow things down. Compiled versions to experiment: boot1.bin boot2.bin loader.bin But if I understand you right - this really is an issue in the bios of Soekris - and I should ping Soeren to help fix this ? I.e the BIOS should grafecully scale back to one sector at a time ? Or is the bios already out of the picture when we get to the loader/BTX stage - and should FreeBSD scale back to one sector/at/the/time after the first error ? Thanks a bundle ! Dw