From owner-freebsd-isp Sun Feb 23 4:14: 6 2003 Delivered-To: freebsd-isp@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D7DAD37B401 for ; Sun, 23 Feb 2003 04:14:02 -0800 (PST) Received: from newmail.halenet.com.au (newmail.halenet.com.au [203.55.33.235]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2C6C943F3F for ; Sun, 23 Feb 2003 04:14:01 -0800 (PST) (envelope-from timbo@halenet.com.au) Received: (from root@localhost) by newmail.halenet.com.au (8.11.6/8.11.6) id h1NCO2A29419 for freebsd-isp@freebsd.org; Sun, 23 Feb 2003 22:24:02 +1000 (EST) (envelope-from timbo@halenet.com.au) Received: from laptop (customer3-sthe-wireless-mtm.halenet.com.au [61.88.48.23]) by newmail.halenet.com.au (8.11.6/8.11.6) with SMTP id h1NCO0o29367 for ; Sun, 23 Feb 2003 22:24:00 +1000 (EST) (envelope-from timbo@halenet.com.au) Message-ID: <00e501c2db34$ec186800$6500a8c0@halenet.com.au> From: "Tim McCullagh" To: Subject: FreeBSD formating CF disks Date: Sun, 23 Feb 2003 22:13:04 +1000 MIME-Version: 1.0 X-scanner: scanned by Inflex 1.0.10 - (http://pldaniels.com/inflex/) Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hi All I have seen a number of people are having difficulties getting CF cards to boot when installed in diskless machines that use CF cards to boot memory file systems on the diskless computers. Mainly firewalls and wireless devices use these CF cards I have Ramstar CF cards. The first 4 all worked but the last 12 I have got won't. I know other ISP's having similar problems with other brands. I have spent a heap of time on finding a solution without finding a solution. The only thing I found that may explain what is going on is below. It relates to NetBSD and is possibly the same reason in OpenBSD and FreeBSD. I am not sure how to go about fixing it though. Can anyone tell me where I would find the info or which mailing list I should be using on how to solve this.? TIA Maybe the OpenBSD's and FreeBSD's bootloaders are still affected by a bug which used to affect NetBSD's? Here is the log message for a patch I made to NetBSD: revision 1.9 date: 2002/10/10 18:52:42; author: dyoung; state: Exp; lines: +39 -1 Introduce biosdiskreset(), and call it to reset the disk (with Int 0x13 Function 0) after a read error. This is a requirement mentioned in most BIOS documentation. This answers PR 18591. Incidentally, on the Soekris Engineering net45x1 single-board computer, this fixes a bug where the bootloader corrupts the kernel while loading it from certain varieties of CompactFlash card (especially varieties identified by NetBSD as ). The patch affected sys/arch/i386/stand/lib/bios_disk.S. You might examine the equivalent OpenBSD source file to find out if it does a proper disk reset on read failures. regards Tim To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message