From owner-freebsd-emulation@FreeBSD.ORG Mon Aug 1 09:30:50 2005 Return-Path: X-Original-To: freebsd-emulation@freebsd.org Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9109B16A41F for ; Mon, 1 Aug 2005 09:30:50 +0000 (GMT) (envelope-from marsgmiro@gmail.com) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.202]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7F15843D49 for ; Mon, 1 Aug 2005 09:30:49 +0000 (GMT) (envelope-from marsgmiro@gmail.com) Received: by zproxy.gmail.com with SMTP id 8so754007nzo for ; Mon, 01 Aug 2005 02:30:47 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=tqpvd5Vv/nlCS2gNy21nbzBRoDZAqGuVvuwEJG2OoTiRZy806shZc//aTDQix9+Y6h9SA23tUjmy0nG54rxtIxGcg7IlRvWxcc81vVJPFTOlO2w1l9ZeloS1WABceAr3iHxN5HswEBAx4Zx26HhOfAWUlnjEcRucTCYtMk7i+Pw= Received: by 10.36.8.10 with SMTP id 10mr5378807nzh; Mon, 01 Aug 2005 02:30:47 -0700 (PDT) Received: by 10.36.72.13 with HTTP; Mon, 1 Aug 2005 02:30:47 -0700 (PDT) Message-ID: <28edec3c0508010230226b4ae@mail.gmail.com> Date: Mon, 1 Aug 2005 17:30:47 +0800 From: "Mars G. Miro" To: Jung-uk Kim In-Reply-To: <28edec3c050731203069f7c4a8@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <28edec3c0507290000415a350d@mail.gmail.com> <200507291540.52889.jkim@niksun.com> <200507291647.49230.jkim@niksun.com> <200507292022.38135.jkim@FreeBSD.org> <28edec3c050730045765b5262b@mail.gmail.com> <28edec3c05073119576445ec92@mail.gmail.com> <28edec3c050731203069f7c4a8@mail.gmail.com> Cc: freebsd-emulation@freebsd.org, Juergen Lock , qemu-devel@nongnu.org Subject: Re: ata devices on emulated amd64 on qemu X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: "Mars G. Miro" List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Aug 2005 09:30:50 -0000 On 8/1/05, Mars G. Miro wrote: > On 8/1/05, Mars G. Miro wrote: > > On 7/30/05, Mars G. Miro wrote: > > > On 7/30/05, Jung-uk Kim wrote: > > > > Okay. I finally found a fix. It was actually quite simple. Newer= =20 > > > > FreeBSD and Linux ATA drivers check whether the PCI ATA controller = is >=20 > > > > in legacy ATA mode (aka PATA mode). The test failed and it was=20 > > > > treated like a SATA controller. Of course, IRQ failed to map. ;-) = =20 > > > > Try the attached patch. Tested with FreeBSD/amd64 6.0-BETA1 guest = on >=20 > > > > FreeBSD/amd64 host. > > > >=20 > > >=20 > > >=20 > > > You rock dude! This patch fixes it. FreeBSD54/amd64 Guest on > > > FreeBSD54/amd64 Host. > > >=20 > > > Any thoughts of including this patch in the ports? > > >=20 > > >=20 > >=20 > >=20 > > Oops. I noticed only now that this time, it's the emulated NE2000 NIC > > that's not detected. This is for a FreeBSD/amd64 guest on > > FreeBSD/amd64 Host. > >=20 >=20 >=20 > Scratch that.=20 >=20 > This is only because there's no ed in the GENERIC kernel for AMD64. >=20 because we dropped support for it? cc -c -O2 -frename-registers -pipe -fno-strict-aliasing -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes=20 -Wmissing-prototypes -Wpointer- arith -Winline -Wcast-qual -fformat-extensions -std=3Dc99 -nostdinc -I- -I. -I/usr/src/sys -I/usr/src/sys/contrib/dev/acpica -I/usr/src/sys/contrib/a ltq -I/usr/src/sys/contrib/ipfilter -I/usr/src/sys/contrib/pf -I/usr/src/sys/contrib/dev/ath -I/usr/src/sys/contrib/dev/ath/freebsd -I/usr/src/sys/con trib/ngatm -D_KERNEL -include opt_global.h -fno-common -finline-limit=3D8000 --param inline-unit-growth=3D100 --param large-function-growth=3D1000 -mcmodel =3Dkernel -mno-red-zone -mfpmath=3D387 -mno-sse -mno-sse2 -mno-mmx -mno-3dnow -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -Werror /usr/ src/sys/dev/ed/if_ed.c /usr/src/sys/dev/ed/if_ed.c: In function `ed_probe_WD80x3_generic': /usr/src/sys/dev/ed/if_ed.c:508: warning: implicit declaration of function `kvtop' /usr/src/sys/dev/ed/if_ed.c:508: warning: nested extern declaration of `kvt= op' /usr/src/sys/dev/ed/if_ed.c:521: warning: nested extern declaration of `kvt= op' /usr/src/sys/dev/ed/if_ed.c:508: warning: redundant redeclaration of 'kvtop= ' /usr/src/sys/dev/ed/if_ed.c:508: warning: previous implicit declaration of 'kvtop' was here /usr/src/sys/dev/ed/if_ed.c:532: warning: nested extern declaration of `kvt= op' /usr/src/sys/dev/ed/if_ed.c:508: warning: redundant redeclaration of 'kvtop= ' /usr/src/sys/dev/ed/if_ed.c:508: warning: previous implicit declaration of 'kvtop' was here /usr/src/sys/dev/ed/if_ed.c:539: warning: nested extern declaration of `kvt= op' /usr/src/sys/dev/ed/if_ed.c:508: warning: redundant redeclaration of 'kvtop= ' /usr/src/sys/dev/ed/if_ed.c:508: warning: previous implicit declaration of 'kvtop' was here /usr/src/sys/dev/ed/if_ed.c:547: warning: nested extern declaration of `kvt= op' /usr/src/sys/dev/ed/if_ed.c:508: warning: redundant redeclaration of 'kvtop= ' /usr/src/sys/dev/ed/if_ed.c:508: warning: previous implicit declaration of 'kvtop' was here /usr/src/sys/dev/ed/if_ed.c:570: warning: nested extern declaration of `kvt= op' /usr/src/sys/dev/ed/if_ed.c:508: warning: redundant redeclaration of 'kvtop= ' /usr/src/sys/dev/ed/if_ed.c:508: warning: previous implicit declaration of 'kvtop' was here /usr/src/sys/dev/ed/if_ed.c: In function `ed_probe_3Com': /usr/src/sys/dev/ed/if_ed.c:905: warning: nested extern declaration of `kvt= op' /usr/src/sys/dev/ed/if_ed.c:508: warning: redundant redeclaration of 'kvtop= ' /usr/src/sys/dev/ed/if_ed.c:508: warning: previous implicit declaration of 'kvtop' was here /usr/src/sys/dev/ed/if_ed.c: In function `ed_probe_SIC': /usr/src/sys/dev/ed/if_ed.c:998: warning: nested extern declaration of `kvt= op' /usr/src/sys/dev/ed/if_ed.c:508: warning: redundant redeclaration of 'kvtop= ' /usr/src/sys/dev/ed/if_ed.c:508: warning: previous implicit declaration of 'kvtop' was here *** Error code 1 ugh :-( > Thanks. >=20 >=20 >=20 > > Thanks. > >=20 > >=20 > > > > Cheers, > > > >=20 > > > > Jung-uk Kim > > > >=20 > > > >=20 > > >=20 > > >=20 > >=20 >=20 >=20 >=20 >=20 cheers mars