From owner-freebsd-emulation@FreeBSD.ORG Mon Nov 19 01:19:46 2007 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 05FC816A41A for ; Mon, 19 Nov 2007 01:19:46 +0000 (UTC) (envelope-from kip.macy@gmail.com) Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.182]) by mx1.freebsd.org (Postfix) with ESMTP id D0EA813C4D1 for ; Mon, 19 Nov 2007 01:19:45 +0000 (UTC) (envelope-from kip.macy@gmail.com) Received: by wa-out-1112.google.com with SMTP id k17so1907920waf for ; Sun, 18 Nov 2007 17:19:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=YSleLLIDZxW/Pe3UD2JVkkBEcQL0p4LLmuwLU4OWWnM=; b=gIVQe9KtrSs33ZpXB3UTgUVGFzc0vVXifp989rJlk6lNN+eKJYyFSFcLpsrgwu011HTxooAo4OLSCzuJCa0hCpnx2Vdupf8i4z93CqcGCp+X54NxBL0P/dBKEuLhJthJzXW8yqWrX/aSaNA+X398vEguUk55DhBTOoXGEeWF8/0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=YhGMEOPMa5YJ+xUHVNcUdCI0TOjhfcsVK04YbmCMlAs3FBlUyLeEXCiItsB1adL9J5k0lZcZz5kzX7Oiheil4dEBG4BquShu/0J63Szpldzi3nbnl6u5XrNFRtOSnMlmWTfmP9JlJ5PfaJ57Wr5e35/Hz7c9d0rzPCTaYquik24= Received: by 10.114.149.2 with SMTP id w2mr1738254wad.1195431598088; Sun, 18 Nov 2007 16:19:58 -0800 (PST) Received: by 10.114.13.15 with HTTP; Sun, 18 Nov 2007 16:19:58 -0800 (PST) Message-ID: Date: Sun, 18 Nov 2007 16:19:58 -0800 From: "Kip Macy" To: "Juergen Lock" In-Reply-To: <200711182308.lAIN8bCf082835@saturn.kn-bremen.de> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20071111073940.E35C74AE2D@mail.asahi-net.or.jp> <200711182308.lAIN8bCf082835@saturn.kn-bremen.de> Cc: freebsd-emulation@freebsd.org, freebsd-current@freebsd.org, CQG00620@nifty.ne.jp Subject: Re: An ATAPI CD-ROM drive doesn't work with 7.0-BETA2, but it works with 7.0-BETA1 and 6.3-BETA1 X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Nov 2007 01:19:46 -0000 This is also an issue on parallels. Scott Long and the maintainer are aware of the issue. I don't know yet how they intend to address it. -Kip On Nov 18, 2007 3:08 PM, Juergen Lock wrote: > > In article <20071111073940.E35C74AE2D@mail.asahi-net.or.jp> you write: > >Hi, all. > > > >I've tried to install FreeBSD/pc98 7.0-BETA2 to PC-9821Xa9 via FTP. > >Installation is finished sucessfully. > >But cannot use the internal ATAPI CD-ROM drive. > > > >aries# uname -a > >FreeBSD aries.sign.local 7.0-BETA2 FreeBSD 7.0-BETA2 #1: Sun Nov 11 00:16:42 > >JST 2007 nabe@aries.sign.local:/usr/src/sys/pc98/compile/GENERIC pc98 > >aries# dmesg | grep ^acd > >acd0: CDROM drive at ata1 as master > >acd0: read 689KB/s (689KB/s), 256KB buffer, PIO2 > >acd0: Reads: CDDA stream > >acd0: Writes: > >acd0: Audio: play, 256 volume levels > >acd0: Mechanism: ejectable tray, unlocked > >acd0: Medium: CD-ROM unknown > >aries# mount_cd9660 -v /dev/acd0 /mnt > >could not determine starting sector, using very first session > >mount_cd9660: /dev/acd0: Input/output error > >aries# cdcontrol info > >cdcontrol: /dev/acd0: Input/output error > >aries# cdcontrol status > >cdcontrol: /dev/acd0: Input/output error > >aries# > > > >The CD-ROM drive works well with 7.0-BETA1 and 6.3-BETA1. > > > >To use the CD-ROM drive with 7.0-BETA2, I have to apply a quick patch > >described below and recompile the kernel: > > > >--- sys/dev/ata/atapi-cd.c.orig 2007-11-01 04:59:53.000000000 +0900 > >+++ sys/dev/ata/atapi-cd.c 2007-11-11 00:15:21.000000000 +0900 > >@@ -696,12 +696,16 @@ > > if (!acd_mode_sense(dev, ATAPI_CDROM_CAP_PAGE, > > (caddr_t)&cdp->cap, sizeof(cdp->cap)) && > > cdp->cap.page_code == ATAPI_CDROM_CAP_PAGE) { > >+#if 0 > > if ((cdp->cap.medium_type == MST_FMT_NONE) || > > (cdp->cap.medium_type == MST_NO_DISC) || > > (cdp->cap.medium_type == MST_DOOR_OPEN) || > > (cdp->cap.medium_type == MST_FMT_ERROR)) > > return EIO; > > else > >+#else > >+ printf("cap.medium_type:%d\n", cdp->cap.medium_type); > >+#endif > > break; > > } > > pause("acdld", hz / 2); > > > >The value of cdp->cap.medium_type is 0 (MST_FMT_NONE). > > Interesting, I didn't know real hw is also affected... I already > had to make a patch for qemu that chases these recent commits (atapi-cd.c), > see my post on -emulation, > http://lists.freebsd.org/pipermail/freebsd-emulation/2007-November/004178.html > > If you want to play with the patch, its also at, > http://people.freebsd.org/~nox/qemu/patch-hw-ide.c > (testers especially with non-FreeBSD guests still wanted!) > > Thanx, > Juergen > > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" >