From owner-freebsd-emulation@FreeBSD.ORG Mon May 10 11:01:29 2004 Return-Path: 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 DAD0516A4CE for ; Mon, 10 May 2004 11:01:29 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id BBDAD43D46 for ; Mon, 10 May 2004 11:01:29 -0700 (PDT) (envelope-from owner-bugmaster@freebsd.org) Received: from freefall.freebsd.org (peter@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.11/8.12.11) with ESMTP id i4AI1TvY095676 for ; Mon, 10 May 2004 11:01:29 -0700 (PDT) (envelope-from owner-bugmaster@freebsd.org) Received: (from peter@localhost) by freefall.freebsd.org (8.12.11/8.12.11/Submit) id i4AI1TQu095670 for emulation@freebsd.org; Mon, 10 May 2004 11:01:29 -0700 (PDT) (envelope-from owner-bugmaster@freebsd.org) Date: Mon, 10 May 2004 11:01:29 -0700 (PDT) Message-Id: <200405101801.i4AI1TQu095670@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: peter set sender to owner-bugmaster@freebsd.org using -f From: FreeBSD bugmaster To: emulation@FreeBSD.org Subject: Current problem reports assigned to you X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 May 2004 18:01:30 -0000 Current FreeBSD problem reports Critical problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2003/06/28] kern/53874 emulation /usr/ports/emulators/linux_base isn't wor 1 problem total. Serious problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2000/09/21] kern/21463 emulation Linux compatability mode should not allow o [2000/11/13] kern/22826 emulation Memory limits have no effect in linux com o [2000/12/14] misc/23561 emulation Linux compatibility mode does not support o [2001/03/28] kern/26171 emulation not work Linux-emulator, but hi is work i 4 problems total. Non-critical problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2000/06/19] misc/19391 emulation Evilness with Linux Terminus, causes X to o [2002/08/11] kern/41543 emulation Easier wine/w23 support p [2002/09/04] kern/42404 emulation TIOCSCTTY not implemented in linuxulator o [2002/11/26] kern/45785 emulation Linux WineX seems to require a few new li 4 problems total. From owner-freebsd-emulation@FreeBSD.ORG Tue May 11 00:36:43 2004 Return-Path: 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 A513216A4CE for ; Tue, 11 May 2004 00:36:43 -0700 (PDT) Received: from nmgww.sn.tsden.org (gw.nemossan.jp [202.216.232.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id BE1A543D39 for ; Tue, 11 May 2004 00:36:42 -0700 (PDT) (envelope-from "") Received: from nmgww.sn.tsden.org (IDENT:ryutaroh@localhost [127.0.0.1]) by nmgww.sn.tsden.org (8.12.10/8.12.10) with ESMTP id i4B7agw2004657 for ; Tue, 11 May 2004 16:36:42 +0900 Received: (from ryutaroh@localhost) by nmgww.sn.tsden.org (8.12.10/8.12.10/Submit) id i4B7agpG004656 for freebsd-emulation@freebsd.org; Tue, 11 May 2004 16:36:42 +0900 Date: Tue, 11 May 2004 16:36:42 +0900 Message-Id: <200405110736.i4B7agpG004656@nmgww.sn.tsden.org> X-Authentication-Warning: nmgww.sn.tsden.org: ryutaroh set sender to <> using -f To: freebsd-emulation@freebsd.org Auto-Submitted: auto-replied From: ryutaroh@tsden.org Precedence: junk Subject: X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.1 List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 May 2004 07:36:43 -0000 I do not read the email account "ryutaroh@tsden.org". Thank you. From owner-freebsd-emulation@FreeBSD.ORG Wed May 12 01:18:22 2004 Return-Path: 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 29B2616A4CE for ; Wed, 12 May 2004 01:18:22 -0700 (PDT) Received: from GreenSrv.rz.unibw-muenchen.de (greensrv.RZ.UniBw-Muenchen.de [137.193.10.35]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5978E43D41 for ; Wed, 12 May 2004 01:18:21 -0700 (PDT) (envelope-from lutz@medusa.informatik.unibw-muenchen.de) Received: from localhost (GreenSrv [127.0.0.1])i4C8EbtN014819 for ; Wed, 12 May 2004 10:14:37 +0200 Received: from GreenSrv.rz.unibw-muenchen.de ([127.0.0.1]) by localhost (GreenSrv [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 14686-02 for ; Wed, 12 May 2004 10:14:34 +0200 (CEST) Received: from medusa.informatik.unibw-muenchen.de (medusa.Informatik.UniBw-Muenchen.de [137.193.60.34])i4C8EOlW014796 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Wed, 12 May 2004 10:14:25 +0200 Received: from lutz by medusa.informatik.unibw-muenchen.de with local (Exim 4.33; FreeBSD) id 1BNoqx-0000E9-UK for freebsd-emulation@freebsd.org; Wed, 12 May 2004 10:12:35 +0200 From: Lutz Bichler Organization: University of the Federal Armed Forces Munich To: freebsd-emulation@freebsd.org Date: Wed, 12 May 2004 10:12:35 +0200 User-Agent: KMail/1.6.2 MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <200405121012.35835.Lutz.Bichler@unibw-muenchen.de> Sender: Lutz Bichler X-Virus-Scanned: by amavisd-new at GreenSrv.rz.unibw-muenchen.de Subject: vmware3 port freezes 5.2.1-p6 X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 May 2004 08:18:22 -0000 Hi, i would like to use the vmware3 port on a FreeBSD 5.2.1-p6. The port compiles and starts fine, but after powering on the whole machine freezes. Any hint? If yes, please CC as i am not subscribed to the list. Thanks, Lutz From owner-freebsd-emulation@FreeBSD.ORG Wed May 12 01:20:10 2004 Return-Path: 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 E5F0B16A4DD for ; Wed, 12 May 2004 01:20:10 -0700 (PDT) Received: from pr93.lublin.sdi.tpnet.pl (pr93.lublin.sdi.tpnet.pl [217.97.36.93]) by mx1.FreeBSD.org (Postfix) with SMTP id 76C8D43D48 for ; Wed, 12 May 2004 01:20:09 -0700 (PDT) (envelope-from michal@pasternak.w.lub.pl) Received: (qmail 15218 invoked by uid 1001); 12 May 2004 08:20:09 -0000 Date: Wed, 12 May 2004 10:20:09 +0200 From: Michal Pasternak To: Lutz Bichler Message-ID: <20040512082009.GA15196@pasternak.w.lub.pl> References: <200405121012.35835.Lutz.Bichler@unibw-muenchen.de> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline In-Reply-To: <200405121012.35835.Lutz.Bichler@unibw-muenchen.de> cc: freebsd-emulation@freebsd.org Subject: Re: vmware3 port freezes 5.2.1-p6 X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Michal Pasternak List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 May 2004 08:20:11 -0000 Lutz Bichler [Wed, May 12, 2004 at 10:12:35AM +0200]: > i would like to use the vmware3 port on a FreeBSD 5.2.1-p6. The port compiles > and starts fine, but after powering on the whole machine freezes. Any hint? Please turn off ACPI at boot time and try again. From owner-freebsd-emulation@FreeBSD.ORG Fri May 14 09:52:49 2004 Return-Path: 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 D9F9916A4CE; Fri, 14 May 2004 09:52:49 -0700 (PDT) Received: from fed1rmmtao04.cox.net (fed1rmmtao04.cox.net [68.230.241.35]) by mx1.FreeBSD.org (Postfix) with ESMTP id C286D43D48; Fri, 14 May 2004 09:52:48 -0700 (PDT) (envelope-from housel@acm.org) Received: from housel.dyndns.org ([68.5.206.145]) by fed1rmmtao04.cox.net ESMTP <20040514165128.FYLY13758.fed1rmmtao04.cox.net@housel.dyndns.org>; Fri, 14 May 2004 12:51:28 -0400 Received: from housel7352a (localhost [127.0.0.1]) by housel.dyndns.org (8.12.11/8.12.11) with SMTP id i4EGpRx5026941; Fri, 14 May 2004 09:51:28 -0700 (PDT) (envelope-from housel@acm.org) Message-ID: <001701c439d3$b88df410$dd22010a@housel7352a> From: "Peter S. Housel" To: , Date: Fri, 14 May 2004 09:51:35 -0700 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 Subject: Page fault traps in the linuxulator X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 May 2004 16:52:50 -0000 In 5.2-CURRENT I'm running some Linux code (a garbage collector) that needs to trap page faults. There are a couple of problems with the i386 code that builds linux signal context: /* ... */ frame.sf_sc.sc_err = regs->tf_err; frame.sf_sc.sc_trapno = bsd_to_linux_trapcode(code); The first problem is that the sc_cr2 field of the linux sigcontext is not initialized with the faulting address (obtained at page fault time from the cr2 register). The second problem is that sc_err is being initialized incorrectly, because in trap_pfault the original tf_err field provided by the processor has already been overwritten: /* kludge to pass faulting virtual address to sendsig */ frame->tf_err = eva; The trap handler has worked this way since trap.c revision 1.25 (soon to be having its tenth anniversary). Surely there is some better way to pass eva to sendsig so thtat the 3-bit err field is not lost. (It would be nice if said field were available in the FreeBSD sigcontext, too, but that would likely involve an ABI change.) -Peter- From owner-freebsd-emulation@FreeBSD.ORG Sat May 15 23:37:28 2004 Return-Path: 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 39F9F16A4CE for ; Sat, 15 May 2004 23:37:28 -0700 (PDT) Received: from mail020.syd.optusnet.com.au (mail020.syd.optusnet.com.au [211.29.132.131]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5019543D45 for ; Sat, 15 May 2004 23:37:26 -0700 (PDT) (envelope-from agley@optusnet.com.au) Received: from nyleta (c210-49-84-24.rochd3.qld.optusnet.com.au [210.49.84.24])i4G6bNH07650 for ; Sun, 16 May 2004 16:37:23 +1000 To: freebsd-emulation@FreeBSD.org From: John Duncan Date: Sat, 15 May 2004 16:40:25 +1000 Message-ID: <86fza2gply.fsf@optusnet.com.au> User-Agent: Gnus/5.1002 (Gnus v5.10.2) XEmacs/21.4 (Reasonable Discussion, berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Please Check for Mistakes X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.1 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, 16 May 2004 06:37:28 -0000 Hello, I realise that is a bit long but could anyone please check this instruction for mistakes on the FreeBSD side, it will be posted on the Birmingham University website to help FreeBSD users install and run the Linux Poplog Virtual Machine. How To Build and Run Linux Poplog on FreeBSD Linux Poplog can be used on FreeBSD with the Linux ABI support provided in the GENERIC kernel. See the FreeBSD Handbook for and manual pages for the gory details.To get this support every time you run put, linux_enable="YES" in your /etc/rc.conf and to ensure that FreeBSD recognises the Poplog binaries as Linux use this sysctl variable like so, # sysctl kern.fallback_elf_brand=3 This will have to be repeated upon a reboot. You could just try to brand the binaries like this, # brandelf -t Linux poplog_binaries but maybe some parts of the Poplog system are seen as binaries that I don't know about. First we have to set up a Linux type system under /compat/linux in FreeBSD, we do this by building the ports which give us a RedHat 8 set of libraries. This is because of the version of the Linux libc that Poplog needs now. At the moment these are, /usr/ports/emulators/linux_base-8 /usr/ports/devel/linux_devtools /usr/ports/x11/linux-XFree86-libs This will install the following packages, linux_base-8-8.0_4 linux_devtools-8.0_1 linux-XFree86-libs-4.3.0_2 After this we will need to install some things that the Poplog installation scripts need, we do this by installing the RedHat RPMS for RedHat 8.0 en which can be found at sites like rpmfind. We need, tcsh-6.12-2.i386.rpm tar-1.13.25-8.i386.rpm gzip-1.3.3-5.i386.rpm textutils-2.0.21-5.i386.rpm util-linux-2.11r-10.i386.rpm openmotif-2.2.2-12.i386.rpm --- only if you want WITH_MOTIF You install them like in this example # rpm -i --ignoreos --nodeps --root /compat/linux \ --dbpath /var/lib/rpm tcsh-6.12-2.i386.rpm When you install the util-linux RPM you will get the message group tty does not exist using root This does not seem to worry the installation. Another point is that although there is a /compat/linux/usr/tmp directory symlinked to /var/tmp the Poplog installation can't use this so we need to make another one # cd /compat/linux # mkdir tmp Assuming you have downloaded the large Linux Poplog tarball(21MB) to your home directory and had a look at the documentation available at the Birmingham University website to see what should happen lets start the installation. I am going to install everything in the default position and so that all users can use Poplog, there is now provision in the build scripts to install in other places if you want, see the documentation for details. First make a directory under /compat/linux for the source and copy the tarball into it. # cd /compat/linux/usr # mkdir -p /compat/linux/usr/local/poplog/src # cd /home/whoever # cp -p bham-linux-poplog.tar.gz /compat/linux/usr/local/poplog/src Now enter into a chrooted environment under /compat/linux to untar the sources and run the build scripts. First run the ldconfig program for the /compat/linux libraries just in case. # cd /compat/linux/usr # chroot /compat/linux /bin/bash bash2.05b# pwd ( just to check ) / bash2.05b# cd /lib bash2.05b# /sbin/ldconfig bash2.05b# cd /usr/X11R6/lib bash2.05b# /sbin/ldconfig bash2.05b# cd /usr/local/poplog/src bash2.05b# zcat bham-linux-poplog.tar.gz | tar xf - You now have the build scripts and some documentation in this directory. The docs explain a lot, I will just say that there are two ways to build, linked with and without Motif. I recommend with Motif if this is your first look at Poplog. So run either, bash2.05b# ./INSTALL_EVERYTHING_WITH_MOTIF ( or ) bash2.05b# ./INSTALL_EVERYTHING_WITHOUT_MOTIF There are a lot of errors at the start of the build saying, cc1: warning: changing search order for system directory "usr/include" as it already has been specified as a non-system directory I am told these occur when building Poplog on RedHat 8 or 9 so are nothing unusual, other errors that appear are normal for any build. Exit out of the chroot and copy the whole Birmingham Poplog set up into /usr/local for FreeBSD. bash2.05b# exit # cd /compat/linux/usr/local/poplog # cp -pR /compat/linux/usr/local/poplog /usr/local Now Poplog depends heavily on environmental variables and there are some example configuration scripts bundled with the documentation but I will keep things as simple as possible to get you started. # cd /usr/local/bin # ln -s /usr/local/poplog/local/setup/bin/poplog /usr/local/bin/poplog # exit > cd > rehash > setenv usepop /usr/local/poplog/v15.53e > setenv poplocal /usr/local/poplog > setenv local $poplocal/local > source $usepop/pop/com/poplog For the other shells $ cd $ . $ usepop=/usr/local/poplog/v15.53e $ export usepop $ poplocal=/usr/local/poplog $ local=$poplocal/local $ export poplocal local $ . $usepop/pop/com/poplog.sh Now open up an xterm and try to start Poplog, > poplog pop11 %x if you used Motif you might see this error printed with the start up banner, Can't open shared object /usr/local/poplog/current.poplog/pop/extern/lib/libXm.so ( Inappropiate ioctl for device ) I think what happens here is that I have FreeBSD Openmotif installed and initially it looks at this but in a few seconds comes good and starts up with a control panel. If you didn't use Motif you might think that the graphical interface failed but that is not so, read in a file at the Setpop prompt which is a full colon. Setpop : teach teach and the graphical editor Xved should start with this file. With or without Motif to get familiar keyboard keys to get you going on a PC you should enter these two lines at the prompt, Setpop : uses oldvedxvedkeys : oldvedxvedkeys(); There you go, you now have a wealth of documentation and examples at your disposal to help you learn how to program in the Linux Poplog Virtual Machine. Thanks for any help, John Duncan