From owner-freebsd-emulation@FreeBSD.ORG Sun Apr 30 01:04:26 2006 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 07DAD16A400 for ; Sun, 30 Apr 2006 01:04:26 +0000 (UTC) (envelope-from qemu-l@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 2CFAA43D46 for ; Sun, 30 Apr 2006 01:04:24 +0000 (GMT) (envelope-from qemu-l@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-3sarge1) with ESMTP id k3U14MvI026263 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sun, 30 Apr 2006 03:04: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 k3U14M7D026261; Sun, 30 Apr 2006 03:04:22 +0200 Received: from saturn.kn-bremen.de (nox@localhost [127.0.0.1]) by saturn.kn-bremen.de (8.13.3/8.13.1) with ESMTP id k3U0kl4F070668; Sun, 30 Apr 2006 02:46:47 +0200 (CEST) (envelope-from nox@saturn.kn-bremen.de) Received: (from nox@localhost) by saturn.kn-bremen.de (8.13.3/8.13.1/Submit) id k3U0klnU070667; Sun, 30 Apr 2006 02:46:47 +0200 (CEST) (envelope-from nox) From: Juergen Lock Date: Sun, 30 Apr 2006 02:46:46 +0200 To: Igor Kovalenko Message-ID: <20060430004646.GA70632@saturn.kn-bremen.de> Mail-Followup-To: Igor Kovalenko , qemu-devel@nongnu.org, freebsd-emulation@freebsd.org References: <20060427203718.GA15953@saturn.kn-bremen.de> <445241DE.9020909@mail.ru> <20060428221142.GA11504@saturn.kn-bremen.de> <44530C50.6040902@mail.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <44530C50.6040902@mail.ru> User-Agent: Mutt/1.4.2.1i Cc: freebsd-emulation@freebsd.org, qemu-devel@nongnu.org Subject: Re: playing with qemu's 8139 nic and FreeBSD (loopback mode missing?) 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: Sun, 30 Apr 2006 01:04:26 -0000 On Sat, Apr 29, 2006 at 10:48:48AM +0400, Igor Kovalenko wrote: > Juergen Lock wrote: > > On Fri, Apr 28, 2006 at 08:25:02PM +0400, Igor Kovalenko wrote: > >> Juergen Lock wrote: > >>> I played with > >>> qemu -monitor stdio -m 256 -cdrom 6.1-RC1-i386-disc1.iso -usb -soundhw es1370 -kernel-kqemu -net nic,model=rtl8139 -net user > >>> and got it as far as > >>> re0: diagnostic failed, failed to receive packet in loopback mode > >>> (followed by a panic :) with the (experimental) patches below. > >>> > >>> Anyone in the mood to implement loopback mode for this nic? > >>> > >>> Hmm actually... I just found the original posting in the archive, > >>> is C+ mode implemented now? If not re is probably not what I want, > >> The rtl8139 is set up with PCI rev ID 0x20 which should be enough for OS driver > >> to detect C+ mode features. C+ mode is OK, tested with Linux driver. > > > > Cool, so I want FreeBSD's re driver. That one checks TxConfig > > tho, as changed in my patch (inside #if 0). And when changed, > > it still doesn't work as mentioned above because the driver expects > > loopback mode to be working. > >>> but the rl driver that it attaches without that #if 0'd (now) hunk > >>> below doesnt seem to be able to get data thru either and I get > >>> rl0: watchdog timeout > >>> in dmesg, which usually means the driver doesnt receive interrupts. > >>> > >>> What the heck, I'll append a log of a run just doing in fixit->cdrom: > >>> ifconfig rl0 10.0.2.15 > >>> and then exiting (which is enough to trigger the watchdog timeout...) > >>> > >> I'm too lasy to test with fresh freebsd installation :) > > > > No need to install FreeBSD, you can get away by just using > > fixit mode of an install iso, i.e. disc1. (which actually is > > what I did above. :) > > > > You can look at 6.1RC's re driver here: > > http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/dev/re/if_re.c?annotate=1.46.2.14 > > which includes: > > http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/pci/if_rlreg.h?annotate=1.51.2.3 > > > > And 6.1RC disc1 iso is e.g. here: > > ftp://ftp.ru.freebsd.org:/pub/FreeBSD/ISO-IMAGES-i386/6.1/6.1-RC1-i386-disc1.iso > > > > > > Thanks, that iso pointer made it. > :) > Please try the following on top of your patch, at least ping should now work: Thanks, that seems to get the rl driver going. Now to fix C+ mode (re driver) change the #if 0 in my patch to #if 1... From owner-freebsd-emulation@FreeBSD.ORG Sun Apr 30 13:30:19 2006 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 873FA16A400 for ; Sun, 30 Apr 2006 13:30:19 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 53B4A43D45 for ; Sun, 30 Apr 2006 13:30:19 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k3UDUITK028991 for ; Sun, 30 Apr 2006 13:30:18 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k3UDUICi028990; Sun, 30 Apr 2006 13:30:18 GMT (envelope-from gnats) Date: Sun, 30 Apr 2006 13:30:18 GMT Message-Id: <200604301330.k3UDUICi028990@freefall.freebsd.org> To: freebsd-emulation@FreeBSD.org From: Peter B Cc: Subject: Re: kern/96438: Executeing a linux binary within jail causes reboot. X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Peter B List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Apr 2006 13:30:19 -0000 The following reply was made to PR kern/96438; it has been noted by GNATS. From: Peter B To: maxim@macomnet.ru (Maxim Konovalov) Cc: FreeBSD-gnats-submit@FreeBSD.org, freebsd-bugs@FreeBSD.org Subject: Re: kern/96438: Executeing a linux binary within jail causes reboot. Date: Sun, 30 Apr 2006 15:27:38 +0200 (MEST) >> >Description: >> Launching a linux binary like tcsh as the initial command from >> jail(8) seem to cause system reboot. Second occurence is that in >> some circumstances _within_ jail(8) executeing linux binary cause >> the system to reboot in the same way. Because the machine in >> question is a remote. I have not watched console while this >> happends. > >Can't reproduce on my 6.0-STABLE box and todat HEAD: > >shy# uname -a >FreeBSD shy.macomnet.ru 6.0-STABLE FreeBSD 6.0-STABLE #0: Sun Jan 29 >11:21:40 MSK 2006 maxim@shy.macomnet.ru:/usr/obj/usr/src/sys/GENERIC i386 >shy# jail / test 127.0.0.1 /compat/linux/bin/bash >bash-2.05b# uname -a >Linux test 2.4.2 FreeBSD 6.0-STABLE #0: Sun Jan 29 11:21:40 MSK 2006 >i586 i586 i386 GNU/Linux >bash-2.05b# exit > >Could you verify that with the latest RELENG_6? I'll have to make a setup for that. Might take some days due other tasks. It might be that I setup the jail tree to not use compat. But rather have a complete linux system tree at jail root. Ie linux files in /bin/ not /compat/linux/bin/ That way when software like Xilinx tries to modify/access /usr/X11R6 files it get's the linux files it expect. From owner-freebsd-emulation@FreeBSD.ORG Sun Apr 30 17:38:32 2006 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 4EDC316A405; Sun, 30 Apr 2006 17:38:32 +0000 (UTC) (envelope-from Alexander@Leidinger.net) Received: from www.ebusiness-leidinger.de (jojo.ms-net.de [84.16.236.246]) by mx1.FreeBSD.org (Postfix) with ESMTP id AD2FB43D55; Sun, 30 Apr 2006 17:38:31 +0000 (GMT) (envelope-from Alexander@Leidinger.net) Received: from Andro-Beta.Leidinger.net (p54A5F90B.dip.t-dialin.net [84.165.249.11]) (authenticated bits=0) by www.ebusiness-leidinger.de (8.13.4/8.13.1) with ESMTP id k3UHVBVZ075590; Sun, 30 Apr 2006 19:31:12 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from Magellan.Leidinger.net (Magellan.Leidinger.net [192.168.1.1]) by Andro-Beta.Leidinger.net (8.13.4/8.13.3) with ESMTP id k3UHcINd024419; Sun, 30 Apr 2006 19:38:19 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Date: Sun, 30 Apr 2006 19:38:59 +0200 From: Alexander Leidinger To: arch@freebsd.org Message-ID: <20060430193859.53c65eca@Magellan.Leidinger.net> X-Mailer: Sylpheed-Claws 2.1.1 (GTK+ 2.8.17; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new Cc: emulation@freebsd.org, Scott Long , Wilko Bulte Subject: CFR: Removing the linuxolator on alpha 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: Sun, 30 Apr 2006 17:38:32 -0000 Hi, at http://www.Leidinger.net/FreeBSD/current-patches/linux.diff I have a patch which disconnects the linuxolator on our tier-2 architecture "Alpha". It also moves linprocfs from the generic to the architecture specific "options" and "files" files, since I think linprocfs should only be build on those architectures where it makes sense... those with a linuxolator. The reasons for the removal are: - we don't have a linux_base port which supports Alpha and at the same time is not outdated/obsoleted upstream/in a good condition/ currently working - the upcomming new default linux base port is based upon Fedora Core 3 (security support via http://www.fedoralegacy.org), which isn't available for Alpha (like the current default linux base port which is based upon Red Hat 8) - nobody answered my request for testing it ~1 month ago on current@ and alpha@ (it doesn't surprises me, see first point) - a SoC student wouldn't have to waste time on something which nobody is willing to test Removing the alpha specific linuxolator files and removing the alpha specific hack in the MI files will be done in a separate commit (a little bit later). Please send objections/suggestions for parts of the patch my way. Please direct objections to the removal to the trashcan (except you want to provide patches for the ports collection to make it work before the start of the work in the SoC). Bye, Alexander. -- Secret hacker rule #11: hackers read manuals. http://www.Leidinger.net Alexander @ Leidinger.net GPG fingerprint = C518 BC70 E67F 143F BE91 3365 79E2 9C60 B006 3FE7 WL http://www.amazon.de/exec/obidos/registry/1FZ4DTHQE9PQ8/ref=wl_em_to/ From owner-freebsd-emulation@FreeBSD.ORG Sun Apr 30 17:40:40 2006 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 EB5A016A403; Sun, 30 Apr 2006 17:40:40 +0000 (UTC) (envelope-from scottl@samsco.org) Received: from pooker.samsco.org (pooker.samsco.org [168.103.85.57]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4321043D58; Sun, 30 Apr 2006 17:40:35 +0000 (GMT) (envelope-from scottl@samsco.org) Received: from [192.168.254.11] (junior.samsco.home [192.168.254.11]) (authenticated bits=0) by pooker.samsco.org (8.13.4/8.13.4) with ESMTP id k3UHeYws025163; Sun, 30 Apr 2006 11:40:34 -0600 (MDT) (envelope-from scottl@samsco.org) Message-ID: <4454F699.7030507@samsco.org> Date: Sun, 30 Apr 2006 11:40:41 -0600 From: Scott Long User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.12) Gecko/20051230 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Alexander Leidinger References: <20060430193859.53c65eca@Magellan.Leidinger.net> In-Reply-To: <20060430193859.53c65eca@Magellan.Leidinger.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.4 required=3.8 tests=ALL_TRUSTED autolearn=failed version=3.1.1 X-Spam-Checker-Version: SpamAssassin 3.1.1 (2006-03-10) on pooker.samsco.org Cc: emulation@freebsd.org, arch@freebsd.org, Wilko Bulte Subject: Re: CFR: Removing the linuxolator on alpha 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: Sun, 30 Apr 2006 17:40:41 -0000 Alexander Leidinger wrote: > Hi, > > at http://www.Leidinger.net/FreeBSD/current-patches/linux.diff I have a > patch which disconnects the linuxolator on our tier-2 architecture > "Alpha". It also moves linprocfs from the generic to the architecture > specific "options" and "files" files, since I think linprocfs should > only be build on those architectures where it makes sense... those with > a linuxolator. > > The reasons for the removal are: > - we don't have a linux_base port which supports Alpha and at the > same time is not outdated/obsoleted upstream/in a good condition/ > currently working > - the upcomming new default linux base port is based upon Fedora > Core 3 (security support via http://www.fedoralegacy.org), which > isn't available for Alpha (like the current default linux base > port which is based upon Red Hat 8) > - nobody answered my request for testing it ~1 month ago on > current@ and alpha@ (it doesn't surprises me, see first point) > - a SoC student wouldn't have to waste time on something which > nobody is willing to test > > Removing the alpha specific linuxolator files and removing the alpha > specific hack in the MI files will be done in a separate commit (a > little bit later). > > Please send objections/suggestions for parts of the patch my way. > Please direct objections to the removal to the trashcan (except you > want to provide patches for the ports collection to make it work before > the start of the work in the SoC). > > Bye, > Alexander. > I highly support this. Scott From owner-freebsd-emulation@FreeBSD.ORG Sun Apr 30 21:00:39 2006 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 1F72716A482 for ; Sun, 30 Apr 2006 21:00:39 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 99CB643D82 for ; Sun, 30 Apr 2006 21:00:35 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k3UL0Y4p053696 for ; Sun, 30 Apr 2006 21:00:34 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k3UL0YBa053695; Sun, 30 Apr 2006 21:00:34 GMT (envelope-from gnats) Date: Sun, 30 Apr 2006 21:00:34 GMT Message-Id: <200604302100.k3UL0YBa053695@freefall.freebsd.org> To: freebsd-emulation@FreeBSD.org From: Kris Kennaway Cc: Subject: Re: kern/96438: Executeing a linux binary within jail causes reboot. X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Kris Kennaway List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Apr 2006 21:00:39 -0000 The following reply was made to PR kern/96438; it has been noted by GNATS. From: Kris Kennaway To: Peter B Cc: Maxim Konovalov , freebsd-bugs@FreeBSD.org, FreeBSD-gnats-submit@FreeBSD.org Subject: Re: kern/96438: Executeing a linux binary within jail causes reboot. Date: Sun, 30 Apr 2006 17:00:11 -0400 --EeQfGwPcQSOJBaQU Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Apr 30, 2006 at 03:27:38PM +0200, Peter B wrote: > >> >Description: > >> Launching a linux binary like tcsh as the initial command from > >> jail(8) seem to cause system reboot. Second occurence is that in > >> some circumstances _within_ jail(8) executeing linux binary cause > >> the system to reboot in the same way. Because the machine in > >> question is a remote. I have not watched console while this > >> happends. > > > >Can't reproduce on my 6.0-STABLE box and todat HEAD: > > > >shy# uname -a > >FreeBSD shy.macomnet.ru 6.0-STABLE FreeBSD 6.0-STABLE #0: Sun Jan 29 > >11:21:40 MSK 2006 maxim@shy.macomnet.ru:/usr/obj/usr/src/sys/GENERIC= i386 > >shy# jail / test 127.0.0.1 /compat/linux/bin/bash > >bash-2.05b# uname -a > >Linux test 2.4.2 FreeBSD 6.0-STABLE #0: Sun Jan 29 11:21:40 MSK 2006 > >i586 i586 i386 GNU/Linux > >bash-2.05b# exit > > > >Could you verify that with the latest RELENG_6? >=20 > I'll have to make a setup for that. Might take some days due other tasks. >=20 > It might be that I setup the jail tree to not use compat. But rather have > a complete linux system tree at jail root. Ie linux files in /bin/ not > /compat/linux/bin/ It shouldn't matter as long as they are really linux binaries (i.e. brandelf(1) is correct). If they are linux binaries branded as FreeBSD then running them will easily reboot your machine (since one of the common linux syscalls has the same syscall number as reboot(2) on FreeBSD. Kris --EeQfGwPcQSOJBaQU Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (FreeBSD) iD8DBQFEVSVaWry0BWjoQKURAqZRAJ9UXVOkkn0n9FNK9/6TyUzKo3lifACfW/t1 MpikXJyKIK/lKPutLgm1cTo= =n0hu -----END PGP SIGNATURE----- --EeQfGwPcQSOJBaQU-- From owner-freebsd-emulation@FreeBSD.ORG Mon May 1 11:02:26 2006 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 7167916A405 for ; Mon, 1 May 2006 11:02:26 +0000 (UTC) (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 7508A43D45 for ; Mon, 1 May 2006 11:02:25 +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.4/8.13.4) with ESMTP id k41B2PLG008936 for ; Mon, 1 May 2006 11:02:25 GMT (envelope-from owner-bugmaster@freebsd.org) Received: (from peter@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k41B2NWG008930 for freebsd-emulation@freebsd.org; Mon, 1 May 2006 11:02:23 GMT (envelope-from owner-bugmaster@freebsd.org) Date: Mon, 1 May 2006 11:02:23 GMT Message-Id: <200605011102.k41B2NWG008930@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: peter set sender to owner-bugmaster@freebsd.org using -f From: FreeBSD bugmaster To: freebsd-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, 01 May 2006 11:02:26 -0000 Current FreeBSD problem reports Critical problems Serious problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2000/09/22] kern/21463 emulation Linux compatability mode should not allow f [2002/11/07] kern/45023 emulation [linux] [patch] flexlm does not run with f [2003/09/24] kern/57192 emulation [linux] [hang] linux-ibm-java1.4 freeze f [2005/01/25] ports/76644 emulation FreeBSD 5.3 will freeze or crash when run o [2005/02/19] kern/77710 emulation [linux] Linux page fault sigcontext infor o [2005/12/27] ports/90958 emulation linux-* are not built on amd64 o [2006/01/17] ports/91911 emulation [PATCH]: x11-toolkits/linux-gtk2: distfil o [2006/02/09] ports/93106 emulation acroread7 cannot locate /usr/local/bin/lp o [2006/03/20] ports/94714 emulation linux-pango fails to install: failed depe o [2006/04/27] kern/96438 emulation [linux] Executing a linux binary within j 10 problems total. Non-critical problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [1999/04/16] kern/11165 emulation [ibcs2] IBCS2 doesn't work correctly with f [2001/08/14] kern/29698 emulation [linux] [patch] linux ipcs doesn'work f [2002/06/12] kern/39201 emulation [linux] [patch] ptrace(2) and rfork(RFLIN o [2002/08/11] kern/41543 emulation [patch] feature request: easier wine/w23 o [2003/08/21] kern/55835 emulation [linux] [patch] Linux IPC emulation missi f [2004/10/19] ports/72865 emulation emulators/vmware3 crashes on 5.3-STABLE a [2004/10/20] kern/72920 emulation [linux]: path "prefixing" is not done on o [2004/11/10] kern/73777 emulation [linux] [patch] linux emulation: root dir f [2005/10/17] ports/87571 emulation java/jdk15: Port-Installation Java 1.5 Fr o [2006/01/04] kern/91293 emulation [svr4] [patch] *Experimental* Update to t o [2006/01/25] ports/92330 emulation linux-pango fails to install o [2006/02/01] kern/92671 emulation [patch] [linux] Fix for Maple 10: impleme 12 problems total. From owner-freebsd-emulation@FreeBSD.ORG Mon May 1 11:10:27 2006 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 2CDC016A440; Mon, 1 May 2006 11:10:27 +0000 (UTC) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id D608643D55; Mon, 1 May 2006 11:10:26 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (netchild@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k41BAQMO012513; Mon, 1 May 2006 11:10:26 GMT (envelope-from netchild@freefall.freebsd.org) Received: (from netchild@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k41BAQZ5012509; Mon, 1 May 2006 11:10:26 GMT (envelope-from netchild) Date: Mon, 1 May 2006 11:10:26 GMT From: Alexander Leidinger Message-Id: <200605011110.k41BAQZ5012509@freefall.freebsd.org> To: paulbeard@gmail.com, netchild@FreeBSD.org, freebsd-emulation@FreeBSD.org Cc: Subject: Re: ports/94714: linux-pango fails to install: failed dependency? 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, 01 May 2006 11:10:39 -0000 Synopsis: linux-pango fails to install: failed dependency? State-Changed-From-To: open->closed State-Changed-By: netchild State-Changed-When: Mon May 1 11:07:51 UTC 2006 State-Changed-Why: This is not a linux-pango problem, but probably a hosed environment (either a non-default PATH, or using a non-default linux base or something like this). http://www.freebsd.org/cgi/query-pr.cgi?pr=94714 From owner-freebsd-emulation@FreeBSD.ORG Mon May 1 11:31:15 2006 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 D78AD16A404; Mon, 1 May 2006 11:31:15 +0000 (UTC) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 93D0643D46; Mon, 1 May 2006 11:31:15 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (netchild@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k41BVFAU014900; Mon, 1 May 2006 11:31:15 GMT (envelope-from netchild@freefall.freebsd.org) Received: (from netchild@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k41BVFH0014896; Mon, 1 May 2006 11:31:15 GMT (envelope-from netchild) Date: Mon, 1 May 2006 11:31:15 GMT From: Alexander Leidinger Message-Id: <200605011131.k41BVFH0014896@freefall.freebsd.org> To: hdiwan@wits2020.net, netchild@FreeBSD.org, freebsd-emulation@FreeBSD.org Cc: Subject: Re: kern/57192: [linux] [hang] linux-ibm-java1.4 freeze 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, 01 May 2006 11:31:15 -0000 Synopsis: [linux] [hang] linux-ibm-java1.4 freeze State-Changed-From-To: feedback->closed State-Changed-By: netchild State-Changed-When: Mon May 1 11:30:38 UTC 2006 State-Changed-Why: Close. No feedback in the last ~5 months. http://www.freebsd.org/cgi/query-pr.cgi?pr=57192 From owner-freebsd-emulation@FreeBSD.ORG Mon May 1 11:33:54 2006 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 1D75316A405; Mon, 1 May 2006 11:33:54 +0000 (UTC) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id C523443D45; Mon, 1 May 2006 11:33:53 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (netchild@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k41BXr7g015037; Mon, 1 May 2006 11:33:53 GMT (envelope-from netchild@freefall.freebsd.org) Received: (from netchild@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k41BXrUH015033; Mon, 1 May 2006 11:33:53 GMT (envelope-from netchild) Date: Mon, 1 May 2006 11:33:53 GMT From: Alexander Leidinger Message-Id: <200605011133.k41BXrUH015033@freefall.freebsd.org> To: czcc@163.com, netchild@FreeBSD.org, freebsd-emulation@FreeBSD.org Cc: Subject: Re: ports/76644: FreeBSD 5.3 will freeze or crash when run vmware on i386 platform with P4 1.7G CPU and ATI Video Card 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, 01 May 2006 11:33:54 -0000 Synopsis: FreeBSD 5.3 will freeze or crash when run vmware on i386 platform with P4 1.7G CPU and ATI Video Card State-Changed-From-To: feedback->closed State-Changed-By: netchild State-Changed-When: Mon May 1 11:33:21 UTC 2006 State-Changed-Why: The vmware port was updated to print a message regarding this at install time. http://www.freebsd.org/cgi/query-pr.cgi?pr=76644 From owner-freebsd-emulation@FreeBSD.ORG Mon May 1 11:37:57 2006 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 AAC7716A400; Mon, 1 May 2006 11:37:57 +0000 (UTC) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 64FD943D49; Mon, 1 May 2006 11:37:57 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (netchild@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k41BbvQS015241; Mon, 1 May 2006 11:37:57 GMT (envelope-from netchild@freefall.freebsd.org) Received: (from netchild@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k41Bbv0i015237; Mon, 1 May 2006 11:37:57 GMT (envelope-from netchild) Date: Mon, 1 May 2006 11:37:57 GMT From: Alexander Leidinger Message-Id: <200605011137.k41Bbv0i015237@freefall.freebsd.org> To: netchild@FreeBSD.org, freebsd-emulation@FreeBSD.org, netchild@FreeBSD.org Cc: Subject: Re: ports/90958: linux-* are not built on amd64 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, 01 May 2006 11:37:57 -0000 Synopsis: linux-* are not built on amd64 Responsible-Changed-From-To: freebsd-emulation->netchild Responsible-Changed-By: netchild Responsible-Changed-When: Mon May 1 11:36:05 UTC 2006 Responsible-Changed-Why: The upcomming update of the default linux base port depends on patches, which also will fix this problem. Since I will be the committer which commits this, I take this PR to have a better overwiev of related PR's. http://www.freebsd.org/cgi/query-pr.cgi?pr=90958 From owner-freebsd-emulation@FreeBSD.ORG Mon May 1 11:41:14 2006 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 95F9C16A401; Mon, 1 May 2006 11:41:14 +0000 (UTC) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5182543D45; Mon, 1 May 2006 11:41:14 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (netchild@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k41BfEK9015454; Mon, 1 May 2006 11:41:14 GMT (envelope-from netchild@freefall.freebsd.org) Received: (from netchild@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k41BfEHt015450; Mon, 1 May 2006 11:41:14 GMT (envelope-from netchild) Date: Mon, 1 May 2006 11:41:14 GMT From: Alexander Leidinger Message-Id: <200605011141.k41BfEHt015450@freefall.freebsd.org> To: netchild@FreeBSD.org, freebsd-emulation@FreeBSD.org, netchild@FreeBSD.org Cc: Subject: Re: ports/91911: [PATCH]: x11-toolkits/linux-gtk2: distfile unfetchable 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, 01 May 2006 11:41:14 -0000 Synopsis: [PATCH]: x11-toolkits/linux-gtk2: distfile unfetchable Responsible-Changed-From-To: freebsd-emulation->netchild Responsible-Changed-By: netchild Responsible-Changed-When: Mon May 1 11:40:53 UTC 2006 Responsible-Changed-Why: The upcomming update of the default linux base port depends on patches, which also will fix this problem. Since I will be the committer which commits this, I take this PR to have a better overwiev of related PR's. http://www.freebsd.org/cgi/query-pr.cgi?pr=91911 From owner-freebsd-emulation@FreeBSD.ORG Mon May 1 11:45:09 2006 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 153F316A401; Mon, 1 May 2006 11:45:09 +0000 (UTC) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id B4CE543D45; Mon, 1 May 2006 11:45:08 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (netchild@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k41Bj6F1015862; Mon, 1 May 2006 11:45:06 GMT (envelope-from netchild@freefall.freebsd.org) Received: (from netchild@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k41Bj6lj015858; Mon, 1 May 2006 11:45:06 GMT (envelope-from netchild) Date: Mon, 1 May 2006 11:45:06 GMT From: Alexander Leidinger Message-Id: <200605011145.k41Bj6lj015858@freefall.freebsd.org> To: netchild@FreeBSD.org, freebsd-emulation@FreeBSD.org, netchild@FreeBSD.org Cc: Subject: Re: ports/93106: acroread7 cannot locate /usr/local/bin/lpr 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, 01 May 2006 11:45:09 -0000 Synopsis: acroread7 cannot locate /usr/local/bin/lpr Responsible-Changed-From-To: freebsd-emulation->netchild Responsible-Changed-By: netchild Responsible-Changed-When: Mon May 1 11:44:26 UTC 2006 Responsible-Changed-Why: The upcomming update of the default linux base port will fix this problem. Since I will be the committer which commits this, I take this PR to have a better overwiev of related PR's. http://www.freebsd.org/cgi/query-pr.cgi?pr=93106 From owner-freebsd-emulation@FreeBSD.ORG Mon May 1 11:50:40 2006 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 D913F16A402; Mon, 1 May 2006 11:50:40 +0000 (UTC) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id E4A2E43D48; Mon, 1 May 2006 11:50:38 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (netchild@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k41Boc1m016213; Mon, 1 May 2006 11:50:38 GMT (envelope-from netchild@freefall.freebsd.org) Received: (from netchild@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k41BocTJ016208; Mon, 1 May 2006 11:50:38 GMT (envelope-from netchild) Date: Mon, 1 May 2006 11:50:38 GMT From: Alexander Leidinger Message-Id: <200605011150.k41BocTJ016208@freefall.freebsd.org> To: pb@ludd.luth.se, netchild@FreeBSD.org, freebsd-emulation@FreeBSD.org Cc: Subject: Re: kern/96438: [linux] Executing a linux binary within jail causes reboot. 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, 01 May 2006 11:50:40 -0000 Synopsis: [linux] Executing a linux binary within jail causes reboot. State-Changed-From-To: open->feedback State-Changed-By: netchild State-Changed-When: Mon May 1 11:48:17 UTC 2006 State-Changed-Why: Change severity to non-critical. This can't be reproduced (except for the known case of a mis-branded ELF binary). Wait for feedback/confirmation until closing this PR. http://www.freebsd.org/cgi/query-pr.cgi?pr=96438 From owner-freebsd-emulation@FreeBSD.ORG Mon May 1 11:53:21 2006 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 8A3A716A403; Mon, 1 May 2006 11:53:21 +0000 (UTC) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0E69A43D48; Mon, 1 May 2006 11:53:19 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (netchild@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k41BrIJb016397; Mon, 1 May 2006 11:53:18 GMT (envelope-from netchild@freefall.freebsd.org) Received: (from netchild@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k41BrIjV016393; Mon, 1 May 2006 11:53:18 GMT (envelope-from netchild) Date: Mon, 1 May 2006 11:53:18 GMT From: Alexander Leidinger Message-Id: <200605011153.k41BrIjV016393@freefall.freebsd.org> To: root@nihil.plaut.de, netchild@FreeBSD.org, freebsd-emulation@FreeBSD.org Cc: Subject: Re: kern/29698: [linux] [patch] linux ipcs doesn'work 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, 01 May 2006 11:53:21 -0000 Synopsis: [linux] [patch] linux ipcs doesn'work State-Changed-From-To: feedback->open State-Changed-By: netchild State-Changed-When: Mon May 1 11:52:45 UTC 2006 State-Changed-Why: Back to "open", maybe an upcomming SoC student is willing to have a look at this. http://www.freebsd.org/cgi/query-pr.cgi?pr=29698 From owner-freebsd-emulation@FreeBSD.ORG Mon May 1 11:55:02 2006 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 A95C916A404; Mon, 1 May 2006 11:55:02 +0000 (UTC) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 44CC543D46; Mon, 1 May 2006 11:55:02 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (netchild@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k41Bt25Z016583; Mon, 1 May 2006 11:55:02 GMT (envelope-from netchild@freefall.freebsd.org) Received: (from netchild@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k41Bt1Yj016579; Mon, 1 May 2006 11:55:01 GMT (envelope-from netchild) Date: Mon, 1 May 2006 11:55:01 GMT From: Alexander Leidinger Message-Id: <200605011155.k41Bt1Yj016579@freefall.freebsd.org> To: pmedwards@eircom.net, netchild@FreeBSD.org, freebsd-emulation@FreeBSD.org Cc: Subject: Re: kern/39201: [linux] [patch] ptrace(2) and rfork(RFLINUXTHPN) confuse wait() 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, 01 May 2006 11:55:02 -0000 Synopsis: [linux] [patch] ptrace(2) and rfork(RFLINUXTHPN) confuse wait() State-Changed-From-To: feedback->open State-Changed-By: netchild State-Changed-When: Mon May 1 11:54:39 UTC 2006 State-Changed-Why: Back to "open", maybe an upcomming SoC student is willing to have a look at this. http://www.freebsd.org/cgi/query-pr.cgi?pr=39201 From owner-freebsd-emulation@FreeBSD.ORG Mon May 1 11:59:40 2006 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 07B0316A403; Mon, 1 May 2006 11:59:40 +0000 (UTC) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id B49BF43D45; Mon, 1 May 2006 11:59:39 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (netchild@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k41BxdJ3016928; Mon, 1 May 2006 11:59:39 GMT (envelope-from netchild@freefall.freebsd.org) Received: (from netchild@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k41BxdBp016924; Mon, 1 May 2006 11:59:39 GMT (envelope-from netchild) Date: Mon, 1 May 2006 11:59:39 GMT From: Alexander Leidinger Message-Id: <200605011159.k41BxdBp016924@freefall.freebsd.org> To: janos.mohacsi@bsd.hu, netchild@FreeBSD.org, freebsd-emulation@FreeBSD.org Cc: Subject: Re: ports/72865: emulators/vmware3 crashes on 5.3-STABLE 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, 01 May 2006 11:59:40 -0000 Synopsis: emulators/vmware3 crashes on 5.3-STABLE State-Changed-From-To: feedback->closed State-Changed-By: netchild State-Changed-When: Mon May 1 11:58:03 UTC 2006 State-Changed-Why: The vmware port prints a message related to this at install time and suggests some things. If this doesn't solve your problem please open a new PR in which you describe the behavior of the system for each of the suggestions. http://www.freebsd.org/cgi/query-pr.cgi?pr=72865 From owner-freebsd-emulation@FreeBSD.ORG Mon May 1 12:02:05 2006 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 6DAF816A403; Mon, 1 May 2006 12:02:05 +0000 (UTC) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2700A43D49; Mon, 1 May 2006 12:02:05 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (netchild@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k41C24fr017228; Mon, 1 May 2006 12:02:05 GMT (envelope-from netchild@freefall.freebsd.org) Received: (from netchild@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k41C24Mk017224; Mon, 1 May 2006 12:02:04 GMT (envelope-from netchild) Date: Mon, 1 May 2006 12:02:04 GMT From: Alexander Leidinger Message-Id: <200605011202.k41C24Mk017224@freefall.freebsd.org> To: root@paulbeard.org, netchild@FreeBSD.org, freebsd-emulation@FreeBSD.org Cc: Subject: Re: ports/92330: linux-pango fails to install 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, 01 May 2006 12:02:05 -0000 Synopsis: linux-pango fails to install State-Changed-From-To: open->closed State-Changed-By: netchild State-Changed-When: Mon May 1 12:01:31 UTC 2006 State-Changed-Why: This is the predecessor PR of 94714, which is closed now. http://www.freebsd.org/cgi/query-pr.cgi?pr=92330 From owner-freebsd-emulation@FreeBSD.ORG Mon May 1 18:02:49 2006 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 61BAA16A404 for ; Mon, 1 May 2006 18:02:49 +0000 (UTC) (envelope-from Alexander@Leidinger.net) Received: from www.ebusiness-leidinger.de (jojo.ms-net.de [84.16.236.246]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0F8A343D49 for ; Mon, 1 May 2006 18:02:46 +0000 (GMT) (envelope-from Alexander@Leidinger.net) Received: from Andro-Beta.Leidinger.net (p54A5FC88.dip.t-dialin.net [84.165.252.136]) (authenticated bits=0) by www.ebusiness-leidinger.de (8.13.4/8.13.1) with ESMTP id k41HtHJR086690 for ; Mon, 1 May 2006 19:55:17 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from Magellan.Leidinger.net (Magellan.Leidinger.net [192.168.1.1]) by Andro-Beta.Leidinger.net (8.13.4/8.13.3) with ESMTP id k41I2ZSh037968 for ; Mon, 1 May 2006 20:02:36 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Date: Mon, 1 May 2006 20:03:17 +0200 From: Alexander Leidinger To: emulation@freebsd.org Message-ID: <20060501200317.25011352@Magellan.Leidinger.net> X-Mailer: Sylpheed-Claws 2.1.1 (GTK+ 2.8.17; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new Cc: Subject: Fw: cvs commit: ports/accessibility/linux-atk Makefile distinfo.i386 ports/audio/linux-esound Makefile distinfo.alpha distinfo.i386 pkg-plist.alpha ports/audio/linux-libaudiofile Makefile distinfo.alpha distinfo.i386 pkg-plist.alpha ... 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, 01 May 2006 18:02:49 -0000 Hi, we need some beta testers for the upcomming new default linux base port. Please see below. Bye, Alexander. Start weitergeleitete Nachricht: Datum: Mon, 1 May 2006 17:28:17 +0000 (UTC) Von: Alexander Leidinger An: ports-committers@FreeBSD.org, cvs-ports@FreeBSD.org, cvs-all@FreeBSD.org Betreff: cvs commit: ports/accessibility/linux-atk Makefile distinfo.i386 ports/audio/linux-esound Makefile distinfo.alpha distinfo.i386 pkg-plist.alpha ports/audio/linux-libaudiofile Makefile distinfo.alpha distinfo.i386 pkg-plist.alpha ... netchild 2006-05-01 17:28:17 UTC FreeBSD ports repository Modified files: accessibility/linux-atk Makefile distinfo.i386 audio/linux-esound Makefile distinfo.i386 audio/linux-libaudiofile Makefile distinfo.i386 devel/linux-allegro Makefile devel/linux-glib2 Makefile distinfo.i386 devel/linux-libglade Makefile distinfo.i386 pkg-plist.i386 graphics/linux-imlib Makefile distinfo.i386 pkg-plist.i386 graphics/linux-jpeg Makefile distinfo.i386 graphics/linux-png Makefile distinfo.i386 graphics/linux-png10 Makefile distinfo.i386 graphics/linux-tiff Makefile distinfo.i386 graphics/linux-ungif Makefile distinfo.i386 pkg-plist.i386 japanese/linux-ttfonts Makefile distinfo textproc/linux-expat Makefile distinfo.i386 textproc/linux-libxml Makefile distinfo.i386 x11-fonts/linux-fontconfig Makefile distinfo.i386 x11-fonts/linux-urw-fonts Makefile distinfo x11-toolkits/linux-gtk Makefile distinfo.i386 pkg-plist.i386 x11-toolkits/linux-gtk2 Makefile distinfo.i386 x11-toolkits/linux-pango Makefile distinfo.i386 x11/linux-gnomelibs Makefile distinfo.i386 pkg-plist.i386 Added files: graphics/linux-jpeg pkg-plist japanese/linux-ttfonts pkg-plist textproc/linux-expat pkg-plist x11-fonts/linux-fontconfig pkg-install x11-fonts/linux-urw-fonts pkg-plist x11-fonts/linux-urw-fonts/files fonts.dir fonts.scale Removed files: audio/linux-esound distinfo.alpha pkg-plist.alpha audio/linux-libaudiofile distinfo.alpha pkg-plist.alpha devel/linux-libglade distinfo.alpha pkg-plist.alpha graphics/linux-imlib distinfo.alpha pkg-plist.alpha graphics/linux-jpeg pkg-plist.i386 graphics/linux-ungif distinfo.alpha pkg-plist.alpha textproc/linux-libxml distinfo.alpha pkg-plist.alpha x11-fonts/linux-fontconfig/files pkg-install.in x11-toolkits/linux-gtk distinfo.alpha pkg-plist.alpha x11/linux-gnomelibs distinfo.alpha pkg-plist.alpha Log: - convert to use bsd.linux-rpm.mk (get rid of include of linux-gtk/Makefile) [1] - use fixed plists [1] - category "linux" added to those ports without it [1] - update some ports to a recent FC3 one [1] - remove plists/... for Alpha (there's no support since linux_base-8 for Alpha anymore) - don't hardcode version numbers in some plists, use PLIST_SUB instead (any errors are mine, don't keep them, send them to me) Regarding linux-ungif I declare a maintainer timeout (one month, Boris tried to contact the maintainer) and also pull the "sweeping commit"-card (the port which it uses as some kind of master port can not be used for this anymore). Besides this, I don't think he will be upset when other people do the work instead of adding an entry to his TODO list. :-) This commit brings us just before the switch of the default linux base port to the fc3 one, modulo some bugs which may appear. So: Beta testers wanted! To test: sed -i.old -e 's:linux-XFree86-libs:linux-xorg-libs:' /usr/ports/Mk/bsd.port.mk echo OVERRIDE_LINUX_BASE_PORT=fc3 >> /etc/make.conf portupgrade -f -o emulators/linux_base-fc3 -f linux_base-8 portupgrade -o x11/linux-xorg-libs linux-XFree86-libs portupgrade linux-\* The first two steps are necessary to switch to fc3 as the new default linux base port, the last 3 steps to upgrade to fc3. And feel free to send a big "Thank you!" to Boris, he did a lot of the work! I just provided some hints and answered some questions (besides from committing all the necessary changes for FC3 and doing some minor changes+comments/improvements to/of his work), even when he tries to tell you something else. ;-) Submitted by: Boris Samorodov [1] Revision Changes Path 1.16 +7 -14 ports/accessibility/linux-atk/Makefile 1.5 +6 -6 ports/accessibility/linux-atk/distinfo.i386 1.13 +8 -10 ports/audio/linux-esound/Makefile 1.4 +0 -2 ports/audio/linux-esound/distinfo.alpha (dead) 1.5 +6 -6 ports/audio/linux-esound/distinfo.i386 1.3 +0 -72 ports/audio/linux-esound/pkg-plist.alpha (dead) 1.13 +8 -10 ports/audio/linux-libaudiofile/Makefile 1.4 +0 -2 ports/audio/linux-libaudiofile/distinfo.alpha (dead) 1.5 +6 -6 ports/audio/linux-libaudiofile/distinfo.i386 1.3 +0 -28 ports/audio/linux-libaudiofile/pkg-plist.alpha (dead) 1.8 +12 -10 ports/devel/linux-allegro/Makefile 1.15 +6 -7 ports/devel/linux-glib2/Makefile 1.6 +6 -3 ports/devel/linux-glib2/distinfo.i386 1.12 +8 -4 ports/devel/linux-libglade/Makefile 1.4 +0 -2 ports/devel/linux-libglade/distinfo.alpha (dead) 1.4 +6 -2 ports/devel/linux-libglade/distinfo.i386 1.3 +0 -10 ports/devel/linux-libglade/pkg-plist.alpha (dead) 1.3 +8 -8 ports/devel/linux-libglade/pkg-plist.i386 1.10 +9 -4 ports/graphics/linux-imlib/Makefile 1.4 +0 -2 ports/graphics/linux-imlib/distinfo.alpha (dead) 1.4 +6 -2 ports/graphics/linux-imlib/distinfo.i386 1.3 +0 -21 ports/graphics/linux-imlib/pkg-plist.alpha (dead) 1.3 +8 -8 ports/graphics/linux-imlib/pkg-plist.i386 1.15 +7 -9 ports/graphics/linux-jpeg/Makefile 1.5 +6 -3 ports/graphics/linux-jpeg/distinfo.i386 1.1 +16 -0 ports/graphics/linux-jpeg/pkg-plist (new) 1.4 +0 -16 ports/graphics/linux-jpeg/pkg-plist.i386 (dead) 1.22 +6 -6 ports/graphics/linux-png/Makefile 1.9 +6 -3 ports/graphics/linux-png/distinfo.i386 1.21 +6 -6 ports/graphics/linux-png10/Makefile 1.9 +6 -2 ports/graphics/linux-png10/distinfo.i386 1.15 +8 -17 ports/graphics/linux-tiff/Makefile 1.6 +6 -3 ports/graphics/linux-tiff/distinfo.i386 1.9 +8 -8 ports/graphics/linux-ungif/Makefile 1.3 +0 -2 ports/graphics/linux-ungif/distinfo.alpha (dead) 1.3 +6 -2 ports/graphics/linux-ungif/distinfo.i386 1.2 +0 -20 ports/graphics/linux-ungif/pkg-plist.alpha (dead) 1.2 +14 -20 ports/graphics/linux-ungif/pkg-plist.i386 1.9 +6 -14 ports/japanese/linux-ttfonts/Makefile 1.4 +6 -3 ports/japanese/linux-ttfonts/distinfo 1.1 +45 -0 ports/japanese/linux-ttfonts/pkg-plist (new) 1.13 +7 -16 ports/textproc/linux-expat/Makefile 1.4 +6 -3 ports/textproc/linux-expat/distinfo.i386 1.1 +7 -0 ports/textproc/linux-expat/pkg-plist (new) 1.13 +7 -10 ports/textproc/linux-libxml/Makefile 1.4 +0 -2 ports/textproc/linux-libxml/distinfo.alpha (dead) 1.5 +6 -6 ports/textproc/linux-libxml/distinfo.i386 1.3 +0 -32 ports/textproc/linux-libxml/pkg-plist.alpha (dead) 1.14 +9 -23 ports/x11-fonts/linux-fontconfig/Makefile 1.5 +6 -3 ports/x11-fonts/linux-fontconfig/distinfo.i386 1.2 +0 -9 ports/x11-fonts/linux-fontconfig/files/pkg-install.in (dead) 1.1 +6 -0 ports/x11-fonts/linux-fontconfig/pkg-install (new) 1.8 +8 -13 ports/x11-fonts/linux-urw-fonts/Makefile 1.4 +6 -3 ports/x11-fonts/linux-urw-fonts/distinfo 1.1 +582 -0 ports/x11-fonts/linux-urw-fonts/files/fonts.dir (new) 1.1 +582 -0 ports/x11-fonts/linux-urw-fonts/files/fonts.scale (new) 1.1 +80 -0 ports/x11-fonts/linux-urw-fonts/pkg-plist (new) 1.35 +17 -71 ports/x11-toolkits/linux-gtk/Makefile 1.4 +0 -2 ports/x11-toolkits/linux-gtk/distinfo.alpha (dead) 1.5 +6 -3 ports/x11-toolkits/linux-gtk/distinfo.i386 1.6 +0 -182 ports/x11-toolkits/linux-gtk/pkg-plist.alpha (dead) 1.8 +7 -66 ports/x11-toolkits/linux-gtk/pkg-plist.i386 1.21 +7 -12 ports/x11-toolkits/linux-gtk2/Makefile 1.8 +6 -3 ports/x11-toolkits/linux-gtk2/distinfo.i386 1.11 +7 -7 ports/x11-toolkits/linux-pango/Makefile 1.4 +6 -3 ports/x11-toolkits/linux-pango/distinfo.i386 1.12 +9 -6 ports/x11/linux-gnomelibs/Makefile 1.4 +0 -2 ports/x11/linux-gnomelibs/distinfo.alpha (dead) 1.4 +6 -2 ports/x11/linux-gnomelibs/distinfo.i386 1.3 +0 -117 ports/x11/linux-gnomelibs/pkg-plist.alpha (dead) 1.6 +43 -36 ports/x11/linux-gnomelibs/pkg-plist.i386 http://cvsweb.FreeBSD.org/ports/accessibility/linux-atk/Makefile.diff?&r1=1.15&r2=1.16&f=h http://cvsweb.FreeBSD.org/ports/accessibility/linux-atk/distinfo.i386.diff?&r1=1.4&r2=1.5&f=h http://cvsweb.FreeBSD.org/ports/audio/linux-esound/Makefile.diff?&r1=1.12&r2=1.13&f=h http://cvsweb.FreeBSD.org/ports/audio/linux-esound/distinfo.alpha http://cvsweb.FreeBSD.org/ports/audio/linux-esound/distinfo.i386.diff?&r1=1.4&r2=1.5&f=h http://cvsweb.FreeBSD.org/ports/audio/linux-esound/pkg-plist.alpha http://cvsweb.FreeBSD.org/ports/audio/linux-libaudiofile/Makefile.diff?&r1=1.12&r2=1.13&f=h http://cvsweb.FreeBSD.org/ports/audio/linux-libaudiofile/distinfo.alpha http://cvsweb.FreeBSD.org/ports/audio/linux-libaudiofile/distinfo.i386.diff?&r1=1.4&r2=1.5&f=h http://cvsweb.FreeBSD.org/ports/audio/linux-libaudiofile/pkg-plist.alpha http://cvsweb.FreeBSD.org/ports/devel/linux-allegro/Makefile.diff?&r1=1.7&r2=1.8&f=h http://cvsweb.FreeBSD.org/ports/devel/linux-glib2/Makefile.diff?&r1=1.14&r2=1.15&f=h http://cvsweb.FreeBSD.org/ports/devel/linux-glib2/distinfo.i386.diff?&r1=1.5&r2=1.6&f=h http://cvsweb.FreeBSD.org/ports/devel/linux-libglade/Makefile.diff?&r1=1.11&r2=1.12&f=h http://cvsweb.FreeBSD.org/ports/devel/linux-libglade/distinfo.alpha http://cvsweb.FreeBSD.org/ports/devel/linux-libglade/distinfo.i386.diff?&r1=1.3&r2=1.4&f=h http://cvsweb.FreeBSD.org/ports/devel/linux-libglade/pkg-plist.alpha http://cvsweb.FreeBSD.org/ports/devel/linux-libglade/pkg-plist.i386.diff?&r1=1.2&r2=1.3&f=h http://cvsweb.FreeBSD.org/ports/graphics/linux-imlib/Makefile.diff?&r1=1.9&r2=1.10&f=h http://cvsweb.FreeBSD.org/ports/graphics/linux-imlib/distinfo.alpha http://cvsweb.FreeBSD.org/ports/graphics/linux-imlib/distinfo.i386.diff?&r1=1.3&r2=1.4&f=h http://cvsweb.FreeBSD.org/ports/graphics/linux-imlib/pkg-plist.alpha http://cvsweb.FreeBSD.org/ports/graphics/linux-imlib/pkg-plist.i386.diff?&r1=1.2&r2=1.3&f=h http://cvsweb.FreeBSD.org/ports/graphics/linux-jpeg/Makefile.diff?&r1=1.14&r2=1.15&f=h http://cvsweb.FreeBSD.org/ports/graphics/linux-jpeg/distinfo.i386.diff?&r1=1.4&r2=1.5&f=h http://cvsweb.FreeBSD.org/ports/graphics/linux-jpeg/pkg-plist http://cvsweb.FreeBSD.org/ports/graphics/linux-jpeg/pkg-plist.i386 http://cvsweb.FreeBSD.org/ports/graphics/linux-png/Makefile.diff?&r1=1.21&r2=1.22&f=h http://cvsweb.FreeBSD.org/ports/graphics/linux-png/distinfo.i386.diff?&r1=1.8&r2=1.9&f=h http://cvsweb.FreeBSD.org/ports/graphics/linux-png10/Makefile.diff?&r1=1.20&r2=1.21&f=h http://cvsweb.FreeBSD.org/ports/graphics/linux-png10/distinfo.i386.diff?&r1=1.8&r2=1.9&f=h http://cvsweb.FreeBSD.org/ports/graphics/linux-tiff/Makefile.diff?&r1=1.14&r2=1.15&f=h http://cvsweb.FreeBSD.org/ports/graphics/linux-tiff/distinfo.i386.diff?&r1=1.5&r2=1.6&f=h http://cvsweb.FreeBSD.org/ports/graphics/linux-ungif/Makefile.diff?&r1=1.8&r2=1.9&f=h http://cvsweb.FreeBSD.org/ports/graphics/linux-ungif/distinfo.alpha http://cvsweb.FreeBSD.org/ports/graphics/linux-ungif/distinfo.i386.diff?&r1=1.2&r2=1.3&f=h http://cvsweb.FreeBSD.org/ports/graphics/linux-ungif/pkg-plist.alpha http://cvsweb.FreeBSD.org/ports/graphics/linux-ungif/pkg-plist.i386.diff?&r1=1.1&r2=1.2&f=h http://cvsweb.FreeBSD.org/ports/japanese/linux-ttfonts/Makefile.diff?&r1=1.8&r2=1.9&f=h http://cvsweb.FreeBSD.org/ports/japanese/linux-ttfonts/distinfo.diff?&r1=1.3&r2=1.4&f=h http://cvsweb.FreeBSD.org/ports/japanese/linux-ttfonts/pkg-plist http://cvsweb.FreeBSD.org/ports/textproc/linux-expat/Makefile.diff?&r1=1.12&r2=1.13&f=h http://cvsweb.FreeBSD.org/ports/textproc/linux-expat/distinfo.i386.diff?&r1=1.3&r2=1.4&f=h http://cvsweb.FreeBSD.org/ports/textproc/linux-expat/pkg-plist http://cvsweb.FreeBSD.org/ports/textproc/linux-libxml/Makefile.diff?&r1=1.12&r2=1.13&f=h http://cvsweb.FreeBSD.org/ports/textproc/linux-libxml/distinfo.alpha http://cvsweb.FreeBSD.org/ports/textproc/linux-libxml/distinfo.i386.diff?&r1=1.4&r2=1.5&f=h http://cvsweb.FreeBSD.org/ports/textproc/linux-libxml/pkg-plist.alpha http://cvsweb.FreeBSD.org/ports/x11-fonts/linux-fontconfig/Makefile.diff?&r1=1.13&r2=1.14&f=h http://cvsweb.FreeBSD.org/ports/x11-fonts/linux-fontconfig/distinfo.i386.diff?&r1=1.4&r2=1.5&f=h http://cvsweb.FreeBSD.org/ports/x11-fonts/linux-fontconfig/files/pkg-install.in http://cvsweb.FreeBSD.org/ports/x11-fonts/linux-fontconfig/pkg-install http://cvsweb.FreeBSD.org/ports/x11-fonts/linux-urw-fonts/Makefile.diff?&r1=1.7&r2=1.8&f=h http://cvsweb.FreeBSD.org/ports/x11-fonts/linux-urw-fonts/distinfo.diff?&r1=1.3&r2=1.4&f=h http://cvsweb.FreeBSD.org/ports/x11-fonts/linux-urw-fonts/files/fonts.dir http://cvsweb.FreeBSD.org/ports/x11-fonts/linux-urw-fonts/files/fonts.scale http://cvsweb.FreeBSD.org/ports/x11-fonts/linux-urw-fonts/pkg-plist http://cvsweb.FreeBSD.org/ports/x11-toolkits/linux-gtk/Makefile.diff?&r1=1.34&r2=1.35&f=h http://cvsweb.FreeBSD.org/ports/x11-toolkits/linux-gtk/distinfo.alpha http://cvsweb.FreeBSD.org/ports/x11-toolkits/linux-gtk/distinfo.i386.diff?&r1=1.4&r2=1.5&f=h http://cvsweb.FreeBSD.org/ports/x11-toolkits/linux-gtk/pkg-plist.alpha http://cvsweb.FreeBSD.org/ports/x11-toolkits/linux-gtk/pkg-plist.i386.diff?&r1=1.7&r2=1.8&f=h http://cvsweb.FreeBSD.org/ports/x11-toolkits/linux-gtk2/Makefile.diff?&r1=1.20&r2=1.21&f=h http://cvsweb.FreeBSD.org/ports/x11-toolkits/linux-gtk2/distinfo.i386.diff?&r1=1.7&r2=1.8&f=h http://cvsweb.FreeBSD.org/ports/x11-toolkits/linux-pango/Makefile.diff?&r1=1.10&r2=1.11&f=h http://cvsweb.FreeBSD.org/ports/x11-toolkits/linux-pango/distinfo.i386.diff?&r1=1.3&r2=1.4&f=h http://cvsweb.FreeBSD.org/ports/x11/linux-gnomelibs/Makefile.diff?&r1=1.11&r2=1.12&f=h http://cvsweb.FreeBSD.org/ports/x11/linux-gnomelibs/distinfo.alpha http://cvsweb.FreeBSD.org/ports/x11/linux-gnomelibs/distinfo.i386.diff?&r1=1.3&r2=1.4&f=h http://cvsweb.FreeBSD.org/ports/x11/linux-gnomelibs/pkg-plist.alpha http://cvsweb.FreeBSD.org/ports/x11/linux-gnomelibs/pkg-plist.i386.diff?&r1=1.5&r2=1.6&f=h -- Press every key to continue. http://www.Leidinger.net Alexander @ Leidinger.net GPG fingerprint = C518 BC70 E67F 143F BE91 3365 79E2 9C60 B006 3FE7 WL http://www.amazon.de/exec/obidos/registry/1FZ4DTHQE9PQ8/ref=wl_em_to/ From owner-freebsd-emulation@FreeBSD.ORG Tue May 2 04:28:38 2006 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 D599B16A402 for ; Tue, 2 May 2006 04:28:38 +0000 (UTC) (envelope-from garrison@mail.ru) Received: from umail.ru (umail.ru [195.34.32.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 32F9943D48 for ; Tue, 2 May 2006 04:28:37 +0000 (GMT) (envelope-from garrison@mail.ru) Received: from [85.140.126.221] (HELO skyserv) by umail.ru (CommuniGate Pro SMTP 4.2b6) with ESMTP-TLS id 665949643; Tue, 02 May 2006 08:28:36 +0400 Received: from localhost ([127.0.0.1]) by skyserv with esmtp (Exim 4.61) (envelope-from ) id 1FamV1-0000Qi-Ja; Tue, 02 May 2006 08:28:35 +0400 Message-ID: <4456DFF3.5080207@mail.ru> Date: Tue, 02 May 2006 08:28:35 +0400 From: Igor Kovalenko User-Agent: Mail/News 1.5 (X11/20060319) MIME-Version: 1.0 To: qemu-devel@nongnu.org, qemu-l@jelal.kn-bremen.de, freebsd-emulation@freebsd.org References: <20060427203718.GA15953@saturn.kn-bremen.de> <445241DE.9020909@mail.ru> <20060428221142.GA11504@saturn.kn-bremen.de> <44530C50.6040902@mail.ru> <20060430004646.GA70632@saturn.kn-bremen.de> In-Reply-To: <20060430004646.GA70632@saturn.kn-bremen.de> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Subject: Re: playing with qemu's 8139 nic and FreeBSD (loopback mode missing?) 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: Tue, 02 May 2006 04:28:38 -0000 Juergen Lock wrote: > > Thanks, that seems to get the rl driver going. Now to fix C+ mode > (re driver) change the #if 0 in my patch to #if 1... > Well actually that requires a bit more: implementing on-board timer. freebsd if_re.c driver loopback test sequence passes if packet is received AND timeout occur; the latter cannot happen because of missing timer support. Then, driver tries to set up on-board timer for various reasons and may not work without timer. -- Kind regards, Igor V. Kovalenko From owner-freebsd-emulation@FreeBSD.ORG Tue May 2 10:52:42 2006 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 AF6ED16A404; Tue, 2 May 2006 10:52:42 +0000 (UTC) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6B65743D46; Tue, 2 May 2006 10:52:42 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from freefall.freebsd.org (netchild@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k42AqgtV048984; Tue, 2 May 2006 10:52:42 GMT (envelope-from netchild@freefall.freebsd.org) Received: (from netchild@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k42Aqfqh048980; Tue, 2 May 2006 10:52:41 GMT (envelope-from netchild) Date: Tue, 2 May 2006 10:52:41 GMT From: Alexander Leidinger Message-Id: <200605021052.k42Aqfqh048980@freefall.freebsd.org> To: pb@ludd.luth.se, netchild@FreeBSD.org, freebsd-emulation@FreeBSD.org Cc: Subject: Re: kern/96438: [linux] Executing a linux binary within jail causes reboot. 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: Tue, 02 May 2006 10:52:42 -0000 Synopsis: [linux] Executing a linux binary within jail causes reboot. State-Changed-From-To: feedback->closed State-Changed-By: netchild State-Changed-When: Tue May 2 10:52:22 UTC 2006 State-Changed-Why: Got confirmation that it was a brandelf issue. http://www.freebsd.org/cgi/query-pr.cgi?pr=96438 From owner-freebsd-emulation@FreeBSD.ORG Tue May 2 12:19:25 2006 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 2971C16A435 for ; Tue, 2 May 2006 12:19:25 +0000 (UTC) (envelope-from labat@datenstrom.com) Received: from datenstrom.com (191.Red-83-42-120.dynamicIP.rima-tde.net [83.42.120.191]) by mx1.FreeBSD.org (Postfix) with SMTP id E6BF243D5A for ; Tue, 2 May 2006 12:19:20 +0000 (GMT) (envelope-from labat@datenstrom.com) Message-ID: <000001c66de2$842d5e00$7e0aa8c0@lty42> From: "Reinaldo Labat" To: freebsd-emulation@freebsd.org Date: Tue, 2 May 2006 05:18:27 -0700 MIME-Version: 1.0 X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Re: CftALlS news X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Reinaldo Labat List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 May 2006 12:19:25 -0000 Hi, =20 A=20 P=20 V=20 X=20 V=20 C=20 L=20 m=20 r=20 A=20 a=20 I=20 I=20 e=20 b=20 o=20 L=20 n=20 A=20 A=20 v=20 i=20 z=20 I=20 a=20 G=20 L=20 i=20 e=20 a=20 U=20 x=20 R=20 I=20 t=20 n=20 c=20 M=20 A=20 S=20 ra=20 =20 =20 =20 =20 http://www.smaledirabol.com =20 =20 =20 =20 =20 to be borne forth again. A company of twenty was approaching. At the=20 beginning of the narrow way they laid aside sword and spear, and came on towards the Gate. Wondering, the dwarves saw that among them were both=20 Bard and the Elvenking, before whom an old man wrapped in cloak and hood bore a strong casket of iron-bound wood.=20 Hail Thorin! said Bard. Are you still of the same mind? My mind=20 From owner-freebsd-emulation@FreeBSD.ORG Tue May 2 22:50:44 2006 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 1DD3B16A402 for ; Tue, 2 May 2006 22:50:44 +0000 (UTC) (envelope-from sean@mcneil.com) Received: from mail.mcneil.com (mcneil.com [24.199.45.54]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5936E43D67 for ; Tue, 2 May 2006 22:50:41 +0000 (GMT) (envelope-from sean@mcneil.com) Received: from localhost (localhost.mcneil.com [127.0.0.1]) by mail.mcneil.com (Postfix) with ESMTP id 267B3F27D0 for ; Tue, 2 May 2006 15:50:41 -0700 (PDT) X-Virus-Scanned: by amavisd-new at mcneil.com Received: from mail.mcneil.com ([127.0.0.1]) by localhost (triton.mcneil.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id O5sULLhlGkQ0 for ; Tue, 2 May 2006 15:50:40 -0700 (PDT) Received: from mcneil.com (mcneil.com [24.199.45.54]) by mail.mcneil.com (Postfix) with ESMTP id B9526F18C8 for ; Tue, 2 May 2006 15:50:40 -0700 (PDT) From: Sean McNeil To: emulation@freebsd.org Content-Type: text/plain Date: Tue, 02 May 2006 15:50:40 -0700 Message-Id: <1146610240.80438.4.camel@triton.mcneil.com> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit Cc: Subject: Linux expr command vs. FreeBSD version 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: Tue, 02 May 2006 22:50:44 -0000 I ran into a problem with paths when running linux emulation. It appears that when looking for a file, linux emulation will first try /compat/linux/path and if not found, /path. This causes grief with expr as the Linux version supports enhancements like "expr match" whereas the FreeBSD version does not. To get around the issue, I put a symlink in /compat/linux/bin/expr -> /compat/linux/usr/bin/expr. I don't know of any better solution. Anyone? Cheers, Sean From owner-freebsd-emulation@FreeBSD.ORG Wed May 3 03:46:14 2006 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 79E0816A408 for ; Wed, 3 May 2006 03:46:14 +0000 (UTC) (envelope-from garrison@mail.ru) Received: from umail.ru (umail.mtu.ru [195.34.32.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id A32B743D4C for ; Wed, 3 May 2006 03:46:10 +0000 (GMT) (envelope-from garrison@mail.ru) Received: from [85.140.125.85] (HELO skyserv) by umail.ru (CommuniGate Pro SMTP 4.2b6) with ESMTP-TLS id 666373538; Wed, 03 May 2006 07:46:08 +0400 Received: from localhost ([127.0.0.1]) by skyserv with esmtp (Exim 4.61) (envelope-from ) id 1Fb8JT-0002Nv-Rk; Wed, 03 May 2006 07:46:07 +0400 Message-ID: <4458277F.4010902@mail.ru> Date: Wed, 03 May 2006 07:46:07 +0400 From: Igor Kovalenko User-Agent: Mail/News 1.5 (X11/20060319) MIME-Version: 1.0 To: Igor Kovalenko , freebsd-emulation@freebsd.org, qemu-l@jelal.kn-bremen.de References: <20060427203718.GA15953@saturn.kn-bremen.de> <445241DE.9020909@mail.ru> <20060428221142.GA11504@saturn.kn-bremen.de> <44530C50.6040902@mail.ru> <20060430004646.GA70632@saturn.kn-bremen.de> In-Reply-To: <20060430004646.GA70632@saturn.kn-bremen.de> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Subject: Re: playing with qemu's 8139 nic and FreeBSD (loopback mode missing?) 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, 03 May 2006 03:46:14 -0000 Juergen Lock wrote: > On Sat, Apr 29, 2006 at 10:48:48AM +0400, Igor Kovalenko wrote: >> Juergen Lock wrote: >>> On Fri, Apr 28, 2006 at 08:25:02PM +0400, Igor Kovalenko wrote: >>>> Juergen Lock wrote: >>>>> I played with >>>>> qemu -monitor stdio -m 256 -cdrom 6.1-RC1-i386-disc1.iso -usb -soundhw es1370 -kernel-kqemu -net nic,model=rtl8139 -net user >>>>> and got it as far as >>>>> re0: diagnostic failed, failed to receive packet in loopback mode >>>>> (followed by a panic :) with the (experimental) patches below. >>>>> >>>>> Anyone in the mood to implement loopback mode for this nic? >>>>> >>>>> Hmm actually... I just found the original posting in the archive, >>>>> is C+ mode implemented now? If not re is probably not what I want, >>>> The rtl8139 is set up with PCI rev ID 0x20 which should be enough for OS driver >>>> to detect C+ mode features. C+ mode is OK, tested with Linux driver. >>> Cool, so I want FreeBSD's re driver. That one checks TxConfig >>> tho, as changed in my patch (inside #if 0). And when changed, >>> it still doesn't work as mentioned above because the driver expects >>> loopback mode to be working. >>>>> but the rl driver that it attaches without that #if 0'd (now) hunk >>>>> below doesnt seem to be able to get data thru either and I get >>>>> rl0: watchdog timeout >>>>> in dmesg, which usually means the driver doesnt receive interrupts. >>>>> >>>>> What the heck, I'll append a log of a run just doing in fixit->cdrom: >>>>> ifconfig rl0 10.0.2.15 >>>>> and then exiting (which is enough to trigger the watchdog timeout...) >>>>> >>>> I'm too lasy to test with fresh freebsd installation :) >>> No need to install FreeBSD, you can get away by just using >>> fixit mode of an install iso, i.e. disc1. (which actually is >>> what I did above. :) >>> >>> You can look at 6.1RC's re driver here: >>> http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/dev/re/if_re.c?annotate=1.46.2.14 >>> which includes: >>> http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/pci/if_rlreg.h?annotate=1.51.2.3 >>> >>> And 6.1RC disc1 iso is e.g. here: >>> ftp://ftp.ru.freebsd.org:/pub/FreeBSD/ISO-IMAGES-i386/6.1/6.1-RC1-i386-disc1.iso >>> >>> >> Thanks, that iso pointer made it. >> > :) > >> Please try the following on top of your patch, at least ping should now work: > > Thanks, that seems to get the rl driver going. Now to fix C+ mode > (re driver) change the #if 0 in my patch to #if 1... > > I believe freebsd re driver is somewhat broken, e.g. it does not follow documented procedure to detect hardware features (e.g. 8139 c+ mode) and in tries to use 8169 registers (e.g. 0xda) on 8139 hardware etc. Therefore some action from driver people is needed; I can provide a patch which enables board timer in rtl8139 emulation (and thus enables hardware timeout events) if you need it. -- Kind regards, Igor V. Kovalenko From owner-freebsd-emulation@FreeBSD.ORG Wed May 3 06:12:41 2006 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 7F7BE16A403 for ; Wed, 3 May 2006 06:12:41 +0000 (UTC) (envelope-from root@zhao.intron.ac) Received: from zhao.intron.ac (tu073217.ip.tsinghua.edu.cn [166.111.73.217]) by mx1.FreeBSD.org (Postfix) with ESMTP id D864243D48 for ; Wed, 3 May 2006 06:12:40 +0000 (GMT) (envelope-from root@zhao.intron.ac) Received: from zhao.intron.ac (localhost [127.0.0.1]) by zhao.intron.ac (8.13.6/8.13.4) with ESMTP id k436CcFf067426; Wed, 3 May 2006 14:12:38 +0800 (CST) (envelope-from root@zhao.intron.ac) Received: (from root@localhost) by zhao.intron.ac (8.13.6/8.13.4/Submit) id k436CaiI067425; Wed, 3 May 2006 14:12:36 +0800 (CST) (envelope-from root) Message-Id: <200605030612.k436CaiI067425@zhao.intron.ac> References: <1146610240.80438.4.camel@triton.mcneil.com> In-Reply-To: <1146610240.80438.4.camel@triton.mcneil.com> From: mag@intron.ac To: Sean McNeil Date: Wed, 03 May 2006 14:09:42 +0800 Mime-Version: 1.0 Content-Type: text/plain; charset="gb2312"; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-emulation@freebsd.org Subject: Re: Linux expr command vs. FreeBSD version 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, 03 May 2006 06:12:41 -0000 So do I. It's somewhat redundant to specify "/bin/expr" instead of "expr". Sean McNeil wrote: > > I ran into a problem with paths when running linux emulation. It > appears that when looking for a file, linux emulation will first > try /compat/linux/path and if not found, /path. This causes grief with > expr as the Linux version supports enhancements like "expr match" > whereas the FreeBSD version does not. To get around the issue, I put a > symlink in /compat/linux/bin/expr -> /compat/linux/usr/bin/expr. I don't > know of any better solution. Anyone? > > Cheers, > Sean > > > _______________________________________________ > freebsd-emulation@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-emulation > To unsubscribe, send any mail to "freebsd-emulation-unsubscribe@freebsd.org" From owner-freebsd-emulation@FreeBSD.ORG Wed May 3 08:55:09 2006 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 E6F6116A401 for ; Wed, 3 May 2006 08:55:09 +0000 (UTC) (envelope-from Alexander@Leidinger.net) Received: from www.ebusiness-leidinger.de (jojo.ms-net.de [84.16.236.246]) by mx1.FreeBSD.org (Postfix) with ESMTP id 27D4143D45 for ; Wed, 3 May 2006 08:55:08 +0000 (GMT) (envelope-from Alexander@Leidinger.net) Received: from Andro-Beta.Leidinger.net (p54A5D811.dip.t-dialin.net [84.165.216.17]) (authenticated bits=0) by www.ebusiness-leidinger.de (8.13.4/8.13.1) with ESMTP id k438krY5004467; Wed, 3 May 2006 10:46:54 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from localhost (localhost [127.0.0.1]) by Andro-Beta.Leidinger.net (8.13.4/8.13.3) with ESMTP id k438sVNr073716; Wed, 3 May 2006 10:54:31 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from pslux.cec.eu.int (pslux.cec.eu.int [158.169.9.14]) by webmail.leidinger.net (Horde MIME library) with HTTP; Wed, 03 May 2006 10:54:31 +0200 Message-ID: <20060503105431.k8rmf62jlwoscwgc@netchild.homeip.net> X-Priority: 3 (Normal) Date: Wed, 03 May 2006 10:54:31 +0200 From: Alexander Leidinger To: Doug Ambrisko References: <200604272148.k3RLmSOm041069@ambrisko.com> In-Reply-To: <200604272148.k3RLmSOm041069@ambrisko.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable User-Agent: Internet Messaging Program (IMP) H3 (4.1) / FreeBSD-4.11 X-Virus-Scanned: by amavisd-new Cc: freebsd-emulation@freebsd.org Subject: Re: Linux emulation enhancement to emulate device nodes and some SCSI stuff 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, 03 May 2006 08:55:10 -0000 Quoting Doug Ambrisko (from Thu, 27 Apr 2006 =20 14:48:28 -0700 (PDT)): > To get the LSI RAID SAS to work under Linux emulation we need to emulate > more of Linux type stuff. I've put patches up at: > =09http://www.ambrisko.com/doug/linux.patches In case you didn't got any responses: go ahead, we don't have an =20 active linuoxlator guru ATM. Some generic comments (only a *quick* C-level review, not a =20 design/concept-level review): ---snip-- @@ -470,7 +522,9 @@ linux_fstat64(struct thread *td, struct #endif =09error =3D kern_fstat(td, args->fd, &buf); +=09translate_fd_major_minor(td, args->fd, &buf); =09if (!error) +=09=09translate_fd_major_minor(td, args->fd, &buf); =09=09error =3D stat64_copyout(&buf, args->statbuf); ---snip--- Bug, missing {} for the "if". Bye, Alexander. --=20 http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID =3D B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID =3D 72077137 There are two kinds of pedestrians... the quick and the dead. =09=09-- Lord Thomas Rober Dewar From owner-freebsd-emulation@FreeBSD.ORG Wed May 3 14:27:39 2006 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 2F73B16A45B for ; Wed, 3 May 2006 14:27:39 +0000 (UTC) (envelope-from ambrisko@ambrisko.com) Received: from mail2.ambrisko.com (mail2.ambrisko.com [64.174.51.44]) by mx1.FreeBSD.org (Postfix) with ESMTP id CF9E943D45 for ; Wed, 3 May 2006 14:27:38 +0000 (GMT) (envelope-from ambrisko@ambrisko.com) Received: from server2.ambrisko.com (HELO www.ambrisko.com) ([192.168.1.2]) by mail2.ambrisko.com with ESMTP; 03 May 2006 07:26:43 -0700 Received: from ambrisko.com (localhost [127.0.0.1]) by www.ambrisko.com (8.12.11/8.12.11) with ESMTP id k43ERcQ6083924; Wed, 3 May 2006 07:27:38 -0700 (PDT) (envelope-from ambrisko@ambrisko.com) Received: (from ambrisko@localhost) by ambrisko.com (8.12.11/8.12.11/Submit) id k43ERcUI083923; Wed, 3 May 2006 07:27:38 -0700 (PDT) (envelope-from ambrisko) From: Doug Ambrisko Message-Id: <200605031427.k43ERcUI083923@ambrisko.com> In-Reply-To: <20060503105431.k8rmf62jlwoscwgc@netchild.homeip.net> To: Alexander Leidinger Date: Wed, 3 May 2006 07:27:38 -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: Linux emulation enhancement to emulate device nodes and some SCSI stuff 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, 03 May 2006 14:27:39 -0000 Alexander Leidinger writes: | Quoting Doug Ambrisko (from Thu, 27 Apr 2006 | 14:48:28 -0700 (PDT)): | | > To get the LSI RAID SAS to work under Linux emulation we need to emulate | > more of Linux type stuff. I've put patches up at: | > http://www.ambrisko.com/doug/linux.patches | | In case you didn't got any responses: go ahead, we don't have an | active linuoxlator guru ATM. | | Some generic comments (only a *quick* C-level review, not a | design/concept-level review): | ---snip-- | @@ -470,7 +522,9 @@ linux_fstat64(struct thread *td, struct | #endif | | error = kern_fstat(td, args->fd, &buf); | + translate_fd_major_minor(td, args->fd, &buf); | if (!error) | + translate_fd_major_minor(td, args->fd, &buf); | error = stat64_copyout(&buf, args->statbuf); | ---snip--- | | Bug, missing {} for the "if". Good catch. The error is that I pasted in a 2nd bogus translate_fd_major_minor(td, args->fd, &buf); I fixed that. Thanks for looking at it. I'll check on my make universe and check it in if that worked okay. Doug A. From owner-freebsd-emulation@FreeBSD.ORG Thu May 4 16:50:02 2006 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 CACEA16A400 for ; Thu, 4 May 2006 16:50:02 +0000 (UTC) (envelope-from kris@obsecurity.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id 29AD043D6D for ; Thu, 4 May 2006 16:50:00 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: from obsecurity.dyndns.org (elvis.mu.org [192.203.228.196]) by elvis.mu.org (Postfix) with ESMTP id 0EB9F1A4D7E; Thu, 4 May 2006 09:50:00 -0700 (PDT) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id 5F3D6515DC; Thu, 4 May 2006 12:49:59 -0400 (EDT) Date: Thu, 4 May 2006 12:49:59 -0400 From: Kris Kennaway To: Sean McNeil Message-ID: <20060504164959.GA67641@xor.obsecurity.org> References: <1146610240.80438.4.camel@triton.mcneil.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="9amGYk9869ThD9tj" Content-Disposition: inline In-Reply-To: <1146610240.80438.4.camel@triton.mcneil.com> User-Agent: Mutt/1.4.2.1i Cc: emulation@freebsd.org Subject: Re: Linux expr command vs. FreeBSD version 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, 04 May 2006 16:50:02 -0000 --9amGYk9869ThD9tj Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, May 02, 2006 at 03:50:40PM -0700, Sean McNeil wrote: >=20 > I ran into a problem with paths when running linux emulation. It > appears that when looking for a file, linux emulation will first > try /compat/linux/path and if not found, /path. This causes grief with > expr as the Linux version supports enhancements like "expr match" > whereas the FreeBSD version does not. To get around the issue, I put a > symlink in /compat/linux/bin/expr -> /compat/linux/usr/bin/expr. I don't > know of any better solution. Anyone? Why is this an issue for you? Kris --9amGYk9869ThD9tj Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (FreeBSD) iD8DBQFEWjC2Wry0BWjoQKURAk44AJ4gQMPp0M7JhuDGt79F1uC3ruOfAgCePGT5 GdG60gFg1cFDtmF+RZODdtE= =Hbiu -----END PGP SIGNATURE----- --9amGYk9869ThD9tj-- From owner-freebsd-emulation@FreeBSD.ORG Thu May 4 17:33:07 2006 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 422B616A414 for ; Thu, 4 May 2006 17:33:07 +0000 (UTC) (envelope-from sean@mcneil.com) Received: from mail.mcneil.com (mcneil.com [24.199.45.54]) by mx1.FreeBSD.org (Postfix) with ESMTP id C04F243D62 for ; Thu, 4 May 2006 17:33:04 +0000 (GMT) (envelope-from sean@mcneil.com) Received: from localhost (localhost.mcneil.com [127.0.0.1]) by mail.mcneil.com (Postfix) with ESMTP id 91DE3F27B1; Thu, 4 May 2006 10:33:04 -0700 (PDT) X-Virus-Scanned: by amavisd-new at mcneil.com Received: from mail.mcneil.com ([127.0.0.1]) by localhost (triton.mcneil.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id jBgksHGe4j9f; Thu, 4 May 2006 10:33:04 -0700 (PDT) Received: from mcneil.com (mcneil.com [24.199.45.54]) by mail.mcneil.com (Postfix) with ESMTP id 2C23FF18C8; Thu, 4 May 2006 10:33:04 -0700 (PDT) From: Sean McNeil To: Kris Kennaway In-Reply-To: <20060504164959.GA67641@xor.obsecurity.org> References: <1146610240.80438.4.camel@triton.mcneil.com> <20060504164959.GA67641@xor.obsecurity.org> Content-Type: text/plain Date: Thu, 04 May 2006 10:33:03 -0700 Message-Id: <1146763983.98779.12.camel@triton.mcneil.com> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit Cc: emulation@freebsd.org Subject: Re: Linux expr command vs. FreeBSD version 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, 04 May 2006 17:33:10 -0000 On Thu, 2006-05-04 at 12:49 -0400, Kris Kennaway wrote: > On Tue, May 02, 2006 at 03:50:40PM -0700, Sean McNeil wrote: > > > > I ran into a problem with paths when running linux emulation. It > > appears that when looking for a file, linux emulation will first > > try /compat/linux/path and if not found, /path. This causes grief with > > expr as the Linux version supports enhancements like "expr match" > > whereas the FreeBSD version does not. To get around the issue, I put a > > symlink in /compat/linux/bin/expr -> /compat/linux/usr/bin/expr. I don't > > know of any better solution. Anyone? > > Why is this an issue for you? Like I said, the FreeBSD expr command doesn't support things like "expr match". FreeBSD puts expr in /bin and Linux puts it in /usr/bin. Appropriately, my path looks at /bin before /usr/bin. I have scripts that run perfect on a Linux machine and fail on FreeBSD with Linux emulation because they use that very feature. It is completely silly to have to change my scripts to be "/usr/bin/expr match", so the solution I use is to put the symlink in the Linux environment so that /bin/expr chooses the Linux version of expr (/usr/bin/expr). Cheers, Sean From owner-freebsd-emulation@FreeBSD.ORG Thu May 4 19:48:51 2006 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 9AEED16A401 for ; Thu, 4 May 2006 19:48:51 +0000 (UTC) (envelope-from kris@obsecurity.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5354543D46 for ; Thu, 4 May 2006 19:48:51 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: from obsecurity.dyndns.org (elvis.mu.org [192.203.228.196]) by elvis.mu.org (Postfix) with ESMTP id 3CA1A1A4D82; Thu, 4 May 2006 12:48:51 -0700 (PDT) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id 9AE5551F27; Thu, 4 May 2006 15:48:50 -0400 (EDT) Date: Thu, 4 May 2006 15:48:50 -0400 From: Kris Kennaway To: Sean McNeil Message-ID: <20060504194850.GA70598@xor.obsecurity.org> References: <1146610240.80438.4.camel@triton.mcneil.com> <20060504164959.GA67641@xor.obsecurity.org> <1146763983.98779.12.camel@triton.mcneil.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="zYM0uCDKw75PZbzx" Content-Disposition: inline In-Reply-To: <1146763983.98779.12.camel@triton.mcneil.com> User-Agent: Mutt/1.4.2.1i Cc: emulation@freebsd.org, Kris Kennaway Subject: Re: Linux expr command vs. FreeBSD version 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, 04 May 2006 19:48:51 -0000 --zYM0uCDKw75PZbzx Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, May 04, 2006 at 10:33:03AM -0700, Sean McNeil wrote: > On Thu, 2006-05-04 at 12:49 -0400, Kris Kennaway wrote: > > On Tue, May 02, 2006 at 03:50:40PM -0700, Sean McNeil wrote: > > >=20 > > > I ran into a problem with paths when running linux emulation. It > > > appears that when looking for a file, linux emulation will first > > > try /compat/linux/path and if not found, /path. This causes grief wi= th > > > expr as the Linux version supports enhancements like "expr match" > > > whereas the FreeBSD version does not. To get around the issue, I put= a > > > symlink in /compat/linux/bin/expr -> /compat/linux/usr/bin/expr. I do= n't > > > know of any better solution. Anyone? > >=20 > > Why is this an issue for you? >=20 > Like I said, the FreeBSD expr command doesn't support things like "expr > match". FreeBSD puts expr in /bin and Linux puts it in /usr/bin. > Appropriately, my path looks at /bin before /usr/bin. >=20 > I have scripts that run perfect on a Linux machine and fail on FreeBSD > with Linux emulation because they use that very feature. Or just run the script in a chroot (chroot /compat/linux /bin/bash /your/script) so it doesn't see the FreeBSD filesystem at all. This is the only safe way to do it, really - there may be other differences that will cause more subtle aliasing problems. Kris --zYM0uCDKw75PZbzx Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (FreeBSD) iD8DBQFEWlqhWry0BWjoQKURAt7JAKDyTpYz4cZuDpj712s9fK32AjY6rQCfZdU0 HV6uGlEdxr/vlWRAlIwRa58= =7jSD -----END PGP SIGNATURE----- --zYM0uCDKw75PZbzx-- From owner-freebsd-emulation@FreeBSD.ORG Thu May 4 20:08:37 2006 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 06EC316A403 for ; Thu, 4 May 2006 20:08:37 +0000 (UTC) (envelope-from sean@mcneil.com) Received: from mail.mcneil.com (mcneil.com [24.199.45.54]) by mx1.FreeBSD.org (Postfix) with ESMTP id C7DFB43D49 for ; Thu, 4 May 2006 20:08:35 +0000 (GMT) (envelope-from sean@mcneil.com) Received: from localhost (localhost.mcneil.com [127.0.0.1]) by mail.mcneil.com (Postfix) with ESMTP id 5D435F27DE; Thu, 4 May 2006 13:08:35 -0700 (PDT) X-Virus-Scanned: by amavisd-new at mcneil.com Received: from mail.mcneil.com ([127.0.0.1]) by localhost (triton.mcneil.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ggKQh3-44H0f; Thu, 4 May 2006 13:08:34 -0700 (PDT) Received: from mcneil.com (mcneil.com [24.199.45.54]) by mail.mcneil.com (Postfix) with ESMTP id C675EF2619; Thu, 4 May 2006 13:08:34 -0700 (PDT) From: Sean McNeil To: Kris Kennaway In-Reply-To: <20060504194850.GA70598@xor.obsecurity.org> References: <1146610240.80438.4.camel@triton.mcneil.com> <20060504164959.GA67641@xor.obsecurity.org> <1146763983.98779.12.camel@triton.mcneil.com> <20060504194850.GA70598@xor.obsecurity.org> Content-Type: text/plain Date: Thu, 04 May 2006 13:08:34 -0700 Message-Id: <1146773314.46954.1.camel@triton.mcneil.com> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit Cc: emulation@freebsd.org Subject: Re: Linux expr command vs. FreeBSD version 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, 04 May 2006 20:08:37 -0000 On Thu, 2006-05-04 at 15:48 -0400, Kris Kennaway wrote: > On Thu, May 04, 2006 at 10:33:03AM -0700, Sean McNeil wrote: > > On Thu, 2006-05-04 at 12:49 -0400, Kris Kennaway wrote: > > > On Tue, May 02, 2006 at 03:50:40PM -0700, Sean McNeil wrote: > > > > > > > > I ran into a problem with paths when running linux emulation. It > > > > appears that when looking for a file, linux emulation will first > > > > try /compat/linux/path and if not found, /path. This causes grief with > > > > expr as the Linux version supports enhancements like "expr match" > > > > whereas the FreeBSD version does not. To get around the issue, I put a > > > > symlink in /compat/linux/bin/expr -> /compat/linux/usr/bin/expr. I don't > > > > know of any better solution. Anyone? > > > > > > Why is this an issue for you? > > > > Like I said, the FreeBSD expr command doesn't support things like "expr > > match". FreeBSD puts expr in /bin and Linux puts it in /usr/bin. > > Appropriately, my path looks at /bin before /usr/bin. > > > > I have scripts that run perfect on a Linux machine and fail on FreeBSD > > with Linux emulation because they use that very feature. > > Or just run the script in a chroot (chroot /compat/linux /bin/bash > /your/script) so it doesn't see the FreeBSD filesystem at all. This > is the only safe way to do it, really - there may be other differences > that will cause more subtle aliasing problems. This is what I was asking (a better solution?), but unfortunately you have to be superuser to change the root directory whereas I want to run things as a normal user. From owner-freebsd-emulation@FreeBSD.ORG Thu May 4 20:17:26 2006 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 3F49716A411 for ; Thu, 4 May 2006 20:17:26 +0000 (UTC) (envelope-from kris@obsecurity.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4D22543D49 for ; Thu, 4 May 2006 20:17:23 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: from obsecurity.dyndns.org (elvis.mu.org [192.203.228.196]) by elvis.mu.org (Postfix) with ESMTP id 2BD9D1A4D7A; Thu, 4 May 2006 13:17:23 -0700 (PDT) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id 336C4515BB; Thu, 4 May 2006 16:17:22 -0400 (EDT) Date: Thu, 4 May 2006 16:17:21 -0400 From: Kris Kennaway To: Sean McNeil Message-ID: <20060504201721.GA70877@xor.obsecurity.org> References: <1146610240.80438.4.camel@triton.mcneil.com> <20060504164959.GA67641@xor.obsecurity.org> <1146763983.98779.12.camel@triton.mcneil.com> <20060504194850.GA70598@xor.obsecurity.org> <1146773314.46954.1.camel@triton.mcneil.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="W/nzBZO5zC0uMSeA" Content-Disposition: inline In-Reply-To: <1146773314.46954.1.camel@triton.mcneil.com> User-Agent: Mutt/1.4.2.1i Cc: emulation@freebsd.org, Kris Kennaway Subject: Re: Linux expr command vs. FreeBSD version 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, 04 May 2006 20:17:26 -0000 --W/nzBZO5zC0uMSeA Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, May 04, 2006 at 01:08:34PM -0700, Sean McNeil wrote: > On Thu, 2006-05-04 at 15:48 -0400, Kris Kennaway wrote: > > On Thu, May 04, 2006 at 10:33:03AM -0700, Sean McNeil wrote: > > > On Thu, 2006-05-04 at 12:49 -0400, Kris Kennaway wrote: > > > > On Tue, May 02, 2006 at 03:50:40PM -0700, Sean McNeil wrote: > > > > >=20 > > > > > I ran into a problem with paths when running linux emulation. It > > > > > appears that when looking for a file, linux emulation will first > > > > > try /compat/linux/path and if not found, /path. This causes grie= f with > > > > > expr as the Linux version supports enhancements like "expr match" > > > > > whereas the FreeBSD version does not. To get around the issue, I= put a > > > > > symlink in /compat/linux/bin/expr -> /compat/linux/usr/bin/expr. = I don't > > > > > know of any better solution. Anyone? > > > >=20 > > > > Why is this an issue for you? > > >=20 > > > Like I said, the FreeBSD expr command doesn't support things like "ex= pr > > > match". FreeBSD puts expr in /bin and Linux puts it in /usr/bin. > > > Appropriately, my path looks at /bin before /usr/bin. > > >=20 > > > I have scripts that run perfect on a Linux machine and fail on FreeBSD > > > with Linux emulation because they use that very feature. > >=20 > > Or just run the script in a chroot (chroot /compat/linux /bin/bash > > /your/script) so it doesn't see the FreeBSD filesystem at all. This > > is the only safe way to do it, really - there may be other differences > > that will cause more subtle aliasing problems. >=20 > This is what I was asking (a better solution?) Yeah, that's why I needed to find out what your actual problem was first :-) >, but unfortunately you > have to be superuser to change the root directory whereas I want to run > things as a normal user. Oh well, I don't think there's much you can do here as a normal user. Kris --W/nzBZO5zC0uMSeA Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (FreeBSD) iD8DBQFEWmFRWry0BWjoQKURAhwRAKD5uBgpKzt2/oli1vzRQCicVyF9EwCfZ02g wLJj5dTEhRTPEHMYcUV9Y44= =cURt -----END PGP SIGNATURE----- --W/nzBZO5zC0uMSeA-- From owner-freebsd-emulation@FreeBSD.ORG Thu May 4 22:05:17 2006 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 C53A416A401 for ; Thu, 4 May 2006 22:05:17 +0000 (UTC) (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 5E61143D45 for ; Thu, 4 May 2006 22:05:17 +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 k44M5GqO004997; Thu, 4 May 2006 15:05:16 -0700 Received: (from brdavis@localhost) by odin.ac.hmc.edu (8.13.0/8.13.0/Submit) id k44M5Bov004981; Thu, 4 May 2006 15:05:11 -0700 Date: Thu, 4 May 2006 15:05:11 -0700 From: Brooks Davis To: Kris Kennaway Message-ID: <20060504220511.GA18092@odin.ac.hmc.edu> References: <1146610240.80438.4.camel@triton.mcneil.com> <20060504164959.GA67641@xor.obsecurity.org> <1146763983.98779.12.camel@triton.mcneil.com> <20060504194850.GA70598@xor.obsecurity.org> <1146773314.46954.1.camel@triton.mcneil.com> <20060504201721.GA70877@xor.obsecurity.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="X1bOJ3K7DJ5YkBrT" Content-Disposition: inline In-Reply-To: <20060504201721.GA70877@xor.obsecurity.org> 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: emulation@freebsd.org, Sean McNeil Subject: Re: Linux expr command vs. FreeBSD version 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, 04 May 2006 22:05:17 -0000 --X1bOJ3K7DJ5YkBrT Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, May 04, 2006 at 04:17:21PM -0400, Kris Kennaway wrote: > On Thu, May 04, 2006 at 01:08:34PM -0700, Sean McNeil wrote: > > On Thu, 2006-05-04 at 15:48 -0400, Kris Kennaway wrote: > > > On Thu, May 04, 2006 at 10:33:03AM -0700, Sean McNeil wrote: > > > > On Thu, 2006-05-04 at 12:49 -0400, Kris Kennaway wrote: > > > > > On Tue, May 02, 2006 at 03:50:40PM -0700, Sean McNeil wrote: > > > > > >=20 > > > > > > I ran into a problem with paths when running linux emulation. = It > > > > > > appears that when looking for a file, linux emulation will first > > > > > > try /compat/linux/path and if not found, /path. This causes gr= ief with > > > > > > expr as the Linux version supports enhancements like "expr matc= h" > > > > > > whereas the FreeBSD version does not. To get around the issue,= I put a > > > > > > symlink in /compat/linux/bin/expr -> /compat/linux/usr/bin/expr= . I don't > > > > > > know of any better solution. Anyone? > > > > >=20 > > > > > Why is this an issue for you? > > > >=20 > > > > Like I said, the FreeBSD expr command doesn't support things like "= expr > > > > match". FreeBSD puts expr in /bin and Linux puts it in /usr/bin. > > > > Appropriately, my path looks at /bin before /usr/bin. > > > >=20 > > > > I have scripts that run perfect on a Linux machine and fail on Free= BSD > > > > with Linux emulation because they use that very feature. > > >=20 > > > Or just run the script in a chroot (chroot /compat/linux /bin/bash > > > /your/script) so it doesn't see the FreeBSD filesystem at all. This > > > is the only safe way to do it, really - there may be other differences > > > that will cause more subtle aliasing problems. > >=20 > > This is what I was asking (a better solution?) >=20 > Yeah, that's why I needed to find out what your actual problem was > first :-) >=20 > >, but unfortunately you > > have to be superuser to change the root directory whereas I want to run > > things as a normal user. >=20 > Oh well, I don't think there's much you can do here as a normal user. There's always installing sysutils/coreutils and using gexpr or adding a symlink to ~/bin and making that come before /bin in your path. -- 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 --X1bOJ3K7DJ5YkBrT Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQFEWnqWXY6L6fI4GtQRAtbLAJ0UU/zqTJX5C6t5P3RPu6MqPzq+6gCeKKS5 Td9V3zfQb7teSbjBZdhTZws= =z1d0 -----END PGP SIGNATURE----- --X1bOJ3K7DJ5YkBrT-- From owner-freebsd-emulation@FreeBSD.ORG Sat May 6 15:23:11 2006 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 A420416A401; Sat, 6 May 2006 15:23:11 +0000 (UTC) (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 9B97043D48; Sat, 6 May 2006 15:23:09 +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-3sarge1) with ESMTP id k46FN8kg029438 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sat, 6 May 2006 17:23:08 +0200 Received: from saturn.kn-bremen.de (uucp@localhost) by gwyn.kn-bremen.de (8.13.4/8.13.4/Submit) with UUCP id k46FN824029436; Sat, 6 May 2006 17:23:08 +0200 Received: from saturn.kn-bremen.de (nox@localhost [127.0.0.1]) by saturn.kn-bremen.de (8.13.3/8.13.1) with ESMTP id k46FL05Y033801; Sat, 6 May 2006 17:21:00 +0200 (CEST) (envelope-from nox@saturn.kn-bremen.de) Received: (from nox@localhost) by saturn.kn-bremen.de (8.13.3/8.13.1/Submit) id k46FL0L8033800; Sat, 6 May 2006 17:21:00 +0200 (CEST) (envelope-from nox) From: Juergen Lock Date: Sat, 6 May 2006 17:20:59 +0200 To: Igor Kovalenko Message-ID: <20060506152059.GA33481@saturn.kn-bremen.de> Mail-Followup-To: Igor Kovalenko , freebsd-emulation@freebsd.org, freebsd-current@freebsd.org, Gleb Smirnoff References: <20060427203718.GA15953@saturn.kn-bremen.de> <445241DE.9020909@mail.ru> <20060428221142.GA11504@saturn.kn-bremen.de> <44530C50.6040902@mail.ru> <20060430004646.GA70632@saturn.kn-bremen.de> <4458277F.4010902@mail.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4458277F.4010902@mail.ru> User-Agent: Mutt/1.4.2.1i Cc: freebsd-emulation@freebsd.org, freebsd-current@freebsd.org, Gleb Smirnoff Subject: re(4) (was: Re: playing with qemu's 8139 nic and FreeBSD (loopback mode missing?)) 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, 06 May 2006 15:23:11 -0000 [Cc'ing glebius@ because he did most of the recent re(4) commits, and -current in case possible other driver developers didn't see this thread in -emulation] On Wed, May 03, 2006 at 07:46:07AM +0400, Igor Kovalenko wrote: > Juergen Lock wrote: > > On Sat, Apr 29, 2006 at 10:48:48AM +0400, Igor Kovalenko wrote: > >> Juergen Lock wrote: > >>> On Fri, Apr 28, 2006 at 08:25:02PM +0400, Igor Kovalenko wrote: > >>>> Juergen Lock wrote: > >>>>> I played with > >>>>> qemu -monitor stdio -m 256 -cdrom 6.1-RC1-i386-disc1.iso -usb -soundhw es1370 -kernel-kqemu -net nic,model=rtl8139 -net user > >>>>> and got it as far as > >>>>> re0: diagnostic failed, failed to receive packet in loopback mode > >>>>> (followed by a panic :) with the (experimental) patches below. > >>>>> > >>>>> Anyone in the mood to implement loopback mode for this nic? > >>>>> > >>>>> Hmm actually... I just found the original posting in the archive, > >>>>> is C+ mode implemented now? If not re is probably not what I want, > >>>> The rtl8139 is set up with PCI rev ID 0x20 which should be enough for OS driver > >>>> to detect C+ mode features. C+ mode is OK, tested with Linux driver. > >>> Cool, so I want FreeBSD's re driver. That one checks TxConfig > >>> tho, as changed in my patch (inside #if 0). And when changed, > >>> it still doesn't work as mentioned above because the driver expects > >>> loopback mode to be working. > >>>>> but the rl driver that it attaches without that #if 0'd (now) hunk > >>>>> below doesnt seem to be able to get data thru either and I get > >>>>> rl0: watchdog timeout > >>>>> in dmesg, which usually means the driver doesnt receive interrupts. > >>>>> > >>>>> What the heck, I'll append a log of a run just doing in fixit->cdrom: > >>>>> ifconfig rl0 10.0.2.15 > >>>>> and then exiting (which is enough to trigger the watchdog timeout...) > >>>>> > >>>> I'm too lasy to test with fresh freebsd installation :) > >>> No need to install FreeBSD, you can get away by just using > >>> fixit mode of an install iso, i.e. disc1. (which actually is > >>> what I did above. :) > >>> > >>> You can look at 6.1RC's re driver here: > >>> http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/dev/re/if_re.c?annotate=1.46.2.14 > >>> which includes: > >>> http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/pci/if_rlreg.h?annotate=1.51.2.3 > >>> > >>> And 6.1RC disc1 iso is e.g. here: > >>> ftp://ftp.ru.freebsd.org:/pub/FreeBSD/ISO-IMAGES-i386/6.1/6.1-RC1-i386-disc1.iso > >>> > >>> > >> Thanks, that iso pointer made it. > >> > > :) > > > >> Please try the following on top of your patch, at least ping should now work: > > > > Thanks, that seems to get the rl driver going. Now to fix C+ mode > > (re driver) change the #if 0 in my patch to #if 1... > > > > > > I believe freebsd re driver is somewhat broken, e.g. it does not follow documented > procedure to detect hardware features (e.g. 8139 c+ mode) Hmm, a bit of googling didn't reveal docs about this, do you have a pointer? (I only found the data sheet at http://people.freebsd.org/~wpaul/RealTek/spec-8139cp(150).pdf which doesnt seem to mention detecting c+ hardware specifically) > and in tries to use 8169 > registers (e.g. 0xda) on 8139 hardware etc. Oh, then it must have mis-detected the nic as a 8169 because the code in question reads: if (sc->rl_type == RL_8169) CSR_WRITE_2(sc, RL_MAXRXPKTLEN, 16383); > > Therefore some action from driver people is needed; I can provide a patch which > enables board timer in rtl8139 emulation (and thus enables hardware timeout > events) if you need it. Yeah I guess that would be useful... From owner-freebsd-emulation@FreeBSD.ORG Sat May 6 20:38:20 2006 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 7244316A403; Sat, 6 May 2006 20:38:20 +0000 (UTC) (envelope-from garrison@mail.ru) Received: from umail.ru (umail.ru [195.34.32.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7086143D58; Sat, 6 May 2006 20:38:09 +0000 (GMT) (envelope-from garrison@mail.ru) Received: from [85.140.126.56] (HELO skyserv) by umail.ru (CommuniGate Pro SMTP 4.2b6) with ESMTP-TLS id 668065023; Sun, 07 May 2006 00:38:07 +0400 Received: from localhost ([127.0.0.1]) by skyserv with esmtp (Exim 4.61) (envelope-from ) id 1FcTXS-00023j-PR; Sun, 07 May 2006 00:38:06 +0400 Message-ID: <445D092E.2040501@mail.ru> Date: Sun, 07 May 2006 00:38:06 +0400 From: Igor Kovalenko User-Agent: Thunderbird 1.5.0.2 (X11/20060505) MIME-Version: 1.0 To: Igor Kovalenko , freebsd-emulation@freebsd.org, freebsd-current@freebsd.org, Gleb Smirnoff , nox@jelal.kn-bremen.de References: <20060427203718.GA15953@saturn.kn-bremen.de> <445241DE.9020909@mail.ru> <20060428221142.GA11504@saturn.kn-bremen.de> <44530C50.6040902@mail.ru> <20060430004646.GA70632@saturn.kn-bremen.de> <4458277F.4010902@mail.ru> <20060506152059.GA33481@saturn.kn-bremen.de> In-Reply-To: <20060506152059.GA33481@saturn.kn-bremen.de> Content-Type: multipart/mixed; boundary="------------090201030807060400040102" Cc: Subject: Re: playing with qemu's 8139 nic and FreeBSD (loopback mode missing? 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, 06 May 2006 20:38:20 -0000 This is a multi-part message in MIME format. --------------090201030807060400040102 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hi Juergen, Juergen Lock wrote: > [Cc'ing glebius@ because he did most of the recent re(4) commits, and > -current in case possible other driver developers didn't see this thread > in -emulation] > > On Wed, May 03, 2006 at 07:46:07AM +0400, Igor Kovalenko wrote: >> Juergen Lock wrote: >>> On Sat, Apr 29, 2006 at 10:48:48AM +0400, Igor Kovalenko wrote: >>>> Juergen Lock wrote: >>>>> On Fri, Apr 28, 2006 at 08:25:02PM +0400, Igor Kovalenko wrote: >>>>>> Juergen Lock wrote: >>>>>>> I played with >>>>>>> qemu -monitor stdio -m 256 -cdrom 6.1-RC1-i386-disc1.iso -usb -soundhw es1370 -kernel-kqemu -net nic,model=rtl8139 -net user >>>>>>> and got it as far as >>>>>>> re0: diagnostic failed, failed to receive packet in loopback mode >>>>>>> (followed by a panic :) with the (experimental) patches below. >>>>>>> >>>>>>> Anyone in the mood to implement loopback mode for this nic? >>>>>>> >>>>>>> Hmm actually... I just found the original posting in the archive, >>>>>>> is C+ mode implemented now? If not re is probably not what I want, >>>>>> The rtl8139 is set up with PCI rev ID 0x20 which should be enough for OS driver >>>>>> to detect C+ mode features. C+ mode is OK, tested with Linux driver. >>>>> Cool, so I want FreeBSD's re driver. That one checks TxConfig >>>>> tho, as changed in my patch (inside #if 0). And when changed, >>>>> it still doesn't work as mentioned above because the driver expects >>>>> loopback mode to be working. >>>>>>> but the rl driver that it attaches without that #if 0'd (now) hunk >>>>>>> below doesnt seem to be able to get data thru either and I get >>>>>>> rl0: watchdog timeout >>>>>>> in dmesg, which usually means the driver doesnt receive interrupts. >>>>>>> >>>>>>> What the heck, I'll append a log of a run just doing in fixit->cdrom: >>>>>>> ifconfig rl0 10.0.2.15 >>>>>>> and then exiting (which is enough to trigger the watchdog timeout...) >>>>>>> >>>>>> I'm too lasy to test with fresh freebsd installation :) >>>>> No need to install FreeBSD, you can get away by just using >>>>> fixit mode of an install iso, i.e. disc1. (which actually is >>>>> what I did above. :) >>>>> >>>>> You can look at 6.1RC's re driver here: >>>>> http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/dev/re/if_re.c?annotate=1.46.2.14 >>>>> which includes: >>>>> http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/pci/if_rlreg.h?annotate=1.51.2.3 >>>>> >>>>> And 6.1RC disc1 iso is e.g. here: >>>>> ftp://ftp.ru.freebsd.org:/pub/FreeBSD/ISO-IMAGES-i386/6.1/6.1-RC1-i386-disc1.iso >>>>> >>>>> >>>> Thanks, that iso pointer made it. >>>> >>> :) >>> >>>> Please try the following on top of your patch, at least ping should now work: >>> Thanks, that seems to get the rl driver going. Now to fix C+ mode >>> (re driver) change the #if 0 in my patch to #if 1... >>> >>> >> I believe freebsd re driver is somewhat broken, e.g. it does not follow documented >> procedure to detect hardware features (e.g. 8139 c+ mode) > > Hmm, a bit of googling didn't reveal docs about this, do you have > a pointer? (I only found the data sheet at > http://people.freebsd.org/~wpaul/RealTek/spec-8139cp(150).pdf > which doesnt seem to mention detecting c+ hardware specifically) Well, I might have misread some docs; please do not consider this as an assault :) I remember PCI rev id >= 0x20 is C+ mode for realtek 8139. > >> and in tries to use 8169 >> registers (e.g. 0xda) on 8139 hardware etc. > > Oh, then it must have mis-detected the nic as a 8169 because > the code in question reads: > > if (sc->rl_type == RL_8169) > CSR_WRITE_2(sc, RL_MAXRXPKTLEN, 16383); >> Therefore some action from driver people is needed; I can provide a patch which >> enables board timer in rtl8139 emulation (and thus enables hardware timeout >> events) if you need it. > > Yeah I guess that would be useful... > > Please find rtl8139.c.freebsd.timer.diff attached hereto. The diff contains part of your changes to chip identification so re driver does see it as C+ mode chip. Timer support is added (and there is no kpanic now), though the specs require it to be clocked with PCI bus; that is somewhat hard to achieve. Common qemu timer is of much lower resolution; doing it differently will require some effort. -- Kind regards, Igor V. Kovalenko --------------090201030807060400040102 Content-Type: text/x-patch; name="rtl8139.c.freebsd.timer.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="rtl8139.c.freebsd.timer.diff" Index: rtl8139.c =================================================================== RCS file: /cvsroot/qemu/qemu/hw/rtl8139.c,v retrieving revision 1.1 diff -u -r1.1 rtl8139.c --- rtl8139.c 5 Feb 2006 04:14:41 -0000 1.1 +++ rtl8139.c 6 May 2006 20:27:02 -0000 @@ -32,6 +32,8 @@ /* debug RTL8139 card */ //#define DEBUG_RTL8139 1 +#define PCI_FREQUENCY 33000000L + /* debug RTL8139 card C+ mode only */ //#define DEBUG_RTL8139CP 1 @@ -315,6 +317,11 @@ (b30<<30 | b29<<29 | b28<<28 | b27<<27 | b26<<26 | b23<<23 | b22<<22) #define HW_REVID_MASK HW_REVID(1, 1, 1, 1, 1, 1, 1) +#define RTL8139_PCI_REVID_8139 0x10 +#define RTL8139_PCI_REVID_8139CPLUS 0x20 + +#define RTL8139_PCI_REVID RTL8139_PCI_REVID_8139CPLUS + /* Size is 64 * 16bit words */ #define EEPROM_9346_ADDR_BITS 6 #define EEPROM_9346_SIZE (1 << EEPROM_9346_ADDR_BITS) @@ -414,7 +421,13 @@ uint32_t RxRingAddrHI; EEprom9346 eeprom; - + + uint32_t TCTR; + uint32_t TimerInt; + int64_t TCTR_base; + + QEMUTimer *timer; + } RTL8139State; void prom9346_decode_command(EEprom9346 *eeprom, uint8_t command) @@ -512,6 +525,19 @@ eeprom->output <<= 1; if (eeprom->tick == 16) { +#if 1 + // the FreeBSD drivers (rl and re) don't explicitly toggle + // CS between reads (or does setting Cfg9346 to 0 count too?), + // so we need to enter wait-for-command state here + eeprom->mode = Chip9346_enter_command_mode; + eeprom->input = 0; + eeprom->tick = 0; + +#if defined(DEBUG_RTL8139) + printf("eeprom: +++ end of read, awaiting next command\n"); +#endif +#else + // original behaviour ++eeprom->address; eeprom->address &= EEPROM_9346_ADDR_MASK; eeprom->output = eeprom->contents[eeprom->address]; @@ -521,6 +547,7 @@ printf("eeprom: +++ read next address 0x%02x data=0x%04x\n", eeprom->address, eeprom->output); #endif +#endif } break; @@ -751,7 +778,7 @@ } } -static void rtl8139_receive(void *opaque, const uint8_t *buf, int size) +static void rtl8139_do_receive(void *opaque, const uint8_t *buf, int size, int do_interrupt) { RTL8139State *s = opaque; @@ -1078,7 +1105,16 @@ } s->IntrStatus |= RxOK; - rtl8139_update_irq(s); + + if (do_interrupt) + { + rtl8139_update_irq(s); + } +} + +static void rtl8139_receive(void *opaque, const uint8_t *buf, int size) +{ + rtl8139_do_receive(opaque, buf, size, 1); } static void rtl8139_reset_rxring(RTL8139State *s, uint32_t bufferSize) @@ -1103,6 +1139,11 @@ /* prepare eeprom */ s->eeprom.contents[0] = 0x8129; +#if 1 + // PCI vendor and device ID should be mirrored here + s->eeprom.contents[1] = 0x10ec; + s->eeprom.contents[2] = 0x8139; +#endif memcpy(&s->eeprom.contents[7], s->macaddr, 6); /* mark all status registers as owned by host */ @@ -1129,7 +1170,7 @@ // s->TxConfig |= HW_REVID(1, 0, 0, 0, 0, 0, 0); // RTL-8139 HasHltClk s->clock_enabled = 0; #else - s->TxConfig |= HW_REVID(1, 1, 1, 0, 1, 0, 0); // RTL-8139C HasLWake + s->TxConfig |= HW_REVID(1, 1, 1, 0, 1, 1, 0); // RTL-8139C+ HasLWake s->clock_enabled = 1; #endif @@ -1157,6 +1198,11 @@ s->NWayAdvert = 0x05e1; /* all modes, full duplex */ s->NWayLPAR = 0x05e1; /* all modes, full duplex */ s->NWayExpansion = 0x0001; /* autonegotiation supported */ + + /* also reset timer and disable timer interrupt */ + s->TCTR = 0; + s->TimerInt = 0; + s->TCTR_base = 0; } static void rtl8139_ChipCmd_write(RTL8139State *s, uint32_t val) @@ -1622,12 +1668,22 @@ #endif cpu_physical_memory_read(s->TxAddr[descriptor], txbuffer, txsize); - qemu_send_packet(s->vc, txbuffer, txsize); - /* Mark descriptor as transferred */ s->TxStatus[descriptor] |= TxHostOwns; s->TxStatus[descriptor] |= TxStatOK; + if (TxLoopBack == (s->TxConfig & TxLoopBack)) + { +#ifdef DEBUG_RTL8139 + printf("RTL8139: +++ transmit loopback mode\n"); +#endif + rtl8139_do_receive(s, txbuffer, txsize, 0); + } + else + { + qemu_send_packet(s->vc, txbuffer, txsize); + } + #ifdef DEBUG_RTL8139 printf("RTL8139: +++ transmitted %d bytes from descriptor %d\n", txsize, descriptor); #endif @@ -1748,9 +1804,6 @@ #endif cpu_physical_memory_read(tx_addr, txbuffer, txsize); - /* transmit the packet */ - qemu_send_packet(s->vc, txbuffer, txsize); - /* transfer ownership to target */ txdw0 &= ~CP_RX_OWN; @@ -1777,6 +1830,19 @@ ++s->currCPlusTxDesc; } + if (TxLoopBack == (s->TxConfig & TxLoopBack)) + { +#ifdef DEBUG_RTL8139 + printf("RTL8139: +++ C+ transmit loopback mode\n"); +#endif + rtl8139_receive(s, txbuffer, txsize); + } + else + { + /* transmit the packet */ + qemu_send_packet(s->vc, txbuffer, txsize); + } + #ifdef DEBUG_RTL8139 printf("RTL8139: +++ C+ mode transmitted %d bytes from descriptor %d\n", txsize, descriptor); #endif @@ -1909,6 +1975,8 @@ #endif s->TxAddr[txAddrOffset/4] = le32_to_cpu(val); + + s->currCPlusTxDesc = 0; } static uint32_t rtl8139_TxAddr_read(RTL8139State *s, uint32_t txAddrOffset) @@ -1949,6 +2017,18 @@ return ret; } +static uint32_t rtl8139_RxBufAddr_read(RTL8139State *s) +{ + /* this value is NOT off by 16 */ + uint32_t ret = s->RxBufAddr; + +#ifdef DEBUG_RTL8139 + printf("RTL8139: RxBufAddr read val=0x%04x\n", ret); +#endif + + return ret; +} + static void rtl8139_RxBuf_write(RTL8139State *s, uint32_t val) { #ifdef DEBUG_RTL8139 @@ -2281,6 +2361,21 @@ s->RxRingAddrHI = val; break; + case Timer: +#ifdef DEBUG_RTL8139 + printf("RTL8139: TCTR Timer reset on write\n"); +#endif + s->TCTR = 0; + s->TCTR_base = qemu_get_clock(vm_clock); + break; + + case FlashReg: +#ifdef DEBUG_RTL8139 + printf("RTL8139: FlashReg TimerInt write val=0x%08x\n", val); +#endif + s->TimerInt = val; + break; + default: #ifdef DEBUG_RTL8139 printf("RTL8139: ioport write(l) addr=0x%x val=0x%08x via write(b)\n", addr, val); @@ -2355,7 +2450,7 @@ break; case PCIRevisionID: - ret = 0x10; + ret = RTL8139_PCI_REVID; #ifdef DEBUG_RTL8139 printf("RTL8139: PCI Revision ID read 0x%x\n", ret); #endif @@ -2411,6 +2506,10 @@ ret = rtl8139_RxBufPtr_read(s); break; + case RxBufAddr: + ret = rtl8139_RxBufAddr_read(s); + break; + case BasicModeCtrl: ret = rtl8139_BasicModeCtrl_read(s); break; @@ -2521,6 +2620,20 @@ #endif break; + case Timer: + ret = s->TCTR; +#ifdef DEBUG_RTL8139 + printf("RTL8139: TCTR Timer read val=0x%08x\n", ret); +#endif + break; + + case FlashReg: + ret = s->TimerInt; +#ifdef DEBUG_RTL8139 + printf("RTL8139: FlashReg TimerInt read val=0x%08x\n", ret); +#endif + break; + default: #ifdef DEBUG_RTL8139 printf("RTL8139: ioport read(l) addr=0x%x via read(b)\n", addr); @@ -2688,6 +2801,10 @@ qemu_put_8s(f, &s->eeprom.eesk); qemu_put_8s(f, &s->eeprom.eedi); qemu_put_8s(f, &s->eeprom.eedo); + + qemu_put_be32s(f, &s->TCTR); + qemu_put_be32s(f, &s->TimerInt); + qemu_put_be64s(f, &s->TCTR_base); } static int rtl8139_load(QEMUFile* f,void* opaque,int version_id) @@ -2695,9 +2812,11 @@ RTL8139State* s=(RTL8139State*)opaque; int i; - if (version_id != 1) + /* just 2 versions for now */ + if (version_id > 2) return -EINVAL; + /* saved since version 1 */ qemu_get_buffer(f, s->phys, 6); qemu_get_buffer(f, s->mult, 8); @@ -2769,7 +2888,22 @@ qemu_get_8s(f, &s->eeprom.eedi); qemu_get_8s(f, &s->eeprom.eedo); - return 0; + /* saved since version 2 */ + if (version_id >= 2) + { + qemu_get_be32s(f, &s->TCTR); + qemu_get_be32s(f, &s->TimerInt); + qemu_get_be64s(f, &s->TCTR_base); + } + else + { + /* not saved, use default */ + s->TCTR = 0; + s->TimerInt = 0; + s->TCTR_base = 0; + } + + return 0; } /***********************************************************/ @@ -2817,6 +2951,63 @@ rtl8139_mmio_writel, }; +static inline int64_t rtl8139_get_next_tctr_time(RTL8139State *s, int64_t current_time) +{ + int64_t next_time = current_time + + muldiv64(1, ticks_per_sec, PCI_FREQUENCY); + if (next_time <= current_time) + next_time = current_time + 1; + return next_time; +} + +static void rtl8139_timer(void *opaque) +{ + RTL8139State *s = opaque; + + int is_timeout = 0; + + int64_t curr_time; + uint32_t curr_tick; + + if (!s->clock_enabled) + { +#ifdef DEBUG_RTL8139 + printf("RTL8139: >>> timer: clock is not running\n"); +#endif + return; + } + + curr_time = qemu_get_clock(vm_clock); + + curr_tick = muldiv64(curr_time - s->TCTR_base, PCI_FREQUENCY, ticks_per_sec); + + if (s->TimerInt && curr_tick >= s->TimerInt) + { + if (s->TCTR < s->TimerInt || curr_tick < s->TCTR) + { + is_timeout = 1; + } + } + + s->TCTR = curr_tick; + +#ifdef DEBUG_RTL8139 + printf("RTL8139: >>> timer: tick=%08u\n", s->TCTR); +#endif + + if (is_timeout) + { +#ifdef DEBUG_RTL8139 + printf("RTL8139: >>> timer: timeout tick=%08u\n", s->TCTR); +#endif + s->IntrStatus |= PCSTimeout; + rtl8139_update_irq(s); + } + + qemu_mod_timer(s->timer, + rtl8139_get_next_tctr_time(s,curr_time)); +} + void pci_rtl8139_init(PCIBus *bus, NICInfo *nd) { PCIRTL8139State *d; @@ -2833,7 +3024,7 @@ pci_conf[0x02] = 0x39; pci_conf[0x03] = 0x81; pci_conf[0x04] = 0x05; /* command = I/O space, Bus Master */ - pci_conf[0x08] = 0x20; /* 0x10 */ /* PCI revision ID; >=0x20 is for 8139C+ */ + pci_conf[0x08] = RTL8139_PCI_REVID; /* PCI revision ID; >=0x20 is for 8139C+ */ pci_conf[0x0a] = 0x00; /* ethernet network controller */ pci_conf[0x0b] = 0x02; pci_conf[0x0e] = 0x00; /* header_type */ @@ -2869,7 +3060,13 @@ s->macaddr[5]); /* XXX: instance number ? */ - register_savevm("rtl8139", 0, 1, rtl8139_save, rtl8139_load, s); + register_savevm("rtl8139", 0, 2, rtl8139_save, rtl8139_load, s); register_savevm("rtl8139_pci", 0, 1, generic_pci_save, generic_pci_load, &d->dev); + + s->timer = qemu_new_timer(vm_clock, rtl8139_timer, s); + + qemu_mod_timer(s->timer, + rtl8139_get_next_tctr_time(s,qemu_get_clock(vm_clock))); } + --------------090201030807060400040102--