From owner-freebsd-emulation@FreeBSD.ORG Mon Oct 10 11:01:42 2005 Return-Path: X-Original-To: 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 2555316A420 for ; Mon, 10 Oct 2005 11:01:42 +0000 (GMT) (envelope-from owner-bugmaster@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id E17A843D48 for ; Mon, 10 Oct 2005 11:01:41 +0000 (GMT) (envelope-from owner-bugmaster@freebsd.org) Received: from freefall.freebsd.org (peter@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j9AB1fYG051127 for ; Mon, 10 Oct 2005 11:01:41 GMT (envelope-from owner-bugmaster@freebsd.org) Received: (from peter@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j9AB1egC051119 for emulation@freebsd.org; Mon, 10 Oct 2005 11:01:40 GMT (envelope-from owner-bugmaster@freebsd.org) Date: Mon, 10 Oct 2005 11:01:40 GMT Message-Id: <200510101101.j9AB1egC051119@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: peter set sender to owner-bugmaster@freebsd.org using -f From: FreeBSD bugmaster To: emulation@FreeBSD.org Cc: Subject: Current problem reports assigned to you 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, 10 Oct 2005 11:01:42 -0000 Current FreeBSD problem reports Critical problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2003/06/28] kern/53874 emulation /usr/ports/emulators/linux_base isn't wor 1 problem total. Serious problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2000/09/22] kern/21463 emulation Linux compatability mode should not allow o [2000/11/13] kern/22826 emulation Memory limits have no effect in linux com o [2001/03/28] kern/26171 emulation not work Linux-emulator, but hi is work i o [2002/11/07] kern/45023 emulation flexlm does not run with linux-base-7, st o [2003/09/24] kern/57192 emulation linux-ibm-java1.4 freeze o [2004/06/20] kern/68131 emulation java/linux-ibm-jdk14: linux ibm jdk 1.4.1 o [2004/10/28] kern/73224 emulation [ndis] [patch] Lock order reversal in nto o [2005/01/25] ports/76644 emulation FreeBSD 5.3 will freeze or crash when run o [2005/02/19] i386/77710 emulation Linux page fault sigcontext information i o [2005/05/05] ports/80679 emulation emulators/linux_base-8: Use ${MACHINE_ARC o [2005/05/09] ports/80837 emulation x11-toolkits/linux-gtk: cannot install by o [2005/05/12] ports/80926 emulation running $PREFIX/etc/rc.d/vmware.sh return 12 problems total. Non-critical problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [1999/04/16] i386/11165 emulation IBCS2 don't work correctly with PID_MAX 9 o [2000/12/15] kern/23561 emulation Linux compatibility mode does not support o [2001/08/14] kern/29698 emulation linux ipcs doesn'work o [2002/06/12] kern/39201 emulation ptrace(2) and rfork(RFLINUXTHPN) confuse o [2002/08/11] kern/41543 emulation Easier wine/w23 support p [2002/09/04] kern/42404 emulation TIOCSCTTY not implemented in linuxulator s [2002/09/06] kern/42466 emulation linux: 'ipc' typ=258 not implemented p [2003/01/22] kern/47349 emulation Fake a sound ioctl (plus linux hook) o [2003/08/21] kern/55835 emulation Linux IPC emulation missing SETALL syscal o [2004/10/19] ports/72865 emulation emulators/vmware3 crashes on 5.3-STABLE o [2004/10/20] kern/72920 emulation linux emulation : path "prefixing" is not o [2004/11/08] kern/73663 emulation [ibcs2] module_register_init: MOD_LOAD (i o [2004/11/10] kern/73777 emulation [patch] linux emulation: root dir special o [2004/11/15] kern/73978 emulation [ibcs2] an error message appears during l o [2005/02/08] kern/77253 emulation [linprocfs] meminfo in linprocfs returns o [2005/03/19] ports/79009 emulation [patch] Some linux ports are incorrectly o [2005/04/07] ports/79655 emulation linux_base-8 fails to install as non-root o [2005/06/08] kern/82026 emulation [ibcs2] module_register_init: MOD_LOAD (i s [2005/07/01] ports/82853 emulation [wish] working linux_base port for alpha o [2005/08/21] kern/85175 emulation [patch] linux emulation layer without COM o [2005/09/02] ports/85625 emulation [patch] emulators/linux_base-8, plist fix 21 problems total. From owner-freebsd-emulation@FreeBSD.ORG Mon Oct 10 11:43:02 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 100F616A41F for ; Mon, 10 Oct 2005 11:43:02 +0000 (GMT) (envelope-from q@galgenberg.net) Received: from wrzx28.rz.uni-wuerzburg.de (wrzx28.rz.uni-wuerzburg.de [132.187.3.28]) by mx1.FreeBSD.org (Postfix) with ESMTP id 25CCB43D46 for ; Mon, 10 Oct 2005 11:43:00 +0000 (GMT) (envelope-from q@galgenberg.net) Received: from wrzx30.rz.uni-wuerzburg.de (wrzx30.rz.uni-wuerzburg.de [132.187.1.30]) by wrzx28.rz.uni-wuerzburg.de (Postfix) with ESMTP id 56CA113F0E5 for ; Mon, 10 Oct 2005 13:42:59 +0200 (CEST) Received: from virusscan (localhost [127.0.0.1]) by wrzx30.rz.uni-wuerzburg.de (Postfix) with ESMTP id 397019E137 for ; Mon, 10 Oct 2005 13:42:59 +0200 (CEST) Received: from wrzx28.rz.uni-wuerzburg.de (wrzx28.rz.uni-wuerzburg.de [132.187.3.28]) by wrzx30.rz.uni-wuerzburg.de (Postfix) with ESMTP id 1B9B69E106 for ; Mon, 10 Oct 2005 13:42:59 +0200 (CEST) Received: from frodo.galgenberg.net (wwsx14.win-screen.uni-wuerzburg.de [132.187.253.14]) by wrzx28.rz.uni-wuerzburg.de (Postfix) with ESMTP id 0F4EE13F0E5 for ; Mon, 10 Oct 2005 13:42:59 +0200 (CEST) Received: from coyote.q.local (gb-21-237.galgenberg.net [172.16.21.237]) by frodo.galgenberg.net (8.13.1/8.13.1) with ESMTP id j9ABgwll046507 for ; Mon, 10 Oct 2005 13:42:58 +0200 (CEST) (envelope-from q@galgenberg.net) Received: from roadrunner.q.local (vpn [10.0.0.2]) by coyote.q.local (8.13.3/8.13.1) with ESMTP id j9ABgufV030395 for ; Mon, 10 Oct 2005 13:42:57 +0200 (CEST) (envelope-from q@galgenberg.net) Received: from roadrunner.q.local (localhost [127.0.0.1]) by roadrunner.q.local (8.13.4/8.13.4) with ESMTP id j9ABgpoK002826 for ; Mon, 10 Oct 2005 13:42:51 +0200 (CEST) (envelope-from q@galgenberg.net) Received: (from q@localhost) by roadrunner.q.local (8.13.4/8.13.4/Submit) id j9ABgo8D002825 for freebsd-emulation@freebsd.org; Mon, 10 Oct 2005 13:42:50 +0200 (CEST) (envelope-from q@galgenberg.net) Date: Mon, 10 Oct 2005 13:42:49 +0200 From: Ulrich Spoerlein To: freebsd-emulation@freebsd.org Message-ID: <20051010114249.GA995@galgenberg.net> Mail-Followup-To: freebsd-emulation@freebsd.org References: <20051007172804.0A4A9C1B7@jsite.lefort.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="y0ulUmNC+osPPQO6" Content-Disposition: inline In-Reply-To: <20051007172804.0A4A9C1B7@jsite.lefort.net> X-Virus-Scanned: by amavisd-new (Rechenzentrum Universitaet Wuerzburg) Subject: Re: Update port: graphics/linux_dri to 4.4.0 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, 10 Oct 2005 11:43:02 -0000 --y0ulUmNC+osPPQO6 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, 07.10.2005 at 19:28:04 +0200, Jean-Yves Lefort wrote: > - Update to 4.4.0 (although a more recent version is available, > x11/linux-XFree86-libs is still at 4.3.99.902): fixes an unresolved > library dependency in libGLU (libstdc++-libc6.1-2.so.3) Hi, did you actually test, if DRI is still working with this update? That is, do you have supported hardware and tried something like linux-glxinfo oder linux-glxgears or a game of Quake3 (the Linux version, not the native one)? I ask this, because I tried an update of this port too, to add R300 support, but it fails to actually load the hardware accelerated driver and always fell back to software emulation. Ulrich Spoerlein --=20 PGP Key ID: F0DB9F44 Encrypted mail welcome! Fingerprint: F1CE D062 0CA9 ADE3 349B 2FE8 980A C6B5 F0DB 9F44 Ok, which part of "Ph'nglui mglw'nafh Cthulhu R'lyeh wgah'nagl fhtagn." didn't you understand? --y0ulUmNC+osPPQO6 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQFDSlO5mArGtfDbn0QRAq4/AJoD52Se9s9XX9IPLtRzLJ+DxhXbNACePUKX GHsfT0wDOqiNQkqqFQ1avKA= =xXvl -----END PGP SIGNATURE----- --y0ulUmNC+osPPQO6-- From owner-freebsd-emulation@FreeBSD.ORG Wed Oct 12 06:10:27 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 90BD116A475 for ; Wed, 12 Oct 2005 06:10:27 +0000 (GMT) (envelope-from linimon@FreeBSD.org) Received: from mail.droso.net (koala.droso.net [193.88.12.38]) by mx1.FreeBSD.org (Postfix) with ESMTP id 02C3A43D48 for ; Wed, 12 Oct 2005 06:10:26 +0000 (GMT) (envelope-from linimon@FreeBSD.org) Received: from localhost (localhost [127.0.0.1]) by mail.droso.net (Postfix) with ESMTP id 35A7222981 for ; Wed, 12 Oct 2005 08:10:26 +0200 (CEST) Received: from koala.ipv6.droso.net (localhost [IPv6:::1]) by mail.droso.net (Postfix) with ESMTP id 8C37E2291D for ; Wed, 12 Oct 2005 08:10:24 +0200 (CEST) From: linimon@FreeBSD.org To: freebsd-emulation@freebsd.org Message-Id: <20051012061024.8C37E2291D@mail.droso.net> Date: Wed, 12 Oct 2005 08:10:24 +0200 (CEST) X-Virus-Scanned: by amavisd 0.1 Subject: FreeBSD ports that you maintain which are currently marked broken 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: Wed, 12 Oct 2005 06:10:28 -0000 Dear FreeBSD port maintainer: As part of an ongoing effort to reduce the number of problems in the FreeBSD ports system, we are attempting to notify maintainers of ports that are marked as "broken" in their Makefiles. In many cases these ports are failing to compile on some subset of the FreeBSD build environments. The most common problem is that recent versions of -CURRENT include gcc3.4, which is much stricter about such things as function declarations, literal strings constants that continue over several physical lines, and forcing the deprecation of antique header files such as varargs.h (we should now be using stdargs.h). The next most common problem is that compiles succeed on the i386 architecture (e.g. the common Intel PC), but fail on one or more of the other architectures due to assumptions about things such as size of various types, byte-alignment issues, and so forth. In occasional cases we see that the same port may have different errors in different build environments. The script that runs on the build cluster uses heuristics to try to 'guess' the error type to help you isolate problems, but it is only a rough guide. If you need help in one or more build environments that you do not have access to, please ask for help on the freebsd-ports mailing list. One more note: on occasion, there are transient build errors seen on the build farm. Unfortunately, there is not yet any way for this algorithm to tell the difference (humans are much, much better at this kind of thing.) The errors are listed below. In the case where the same problem exists on more than one build environment, the URL points to the latest errorlog for that type. (By 'build environment' here we mean 'combination of 4.x/5.x/6.x with target architecture'.) (Note: the dates are included to help you to gauge whether or not the error still applies to the latest version. The program that generates this report is not yet able to determine this automatically.) portname: devel/linux_devtools-6 broken because: dependent on linux_base-6 build errors: none. overview: http://portsmon.FreeBSD.org/portoverview.py?category=devel&portname=linux_devtools-6 portname: devel/linux_devtools-7 broken because: Incomplete pkg-plist build errors: none. overview: http://portsmon.FreeBSD.org/portoverview.py?category=devel&portname=linux_devtools-7 If these errors are ones that you are already aware of, please accept our apologies and ignore this message. On the other hand, if you no longer wish to maintain this port (or ports), please reply with a message stating that, and accept our thanks for your efforts in the past. Every effort has been made to make sure that these error reports really do correspond to a port that you maintain. However, due to the fact that this is an automated process, it may indeed generate false matches. If one of these errors fits that description, please forward this email to the author of this software, Mark Linimon , so that he can attempt to fix the problem in the future. Thanks for your efforts to help improve FreeBSD. From owner-freebsd-emulation@FreeBSD.ORG Wed Oct 12 09:34:18 2005 Return-Path: X-Original-To: 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 6F2B416A41F; Wed, 12 Oct 2005 09:34:18 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from www.ebusiness-leidinger.de (jojo.ms-net.de [84.16.236.246]) by mx1.FreeBSD.org (Postfix) with ESMTP id B354043D46; Wed, 12 Oct 2005 09:34:17 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from Andro-Beta.Leidinger.net (p54A5EA5E.dip.t-dialin.net [84.165.234.94]) (authenticated bits=0) by www.ebusiness-leidinger.de (8.13.1/8.13.1) with ESMTP id j9C9HJ36089694; Wed, 12 Oct 2005 11:17:21 +0200 (CEST) (envelope-from netchild@FreeBSD.org) Received: from localhost (localhost [127.0.0.1]) by Andro-Beta.Leidinger.net (8.13.3/8.13.3) with ESMTP id j9C9Y1ue014602; Wed, 12 Oct 2005 11:34:01 +0200 (CEST) (envelope-from netchild@FreeBSD.org) Received: from pslux.cec.eu.int (pslux.cec.eu.int [158.169.9.14]) by netchild.homeip.net (Horde MIME library) with HTTP; Wed, 12 Oct 2005 11:34:01 +0200 Message-ID: <20051012113401.8kpjmsbv48cscg44@netchild.homeip.net> X-Priority: 3 (Normal) Date: Wed, 12 Oct 2005 11:34:01 +0200 From: Alexander Leidinger To: Oliver Lehmann References: <200510090929.j999TH9B072330@repoman.freebsd.org> <20051011223549.28526db3.lehmann@ans-netz.de> In-Reply-To: <20051011223549.28526db3.lehmann@ans-netz.de> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) H3 (4.0.3) / FreeBSD-4.11 X-Virus-Scanned: by amavisd-new Cc: emulation@FreeBSD.org, cvs-ports@FreeBSD.org, cvs-all@FreeBSD.org, ports-committers@FreeBSD.org Subject: Re: cvs commit: ports/emulators/linux_base-8 Makefile pkg-message pkg-plist 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: Wed, 12 Oct 2005 09:34:18 -0000 Oliver Lehmann wrote: > Alexander Leidinger wrote: > >> netchild 2005-10-09 09:29:17 UTC >> >> FreeBSD ports repository >> >> Modified files: >> emulators/linux_base-8 Makefile pkg-message >> Added files: >> emulators/linux_base-8 pkg-plist >> Log: > > Doesn't work now here on amd64 (running a portupgrade linux_base-8): > ELF binary type "0" not known. > execution of glibc-common-2.3.2-4.80.8 script failed, exit status 255 pav had the same error on amd64. He installed from scratch and everything worked. I don't know what the problem is... Btw: reinstalling linux_base while having other ports installed destroys the contents the the RPM database since "rpm --init" is called, so it's better to install everything from scratch in any case. Any ideas to allow an portupgrade of linux_base are welcome (perhaps moving the init of the rpm database into a separate port on which linux_base can depend upon?). Bye, Alexander. -- http://www.Leidinger.net/ Alexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org/ netchild @ FreeBSD.org : PGP ID = 72077137 Cancerman: Nothing vanishes without a trace... Burn it! "The X-Files: Anasazi" From owner-freebsd-emulation@FreeBSD.ORG Wed Oct 12 15:43:39 2005 Return-Path: X-Original-To: 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 2933316A41F for ; Wed, 12 Oct 2005 15:43:39 +0000 (GMT) (envelope-from lehmann@ans-netz.de) Received: from avocado.salatschuessel.net (avocado.salatschuessel.net [83.136.81.184]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5D8CD43D55 for ; Wed, 12 Oct 2005 15:43:37 +0000 (GMT) (envelope-from lehmann@ans-netz.de) Received: (qmail 8794 invoked by uid 89); 12 Oct 2005 15:43:12 -0000 Received: from unknown (HELO kartoffel.salatschuessel.net) (83.136.81.185) by avocado.salatschuessel.net with SMTP; 12 Oct 2005 15:43:12 -0000 Date: Wed, 12 Oct 2005 17:43:41 +0200 From: Oliver Lehmann To: Alexander Leidinger Message-Id: <20051012174341.5d5edfbf.lehmann@ans-netz.de> In-Reply-To: <20051012113401.8kpjmsbv48cscg44@netchild.homeip.net> References: <200510090929.j999TH9B072330@repoman.freebsd.org> <20051011223549.28526db3.lehmann@ans-netz.de> <20051012113401.8kpjmsbv48cscg44@netchild.homeip.net> X-Mailer: Sylpheed version 2.0.2 (GTK+ 2.6.10; amd64-portbld-freebsd6.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: emulation@FreeBSD.org, cvs-ports@FreeBSD.org, cvs-all@FreeBSD.org, ports-committers@FreeBSD.org Subject: Re: cvs commit: ports/emulators/linux_base-8 Makefile pkg-message pkg-plist 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: Wed, 12 Oct 2005 15:43:39 -0000 Alexander Leidinger wrote: > Btw: reinstalling linux_base while having other ports installed destroys the > contents the the RPM database since "rpm --init" is called, so it's better > to install everything from scratch in any case. Any ideas to allow an > portupgrade of linux_base are welcome (perhaps moving the init of the rpm > database into a separate port on which linux_base can depend upon?). Ok, I deleted the old port first and instaled the new one then. I didn't do this before because I was afraid of having no linux_base then... ;) -- Oliver Lehmann http://www.pofo.de/ http://wishlist.ans-netz.de/ From owner-freebsd-emulation@FreeBSD.ORG Thu Oct 13 16:11:12 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 4F4BC16A41F; Thu, 13 Oct 2005 16:11:12 +0000 (GMT) (envelope-from jkim@FreeBSD.org) Received: from anuket.mj.niksun.com (gwnew.niksun.com [65.115.46.162]) by mx1.FreeBSD.org (Postfix) with ESMTP id D889243D45; Thu, 13 Oct 2005 16:11:09 +0000 (GMT) (envelope-from jkim@FreeBSD.org) Received: from niksun.com (anuket [10.70.0.5]) by anuket.mj.niksun.com (8.13.1/8.13.1) with ESMTP id j9DGIdTt093873; Thu, 13 Oct 2005 12:18:39 -0400 (EDT) (envelope-from jkim@FreeBSD.org) From: Jung-uk Kim To: freebsd-current@FreeBSD.org, thierry@herbelot.com Date: Thu, 13 Oct 2005 12:10:50 -0400 User-Agent: KMail/1.6.2 References: <200510131331.27906.thierry@herbelot.com> <200510131621.07299.thierry@herbelot.com> In-Reply-To: <200510131621.07299.thierry@herbelot.com> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Message-Id: <200510131210.55135.jkim@FreeBSD.org> X-Virus-Scanned: ClamAV devel-20050919/1131/Wed Oct 12 16:35:32 2005 on anuket.mj.niksun.com X-Virus-Status: Clean Cc: freebsd-emulation@FreeBSD.org, Warner Losh , Juergen Lock , Joshua Coombs Subject: Re: Loss of ed(4) in a RC1 booted in qemu 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: Thu, 13 Oct 2005 16:11:12 -0000 On Thursday 13 October 2005 10:21 am, Thierry Herbelot wrote: > Le Thursday 13 October 2005 15:38, Joshua Coombs a �crit : > > Welp, while I have no real help, I can point out this was > > reported by another user on the stable list, QEMU + RC1 == no ed > > well, I should have looked there before posting here ;-) (sorry for > the excellent Michel talon at lpthe.jussieu.fr : I should have > seeen your post) > > > I'm kinda dreading upgrading my 386... I'll pull down the generic > > kernel and do a test boot to see if it's a QEMU thing or a > > reguression in RC1 > > for me, it's definitely a qemu thing : I have two other machines > upgraded to 6.0 post-RC1, and both are working *fine* ; moreover > one is a notebook with a pcmcia ed(4), and this NIC works perfectly > (the issue is therefore seen only on qemu) QEMU emulates RTL8029: ed0: port 0xc100-0xc1ff irq 11 at device 3.0 on pci0 ed0: Reserved 0x100 bytes for rid 0x10 type 4 at 0xc100 and Warner Losh MFC'd new ed(4) right before 6.0-RC1: http://docs.freebsd.org/cgi/mid.cgi?200510081800.j98I0fRI089493 The new driver does more aggressive probing and it seems QEMU cannot handle it. Jung-uk Kim From owner-freebsd-emulation@FreeBSD.ORG Thu Oct 13 16:18:01 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 B0D7F16A41F; Thu, 13 Oct 2005 16:18:01 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (vc4-2-0-87.dsl.netrack.net [199.45.160.85]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2E6F243D46; Thu, 13 Oct 2005 16:18:01 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from localhost (localhost.village.org [127.0.0.1] (may be forged)) by harmony.bsdimp.com (8.13.3/8.13.3) with ESMTP id j9DGHc6F074461; Thu, 13 Oct 2005 10:17:38 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Thu, 13 Oct 2005 10:18:47 -0600 (MDT) Message-Id: <20051013.101847.45180176.imp@bsdimp.com> To: jkim@FreeBSD.org From: "M. Warner Losh" In-Reply-To: <200510131210.55135.jkim@FreeBSD.org> References: <200510131621.07299.thierry@herbelot.com> <200510131210.55135.jkim@FreeBSD.org> X-Mailer: Mew version 3.3 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=iso-2022-jp-2 Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0 (harmony.bsdimp.com [127.0.0.1]); Thu, 13 Oct 2005 10:17:39 -0600 (MDT) Cc: freebsd-emulation@FreeBSD.org, freebsd-current@FreeBSD.org, nox@jelal.kn-bremen.de, jcoombs@gwi.net, thierry@herbelot.com Subject: Re: Loss of ed(4) in a RC1 booted in qemu 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: Thu, 13 Oct 2005 16:18:01 -0000 In message: <200510131210.55135.jkim@FreeBSD.org> Jung-uk Kim writes: : On Thursday 13 October 2005 10:21 am, Thierry Herbelot wrote: : > Le Thursday 13 October 2005 15:38, Joshua Coombs a $,3u=(Bcrit : : > > Welp, while I have no real help, I can point out this was : > > reported by another user on the stable list, QEMU + RC1 == no ed : > : > well, I should have looked there before posting here ;-) (sorry for : > the excellent Michel talon at lpthe.jussieu.fr : I should have : > seeen your post) : > : > > I'm kinda dreading upgrading my 386... I'll pull down the generic : > > kernel and do a test boot to see if it's a QEMU thing or a : > > reguression in RC1 : > : > for me, it's definitely a qemu thing : I have two other machines : > upgraded to 6.0 post-RC1, and both are working *fine* ; moreover : > one is a notebook with a pcmcia ed(4), and this NIC works perfectly : > (the issue is therefore seen only on qemu) : : QEMU emulates RTL8029: : : ed0: port 0xc100-0xc1ff irq 11 at device 3.0 on pci0 : ed0: Reserved 0x100 bytes for rid 0x10 type 4 at 0xc100 : : and Warner Losh MFC'd new ed(4) right before 6.0-RC1: : : http://docs.freebsd.org/cgi/mid.cgi?200510081800.j98I0fRI089493 : : The new driver does more aggressive probing and it seems QEMU cannot : handle it. Yup. I'm trying to get qemu going here. It core dumps for me in -nographics mode, which frustrates me since I can't run it on my fastest machine while at work (the machine is at home and the DSL line is too slow for qemu's use of X but not too slow for firefox!). I've installed it on my laptop and we'll see how well it works. I'm guessing it may be a bug in all RTL80x9 hardware that I introduced into the patches I committed (or was there from the start). I lost my bid last night on real 8029 and 8019 hardware on ebay. If someone wanted to send it to me, that would be great! I have enough other NE-2000 clone hardware (including about 30 16-bit PC Cards that all work flawlessly or nearly flawlessly[*]). I don't suppose there's an easy way to run qemu where it just boots a FreeBSD kernel... Warner [*] My FA-410 takes forever to autonegotiate, but once it does, it works great. All others work, including one that don't work completely on any other open source OS... From owner-freebsd-emulation@FreeBSD.ORG Thu Oct 13 16:21:34 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 8EEAC16A41F; Thu, 13 Oct 2005 16:21:34 +0000 (GMT) (envelope-from jcoombs@gwi.net) Received: from aphrodite.gwi.net (aphrodite.gwi.net [207.5.128.164]) by mx1.FreeBSD.org (Postfix) with ESMTP id C7F8F43D45; Thu, 13 Oct 2005 16:21:33 +0000 (GMT) (envelope-from jcoombs@gwi.net) Received: from failure (murdoc.gwi.net [207.5.142.8]) by aphrodite.gwi.net (8.13.1/8.13.1) with SMTP id j9DGLVV3086166; Thu, 13 Oct 2005 12:21:31 -0400 (EDT) (envelope-from jcoombs@gwi.net) Message-ID: <055201c5d012$2c8ca250$1700a8c0@failure> From: "Joshua Coombs" To: "Jung-uk Kim" , , References: <200510131331.27906.thierry@herbelot.com> <200510131621.07299.thierry@herbelot.com> <200510131210.55135.jkim@FreeBSD.org> Date: Thu, 13 Oct 2005 12:21:31 -0400 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="utf-8"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2527 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527 Cc: freebsd-emulation@FreeBSD.org, Warner Losh , Juergen Lock Subject: Re: Loss of ed(4) in a RC1 booted in qemu 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: Thu, 13 Oct 2005 16:21:34 -0000 > QEMU emulates RTL8029: > > ed0: port 0xc100-0xc1ff irq 11 at device 3.0 on pci0 > ed0: Reserved 0x100 bytes for rid 0x10 type 4 at 0xc100 > > and Warner Losh MFC'd new ed(4) right before 6.0-RC1: > > http://docs.freebsd.org/cgi/mid.cgi?200510081800.j98I0fRI089493 > > The new driver does more aggressive probing and it seems QEMU cannot > handle it. > > Jung-uk Kim Interesting. I wonder if this MFC means my 8019 will support full duplex under FreeBSD? The NetBSD 'ne' driver has access to software based media selection, it'd be nice to have access to an ISA nic that handled full-duplex properly. Joshua Coombs From owner-freebsd-emulation@FreeBSD.ORG Thu Oct 13 16:38:55 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 260C916A41F; Thu, 13 Oct 2005 16:38:55 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (vc4-2-0-87.dsl.netrack.net [199.45.160.85]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9E09D43D4C; Thu, 13 Oct 2005 16:38:54 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from localhost (localhost.village.org [127.0.0.1] (may be forged)) by harmony.bsdimp.com (8.13.3/8.13.3) with ESMTP id j9DGc8gc074638; Thu, 13 Oct 2005 10:38:08 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Thu, 13 Oct 2005 10:39:17 -0600 (MDT) Message-Id: <20051013.103917.03114813.imp@bsdimp.com> To: jcoombs@gwi.net From: "M. Warner Losh" In-Reply-To: <055201c5d012$2c8ca250$1700a8c0@failure> References: <200510131621.07299.thierry@herbelot.com> <200510131210.55135.jkim@FreeBSD.org> <055201c5d012$2c8ca250$1700a8c0@failure> X-Mailer: Mew version 3.3 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0 (harmony.bsdimp.com [127.0.0.1]); Thu, 13 Oct 2005 10:38:09 -0600 (MDT) Cc: freebsd-emulation@FreeBSD.org, freebsd-current@FreeBSD.org, nox@jelal.kn-bremen.de, jkim@FreeBSD.org, thierry@herbelot.com Subject: Re: Loss of ed(4) in a RC1 booted in qemu 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: Thu, 13 Oct 2005 16:38:55 -0000 In message: <055201c5d012$2c8ca250$1700a8c0@failure> "Joshua Coombs" writes: : Interesting. I wonder if this MFC means my 8019 will support full : duplex under FreeBSD? The NetBSD 'ne' driver has access to software : based media selection, it'd be nice to have access to an ISA nic that : handled full-duplex properly. That's the idea. Warner From owner-freebsd-emulation@FreeBSD.ORG Thu Oct 13 18:28:47 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 E159616A420; Thu, 13 Oct 2005 18:28:47 +0000 (GMT) (envelope-from jkim@FreeBSD.org) Received: from anuket.mj.niksun.com (gwnew.niksun.com [65.115.46.162]) by mx1.FreeBSD.org (Postfix) with ESMTP id 968E143D6A; Thu, 13 Oct 2005 18:28:40 +0000 (GMT) (envelope-from jkim@FreeBSD.org) Received: from niksun.com (anuket [10.70.0.5]) by anuket.mj.niksun.com (8.13.1/8.13.1) with ESMTP id j9DIa6oW098131; Thu, 13 Oct 2005 14:36:06 -0400 (EDT) (envelope-from jkim@FreeBSD.org) From: Jung-uk Kim To: freebsd-current@FreeBSD.org Date: Thu, 13 Oct 2005 14:28:18 -0400 User-Agent: KMail/1.6.2 References: <200510131331.27906.thierry@herbelot.com> <200510131621.07299.thierry@herbelot.com> <200510131210.55135.jkim@FreeBSD.org> In-Reply-To: <200510131210.55135.jkim@FreeBSD.org> MIME-Version: 1.0 Content-Disposition: inline Content-Type: Multipart/Mixed; boundary="Boundary-00=_FdqTDbJyKm4r4NS" Message-Id: <200510131428.21211.jkim@FreeBSD.org> X-Virus-Scanned: ClamAV devel-20050919/1131/Wed Oct 12 16:35:32 2005 on anuket.mj.niksun.com X-Virus-Status: Clean Cc: Joshua Coombs , Juergen Lock , thierry@herbelot.com, freebsd-emulation@FreeBSD.org, Bakul Shah , Warner Losh Subject: Re: Loss of ed(4) in a RC1 booted in qemu 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: Thu, 13 Oct 2005 18:28:48 -0000 --Boundary-00=_FdqTDbJyKm4r4NS Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline On Thursday 13 October 2005 12:10 pm, Jung-uk Kim wrote: > QEMU emulates RTL8029: > > ed0: port 0xc100-0xc1ff irq 11 at device 3.0 on pci0 > ed0: Reserved 0x100 bytes for rid 0x10 type 4 at 0xc100 > > and Warner Losh MFC'd new ed(4) right before 6.0-RC1: > > http://docs.freebsd.org/cgi/mid.cgi?200510081800.j98I0fRI089493 > > The new driver does more aggressive probing and it seems QEMU > cannot handle it. Just for the time being, you can drop the attachment in ports/emulators/qemu/files directory and rebuild qemu to get ed(4) back. Jung-uk Kim --Boundary-00=_FdqTDbJyKm4r4NS Content-Type: text/plain; charset="utf-8"; name="patch-hw::ne2000.c" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="patch-hw::ne2000.c" --- qemu/hw/ne2000.c.orig Thu Apr 28 15:45:10 2005 +++ qemu/hw/ne2000.c Thu Oct 13 12:40:27 2005 @@ -676,10 +676,10 @@ -1, NULL, NULL); pci_conf = d->dev.config; - pci_conf[0x00] = 0xec; // Realtek 8029 - pci_conf[0x01] = 0x10; - pci_conf[0x02] = 0x29; - pci_conf[0x03] = 0x80; + pci_conf[0x00] = 0x06; // VIA VT86C926 + pci_conf[0x01] = 0x11; + pci_conf[0x02] = 0x26; + pci_conf[0x03] = 0x09; pci_conf[0x0a] = 0x00; // ethernet network controller pci_conf[0x0b] = 0x02; pci_conf[0x0e] = 0x00; // header_type --Boundary-00=_FdqTDbJyKm4r4NS-- From owner-freebsd-emulation@FreeBSD.ORG Thu Oct 13 20:08:29 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 3D17416A41F; Thu, 13 Oct 2005 20:08:29 +0000 (GMT) (envelope-from nox@saturn.kn-bremen.de) Received: from gwyn.kn-bremen.de (gwyn.kn-bremen.de [212.63.36.242]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7272343D48; Thu, 13 Oct 2005 20:08:27 +0000 (GMT) (envelope-from nox@saturn.kn-bremen.de) Received: from gwyn.kn-bremen.de (gwyn [127.0.0.1]) by gwyn.kn-bremen.de (8.13.4/8.13.4/Debian-3) with ESMTP id j9DK8M7Q008211; Thu, 13 Oct 2005 22:08:22 +0200 Received: from saturn.kn-bremen.de (uucp@localhost) by gwyn.kn-bremen.de (8.13.4/8.13.4/Submit) with UUCP id j9DK8MIx008209; Thu, 13 Oct 2005 22:08:22 +0200 Received: from saturn.kn-bremen.de (localhost [127.0.0.1]) by saturn.kn-bremen.de (8.13.1/8.13.1) with ESMTP id j9DK2uNv011503; Thu, 13 Oct 2005 22:02:56 +0200 (CEST) (envelope-from nox@saturn.kn-bremen.de) Received: (from nox@localhost) by saturn.kn-bremen.de (8.13.1/8.13.1/Submit) id j9DK2s3A011502; Thu, 13 Oct 2005 22:02:54 +0200 (CEST) (envelope-from nox) From: Juergen Lock Date: Thu, 13 Oct 2005 22:02:54 +0200 To: Jung-uk Kim Message-ID: <20051013200254.GA11267@saturn.kn-bremen.de> Mail-Followup-To: Jung-uk Kim , freebsd-current@FreeBSD.org, thierry@herbelot.com, Joshua Coombs , Warner Losh , Bakul Shah , freebsd-emulation@FreeBSD.org References: <200510131331.27906.thierry@herbelot.com> <200510131621.07299.thierry@herbelot.com> <200510131210.55135.jkim@FreeBSD.org> <200510131428.21211.jkim@FreeBSD.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200510131428.21211.jkim@FreeBSD.org> User-Agent: Mutt/1.4.2.1i Cc: Joshua Coombs , thierry@herbelot.com, freebsd-emulation@FreeBSD.org, freebsd-current@FreeBSD.org, Bakul Shah , Warner Losh Subject: Re: Loss of ed(4) in a RC1 booted in qemu 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: Thu, 13 Oct 2005 20:08:29 -0000 On Thu, Oct 13, 2005 at 02:28:18PM -0400, Jung-uk Kim wrote: > On Thursday 13 October 2005 12:10 pm, Jung-uk Kim wrote: > > QEMU emulates RTL8029: > > > > ed0: port 0xc100-0xc1ff irq 11 at device 3.0 on pci0 > > ed0: Reserved 0x100 bytes for rid 0x10 type 4 at 0xc100 > > > > and Warner Losh MFC'd new ed(4) right before 6.0-RC1: > > > > http://docs.freebsd.org/cgi/mid.cgi?200510081800.j98I0fRI089493 > > > > The new driver does more aggressive probing and it seems QEMU > > cannot handle it. > > Just for the time being, you can drop the attachment in > ports/emulators/qemu/files directory and rebuild qemu to get ed(4) > back. > > Jung-uk Kim >[patch snipped] Okay, we could add this as an option to our qemu port (`-ne2kvia' or something like that), anyone thinks it is necessary? (I guess this issue will be fixed in 6.0-R?) Juergen From owner-freebsd-emulation@FreeBSD.ORG Thu Oct 13 21:06:01 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 B41B316A41F; Thu, 13 Oct 2005 21:06:01 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (vc4-2-0-87.dsl.netrack.net [199.45.160.85]) by mx1.FreeBSD.org (Postfix) with ESMTP id 115CE43D48; Thu, 13 Oct 2005 21:06:01 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from localhost (localhost.village.org [127.0.0.1] (may be forged)) by harmony.bsdimp.com (8.13.3/8.13.3) with ESMTP id j9DL5Hgj077137; Thu, 13 Oct 2005 15:05:18 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Thu, 13 Oct 2005 15:06:26 -0600 (MDT) Message-Id: <20051013.150626.121295478.imp@bsdimp.com> To: nox@jelal.kn-bremen.de From: "M. Warner Losh" In-Reply-To: <20051013200254.GA11267@saturn.kn-bremen.de> References: <200510131210.55135.jkim@FreeBSD.org> <200510131428.21211.jkim@FreeBSD.org> <20051013200254.GA11267@saturn.kn-bremen.de> X-Mailer: Mew version 3.3 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0 (harmony.bsdimp.com [127.0.0.1]); Thu, 13 Oct 2005 15:05:18 -0600 (MDT) Cc: jcoombs@gwi.net, thierry@herbelot.com, freebsd-emulation@FreeBSD.org, freebsd-current@FreeBSD.org, bakul@BitBlocks.com, jkim@FreeBSD.org Subject: Re: Loss of ed(4) in a RC1 booted in qemu 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: Thu, 13 Oct 2005 21:06:01 -0000 In message: <20051013200254.GA11267@saturn.kn-bremen.de> Juergen Lock writes: : On Thu, Oct 13, 2005 at 02:28:18PM -0400, Jung-uk Kim wrote: : > On Thursday 13 October 2005 12:10 pm, Jung-uk Kim wrote: : > > QEMU emulates RTL8029: : > > : > > ed0: port 0xc100-0xc1ff irq 11 at device 3.0 on pci0 : > > ed0: Reserved 0x100 bytes for rid 0x10 type 4 at 0xc100 : > > : > > and Warner Losh MFC'd new ed(4) right before 6.0-RC1: : > > : > > http://docs.freebsd.org/cgi/mid.cgi?200510081800.j98I0fRI089493 : > > : > > The new driver does more aggressive probing and it seems QEMU : > > cannot handle it. : > : > Just for the time being, you can drop the attachment in : > ports/emulators/qemu/files directory and rebuild qemu to get ed(4) : > back. : > : > Jung-uk Kim : : >[patch snipped] : : Okay, we could add this as an option to our qemu port (`-ne2kvia' or : something like that), anyone thinks it is necessary? (I guess this : issue will be fixed in 6.0-R?) We could also fix the RTL8029 emulation to like work :-) Warner From owner-freebsd-emulation@FreeBSD.ORG Thu Oct 13 23:27:45 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 7243D16A41F; Thu, 13 Oct 2005 23:27:45 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (vc4-2-0-87.dsl.netrack.net [199.45.160.85]) by mx1.FreeBSD.org (Postfix) with ESMTP id 07C7543D64; Thu, 13 Oct 2005 23:27:38 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from localhost (localhost.village.org [127.0.0.1] (may be forged)) by harmony.bsdimp.com (8.13.3/8.13.3) with ESMTP id j9DNPkS0078315; Thu, 13 Oct 2005 17:25:47 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Thu, 13 Oct 2005 17:26:55 -0600 (MDT) Message-Id: <20051013.172655.102656323.imp@bsdimp.com> To: nox@jelal.kn-bremen.de From: "M. Warner Losh" In-Reply-To: <20051013200254.GA11267@saturn.kn-bremen.de> References: <200510131210.55135.jkim@FreeBSD.org> <200510131428.21211.jkim@FreeBSD.org> <20051013200254.GA11267@saturn.kn-bremen.de> X-Mailer: Mew version 3.3 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0 (harmony.bsdimp.com [127.0.0.1]); Thu, 13 Oct 2005 17:25:52 -0600 (MDT) Cc: jcoombs@gwi.net, thierry@herbelot.com, freebsd-emulation@freebsd.org, freebsd-current@freebsd.org, bakul@BitBlocks.com, jkim@freebsd.org Subject: Re: Loss of ed(4) in a RC1 booted in qemu 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: Thu, 13 Oct 2005 23:27:45 -0000 In message: <20051013200254.GA11267@saturn.kn-bremen.de> Juergen Lock writes: : On Thu, Oct 13, 2005 at 02:28:18PM -0400, Jung-uk Kim wrote: : > On Thursday 13 October 2005 12:10 pm, Jung-uk Kim wrote: : > > QEMU emulates RTL8029: : > > : > > ed0: port 0xc100-0xc1ff irq 11 at device 3.0 on pci0 : > > ed0: Reserved 0x100 bytes for rid 0x10 type 4 at 0xc100 : > > : > > and Warner Losh MFC'd new ed(4) right before 6.0-RC1: : > > : > > http://docs.freebsd.org/cgi/mid.cgi?200510081800.j98I0fRI089493 : > > : > > The new driver does more aggressive probing and it seems QEMU : > > cannot handle it. : > : > Just for the time being, you can drop the attachment in : > ports/emulators/qemu/files directory and rebuild qemu to get ed(4) : > back. : > : > Jung-uk Kim : : >[patch snipped] : : Okay, we could add this as an option to our qemu port (`-ne2kvia' or : something like that), anyone thinks it is necessary? (I guess this : issue will be fixed in 6.0-R?) I've committed patches to -current to fix this problem. The fixes correct a minor botch in the probing code, while also adding tolerance for the RTL8029 that's claimed to be there to not really be there. I've posted patches to qemu that improves that RTL8029 emulation, but those aren't required for FreeBSD to work. RC1 won't work with qemu, patched or unpatched, due to the minor botch. RC2 and newer will have this problem fixed. The qemu folks can include and improve upon my patches as they see fit in the future. The problem with just switching to the VIA VT86C926 is that it isn't exactly like a NE-2000. According to its datasheet: >>7. CONTROL AND STATUS REGISTERS >>VT86C926 supports the control and status registers of DP8390 except >>those explained as follows. >> >> * VT86C926 supports all page 1 registers. Only part of Page 2 is >> supported. >> * VT86C926 supports Early Transmit Underrun (ETUN) >> * VT86C926 supports most of page 0 registers. >> * The meaning and use of 01H (CLAD0) and 02H (CLAD1) of page 0 is >> altered. >> * The 06H (FIFO port) of page 0 is not supported. >> * The following control/status bits in page 0 are not supported: >> -- (D3,D4,D5) == (0,1,1) of CR (00H) : Send Packet Command (RD0 - RD2) >> -- D1 of DCR: Byte Order Select (BOS) >> -- D2 of DCR: Long Address Select (LAS) >> -- D4 of DCR: Auto-initialize Remote (ARM) >> -- D5, D6 of DCR: FIFO Threshold Select (FT0 and FT1) >> -- D4 of TCR: Collision Offset Enable (OFST) >> -- D5 of TSR: FIFO Underrun (FU) >> -- D7 of TSR: Out of Window Collision (OWC) >> -- D3 of RSR: FIFO Overrun (FO) None of which are enshrined in hw/ne2000.c as far as I can tell. The early interrupt stuff isn't part of a NE2000 at all (that's the ETUN). Of course its datasheet is maddening. It talks about different bits and registers, but never defines their offsets or values! Warner From owner-freebsd-emulation@FreeBSD.ORG Fri Oct 14 00:03:02 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 AD08316A41F for ; Fri, 14 Oct 2005 00:03:02 +0000 (GMT) (envelope-from dan@langille.org) Received: from m21.unixathome.org (m21.unixathome.org [205.150.199.217]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4C79143D48 for ; Fri, 14 Oct 2005 00:03:02 +0000 (GMT) (envelope-from dan@langille.org) Received: from localhost (localhost [205.150.199.217]) by m21.unixathome.org (Postfix) with ESMTP id 5A7E0C36F for ; Thu, 13 Oct 2005 20:03:01 -0400 (EDT) Received: from m21.unixathome.org ([205.150.199.217]) by localhost (m21.unixathome.org [205.150.199.217]) (amavisd-new, port 10024) with ESMTP id 03056-05 for ; Thu, 13 Oct 2005 20:03:00 -0400 (EDT) Received: from bast.unixathome.org (bast.unixathome.org [70.26.229.230]) by m21.unixathome.org (Postfix) with ESMTP id AF48FBFB0 for ; Thu, 13 Oct 2005 20:03:00 -0400 (EDT) Received: from wocker (wocker.unixathome.org [10.55.0.99]) by bast.unixathome.org (Postfix) with ESMTP id 450793D3B for ; Thu, 13 Oct 2005 20:02:59 -0400 (EDT) From: "Dan Langille" To: freebsd-emulation@freebsd.org Date: Thu, 13 Oct 2005 20:02:59 -0400 MIME-Version: 1.0 Message-ID: <434EBD73.21640.81DF45B2@localhost> Priority: normal X-mailer: Pegasus Mail for Windows (4.21c) Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Content-description: Mail message body X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at unixathome.org Subject: cross platform building under emulation 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: Fri, 14 Oct 2005 00:03:02 -0000 My usual practice when building world is to do it once on the fastest box I have, then do installs via NFS mounts. I need to do this for FreeBSD 4.*, 5.*, 6.*, and -current. My goal is to do all this with just one box. At first I thought of multi-booting the box. Tonight at the OCUUG meeting , someone mentioned doing this with emulation. After hearing that, multi- booting doesn't sound as good. The box in question is an AMD 64 3000+ with 1GB of RAM. The m/b is a KV8E Deluxe, which gives me the option of onboard RAID-1 SATA. What do you think of this idea? What tools would you suggest? The host enviroment will also be used as my main database server running FreeBSD 6, most likely in AMD mode. Thanks. -- Dan Langille : http://www.langille.org/ BSDCan - The Technical BSD Conference - http://www.bsdcan.org/ From owner-freebsd-emulation@FreeBSD.ORG Fri Oct 14 00:11:46 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 DA8E216A41F for ; Fri, 14 Oct 2005 00:11:46 +0000 (GMT) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (Odin.AC.HMC.Edu [134.173.32.75]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8773743D46 for ; Fri, 14 Oct 2005 00:11:46 +0000 (GMT) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (localhost.localdomain [127.0.0.1]) by odin.ac.hmc.edu (8.13.0/8.13.0) with ESMTP id j9E0Bhq2021224; Thu, 13 Oct 2005 17:11:43 -0700 Received: (from brdavis@localhost) by odin.ac.hmc.edu (8.13.0/8.13.0/Submit) id j9E0Bhrq021223; Thu, 13 Oct 2005 17:11:43 -0700 Date: Thu, 13 Oct 2005 17:11:43 -0700 From: Brooks Davis To: Dan Langille Message-ID: <20051014001143.GA18844@odin.ac.hmc.edu> References: <434EBD73.21640.81DF45B2@localhost> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="/04w6evG8XlLl3ft" Content-Disposition: inline In-Reply-To: <434EBD73.21640.81DF45B2@localhost> User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new X-Spam-Status: No, hits=0.0 required=8.0 tests=none autolearn=no version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on odin.ac.hmc.edu Cc: freebsd-emulation@freebsd.org Subject: Re: cross platform building under emulation 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: Fri, 14 Oct 2005 00:11:47 -0000 --/04w6evG8XlLl3ft Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Oct 13, 2005 at 08:02:59PM -0400, Dan Langille wrote: > My usual practice when building world is to do it once on the fastest=20 > box I have, then do installs via NFS mounts. I need to do this for=20 > FreeBSD 4.*, 5.*, 6.*, and -current. My goal is to do all this with=20 > just one box. At first I thought of multi-booting the box. >=20 > Tonight at the OCUUG meeting , someone=20 > mentioned doing this with emulation. After hearing that, multi- > booting doesn't sound as good. >=20 > The box in question is an AMD 64 3000+ with 1GB of RAM. The m/b is a=20 > KV8E Deluxe, which gives me the option of onboard RAID-1 SATA. >=20 > What do you think of this idea? What tools would you suggest? >=20 > The host enviroment will also be used as my main database server=20 > running FreeBSD 6, most likely in AMD mode. It should work, but might be a bit slow. You could also consider using Kris's trick of running older userlands in chroots on -current (or 6.x in your case) kernels like he does on the ports cluster. I think his BSDCan paper has the details on the bits you need to replace to deal with kernel incompatabilities. The nice that is that you don't have any emulation in the way. I think Peter Wemm said they were also doing i386 chroots on amd64 kernels at Yahoo! so that may deal with that issue. At least until 7.0 comes you should be able to do -current buildworld and buildkernel on 6.x machines so that won't be a problem (if it is, scream since breaking that is bad :). -- Brooks --=20 Any statement of the form "X is the one, true Y" is FALSE. PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4 --/04w6evG8XlLl3ft Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQFDTve+XY6L6fI4GtQRAkSMAKCDa+9PIcn/gYs+g8z1aCAGmaIPKwCg1XmV KgzkNKspYnZCvct7dLf9ZEc= =sMS7 -----END PGP SIGNATURE----- --/04w6evG8XlLl3ft-- From owner-freebsd-emulation@FreeBSD.ORG Fri Oct 14 00:18:38 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 C1CF616A41F for ; Fri, 14 Oct 2005 00:18:38 +0000 (GMT) (envelope-from dan@langille.org) Received: from m21.unixathome.org (m21.unixathome.org [205.150.199.217]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3756B43D49 for ; Fri, 14 Oct 2005 00:18:38 +0000 (GMT) (envelope-from dan@langille.org) Received: from localhost (localhost [205.150.199.217]) by m21.unixathome.org (Postfix) with ESMTP id A0423C36F; Thu, 13 Oct 2005 20:18:37 -0400 (EDT) Received: from m21.unixathome.org ([205.150.199.217]) by localhost (m21.unixathome.org [205.150.199.217]) (amavisd-new, port 10024) with ESMTP id 03692-05; Thu, 13 Oct 2005 20:18:37 -0400 (EDT) Received: from bast.unixathome.org (bast.unixathome.org [70.26.229.230]) by m21.unixathome.org (Postfix) with ESMTP id D4D43BFB0; Thu, 13 Oct 2005 20:18:36 -0400 (EDT) Received: from wocker (wocker.unixathome.org [10.55.0.99]) by bast.unixathome.org (Postfix) with ESMTP id 85F5D3D3B; Thu, 13 Oct 2005 20:18:36 -0400 (EDT) From: "Dan Langille" To: Brooks Davis Date: Thu, 13 Oct 2005 20:18:36 -0400 MIME-Version: 1.0 Message-ID: <434EC11C.30648.81ED9024@localhost> Priority: normal In-reply-to: <20051014001143.GA18844@odin.ac.hmc.edu> References: <434EBD73.21640.81DF45B2@localhost> X-mailer: Pegasus Mail for Windows (4.21c) Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Content-description: Mail message body X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at unixathome.org Cc: freebsd-emulation@freebsd.org Subject: Re: cross platform building under emulation 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: Fri, 14 Oct 2005 00:18:38 -0000 On 13 Oct 2005 at 17:11, Brooks Davis wrote: > On Thu, Oct 13, 2005 at 08:02:59PM -0400, Dan Langille wrote: > > My usual practice when building world is to do it once on the fastest > > box I have, then do installs via NFS mounts. I need to do this for > > FreeBSD 4.*, 5.*, 6.*, and -current. My goal is to do all this with > > just one box. At first I thought of multi-booting the box. > > > > Tonight at the OCUUG meeting , someone > > mentioned doing this with emulation. After hearing that, multi- > > booting doesn't sound as good. > > > > The box in question is an AMD 64 3000+ with 1GB of RAM. The m/b is a > > KV8E Deluxe, which gives me the option of onboard RAID-1 SATA. > > > > What do you think of this idea? What tools would you suggest? > > > > The host enviroment will also be used as my main database server > > running FreeBSD 6, most likely in AMD mode. > > It should work, but might be a bit slow. > > You could also consider using Kris's trick of running older userlands in > chroots on -current (or 6.x in your case) kernels like he does on the > ports cluster. I think his BSDCan paper has the details on the bits you > need to replace to deal with kernel incompatabilities. The nice that is > that you don't have any emulation in the way. I think Peter Wemm said > they were also doing i386 chroots on amd64 kernels at Yahoo! so that may > deal with that issue. At least until 7.0 comes you should be able to do > -current buildworld and buildkernel on 6.x machines so that won't be a > problem (if it is, scream since breaking that is bad :). Gidday Brooks.. What about jails? -- Dan Langille : http://www.langille.org/ BSDCan - The Technical BSD Conference - http://www.bsdcan.org/ From owner-freebsd-emulation@FreeBSD.ORG Fri Oct 14 00:23:38 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 657DE16A41F for ; Fri, 14 Oct 2005 00:23:38 +0000 (GMT) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (Odin.AC.HMC.Edu [134.173.32.75]) by mx1.FreeBSD.org (Postfix) with ESMTP id 066C343D53 for ; Fri, 14 Oct 2005 00:23:37 +0000 (GMT) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (localhost.localdomain [127.0.0.1]) by odin.ac.hmc.edu (8.13.0/8.13.0) with ESMTP id j9E0Nb8I022934; Thu, 13 Oct 2005 17:23:37 -0700 Received: (from brdavis@localhost) by odin.ac.hmc.edu (8.13.0/8.13.0/Submit) id j9E0Nbtf022933; Thu, 13 Oct 2005 17:23:37 -0700 Date: Thu, 13 Oct 2005 17:23:37 -0700 From: Brooks Davis To: Dan Langille Message-ID: <20051014002337.GB18844@odin.ac.hmc.edu> References: <434EBD73.21640.81DF45B2@localhost> <434EC11C.30648.81ED9024@localhost> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="1UWUbFP1cBYEclgG" Content-Disposition: inline In-Reply-To: <434EC11C.30648.81ED9024@localhost> User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new X-Spam-Status: No, hits=0.0 required=8.0 tests=none autolearn=no version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on odin.ac.hmc.edu Cc: freebsd-emulation@freebsd.org Subject: Re: cross platform building under emulation 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: Fri, 14 Oct 2005 00:23:38 -0000 --1UWUbFP1cBYEclgG Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Oct 13, 2005 at 08:18:36PM -0400, Dan Langille wrote: > On 13 Oct 2005 at 17:11, Brooks Davis wrote: >=20 > > On Thu, Oct 13, 2005 at 08:02:59PM -0400, Dan Langille wrote: > > > My usual practice when building world is to do it once on the fastest= =20 > > > box I have, then do installs via NFS mounts. I need to do this for= =20 > > > FreeBSD 4.*, 5.*, 6.*, and -current. My goal is to do all this with= =20 > > > just one box. At first I thought of multi-booting the box. > > >=20 > > > Tonight at the OCUUG meeting , someone=20 > > > mentioned doing this with emulation. After hearing that, multi- > > > booting doesn't sound as good. > > >=20 > > > The box in question is an AMD 64 3000+ with 1GB of RAM. The m/b is a= =20 > > > KV8E Deluxe, which gives me the option of onboard RAID-1 SATA. > > >=20 > > > What do you think of this idea? What tools would you suggest? > > >=20 > > > The host enviroment will also be used as my main database server=20 > > > running FreeBSD 6, most likely in AMD mode. > >=20 > > It should work, but might be a bit slow. > >=20 > > You could also consider using Kris's trick of running older userlands in > > chroots on -current (or 6.x in your case) kernels like he does on the > > ports cluster. I think his BSDCan paper has the details on the bits you > > need to replace to deal with kernel incompatabilities. The nice that is > > that you don't have any emulation in the way. I think Peter Wemm said > > they were also doing i386 chroots on amd64 kernels at Yahoo! so that may > > deal with that issue. At least until 7.0 comes you should be able to do > > -current buildworld and buildkernel on 6.x machines so that won't be a > > problem (if it is, scream since breaking that is bad :). >=20 > Gidday Brooks.. What about jails? For this application, I'd say jails are probably overkill. It would give you the ability to run an ssh daemon on the jail which could be interesting and would be more like an emulated environment, but I don't think you need the extra hardening they give since you can invoke the make commands through chroot commands. I'm using a similar setup to install ports in a root file system for cluster that I distribute via NFS. In may case the buildworld happen natively, but the port builds occur within the chroot. -- Brooks --=20 Any statement of the form "X is the one, true Y" is FALSE. PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4 --1UWUbFP1cBYEclgG Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQFDTvqIXY6L6fI4GtQRAnQRAKChgpGl7Oi43EdQaXJ/rbN/5k+pDwCfRxKB HkwNLY7T6GsIHp7Kw71S6jQ= =+og+ -----END PGP SIGNATURE----- --1UWUbFP1cBYEclgG-- From owner-freebsd-emulation@FreeBSD.ORG Fri Oct 14 00:49:27 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 616BE16A41F for ; Fri, 14 Oct 2005 00:49:27 +0000 (GMT) (envelope-from dan@langille.org) Received: from m21.unixathome.org (m21.unixathome.org [205.150.199.217]) by mx1.FreeBSD.org (Postfix) with ESMTP id D3CB043D45 for ; Fri, 14 Oct 2005 00:49:26 +0000 (GMT) (envelope-from dan@langille.org) Received: from localhost (localhost [205.150.199.217]) by m21.unixathome.org (Postfix) with ESMTP id F2846C36F; Thu, 13 Oct 2005 20:49:25 -0400 (EDT) Received: from m21.unixathome.org ([205.150.199.217]) by localhost (m21.unixathome.org [205.150.199.217]) (amavisd-new, port 10024) with ESMTP id 03056-09; Thu, 13 Oct 2005 20:49:25 -0400 (EDT) Received: from bast.unixathome.org (bast.unixathome.org [70.26.229.230]) by m21.unixathome.org (Postfix) with ESMTP id 27E28BFB0; Thu, 13 Oct 2005 20:49:24 -0400 (EDT) Received: from wocker (wocker.unixathome.org [10.55.0.99]) by bast.unixathome.org (Postfix) with ESMTP id C07353D3B; Thu, 13 Oct 2005 20:49:24 -0400 (EDT) From: "Dan Langille" To: Brooks Davis , Brooks Davis Date: Thu, 13 Oct 2005 20:49:24 -0400 MIME-Version: 1.0 Message-ID: <434EC854.31435.8209C41D@localhost> Priority: normal In-reply-to: <20051014002337.GB18844@odin.ac.hmc.edu> References: <434EC11C.30648.81ED9024@localhost> X-mailer: Pegasus Mail for Windows (4.21c) Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Content-description: Mail message body X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at unixathome.org Cc: freebsd-emulation@freebsd.org Subject: Re: cross platform building under emulation 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: Fri, 14 Oct 2005 00:49:27 -0000 On 13 Oct 2005 at 17:23, Brooks Davis wrote: > On Thu, Oct 13, 2005 at 08:18:36PM -0400, Dan Langille wrote: > > On 13 Oct 2005 at 17:11, Brooks Davis wrote: > > > > > On Thu, Oct 13, 2005 at 08:02:59PM -0400, Dan Langille wrote: > > > > My usual practice when building world is to do it once on the fastest > > > > box I have, then do installs via NFS mounts. I need to do this for > > > > FreeBSD 4.*, 5.*, 6.*, and -current. My goal is to do all this with > > > > just one box. At first I thought of multi-booting the box. > > > > > > > > Tonight at the OCUUG meeting , someone > > > > mentioned doing this with emulation. After hearing that, multi- > > > > booting doesn't sound as good. > > > > > > > > The box in question is an AMD 64 3000+ with 1GB of RAM. The m/b is a > > > > KV8E Deluxe, which gives me the option of onboard RAID-1 SATA. > > > > > > > > What do you think of this idea? What tools would you suggest? > > > > > > > > The host enviroment will also be used as my main database server > > > > running FreeBSD 6, most likely in AMD mode. > > > > > > It should work, but might be a bit slow. > > > > > > You could also consider using Kris's trick of running older userlands in > > > chroots on -current (or 6.x in your case) kernels like he does on the > > > ports cluster. I think his BSDCan paper has the details on the bits you > > > need to replace to deal with kernel incompatabilities. The nice that is > > > that you don't have any emulation in the way. I think Peter Wemm said > > > they were also doing i386 chroots on amd64 kernels at Yahoo! so that may > > > deal with that issue. At least until 7.0 comes you should be able to do > > > -current buildworld and buildkernel on 6.x machines so that won't be a > > > problem (if it is, scream since breaking that is bad :). > > > > Gidday Brooks.. What about jails? > > For this application, I'd say jails are probably overkill. It would > give you the ability to run an ssh daemon on the jail which could be > interesting and would be more like an emulated environment, but I don't > think you need the extra hardening they give since you can invoke the > make commands through chroot commands. > > I'm using a similar setup to install ports in a root file system for > cluster that I distribute via NFS. In may case the buildworld happen > natively, but the port builds occur within the chroot. Daris has got me thinking about unpacking 4.9-release/bin into a directory, and then doing a chroot. -- Dan Langille : http://www.langille.org/ BSDCan - The Technical BSD Conference - http://www.bsdcan.org/ From owner-freebsd-emulation@FreeBSD.ORG Fri Oct 14 18:58:41 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 7844116A420; Fri, 14 Oct 2005 18:58:41 +0000 (GMT) (envelope-from nox@saturn.kn-bremen.de) Received: from gwyn.kn-bremen.de (gwyn.kn-bremen.de [212.63.36.242]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8D88143D5A; Fri, 14 Oct 2005 18:58:34 +0000 (GMT) (envelope-from nox@saturn.kn-bremen.de) Received: from gwyn.kn-bremen.de (gwyn [127.0.0.1]) by gwyn.kn-bremen.de (8.13.4/8.13.4/Debian-3) with ESMTP id j9EIw72j010762; Fri, 14 Oct 2005 20:58:07 +0200 Received: from saturn.kn-bremen.de (uucp@localhost) by gwyn.kn-bremen.de (8.13.4/8.13.4/Submit) with UUCP id j9EIw7hN010760; Fri, 14 Oct 2005 20:58:07 +0200 Received: from saturn.kn-bremen.de (localhost [127.0.0.1]) by saturn.kn-bremen.de (8.13.1/8.13.1) with ESMTP id j9EItr82011672; Fri, 14 Oct 2005 20:55:53 +0200 (CEST) (envelope-from nox@saturn.kn-bremen.de) Received: (from nox@localhost) by saturn.kn-bremen.de (8.13.1/8.13.1/Submit) id j9EItoLr011671; Fri, 14 Oct 2005 20:55:50 +0200 (CEST) (envelope-from nox) From: Juergen Lock Date: Fri, 14 Oct 2005 20:55:50 +0200 To: "M. Warner Losh" Message-ID: <20051014185550.GA11501@saturn.kn-bremen.de> Mail-Followup-To: "M. Warner Losh" , jkim@freebsd.org, freebsd-current@freebsd.org, thierry@herbelot.com, jcoombs@gwi.net, bakul@BitBlocks.com, freebsd-emulation@freebsd.org References: <200510131210.55135.jkim@FreeBSD.org> <200510131428.21211.jkim@FreeBSD.org> <20051013200254.GA11267@saturn.kn-bremen.de> <20051013.172655.102656323.imp@bsdimp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20051013.172655.102656323.imp@bsdimp.com> User-Agent: Mutt/1.4.2.1i Cc: jcoombs@gwi.net, thierry@herbelot.com, freebsd-emulation@freebsd.org, freebsd-current@freebsd.org, bakul@BitBlocks.com, jkim@freebsd.org Subject: Re: Loss of ed(4) in a RC1 booted in qemu 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: Fri, 14 Oct 2005 18:58:41 -0000 On Thu, Oct 13, 2005 at 05:26:55PM -0600, M. Warner Losh wrote: > In message: <20051013200254.GA11267@saturn.kn-bremen.de> > Juergen Lock writes: > : On Thu, Oct 13, 2005 at 02:28:18PM -0400, Jung-uk Kim wrote: > : > On Thursday 13 October 2005 12:10 pm, Jung-uk Kim wrote: > : > > QEMU emulates RTL8029: > : > > > : > > ed0: port 0xc100-0xc1ff irq 11 at device 3.0 on pci0 > : > > ed0: Reserved 0x100 bytes for rid 0x10 type 4 at 0xc100 > : > > > : > > and Warner Losh MFC'd new ed(4) right before 6.0-RC1: > : > > > : > > http://docs.freebsd.org/cgi/mid.cgi?200510081800.j98I0fRI089493 > : > > > : > > The new driver does more aggressive probing and it seems QEMU > : > > cannot handle it. > : > > : > Just for the time being, you can drop the attachment in > : > ports/emulators/qemu/files directory and rebuild qemu to get ed(4) > : > back. > : > > : > Jung-uk Kim > : > : >[patch snipped] > : > : Okay, we could add this as an option to our qemu port (`-ne2kvia' or > : something like that), anyone thinks it is necessary? (I guess this > : issue will be fixed in 6.0-R?) > > I've committed patches to -current to fix this problem. The fixes > correct a minor botch in the probing code, while also adding tolerance > for the RTL8029 that's claimed to be there to not really be there. > I've posted patches to qemu that improves that RTL8029 emulation, but > those aren't required for FreeBSD to work. RC1 won't work with qemu, > patched or unpatched, due to the minor botch. RC2 and newer will have > this problem fixed. The qemu folks can include and improve upon my > patches as they see fit in the future. > > The problem with just switching to the VIA VT86C926 is that it isn't > exactly like a NE-2000. [...] Okay, how about adding this to qemu's pkg-message then: Index: pkg-message =================================================================== RCS file: /home/ncvs/ports/emulators/qemu/pkg-message,v retrieving revision 1.9 diff -u -r1.9 pkg-message --- pkg-message 10 Sep 2005 17:04:41 -0000 1.9 +++ pkg-message 14 Oct 2005 18:49:55 -0000 @@ -25,5 +25,12 @@ (see kern/84102, http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/84102), using a kernel without PREEMPTION has been reported to fix this problem. (or do an ftp install instead of installing from the emulated cdrom, and -then make a new kernel.) +then make a new kernel.) [now fixed in cvs.] +- 6.0-RC1 was released with an ed driver that doesn't like qemu's emulated +RTL8029 nic, this has been fixed in the meantime but if for some reason +you need to use that version as a guest you can temporarily add the patch +in this message: http://docs.freebsd.org/cgi/mid.cgi?200510131428.21211.jkim +(not included in the port since the used VIA VT86C926 PCI ID does not +really match the emulated nic exactly, it just `happens' to work with +6.0-RC1's driver.) ==== From owner-freebsd-emulation@FreeBSD.ORG Sat Oct 15 01:30:47 2005 Return-Path: X-Original-To: freebsd-emulation@hub.freebsd.org Delivered-To: freebsd-emulation@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4D40616A41F; Sat, 15 Oct 2005 01:30:47 +0000 (GMT) (envelope-from trevor@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0C16243D45; Sat, 15 Oct 2005 01:30:47 +0000 (GMT) (envelope-from trevor@FreeBSD.org) Received: from freefall.freebsd.org (trevor@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j9F1UkbF015066; Sat, 15 Oct 2005 01:30:46 GMT (envelope-from trevor@freefall.freebsd.org) Received: (from trevor@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j9F1UkaN015062; Sat, 15 Oct 2005 01:30:46 GMT (envelope-from trevor) Date: Sat, 15 Oct 2005 01:30:46 GMT From: Trevor Johnson Message-Id: <200510150130.j9F1UkaN015062@freefall.freebsd.org> To: trevor@FreeBSD.org, trevor@FreeBSD.org, freebsd-emulation@FreeBSD.org Cc: Subject: Re: ports/60161: Linux emulator (linux_base-8-8.0_3) doesn't work after recent update. 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: Sat, 15 Oct 2005 01:30:47 -0000 Synopsis: Linux emulator (linux_base-8-8.0_3) doesn't work after recent update. Responsible-Changed-From-To: trevor->freebsd-emulation Responsible-Changed-By: trevor Responsible-Changed-When: Sat Oct 15 01:30:03 GMT 2005 Responsible-Changed-Why: port was taken away from me http://www.freebsd.org/cgi/query-pr.cgi?pr=60161 From owner-freebsd-emulation@FreeBSD.ORG Sat Oct 15 02:27:01 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 6924316A41F for ; Sat, 15 Oct 2005 02:27:01 +0000 (GMT) (envelope-from ambrisko@ambrisko.com) Received: from mail.ambrisko.com (mail.ambrisko.com [64.174.51.43]) by mx1.FreeBSD.org (Postfix) with ESMTP id F411343D45 for ; Sat, 15 Oct 2005 02:27:00 +0000 (GMT) (envelope-from ambrisko@ambrisko.com) Received: from server2.ambrisko.com (HELO www.ambrisko.com) ([192.168.1.2]) by mail.ambrisko.com with ESMTP; 14 Oct 2005 19:27:00 -0700 Received: from ambrisko.com (localhost [127.0.0.1]) by www.ambrisko.com (8.12.11/8.12.9) with ESMTP id j9F2R07e081733; Fri, 14 Oct 2005 19:27:00 -0700 (PDT) (envelope-from ambrisko@ambrisko.com) Received: (from ambrisko@localhost) by ambrisko.com (8.12.11/8.12.11/Submit) id j9F2R0Yl081732; Fri, 14 Oct 2005 19:27:00 -0700 (PDT) (envelope-from ambrisko) From: Doug Ambrisko Message-Id: <200510150227.j9F2R0Yl081732@ambrisko.com> In-Reply-To: <434EC854.31435.8209C41D@localhost> To: Dan Langille Date: Fri, 14 Oct 2005 19:27:00 -0700 (PDT) X-Mailer: ELM [version 2.4ME+ PL94b (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII Cc: freebsd-emulation@freebsd.org Subject: Re: cross platform building under emulation 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: Sat, 15 Oct 2005 02:27:01 -0000 Dan Langille writes: | Daris has got me thinking about unpacking 4.9-release/bin into a | directory, and then doing a chroot. That sort-of works. I've done some setups for companies and get iteratively better solutions. I copy over some host bins & libs into special directories so mount, ps etc can be run from inside. I also have mods to libc so that uname & getosreldate so it can be set via env. variables so pkg_add, autoconf etc picks up the right stuff. Now this is a little trickier for old version of libc that I haven't modified locally yet so I build a stub lib. of these in the chroot then load this then LD_PRELOAD. If you don't then some things get messed up. This lets me build on a FreeBSD 6.X/amd64 host for FreeBSD 4.X/386, FreeBSD amd64 etc. I've also at times loaded in the Linux tools and made that work so I could build Linux bins in chroots. I hope to commit my changes to getosreldate(3) and uname(3). This mirrors the env. variables in /usr/bin/uname. Index: __xuname.c =================================================================== RCS file: /cvs/src/lib/libc/gen/__xuname.c,v retrieving revision 1.9 diff -u -p -r1.9 __xuname.c --- __xuname.c 1 Feb 2002 00:57:29 -0000 1.9 +++ __xuname.c 15 Oct 2005 02:24:05 -0000 @@ -41,13 +41,15 @@ __FBSDID("$FreeBSD$"); #include #include #include +#include +#include int __xuname(int namesize, void *namebuf) { int mib[2], rval; size_t len; - char *p; + char *p, *u_s, *u_r, *u_v, *u_m; int oerrno; struct xutsname { char sysname[namesize]; /* Name of this OS. */ @@ -57,18 +59,27 @@ __xuname(int namesize, void *namebuf) char machine[namesize]; /* Hardware type. */ } *name; + u_s = getenv("UNAME_s"); + u_r = getenv("UNAME_r"); + u_v = getenv("UNAME_v"); + u_m = getenv("UNAME_m"); + name = (struct xutsname *)namebuf; rval = 0; - mib[0] = CTL_KERN; - mib[1] = KERN_OSTYPE; - len = sizeof(name->sysname); - oerrno = errno; - if (sysctl(mib, 2, &name->sysname, &len, NULL, 0) == -1) { - if(errno == ENOMEM) - errno = oerrno; - else - rval = -1; + if (u_s) + strncpy(name->sysname, u_s, sizeof(name->sysname)); + else { + mib[0] = CTL_KERN; + mib[1] = KERN_OSTYPE; + len = sizeof(name->sysname); + oerrno = errno; + if (sysctl(mib, 2, &name->sysname, &len, NULL, 0) == -1) { + if(errno == ENOMEM) + errno = oerrno; + else + rval = -1; + } } name->sysname[sizeof(name->sysname) - 1] = '\0'; @@ -84,28 +95,36 @@ __xuname(int namesize, void *namebuf) } name->nodename[sizeof(name->nodename) - 1] = '\0'; - mib[0] = CTL_KERN; - mib[1] = KERN_OSRELEASE; - len = sizeof(name->release); - oerrno = errno; - if (sysctl(mib, 2, &name->release, &len, NULL, 0) == -1) { - if(errno == ENOMEM) - errno = oerrno; - else - rval = -1; + if (u_r) + strncpy(name->sysname, u_r, sizeof(name->sysname)); + else { + mib[0] = CTL_KERN; + mib[1] = KERN_OSRELEASE; + len = sizeof(name->release); + oerrno = errno; + if (sysctl(mib, 2, &name->release, &len, NULL, 0) == -1) { + if(errno == ENOMEM) + errno = oerrno; + else + rval = -1; + } } name->release[sizeof(name->release) - 1] = '\0'; /* The version may have newlines in it, turn them into spaces. */ - mib[0] = CTL_KERN; - mib[1] = KERN_VERSION; - len = sizeof(name->version); - oerrno = errno; - if (sysctl(mib, 2, &name->version, &len, NULL, 0) == -1) { - if (errno == ENOMEM) - errno = oerrno; - else - rval = -1; + if (u_v) + strncpy(name->sysname, u_v, sizeof(name->sysname)); + else { + mib[0] = CTL_KERN; + mib[1] = KERN_VERSION; + len = sizeof(name->version); + oerrno = errno; + if (sysctl(mib, 2, &name->version, &len, NULL, 0) == -1) { + if (errno == ENOMEM) + errno = oerrno; + else + rval = -1; + } } name->version[sizeof(name->version) - 1] = '\0'; for (p = name->version; len--; ++p) { @@ -117,15 +136,19 @@ __xuname(int namesize, void *namebuf) } } - mib[0] = CTL_HW; - mib[1] = HW_MACHINE; - len = sizeof(name->machine); - oerrno = errno; - if (sysctl(mib, 2, &name->machine, &len, NULL, 0) == -1) { - if (errno == ENOMEM) - errno = oerrno; - else - rval = -1; + if (u_m) + strncpy(name->sysname, u_m, sizeof(name->sysname)); + else { + mib[0] = CTL_HW; + mib[1] = HW_MACHINE; + len = sizeof(name->machine); + oerrno = errno; + if (sysctl(mib, 2, &name->machine, &len, NULL, 0) == -1) { + if (errno == ENOMEM) + errno = oerrno; + else + rval = -1; + } } name->machine[sizeof(name->machine) - 1] = '\0'; return (rval); Index: getosreldate.c =================================================================== RCS file: /cvs/src/lib/libc/gen/getosreldate.c,v retrieving revision 1.7 diff -u -p -r1.7 getosreldate.c --- getosreldate.c 12 Sep 2005 19:52:41 -0000 1.7 +++ getosreldate.c 15 Oct 2005 02:24:05 -0000 @@ -39,6 +39,7 @@ __FBSDID("$FreeBSD$"); #include #include +#include #include @@ -49,10 +50,16 @@ getosreldate(void) size_t size; int value; - mib[0] = CTL_KERN; - mib[1] = KERN_OSRELDATE; - size = sizeof value; - if (sysctl(mib, 2, &value, &size, NULL, 0) == -1) - return (-1); + char *temp; + + if ((temp = getenv("OSVERSION"))) + value = atoi(temp); + else { + mib[0] = CTL_KERN; + mib[1] = KERN_OSRELDATE; + size = sizeof value; + if (sysctl(mib, 2, &value, &size, NULL, 0) == -1) + return (-1); + } return (value); } Does anyone have any objections? Thanks, Doug A.