From owner-freebsd-stable@FreeBSD.ORG Sat Feb 12 14:06:42 2005 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5070B16A4CE; Sat, 12 Feb 2005 14:06:42 +0000 (GMT) Received: from watery.cc.kogakuin.ac.jp (watery.cc.kogakuin.ac.jp [133.80.152.80]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8DA4E43D48; Sat, 12 Feb 2005 14:06:41 +0000 (GMT) (envelope-from nyan@jp.FreeBSD.org) Received: from localhost (localhost [IPv6:::1])j1CE646D043639; Sat, 12 Feb 2005 23:06:05 +0900 (JST) (envelope-from nyan@jp.FreeBSD.org) Date: Sat, 12 Feb 2005 23:05:19 +0900 (JST) Message-Id: <20050212.230519.59685762.nyan@jp.FreeBSD.org> To: sos@DeepCore.dk, nakaji@jp.FreeBSD.org, wnabe@par.odn.ne.jp From: Takahashi Yoshihiro In-Reply-To: <86vf8y0x9r.fsf@xa12.heimat.gr.jp> References: <420A1792.900@DeepCore.dk> <86vf8y0x9r.fsf@xa12.heimat.gr.jp> X-Mailer: Mew version 4.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Multipart/Mixed; boundary="--Next_Part(Sat_Feb_12_23_05_19_2005_272)--" Content-Transfer-Encoding: 7bit cc: freebsd-current@freebsd.org cc: freebsd-stable@freebsd.org Subject: Re: UPDATE: ATA mkIII first official patches - please test! X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 Feb 2005 14:06:42 -0000 ----Next_Part(Sat_Feb_12_23_05_19_2005_272)-- Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit In article <86vf8y0x9r.fsf@xa12.heimat.gr.jp> NAKAJI Hiroyuki writes: > On pc98, the partitions on ad0 are not detected, while slices are > detected. > > In my case, because ad0s1a which is mounted on root is not detected, > mountroot() fails and cannot use the system. > > ad0: 814MB at ata0-master BIOSPIO ATA-mkIII has three big problems. 1. It seems that CHS mode is broken. I think that NAKAJI-san's trouble is due to it. I also got the following error on my pc98. ad1: 407MB at ata0-slave BIOSPIO ad1: 833616 sectors [6129C/8H/17S] 1 sectors/interrupt 1 depth queue # mount -t msdos /dev/ad1s1 /mnt msdosfs: /dev/ad1s1: Invalid argument # dd if=/dev/ad1s1 of=/dev/null dd: /dev/ad1s1: Input/output error 7+0 records in 7+0 records out 3584 bytes transferred in 0.027885 secs (128528 bytes/sec) kernel: ad1: FAILURE - READ status=59 error=10 LBA=143 2. A geometry translation for pc98 is NOT enough. Currently, it works only under 4.3GB disk. 3. Modules for pc98 are broken. I attach a patch to fix it. --- TAKAHASHI Yoshihiro ----Next_Part(Sat_Feb_12_23_05_19_2005_272)-- Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="ata-mkIII.diff" diff -urN sys.org/modules/ata/Makefile sys/modules/ata/Makefile --- sys.org/modules/ata/Makefile Mon Jan 10 20:41:02 2005 +++ sys/modules/ata/Makefile Sun Feb 6 12:38:01 2005 @@ -1,5 +1,10 @@ # $FreeBSD$ -SUBDIR = ata ataisa atapci atadisk atapicd atapifd atapist ataraid #atacam +SUBDIR = ata atapci atadisk atapicd atapifd atapist #atacam +.if ${MACHINE} == "pc98" +SUBDIR+= atacbus +.else +SUBDIR+= ataisa ataraid +.endif .include diff -urN sys.org/modules/ata/Makefile.inc sys/modules/ata/Makefile.inc --- sys.org/modules/ata/Makefile.inc Thu Jan 1 09:00:00 1970 +++ sys/modules/ata/Makefile.inc Sun Feb 6 12:35:56 2005 @@ -0,0 +1,3 @@ +# $FreeBSD$ + +.include "../Makefile.inc" diff -urN sys.org/modules/ata/atacbus/Makefile sys/modules/ata/atacbus/Makefile --- sys.org/modules/ata/atacbus/Makefile Thu Jan 1 09:00:00 1970 +++ sys/modules/ata/atacbus/Makefile Sun Feb 6 12:40:30 2005 @@ -0,0 +1,9 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../../dev/ata + +KMOD= atacbus +SRCS= ata-cbus.c +SRCS+= opt_ata.h ata_if.h device_if.h bus_if.h isa_if.h + +.include ----Next_Part(Sat_Feb_12_23_05_19_2005_272)----