From owner-freebsd-emulation@FreeBSD.ORG Mon Oct 24 11:01:56 2005 Return-Path: X-Original-To: emulation@freebsd.org Delivered-To: freebsd-emulation@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C73D416A420 for ; Mon, 24 Oct 2005 11:01:56 +0000 (GMT) (envelope-from owner-bugmaster@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 42E8D43D46 for ; Mon, 24 Oct 2005 11:01:56 +0000 (GMT) (envelope-from owner-bugmaster@freebsd.org) Received: from freefall.freebsd.org (peter@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j9OB1uLG061794 for ; Mon, 24 Oct 2005 11:01:56 GMT (envelope-from owner-bugmaster@freebsd.org) Received: (from peter@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j9OB1tNc061788 for emulation@freebsd.org; Mon, 24 Oct 2005 11:01:55 GMT (envelope-from owner-bugmaster@freebsd.org) Date: Mon, 24 Oct 2005 11:01:55 GMT Message-Id: <200510241101.j9OB1tNc061788@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: peter set sender to owner-bugmaster@freebsd.org using -f From: FreeBSD bugmaster To: emulation@FreeBSD.org Cc: Subject: Current problem reports assigned to you X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 Oct 2005 11:01:57 -0000 Current FreeBSD problem reports Critical problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2003/06/28] kern/53874 emulation /usr/ports/emulators/linux_base isn't wor 1 problem total. Serious problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2000/09/22] kern/21463 emulation Linux compatability mode should not allow o [2000/11/13] kern/22826 emulation Memory limits have no effect in linux com o [2001/03/28] kern/26171 emulation not work Linux-emulator, but hi is work i o [2002/11/07] kern/45023 emulation flexlm does not run with linux-base-7, st o [2003/09/24] kern/57192 emulation linux-ibm-java1.4 freeze o [2004/06/20] kern/68131 emulation java/linux-ibm-jdk14: linux ibm jdk 1.4.1 o [2004/10/28] kern/73224 emulation [ndis] [patch] Lock order reversal in nto o [2005/01/25] ports/76644 emulation FreeBSD 5.3 will freeze or crash when run o [2005/02/19] i386/77710 emulation Linux page fault sigcontext information i o [2005/05/05] ports/80679 emulation emulators/linux_base-8: Use ${MACHINE_ARC o [2005/05/09] ports/80837 emulation x11-toolkits/linux-gtk: cannot install by o [2005/05/12] ports/80926 emulation running $PREFIX/etc/rc.d/vmware.sh return 12 problems total. Non-critical problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [1999/04/16] i386/11165 emulation IBCS2 don't work correctly with PID_MAX 9 o [2000/12/15] kern/23561 emulation Linux compatibility mode does not support o [2001/08/14] kern/29698 emulation linux ipcs doesn'work o [2002/06/12] kern/39201 emulation ptrace(2) and rfork(RFLINUXTHPN) confuse o [2002/08/11] kern/41543 emulation Easier wine/w23 support p [2002/09/04] kern/42404 emulation TIOCSCTTY not implemented in linuxulator s [2002/09/06] kern/42466 emulation linux: 'ipc' typ=258 not implemented p [2003/01/22] kern/47349 emulation Fake a sound ioctl (plus linux hook) o [2003/08/21] kern/55835 emulation Linux IPC emulation missing SETALL syscal o [2004/10/19] ports/72865 emulation emulators/vmware3 crashes on 5.3-STABLE o [2004/10/20] kern/72920 emulation linux emulation : path "prefixing" is not o [2004/11/08] kern/73663 emulation [ibcs2] module_register_init: MOD_LOAD (i o [2004/11/10] kern/73777 emulation [patch] linux emulation: root dir special o [2004/11/15] kern/73978 emulation [ibcs2] an error message appears during l o [2005/02/08] kern/77253 emulation [linprocfs] meminfo in linprocfs returns o [2005/03/19] ports/79009 emulation [patch] Some linux ports are incorrectly o [2005/04/07] ports/79655 emulation linux_base-8 fails to install as non-root o [2005/06/08] kern/82026 emulation [ibcs2] module_register_init: MOD_LOAD (i s [2005/07/01] ports/82853 emulation [wish] working linux_base port for alpha o [2005/08/21] kern/85175 emulation [patch] linux emulation layer without COM o [2005/09/02] ports/85625 emulation [patch] emulators/linux_base-8, plist fix 21 problems total. From owner-freebsd-emulation@FreeBSD.ORG Mon Oct 24 11:02:03 2005 Return-Path: X-Original-To: freebsd-emulation@freebsd.org Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9CC5416A41F for ; Mon, 24 Oct 2005 11:02:03 +0000 (GMT) (envelope-from owner-bugmaster@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2484643D53 for ; Mon, 24 Oct 2005 11:02:03 +0000 (GMT) (envelope-from owner-bugmaster@freebsd.org) Received: from freefall.freebsd.org (peter@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j9OB23oh061907 for ; Mon, 24 Oct 2005 11:02:03 GMT (envelope-from owner-bugmaster@freebsd.org) Received: (from peter@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j9OB22Kd061893 for freebsd-emulation@freebsd.org; Mon, 24 Oct 2005 11:02:02 GMT (envelope-from owner-bugmaster@freebsd.org) Date: Mon, 24 Oct 2005 11:02:02 GMT Message-Id: <200510241102.j9OB22Kd061893@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, 24 Oct 2005 11:02:03 -0000 Current FreeBSD problem reports Critical problems Serious problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2003/12/11] ports/60161 emulation Linux emulator (linux_base-8-8.0_3) doesn o [2005/10/16] ports/87546 emulation [fix] emulators/rtc: broken if sizeof(int 2 problems total. Non-critical problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2005/10/20] ports/87745 emulation [patch] x11-toolkits/linux-openmotif: add 1 problem total. From owner-freebsd-emulation@FreeBSD.ORG Mon Oct 24 17:28:46 2005 Return-Path: X-Original-To: freebsd-emulation@FreeBSD.org Delivered-To: freebsd-emulation@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2FD2116A41F; Mon, 24 Oct 2005 17:28:46 +0000 (GMT) (envelope-from linimon@lonesome.com) Received: from mail.soaustin.net (mail.soaustin.net [207.200.4.66]) by mx1.FreeBSD.org (Postfix) with ESMTP id E842043D46; Mon, 24 Oct 2005 17:28:45 +0000 (GMT) (envelope-from linimon@lonesome.com) Received: by mail.soaustin.net (Postfix, from userid 502) id 989613040; Mon, 24 Oct 2005 12:28:45 -0500 (CDT) Date: Mon, 24 Oct 2005 12:28:45 -0500 To: freebsd-emulation@FreeBSD.org Message-ID: <20051024172845.GC5156@soaustin.net> References: <200510241102.j9OB22Kd061893@freefall.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200510241102.j9OB22Kd061893@freefall.freebsd.org> User-Agent: Mutt/1.5.9i From: linimon@lonesome.com (Mark Linimon) Cc: FreeBSD bugmaster Subject: Re: 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, 24 Oct 2005 17:28:46 -0000 It looks like (once again) we have mix of PRs assigned to 'emulation' and 'freebsd-emulation' and thus there are two postings. Unless there are objections, I'd like to pick one and switch them all to it; my slight preference is for freebsd-emulation because that's more in line with most of the other usages, and more people seem to be using it recently. mcl From owner-freebsd-emulation@FreeBSD.ORG Mon Oct 24 17:56:45 2005 Return-Path: X-Original-To: freebsd-emulation@freebsd.org Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D856416A420 for ; Mon, 24 Oct 2005 17:56:45 +0000 (GMT) (envelope-from nox@saturn.kn-bremen.de) Received: from gwyn.kn-bremen.de (gwyn.kn-bremen.de [212.63.36.242]) by mx1.FreeBSD.org (Postfix) with ESMTP id 103FF43D48 for ; Mon, 24 Oct 2005 17:56:43 +0000 (GMT) (envelope-from nox@saturn.kn-bremen.de) Received: from gwyn.kn-bremen.de (gwyn [127.0.0.1]) by gwyn.kn-bremen.de (8.13.4/8.13.4/Debian-3) with ESMTP id j9OHugdx005389; Mon, 24 Oct 2005 19:56:42 +0200 Received: from saturn.kn-bremen.de (uucp@localhost) by gwyn.kn-bremen.de (8.13.4/8.13.4/Submit) with UUCP id j9OHugMi005387; Mon, 24 Oct 2005 19:56:42 +0200 Received: from saturn.kn-bremen.de (localhost [127.0.0.1]) by saturn.kn-bremen.de (8.13.1/8.13.1) with ESMTP id j9OHriel099642; Mon, 24 Oct 2005 19:53:44 +0200 (CEST) (envelope-from nox@saturn.kn-bremen.de) Received: (from nox@localhost) by saturn.kn-bremen.de (8.13.1/8.13.1/Submit) id j9OHrhpA099641; Mon, 24 Oct 2005 19:53:43 +0200 (CEST) (envelope-from nox) Date: Mon, 24 Oct 2005 19:53:43 +0200 (CEST) From: Juergen Lock Message-Id: <200510241753.j9OHrhpA099641@saturn.kn-bremen.de> To: mohacsi@niif.hu X-Newsgroups: local.list.freebsd.emulation In-Reply-To: <20051018123525.E91479@mignon.ki.iif.hu> Organization: home Cc: freebsd-emulation@freebsd.org Subject: Re: Using samba share under qemu X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 Oct 2005 17:56:46 -0000 In article <20051018123525.E91479@mignon.ki.iif.hu> you write: >Dear All, > I tried the qemu-0.7.0s.20050717 on FreeBSD 6.0-BETA3 with >samba-3.0.10,1 with the following command line: > >qemu -hda ~/qemuimages/diskc -smb qemu >I tried the also with >qemu -hda ~/qemuimages/diskc -smb /tmp > >But none of the combination starts smbd in background. > >Does anybody succeed to make user mode samba working under FreeBSD? Hmm. I just tried, using the current qemu port (qemu-0.7.2s.20050909_2), mount.smbfs //10.0.2.4/qemu /mnt/test in a kanotix guest (linux livecd iso) and it successfully mounted the dir passed to qemu -smb ... The smbd isn't started until the guest connects to the smb port (139) on that ip, maybe that made it look like it's not working? > >If I start by hand (smb -s /tmp/qemu-smb./smb.conf) - it seems to be >working.... Well that wasn't necessary here. Juergen From owner-freebsd-emulation@FreeBSD.ORG Tue Oct 25 09:21:30 2005 Return-Path: X-Original-To: freebsd-emulation@freebsd.org Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 44E5216A41F; Tue, 25 Oct 2005 09:21:30 +0000 (GMT) (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 9287843D45; Tue, 25 Oct 2005 09:21:29 +0000 (GMT) (envelope-from Alexander@Leidinger.net) Received: from Andro-Beta.Leidinger.net (p54A5D307.dip.t-dialin.net [84.165.211.7]) (authenticated bits=0) by www.ebusiness-leidinger.de (8.13.1/8.13.1) with ESMTP id j9P925GP030685; Tue, 25 Oct 2005 11:02:05 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from localhost (localhost [127.0.0.1]) by Andro-Beta.Leidinger.net (8.13.3/8.13.3) with ESMTP id j9P9LNNH008915; Tue, 25 Oct 2005 11:21:23 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from pslux.cec.eu.int (pslux.cec.eu.int [158.169.9.14]) by netchild.homeip.net (Horde MIME library) with HTTP; Tue, 25 Oct 2005 11:21:23 +0200 Message-ID: <20051025112123.sg6cbui8048sso44@netchild.homeip.net> X-Priority: 3 (Normal) Date: Tue, 25 Oct 2005 11:21:23 +0200 From: Alexander Leidinger To: Mark Linimon References: <200510241102.j9OB22Kd061893@freefall.freebsd.org> <20051024172845.GC5156@soaustin.net> In-Reply-To: <20051024172845.GC5156@soaustin.net> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) H3 (4.0.3) / FreeBSD-4.11 X-Virus-Scanned: by amavisd-new Cc: freebsd-emulation@freebsd.org, FreeBSD bugmaster Subject: Re: 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: Tue, 25 Oct 2005 09:21:30 -0000 Mark Linimon wrote: > It looks like (once again) we have mix of PRs assigned to 'emulation' > and 'freebsd-emulation' and thus there are two postings. Unless there > are objections, I'd like to pick one and switch them all to it; I thought the same after seing both mails. I just don't have time ATM (I'm moving). So: Yes please! Bye, Alexander. -- http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137 I saw what you did and I know who you are. From owner-freebsd-emulation@FreeBSD.ORG Tue Oct 25 12:58:03 2005 Return-Path: X-Original-To: freebsd-emulation@FreeBSD.org Delivered-To: freebsd-emulation@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 221B516A41F; Tue, 25 Oct 2005 12:58:03 +0000 (GMT) (envelope-from nork@FreeBSD.org) Received: from sakura.ninth-nine.com (sakura.ninth-nine.com [219.127.74.120]) by mx1.FreeBSD.org (Postfix) with ESMTP id F394443D60; Tue, 25 Oct 2005 12:58:01 +0000 (GMT) (envelope-from nork@FreeBSD.org) Received: from nadesico.ninth-nine.com (nadesico.ninth-nine.com [219.127.74.122]) by sakura.ninth-nine.com (8.13.3/8.13.3/NinthNine) with ESMTP id j9PCvxaw096894; Tue, 25 Oct 2005 21:58:00 +0900 (JST) (envelope-from nork@FreeBSD.org) Date: Tue, 25 Oct 2005 21:57:59 +0900 From: Norikatsu Shigemura To: Juergen Lock Message-Id: <20051025215759.25681b85.nork@FreeBSD.org> X-Mailer: Sylpheed version 2.1.4 (GTK+ 2.6.10; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0 (sakura.ninth-nine.com [219.127.74.121]); Tue, 25 Oct 2005 21:58:00 +0900 (JST) Cc: freebsd-emulation@FreeBSD.org, Norikatsu Shigemura , Jung-uk Kim Subject: kqemu-kmod port 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, 25 Oct 2005 12:58:03 -0000 Hi qemu maintainer and users! I want kqemu only port to make buildkernel with PORTS_MODULES. I tested that make buildworld PORTS_MODULES=emulators/qemu, but no good. So I decided to make kqemu-kmod port. If I commit following port, I'll remove kqemu related code from emulators/qemu/Makefile and add dependency on kqemu-kmod. http://people.freebsd.org/~nork/kqemu-kmod.shar or # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # kqemu-kmod/Makefile # kqemu-kmod/distinfo # kqemu-kmod/files # kqemu-kmod/files/patch-Makefile.freebsd # kqemu-kmod/files/patch-kqemu-freebsd.c # kqemu-kmod/pkg-descr # echo x - kqemu-kmod/Makefile sed 's/^X//' >kqemu-kmod/Makefile << 'END-of-kqemu-kmod/Makefile' X# New ports collection makefile for: kqemu-kmod X# Date created: 2005/10/25 X# Whom: nork@FreeBSD.org X# X# $FreeBSD$ X# X XPORTNAME= kqemu XPORTVERSION= 0.7.2 XCATEGORIES= emulators XMASTER_SITES= http://fabrice.bellard.free.fr/qemu/ XPKGNAMESUFFIX= -kmod XDIST_SUBDIR= kqemu X XMAINTAINER= nork@FreeBSD.org XCOMMENT= Kernel Acceralator for QEMU CPU Emulator X XONLY_FOR_ARCHS= i386 amd64 XNO_PACKAGE= "Depends on kernel, and module not redistributable" X XPLIST_FILES= "@cwd /" XPLIST_FILES+= ${KMODDIR:C,^/,,}/kqemu.ko X XWRKSRC= ${WRKDIR}/${PORTNAME} XMAKEFILE= BSDmakefile X X.include X X.if !exists(${SRC_BASE}/sys/Makefile) XIGNORE= kqemu requires kernel source to be installed X.endif X Xpost-extract: X @${LN} -s Makefile.freebsd ${WRKSRC}/BSDmakefile X Xpost-install: X if mount |${GREP} ^devfs >/dev/null ; then \ X : ; \ X else \ X if [ ! -e /dev/kqemu ]; then\ X mknod /dev/kqemu c 250 0 ; \ X fi ; \ X ${CHMOD} 666 /dev/kqemu ; \ X fi X X.include END-of-kqemu-kmod/Makefile echo x - kqemu-kmod/distinfo sed 's/^X//' >kqemu-kmod/distinfo << 'END-of-kqemu-kmod/distinfo' XMD5 (kqemu/kqemu-0.7.2.tar.gz) = 02cfdecda90458d6393781496ec6b48b XSIZE (kqemu/kqemu-0.7.2.tar.gz) = 79314 END-of-kqemu-kmod/distinfo echo c - kqemu-kmod/files mkdir -p kqemu-kmod/files > /dev/null 2>&1 echo x - kqemu-kmod/files/patch-Makefile.freebsd sed 's/^X//' >kqemu-kmod/files/patch-Makefile.freebsd << 'END-of-kqemu-kmod/files/patch-Makefile.freebsd' X--- Makefile.freebsd.orig Fri Jul 29 06:37:06 2005 X+++ Makefile.freebsd Tue Oct 25 21:08:43 2005 X@@ -5,6 +5,7 @@ X .elif ${MACHINE_ARCH} == "amd64" X OBJS= kqemu-mod-x86_64.o X .endif X+CC= cc X WERROR= X X .include END-of-kqemu-kmod/files/patch-Makefile.freebsd echo x - kqemu-kmod/files/patch-kqemu-freebsd.c sed 's/^X//' >kqemu-kmod/files/patch-kqemu-freebsd.c << 'END-of-kqemu-kmod/files/patch-kqemu-freebsd.c' X--- kqemu-freebsd.c.orig Mon Aug 15 01:34:06 2005 X+++ kqemu-freebsd.c Tue Oct 25 21:08:43 2005 X@@ -3,32 +3,55 @@ X #include X #include X #include X+#include X+#include X #include X #include X #include X+#if __FreeBSD_version >= 500000 X #include X+#endif X #include X+#include X+#if __FreeBSD_version >= 500000 X #include X+#endif X #include X #include X+#include X+#include X+#if __FreeBSD_version < 500000 X+#include X+#endif X+ X #include X #include X #include X #include X #include X #include X+#include X+ X #include X #include X X #include "kqemu-kernel.h" X X+#ifndef KQEMU_MAJOR X+#define KQEMU_MAJOR 250 X+#endif X+ X MALLOC_DECLARE(M_KQEMU); X MALLOC_DEFINE(M_KQEMU, "kqemu", "kqemu buffers"); X X+int kqemu_debug; X+SYSCTL_INT(_debug, OID_AUTO, kqemu_debug, CTLFLAG_RW, &kqemu_debug, 0, X+ "kqemu debug flag"); X+ X #define USER_BASE 0x1000 X X /* lock the page at virtual address 'user_addr' and return its X- physical page index. Return -1 if error */ X+ physical page index. Return NULL if error */ X struct kqemu_user_page *CDECL kqemu_lock_user_page(unsigned long *ppage_index, X unsigned long user_addr) X { X@@ -37,14 +60,18 @@ X vm_paddr_t pa = 0; X int ret; X pmap_t pmap; X+#if __FreeBSD_version >= 500000 X ret = vm_map_wire(&vm->vm_map, va, va+PAGE_SIZE, VM_MAP_WIRE_USER); X+#else X+ ret = vm_map_user_pageable(&vm->vm_map, va, va+PAGE_SIZE, FALSE); X+#endif X if (ret != KERN_SUCCESS) { X- printf("kqemu_lock_user_page(%08lx) failed, ret=%d\n", user_addr, ret); X+ kqemu_log("kqemu_lock_user_page(%08lx) failed, ret=%d\n", user_addr, ret); X return NULL; X } X pmap = vm_map_pmap(&vm->vm_map); X pa = pmap_extract(pmap, va); X- // printf("kqemu_lock_user_page(%08lx) va=%08x pa=%08x\n", user_addr, va, pa); X+ /* kqemu_log("kqemu_lock_user_page(%08lx) va=%08x pa=%08x\n", user_addr, va, pa); */ X *ppage_index = pa >> PAGE_SHIFT; X return (struct kqemu_user_page *)va; X } X@@ -54,12 +81,16 @@ X struct vmspace *vm = curproc->p_vmspace; X vm_offset_t va; X int ret; X- // printf("kqemu_unlock_user_page(%08lx)\n", page_index); X+ /* kqemu_log("kqemu_unlock_user_page(%08lx)\n", page_index); */ X va = (vm_offset_t)page; X+#if __FreeBSD_version >= 500000 X ret = vm_map_unwire(&vm->vm_map, va, va+PAGE_SIZE, VM_MAP_WIRE_USER); X+#else X+ ret = vm_map_user_pageable(&vm->vm_map, va, va+PAGE_SIZE, TRUE); X+#endif X #if 0 X if (ret != KERN_SUCCESS) { X- printf("kqemu_unlock_user_page(%08lx) failed, ret=%d\n", page_index, ret); X+ kqemu_log("kqemu_unlock_user_page(%08lx) failed, ret=%d\n", page_index, ret); X } X #endif X } X@@ -76,20 +107,21 @@ X X va = kmem_alloc(kernel_map, PAGE_SIZE); X if (va == 0) { X- printf("kqemu_alloc_zeroed_page: NULL\n"); X- return -1; X+ kqemu_log("kqemu_alloc_zeroed_page: NULL\n"); X+ return NULL; X } X pmap = vm_map_pmap(kernel_map); X pa = pmap_extract(pmap, va); X- // printf("kqemu_alloc_zeroed_page: %08x\n", pa); X+ /* kqemu_log("kqemu_alloc_zeroed_page: %08x\n", pa); */ X *ppage_index = pa >> PAGE_SHIFT; X return (struct kqemu_page *)va; X } X X void CDECL kqemu_free_page(struct kqemu_page *page) X { X- // printf("kqemu_free_page(%08lx)\n", page_index); X- /* XXX: do it */ X+ if (kqemu_debug > 0) X+ kqemu_log("kqemu_free_page(%p)\n", page); X+ kmem_free(kernel_map, (vm_offset_t) page, PAGE_SIZE); X } X X /* return kernel address of the physical page page_index */ X@@ -103,42 +135,29 @@ X GB of physical memory */ X void * CDECL kqemu_vmalloc(unsigned int size) X { X- struct vmspace *vm = curproc->p_vmspace; X- vm_offset_t va = USER_BASE; X- int rv; X- if (size % PAGE_SIZE != 0) { X- printf("kqemu_vmalloc(%d) not a multiple of page size\n", size); X- return NULL; X- } X- rv = vm_map_find(&vm->vm_map, NULL, 0, &va, size, 1, X- VM_PROT_ALL, VM_PROT_ALL, 0); X- if (rv != KERN_SUCCESS) { X- printf("kqemu_vmalloc(%d) failed rv=%d\n", size, rv); X- return NULL; X- } X- printf("kqemu_vmalloc(%d): %08x\n", size, va); X- return (void *)va; X+ void *ptr = malloc(size, M_KQEMU, M_WAITOK); X+ if (kqemu_debug > 0) X+ kqemu_log("kqemu_vmalloc(%d): %p\n", size, ptr); X+ return ptr; X } X X void CDECL kqemu_vfree(void *ptr) X { X- printf("kqemu_vfree(%p)\n", ptr); X+ if (kqemu_debug > 0) X+ kqemu_log("kqemu_vfree(%p)\n", ptr); X+ free(ptr, M_KQEMU); X } X X /* return the physical page index for a given virtual page */ X unsigned long CDECL kqemu_vmalloc_to_phys(const void *vaddr) X { X- struct vmspace *vm = curproc->p_vmspace; X- vm_paddr_t pa; X- pmap_t pmap; X- X- pmap = vm_map_pmap(&vm->vm_map); X- pa = pmap_extract(pmap, (vm_offset_t)vaddr); X+ vm_paddr_t pa = vtophys(vaddr); X if (pa == 0) { X- printf("kqemu_vmalloc_to_phys(%p)->error\n", vaddr); X+ kqemu_log("kqemu_vmalloc_to_phys(%p)->error\n", vaddr); X return -1; X } X- printf("kqemu_vmalloc_to_phys(%p)->%08x\n", vaddr, pa); X+ if (kqemu_debug > 0) X+ kqemu_log("kqemu_vmalloc_to_phys(%p)->%08x\n", vaddr, pa); X return pa >> PAGE_SHIFT; X } X X@@ -154,16 +173,48 @@ X { X } X X+#if __FreeBSD_version < 500000 X+static int X+curpriority_cmp(struct proc *p) X+{ X+ int c_class, p_class; X+ X+ c_class = RTP_PRIO_BASE(curproc->p_rtprio.type); X+ p_class = RTP_PRIO_BASE(p->p_rtprio.type); X+ if (p_class != c_class) X+ return (p_class - c_class); X+ if (p_class == RTP_PRIO_NORMAL) X+ return (((int)p->p_priority - (int)curpriority) / PPQ); X+ return ((int)p->p_rtprio.prio - (int)curproc->p_rtprio.prio); X+} X+ X+/* return TRUE if a signal is pending (i.e. the guest must stop X+ execution) */ X+int CDECL kqemu_schedule(void) X+{ X+ struct proc *p = curproc; X+ if (curpriority_cmp(p) > 0) { X+ int s = splhigh(); X+ p->p_priority = MAXPRI; X+ setrunqueue(p); X+ p->p_stats->p_ru.ru_nvcsw++; X+ mi_switch(); X+ splx(s); X+ } X+ return issignal(curproc) != 0; X+} X+#else X /* return TRUE if a signal is pending (i.e. the guest must stop X execution) */ X int CDECL kqemu_schedule(void) X { X- // printf("kqemu_schedule\n"); X+ /* kqemu_log("kqemu_schedule\n"); */ X mtx_lock_spin(&sched_lock); X mi_switch(SW_VOL, NULL); X mtx_unlock_spin(&sched_lock); X return SIGPENDING(curthread); X } X+#endif X X static char log_buf[4096]; X X@@ -176,47 +227,159 @@ X va_end(ap); X } X X+#define KQEMU_MAX_INSTANCES 4 X+ X struct kqemu_instance { X- // struct semaphore sem; X+#if __FreeBSD_version >= 500000 X+ TAILQ_ENTRY(kqemu_instance) kqemu_ent; X+ struct cdev *kqemu_dev; X+#endif X+ /* struct semaphore sem; */ X struct kqemu_state *state; X }; X X+static int kqemu_ref_count = 0; X+static int max_locked_pages; X+ X+#if __FreeBSD_version < 500000 X+static dev_t kqemu_dev; X+#else X+static struct clonedevs *kqemuclones; X+static TAILQ_HEAD(,kqemu_instance) kqemuhead = TAILQ_HEAD_INITIALIZER(kqemuhead); X+static eventhandler_tag clonetag; X+#endif X+ X static d_close_t kqemu_close; X static d_open_t kqemu_open; X static d_ioctl_t kqemu_ioctl; X X static struct cdevsw kqemu_cdevsw = { X+#if __FreeBSD_version < 500000 X+ /* open */ kqemu_open, X+ /* close */ kqemu_close, X+ /* read */ noread, X+ /* write */ nowrite, X+ /* ioctl */ kqemu_ioctl, X+ /* poll */ nopoll, X+ /* mmap */ nommap, X+ /* strategy */ nostrategy, X+ /* name */ "kqemu", X+ /* maj */ KQEMU_MAJOR, X+ /* dump */ nodump, X+ /* psize */ nopsize, X+ /* flags */ 0, X+ /* bmaj */ -1 X+#else X .d_version = D_VERSION, X .d_flags = D_NEEDGIANT, X .d_open = kqemu_open, X .d_ioctl = kqemu_ioctl, X .d_close = kqemu_close, X .d_name = "kqemu" X+#endif X }; X X-/* For use with make_dev(9)/destroy_dev(9). */ X-static struct cdev *kqemu_dev; X+#if __FreeBSD_version >= 500000 X+static void X+#if __FreeBSD_version >= 600034 X+kqemu_clone(void *arg, struct ucred *cred, char *name, int namelen, X+struct cdev **dev) X+#else X+kqemu_clone(void *arg, char *name, int namelen, struct cdev **dev) X+#endif X+{ X+ int unit, r; X+ if (*dev != NULL) X+ return; X+ X+ if (strcmp(name, "kqemu") == 0) X+ unit = -1; X+ else if (dev_stdclone(name, NULL, "kqemu", &unit) != 1) X+ return; /* Bad name */ X+ if (unit != -1 && unit > KQEMU_MAX_INSTANCES) X+ return; X+ X+ r = clone_create(&kqemuclones, &kqemu_cdevsw, &unit, dev, 0); X+ if (r) { X+ *dev = make_dev(&kqemu_cdevsw, unit2minor(unit), X+ UID_ROOT, GID_WHEEL, 0660, "kqemu%d", unit); X+ if (*dev != NULL) { X+ (*dev)->si_flags |= SI_CHEAPCLONE; X+ } X+ } X+} X+#endif X+ X+static void kqemu_destroy(struct kqemu_instance *ks) X+{ X+#if __FreeBSD_version >= 500000 X+ struct cdev *dev = ks->kqemu_dev; X+#endif X+ X+ if (ks->state) { X+ kqemu_delete(ks->state); X+ ks->state = NULL; X+ } X+ X+#if __FreeBSD_version >= 500000 X+ dev->si_drv1 = NULL; X+ TAILQ_REMOVE(&kqemuhead, ks, kqemu_ent); X+ destroy_dev(dev); X+#endif X+ free(ks, M_KQEMU); X+ --kqemu_ref_count; X+} X X /* ARGSUSED */ X static int X+#if __FreeBSD_version < 500000 X+kqemu_open(dev_t dev, int flags, int fmt __unused, struct proc *p) X+{ X+#else X kqemu_open(struct cdev *dev, int flags, int fmt __unused, X struct thread *td) X { X+ struct proc *p = td->td_proc; X+#endif X struct kqemu_instance *ks; X+ X+#if __FreeBSD_version >= 500000 X+ if (kqemu_ref_count >= KQEMU_MAX_INSTANCES) X+#else X+ if (dev->si_drv1 || kqemu_ref_count >= KQEMU_MAX_INSTANCES) X+#endif X+ return(EBUSY); X+ X+ if ((flags & (FREAD|FWRITE)) == FREAD) X+ return(EPERM); X+ X ks = malloc(sizeof(struct kqemu_instance), M_KQEMU, M_WAITOK); X if (ks == NULL) { X- printf("malloc failed\n"); X+ kqemu_log("malloc failed\n"); X return ENOMEM; X } X- ks->state = NULL; X+ memset(ks, 0, sizeof *ks); X+#if __FreeBSD_version >= 500000 X+ ks->kqemu_dev = dev; X+ TAILQ_INSERT_TAIL(&kqemuhead, ks, kqemu_ent); X+#endif X+ kqemu_ref_count++; X+ X dev->si_drv1 = ks; X+ if (kqemu_debug > 0) X+ kqemu_log("opened by pid=%d\n", p->p_pid); X return 0; X } X X /* ARGSUSED */ X static int X+#if __FreeBSD_version < 500000 X+kqemu_ioctl(dev_t dev, u_long cmd, caddr_t addr, X+ int flags __unused, struct proc *p) X+#else X kqemu_ioctl(struct cdev *dev, u_long cmd, caddr_t addr, X int flags __unused, struct thread *td) X+#endif X { X int error = 0; X int ret; X@@ -231,8 +394,9 @@ X break; X } X d1 = *(struct kqemu_init *)addr; X- printf("ram_base=%p ram_size=%ld\n", d1.ram_base, d1.ram_size); X- s = kqemu_init(d, 16000); X+ if (kqemu_debug > 0) X+ kqemu_log("ram_base=%p ram_size=%ld\n", d1.ram_base, d1.ram_size); X+ s = kqemu_init(d, max_locked_pages); X if (s == NULL) { X error = ENOMEM; X break; X@@ -248,9 +412,16 @@ X } X ctx = kqemu_get_cpu_state(s); X *ctx = *(struct kqemu_cpu_state *)addr; X+#if __FreeBSD_version >= 500000 X DROP_GIANT(); X+#endif X ret = kqemu_exec(s); X+#if __FreeBSD_version >= 500000 X PICKUP_GIANT(); X+ td->td_retval[0] = ret; X+#else X+ p->p_retval[0] = ret; X+#endif X *(struct kqemu_cpu_state *)addr = *ctx; X break; X } X@@ -265,10 +436,22 @@ X X /* ARGSUSED */ X static int X+#if __FreeBSD_version < 500000 X+kqemu_close(dev_t dev, int flags, int fmt __unused, struct proc *p) X+{ X+#else X kqemu_close(struct cdev *dev __unused, int flags, int fmt __unused, X struct thread *td) X { X- return 0; X+ struct proc *p = td->td_proc; X+#endif X+ struct kqemu_instance *ks = (struct kqemu_instance *) dev->si_drv1; X+ X+ kqemu_destroy(ks); X+ X+ if (kqemu_debug > 0) X+ kqemu_log("closed by pid=%d\n", p->p_pid); X+ return 0; X } X X /* ARGSUSED */ X@@ -276,15 +459,55 @@ X kqemu_modevent(module_t mod __unused, int type, void *data __unused) X { X int error = 0; X+#if __FreeBSD_version < 500000 X+ int rc; X+#else X+ struct kqemu_instance *ks; X+#endif X X switch (type) { X case MOD_LOAD: X printf("kqemu version 0x%08x\n", KQEMU_VERSION); X+ max_locked_pages = physmem / (2 * KQEMU_MAX_INSTANCES); X+ if (max_locked_pages > 32768) X+ max_locked_pages = 32768; X+#if __FreeBSD_version < 500000 X+ if ((rc = cdevsw_add(&kqemu_cdevsw))) { X+ kqemu_log("error registering cdevsw, rc=%d\n", rc); X+ error = ENOENT; X+ break; X+ } X kqemu_dev = make_dev(&kqemu_cdevsw, 0, X- UID_ROOT, GID_WHEEL, 0666, "kqemu"); X+ UID_ROOT, GID_WHEEL, 0660, "kqemu"); X+#else X+ clone_setup(&kqemuclones); X+ clonetag = EVENTHANDLER_REGISTER(dev_clone, kqemu_clone, 0, 1000); X+ if (!clonetag) { X+ error = ENOMEM; X+ break; X+ } X+#endif X+ kqemu_log("KQEMU installed, max_instances=%d max_locked_mem=%dkB.\n", X+ KQEMU_MAX_INSTANCES, max_locked_pages * 4); X+ X+ kqemu_ref_count = 0; X break; X case MOD_UNLOAD: X+ if (kqemu_ref_count > 0) { X+ error = EBUSY; X+ break; X+ } X+#if __FreeBSD_version < 500000 X destroy_dev(kqemu_dev); X+ if ((rc = cdevsw_remove(&kqemu_cdevsw))) X+ kqemu_log("error unregistering, rc=%d\n", rc); X+#else X+ EVENTHANDLER_DEREGISTER(dev_clone, clonetag); X+ while ((ks = TAILQ_FIRST(&kqemuhead)) != NULL) { X+ kqemu_destroy(ks); X+ } X+ clone_cleanup(&kqemuclones); X+#endif X break; X case MOD_SHUTDOWN: X break; END-of-kqemu-kmod/files/patch-kqemu-freebsd.c echo x - kqemu-kmod/pkg-descr sed 's/^X//' >kqemu-kmod/pkg-descr << 'END-of-kqemu-kmod/pkg-descr' XKQEMU is a qemu accelerator kernel module on x86/amd64. X XWWW: http://fabrice.bellard.free.fr/qemu/qemu-accel.html END-of-kqemu-kmod/pkg-descr exit From owner-freebsd-emulation@FreeBSD.ORG Tue Oct 25 13:00:34 2005 Return-Path: X-Original-To: freebsd-emulation@FreeBSD.org Delivered-To: freebsd-emulation@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BAD7E16A43E; Tue, 25 Oct 2005 13:00:34 +0000 (GMT) (envelope-from nork@FreeBSD.org) Received: from sakura.ninth-nine.com (sakura.ninth-nine.com [219.127.74.120]) by mx1.FreeBSD.org (Postfix) with ESMTP id A172343D8D; Tue, 25 Oct 2005 13:00:29 +0000 (GMT) (envelope-from nork@FreeBSD.org) Received: from nadesico.ninth-nine.com (nadesico.ninth-nine.com [219.127.74.122]) by sakura.ninth-nine.com (8.13.3/8.13.3/NinthNine) with ESMTP id j9PD0SMF096972; Tue, 25 Oct 2005 22:00:28 +0900 (JST) (envelope-from nork@FreeBSD.org) Date: Tue, 25 Oct 2005 22:00:28 +0900 From: Norikatsu Shigemura To: Juergen Lock Message-Id: <20051025220028.a7732a58.nork@FreeBSD.org> In-Reply-To: <20051025215759.25681b85.nork@FreeBSD.org> References: <20051025215759.25681b85.nork@FreeBSD.org> X-Mailer: Sylpheed version 2.1.4 (GTK+ 2.6.10; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0 (sakura.ninth-nine.com [219.127.74.121]); Tue, 25 Oct 2005 22:00:29 +0900 (JST) Cc: freebsd-emulation@FreeBSD.org, Norikatsu Shigemura , Jung-uk Kim Subject: Re: kqemu-kmod port 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, 25 Oct 2005 13:00:35 -0000 On Tue, 25 Oct 2005 21:57:59 +0900 Norikatsu Shigemura wrote: > I want kqemu only port to make buildkernel with PORTS_MODULES. > I tested that make buildworld PORTS_MODULES=emulators/qemu, > but no good. So I decided to make kqemu-kmod port. MEMO: This idea from matusita@ and takawata@ on discussion. From owner-freebsd-emulation@FreeBSD.ORG Tue Oct 25 19:15:23 2005 Return-Path: X-Original-To: freebsd-emulation@FreeBSD.org Delivered-To: freebsd-emulation@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A3EE016A420; Tue, 25 Oct 2005 19:15:23 +0000 (GMT) (envelope-from nox@saturn.kn-bremen.de) Received: from gwyn.kn-bremen.de (gwyn.kn-bremen.de [212.63.36.242]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9A68743D8B; Tue, 25 Oct 2005 19:15:10 +0000 (GMT) (envelope-from nox@saturn.kn-bremen.de) Received: from gwyn.kn-bremen.de (gwyn [127.0.0.1]) by gwyn.kn-bremen.de (8.13.4/8.13.4/Debian-3) with ESMTP id j9PJF93Y022938; Tue, 25 Oct 2005 21:15:09 +0200 Received: from saturn.kn-bremen.de (uucp@localhost) by gwyn.kn-bremen.de (8.13.4/8.13.4/Submit) with UUCP id j9PJF9Zg022936; Tue, 25 Oct 2005 21:15:09 +0200 Received: from saturn.kn-bremen.de (localhost [127.0.0.1]) by saturn.kn-bremen.de (8.13.1/8.13.1) with ESMTP id j9PJBgU8008898; Tue, 25 Oct 2005 21:11:42 +0200 (CEST) (envelope-from nox@saturn.kn-bremen.de) Received: (from nox@localhost) by saturn.kn-bremen.de (8.13.1/8.13.1/Submit) id j9PJBfSY008897; Tue, 25 Oct 2005 21:11:41 +0200 (CEST) (envelope-from nox) From: Juergen Lock Date: Tue, 25 Oct 2005 21:11:41 +0200 To: Norikatsu Shigemura Message-ID: <20051025191141.GC7277@saturn.kn-bremen.de> Mail-Followup-To: Norikatsu Shigemura , freebsd-emulation@FreeBSD.org, Jung-uk Kim References: <20051025215759.25681b85.nork@FreeBSD.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20051025215759.25681b85.nork@FreeBSD.org> User-Agent: Mutt/1.4.2.1i Cc: freebsd-emulation@FreeBSD.org, Jung-uk Kim Subject: Re: kqemu-kmod port 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, 25 Oct 2005 19:15:23 -0000 On Tue, Oct 25, 2005 at 09:57:59PM +0900, Norikatsu Shigemura wrote: > Hi qemu maintainer and users! > > I want kqemu only port to make buildkernel with PORTS_MODULES. > > I tested that make buildworld PORTS_MODULES=emulators/qemu, > but no good. So I decided to make kqemu-kmod port. > > If I commit following port, I'll remove kqemu related code > from emulators/qemu/Makefile and add dependency on kqemu-kmod. >[...] Err. You may be able to build the kld seperately like that, but the qemu build also needs the kqemu bits in place in the build dir to add in kqemu support... So if you remove it from the qemu port the kld wont get used. Juergen From owner-freebsd-emulation@FreeBSD.ORG Tue Oct 25 20:04:17 2005 Return-Path: X-Original-To: freebsd-emulation@FreeBSD.org Delivered-To: freebsd-emulation@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 33C1D16A420; Tue, 25 Oct 2005 20:04:17 +0000 (GMT) (envelope-from bsam@ns.kfs.ru) Received: from ns.kfs.ru (kfs.kfs.ru [62.183.117.194]) by mx1.FreeBSD.org (Postfix) with ESMTP id A95FA43D72; Tue, 25 Oct 2005 20:04:14 +0000 (GMT) (envelope-from bsam@ns.kfs.ru) Received: from bsam by ns.kfs.ru with local (Exim 4.52 (FreeBSD)) id 1EUV1p-000C53-Ak; Wed, 26 Oct 2005 00:04:13 +0400 To: Trevor Johnson References: <200510150102.j9F12n05008693@freefall.freebsd.org> From: Boris Samorodov Date: Wed, 26 Oct 2005 00:04:13 +0400 In-Reply-To: <200510150102.j9F12n05008693@freefall.freebsd.org> (Trevor Johnson's message of "Sat, 15 Oct 2005 01:02:49 GMT") Message-ID: <63212306@serv3.int.kfs.ru> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: "Boris B. Samorodov" Cc: freebsd-emulation@FreeBSD.org Subject: Re: ports/85254: [patch] emulators/linux_base-rh-9: add /usr/X11R6/lib to etc/ld.so.conf 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, 25 Oct 2005 20:04:17 -0000 Hi! CC to emulation@. May be it is the right list to ask. On Sat, 15 Oct 2005 01:02:49 GMT Trevor Johnson wrote: > Synopsis: [patch] emulators/linux_base-rh-9: add /usr/X11R6/lib to etc/ld.so.conf > State-Changed-From-To: open->analyzed > State-Changed-By: trevor > State-Changed-When: Sat Oct 15 00:45:25 GMT 2005 > State-Changed-Why: > When I wrote the linux-Xfree86-libs port, it made the necessary > changs to ld.so.conf. However netchild decided to redesign that > port, so that it no longer did that. This caused the breakage you > found. It affects all the Linux base ports that previously could > work with the linux-Xfree86-libs port, While your solution seems > okay, I think it would be simpler to just revert the changes to the > linux-Xfree86-libs port. > http://www.freebsd.org/cgi/query-pr.cgi?pr=85254 Well, we do have some inconsistency with x11/linux-Xfree86-libs and emulators/linux-base-* ports. Can someone take a look at the problem and Do The Right Thing? WBR -- bsam From owner-freebsd-emulation@FreeBSD.ORG Wed Oct 26 12:33:52 2005 Return-Path: X-Original-To: emulation@freebsd.org Delivered-To: freebsd-emulation@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 214A616A41F for ; Wed, 26 Oct 2005 12:33:52 +0000 (GMT) (envelope-from q@galgenberg.net) Received: from wrzx28.rz.uni-wuerzburg.de (wrzx28.rz.uni-wuerzburg.de [132.187.3.28]) by mx1.FreeBSD.org (Postfix) with ESMTP id 07B7B43D46 for ; Wed, 26 Oct 2005 12:33:50 +0000 (GMT) (envelope-from q@galgenberg.net) Received: from wrzx34.rz.uni-wuerzburg.de (wrzx34.rz.uni-wuerzburg.de [132.187.3.34]) by wrzx28.rz.uni-wuerzburg.de (Postfix) with ESMTP id BE31113F328 for ; Wed, 26 Oct 2005 14:33:49 +0200 (CEST) Received: from virusscan (localhost [127.0.0.1]) by wrzx34.rz.uni-wuerzburg.de (Postfix) with ESMTP id A131BB3517 for ; Wed, 26 Oct 2005 14:33:49 +0200 (CEST) Received: from wrzx28.rz.uni-wuerzburg.de (wrzx28.rz.uni-wuerzburg.de [132.187.3.28]) by wrzx34.rz.uni-wuerzburg.de (Postfix) with ESMTP id 64CC4B0D73 for ; Wed, 26 Oct 2005 14:33:49 +0200 (CEST) Received: from frodo.galgenberg.net (wwsx14.win-screen.uni-wuerzburg.de [132.187.253.14]) by wrzx28.rz.uni-wuerzburg.de (Postfix) with ESMTP id 2173713F328 for ; Wed, 26 Oct 2005 14:33:49 +0200 (CEST) Received: from coyote.q.local (gb-21-237.galgenberg.net [172.16.21.237]) by frodo.galgenberg.net (8.13.1/8.13.1) with ESMTP id j9QCXm8M034787 for ; Wed, 26 Oct 2005 14:33:48 +0200 (CEST) (envelope-from q@galgenberg.net) Received: from roadrunner.q.local (roadrunner.q.local [192.168.0.148]) by coyote.q.local (8.13.4/8.13.4) with ESMTP id j9QCXmml070336 for ; Wed, 26 Oct 2005 14:33:48 +0200 (CEST) (envelope-from q@galgenberg.net) Received: from roadrunner.q.local (localhost [127.0.0.1]) by roadrunner.q.local (8.13.4/8.13.4) with ESMTP id j9QCXmXJ051049 for ; Wed, 26 Oct 2005 14:33:48 +0200 (CEST) (envelope-from q@galgenberg.net) Received: (from q@localhost) by roadrunner.q.local (8.13.4/8.13.4/Submit) id j9QCXmBE051048 for emulation@freebsd.org; Wed, 26 Oct 2005 14:33:48 +0200 (CEST) (envelope-from q@galgenberg.net) Date: Wed, 26 Oct 2005 14:33:47 +0200 From: Ulrich Spoerlein To: emulation@freebsd.org Message-ID: <20051026123347.GA1054@galgenberg.net> Mail-Followup-To: emulation@freebsd.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="E39vaYmALEf/7YXx" Content-Disposition: inline X-Virus-Scanned: by amavisd-new (Rechenzentrum Universitaet Wuerzburg) X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Porting linux-wine 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, 26 Oct 2005 12:33:52 -0000 --E39vaYmALEf/7YXx Content-Type: multipart/mixed; boundary="OXfL5xGRrasGEqWY" Content-Disposition: inline --OXfL5xGRrasGEqWY Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Good day everyone, I'm having trouble getting the linux binary of WINE running. Since it reached 0.9 some days ago, I thought I'll try this version, to see if the problem with my apps is in WINE or in the FreeBSD Port of WINE. Anyway, since the RedHat packages are older, I'll post the preliminary port here, problem is: It doesn't work. /compat/linux/usr/bin/wine: error while loading shared libraries: /usr/lib/= libwine.so.1: ELF file OS ABI invalid Note that, ktracing this process reveals, it is trying to load /compat/usr/lib/libwine, so this is ok (I fiddled with LD_LIBRARY_PATH before, and got the same result). So, what's wrong with those shared libs? Ulrich Spoerlein --=20 PGP Key ID: F0DB9F44 Encrypted mail welcome! Fingerprint: F1CE D062 0CA9 ADE3 349B 2FE8 980A C6B5 F0DB 9F44 Ok, which part of "Ph'nglui mglw'nafh Cthulhu R'lyeh wgah'nagl fhtagn." didn't you understand? --OXfL5xGRrasGEqWY-- --E39vaYmALEf/7YXx Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQFDX3ermArGtfDbn0QRAhLDAKDJ/r1SDqeMuZQziffQNPjGyBy/dgCgrLnn pRHk1N8Sk9AeOHWXkshZ9RM= =AT37 -----END PGP SIGNATURE----- --E39vaYmALEf/7YXx-- From owner-freebsd-emulation@FreeBSD.ORG Wed Oct 26 13:03:38 2005 Return-Path: X-Original-To: freebsd-emulation@freebsd.org Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2AACC16A41F; Wed, 26 Oct 2005 13:03:38 +0000 (GMT) (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 27F7243D5F; Wed, 26 Oct 2005 13:03:31 +0000 (GMT) (envelope-from Alexander@Leidinger.net) Received: from Andro-Beta.Leidinger.net (p54A5E84E.dip.t-dialin.net [84.165.232.78]) (authenticated bits=0) by www.ebusiness-leidinger.de (8.13.1/8.13.1) with ESMTP id j9QChqwR042522; Wed, 26 Oct 2005 14:43:53 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from localhost (localhost [127.0.0.1]) by Andro-Beta.Leidinger.net (8.13.3/8.13.3) with ESMTP id j9QD3JLK018646; Wed, 26 Oct 2005 15:03:19 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from pslux.cec.eu.int (pslux.cec.eu.int [158.169.9.14]) by netchild.homeip.net (Horde MIME library) with HTTP; Wed, 26 Oct 2005 15:03:19 +0200 Message-ID: <20051026150319.e8j8u9brwwwgkwk0@netchild.homeip.net> X-Priority: 3 (Normal) Date: Wed, 26 Oct 2005 15:03:19 +0200 From: Alexander Leidinger To: Boris Samorodov References: <200510150102.j9F12n05008693@freefall.freebsd.org> <63212306@serv3.int.kfs.ru> In-Reply-To: <63212306@serv3.int.kfs.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) H3 (4.0.3) / FreeBSD-4.11 X-Virus-Scanned: by amavisd-new Cc: freebsd-emulation@freebsd.org, Trevor Johnson Subject: Re: ports/85254: [patch] emulators/linux_base-rh-9: add /usr/X11R6/lib to etc/ld.so.conf 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, 26 Oct 2005 13:03:38 -0000 Boris Samorodov wrote: > On Sat, 15 Oct 2005 01:02:49 GMT Trevor Johnson wrote: > >> Synopsis: [patch] emulators/linux_base-rh-9: add /usr/X11R6/lib to >> etc/ld.so.conf > >> State-Changed-From-To: open->analyzed >> State-Changed-By: trevor >> State-Changed-When: Sat Oct 15 00:45:25 GMT 2005 >> State-Changed-Why: >> When I wrote the linux-Xfree86-libs port, it made the necessary >> changs to ld.so.conf. However netchild decided to redesign that >> port, so that it no longer did that. This caused the breakage you >> found. It affects all the Linux base ports that previously could >> work with the linux-Xfree86-libs port, While your solution seems >> okay, I think it would be simpler to just revert the changes to the >> linux-Xfree86-libs port. > >> http://www.freebsd.org/cgi/query-pr.cgi?pr=85254 > > Well, we do have some inconsistency with x11/linux-Xfree86-libs and > emulators/linux-base-* ports. Can someone take a look at the problem > and Do The Right Thing? As I explained several times to Trevor (I don't know if only per mail or in a PR or here on emulation@), the linux-X11 port already does the right thing after the redesign. ld.so.conf is owned by the linux_base ports and files owned by port A should not be modified by port B. I'm only aware of one linux port which needs to modify ld.so.conf, and this is the linux-X11 port. There may be exceptions to the B isn't allowd to modify files from A rule, but in the linux_base case we don't need to make an excpetion. The ld.so.conf is a config file and it doesn't hurt to have the linux-X11 path in there. Yes, there are other files which don't follow the "A/B"-rule, but just because of this we don't need to show more bad habbit. Bye, Alexander. -- http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137 Science is true. Don't be misled by facts. From owner-freebsd-emulation@FreeBSD.ORG Wed Oct 26 13:07:16 2005 Return-Path: X-Original-To: emulation@freebsd.org Delivered-To: freebsd-emulation@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BD21416A41F for ; Wed, 26 Oct 2005 13:07:16 +0000 (GMT) (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 60A7B43D68 for ; Wed, 26 Oct 2005 13:07:11 +0000 (GMT) (envelope-from Alexander@Leidinger.net) Received: from Andro-Beta.Leidinger.net (p54A5E84E.dip.t-dialin.net [84.165.232.78]) (authenticated bits=0) by www.ebusiness-leidinger.de (8.13.1/8.13.1) with ESMTP id j9QClX6J042550; Wed, 26 Oct 2005 14:47:34 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from localhost (localhost [127.0.0.1]) by Andro-Beta.Leidinger.net (8.13.3/8.13.3) with ESMTP id j9QD75ZC019329; Wed, 26 Oct 2005 15:07:05 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from pslux.cec.eu.int (pslux.cec.eu.int [158.169.9.14]) by netchild.homeip.net (Horde MIME library) with HTTP; Wed, 26 Oct 2005 15:07:05 +0200 Message-ID: <20051026150705.qzo2u74dgggcosss@netchild.homeip.net> X-Priority: 3 (Normal) Date: Wed, 26 Oct 2005 15:07:05 +0200 From: Alexander Leidinger To: Ulrich Spoerlein References: <20051026123347.GA1054@galgenberg.net> In-Reply-To: <20051026123347.GA1054@galgenberg.net> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) H3 (4.0.3) / FreeBSD-4.11 X-Virus-Scanned: by amavisd-new Cc: emulation@freebsd.org Subject: Re: Porting linux-wine 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, 26 Oct 2005 13:07:17 -0000 Ulrich Spoerlein wrote: > /compat/linux/usr/bin/wine: error while loading shared libraries: > /usr/lib/libwine.so.1: ELF file OS ABI invalid > > Note that, ktracing this process reveals, it is trying to load > /compat/usr/lib/libwine, so this is ok (I fiddled with LD_LIBRARY_PATH I assume a typo (missing "linux" in the path). > before, and got the same result). Do a "brandelf " on the lib an on the wine executable (on the ELF binary, in case "wine" is a shell wrapper). If they don't agree regarding the ELF ABI, you have to fix the wrong one up ("brandelf -t Linux ". Bye, Alexander. -- http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137 All programmers are playwrights and all computers are lousy actors. From owner-freebsd-emulation@FreeBSD.ORG Wed Oct 26 13:33:18 2005 Return-Path: X-Original-To: emulation@freebsd.org Delivered-To: freebsd-emulation@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7278F16A41F for ; Wed, 26 Oct 2005 13:33:18 +0000 (GMT) (envelope-from q@galgenberg.net) Received: from wrzx28.rz.uni-wuerzburg.de (wrzx28.rz.uni-wuerzburg.de [132.187.3.28]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9C17043D58 for ; Wed, 26 Oct 2005 13:33:15 +0000 (GMT) (envelope-from q@galgenberg.net) Received: from wrzx30.rz.uni-wuerzburg.de (wrzx30.rz.uni-wuerzburg.de [132.187.1.30]) by wrzx28.rz.uni-wuerzburg.de (Postfix) with ESMTP id C246013F2ED; Wed, 26 Oct 2005 15:33:13 +0200 (CEST) Received: from virusscan (localhost [127.0.0.1]) by wrzx30.rz.uni-wuerzburg.de (Postfix) with ESMTP id A7A169CC8A; Wed, 26 Oct 2005 15:33:13 +0200 (CEST) Received: from wrzx28.rz.uni-wuerzburg.de (wrzx28.rz.uni-wuerzburg.de [132.187.3.28]) by wrzx30.rz.uni-wuerzburg.de (Postfix) with ESMTP id 8FCCC9ABB3; Wed, 26 Oct 2005 15:33:13 +0200 (CEST) Received: from frodo.galgenberg.net (wwsx14.win-screen.uni-wuerzburg.de [132.187.253.14]) by wrzx28.rz.uni-wuerzburg.de (Postfix) with ESMTP id 6264A13F2ED; Wed, 26 Oct 2005 15:33:13 +0200 (CEST) Received: from coyote.q.local (gb-21-237.galgenberg.net [172.16.21.237]) by frodo.galgenberg.net (8.13.1/8.13.1) with ESMTP id j9QDXDCl055955; Wed, 26 Oct 2005 15:33:13 +0200 (CEST) (envelope-from q@galgenberg.net) Received: from roadrunner.q.local (roadrunner.q.local [192.168.0.148]) by coyote.q.local (8.13.4/8.13.4) with ESMTP id j9QDXCXM070597; Wed, 26 Oct 2005 15:33:12 +0200 (CEST) (envelope-from q@galgenberg.net) Received: from roadrunner.q.local (localhost [127.0.0.1]) by roadrunner.q.local (8.13.4/8.13.4) with ESMTP id j9QDXCmQ051638; Wed, 26 Oct 2005 15:33:12 +0200 (CEST) (envelope-from q@galgenberg.net) Received: (from q@localhost) by roadrunner.q.local (8.13.4/8.13.4/Submit) id j9QDXCJM051637; Wed, 26 Oct 2005 15:33:12 +0200 (CEST) (envelope-from q@galgenberg.net) Date: Wed, 26 Oct 2005 15:33:12 +0200 From: Ulrich Spoerlein To: Alexander Leidinger Message-ID: <20051026133312.GB1054@galgenberg.net> Mail-Followup-To: Alexander Leidinger , emulation@freebsd.org References: <20051026123347.GA1054@galgenberg.net> <20051026150705.qzo2u74dgggcosss@netchild.homeip.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="c3bfwLpm8qysLVxt" Content-Disposition: inline In-Reply-To: <20051026150705.qzo2u74dgggcosss@netchild.homeip.net> X-Virus-Scanned: by amavisd-new (Rechenzentrum Universitaet Wuerzburg) Cc: emulation@freebsd.org Subject: Re: Porting linux-wine 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, 26 Oct 2005 13:33:18 -0000 --c3bfwLpm8qysLVxt Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, 26.10.2005 at 15:07:05 +0200, Alexander Leidinger wrote: > >/compat/linux/usr/bin/wine: error while loading shared libraries: /usr/l= ib/libwine.so.1:=20 > >ELF file OS ABI invalid > > > >Note that, ktracing this process reveals, it is trying to load > >/compat/usr/lib/libwine, so this is ok (I fiddled with LD_LIBRARY_PATH > >before, and got the same result). >=20 > Do a "brandelf " on the lib an on the wine executable (on the= ELF > binary, in case "wine" is a shell wrapper). If they don't agree regarding= the > ELF ABI, you have to fix the wrong one up ("brandelf -t Linux ". Hi, as you can see from the port Makefile, I'm calling brandelf on all binaries= and libs. % file /compat/linux/usr/lib/libwine.so.1; brandelf /compat/linux/usr/lib/l= ibwine.so.1 /compat/linux/usr/lib/libwine.so.1: ELF 32-bit LSB shared object, Intel 803= 86, version 1 (GNU/Linux), not stripped File '/compat/linux/usr/lib/libwine.so.1' is of brand 'Linux' (3). Ulrich Spoerlein --=20 PGP Key ID: F0DB9F44 Encrypted mail welcome! Fingerprint: F1CE D062 0CA9 ADE3 349B 2FE8 980A C6B5 F0DB 9F44 Ok, which part of "Ph'nglui mglw'nafh Cthulhu R'lyeh wgah'nagl fhtagn." didn't you understand? --c3bfwLpm8qysLVxt Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQFDX4WYmArGtfDbn0QRArj9AKCjtzQgrzLfA+RYXJogVNnBKXVMFwCgmDzZ oj7jeHMyixieHpCE60sQFuU= =oXum -----END PGP SIGNATURE----- --c3bfwLpm8qysLVxt-- From owner-freebsd-emulation@FreeBSD.ORG Wed Oct 26 13:44:06 2005 Return-Path: X-Original-To: freebsd-emulation@FreeBSD.org Delivered-To: freebsd-emulation@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CA6B716A41F; Wed, 26 Oct 2005 13:44:06 +0000 (GMT) (envelope-from nork@FreeBSD.org) Received: from sakura.ninth-nine.com (sakura.ninth-nine.com [219.127.74.120]) by mx1.FreeBSD.org (Postfix) with ESMTP id 44E2F43D45; Wed, 26 Oct 2005 13:44:06 +0000 (GMT) (envelope-from nork@FreeBSD.org) Received: from nadesico.ninth-nine.com (nadesico.ninth-nine.com [219.127.74.122]) by sakura.ninth-nine.com (8.13.3/8.13.3/NinthNine) with ESMTP id j9QDi1iM075262; Wed, 26 Oct 2005 22:44:02 +0900 (JST) (envelope-from nork@FreeBSD.org) Date: Wed, 26 Oct 2005 22:44:01 +0900 From: Norikatsu Shigemura To: Juergen Lock Message-Id: <20051026224401.3acf2501.nork@FreeBSD.org> In-Reply-To: <20051025191141.GC7277@saturn.kn-bremen.de> References: <20051025215759.25681b85.nork@FreeBSD.org> <20051025191141.GC7277@saturn.kn-bremen.de> X-Mailer: Sylpheed version 2.1.4 (GTK+ 2.6.10; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0 (sakura.ninth-nine.com [219.127.74.121]); Wed, 26 Oct 2005 22:44:02 +0900 (JST) Cc: freebsd-emulation@FreeBSD.org, Norikatsu Shigemura , jkim@FreeBSD.org Subject: Re: kqemu-kmod port 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, 26 Oct 2005 13:44:06 -0000 On Tue, 25 Oct 2005 21:11:41 +0200 Juergen Lock wrote: > > I want kqemu only port to make buildkernel with PORTS_MODULES. > > I tested that make buildworld PORTS_MODULES=emulators/qemu, > > but no good. So I decided to make kqemu-kmod port. > > If I commit following port, I'll remove kqemu related code > > from emulators/qemu/Makefile and add dependency on kqemu-kmod. > >[...] > Err. You may be able to build the kld seperately like that, but the > qemu build also needs the kqemu bits in place in the build dir to add in > kqemu support... So if you remove it from the qemu port the kld wont > get used. $ grep -r kqemu . ./kqemu.c:#include "kqemu/kqemu.h" Ah! OK. Hum... I'll install to ${LOCALBASE}/include/kqemu/kqemu.h:-). I'll try to make a patch for qemu, because it seems to be unquestionable. From owner-freebsd-emulation@FreeBSD.ORG Wed Oct 26 13:48:40 2005 Return-Path: X-Original-To: freebsd-emulation@FreeBSD.org Delivered-To: freebsd-emulation@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E98A916A41F; Wed, 26 Oct 2005 13:48:40 +0000 (GMT) (envelope-from nork@FreeBSD.org) Received: from sakura.ninth-nine.com (sakura.ninth-nine.com [219.127.74.120]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6916743D45; Wed, 26 Oct 2005 13:48:40 +0000 (GMT) (envelope-from nork@FreeBSD.org) Received: from nadesico.ninth-nine.com (nadesico.ninth-nine.com [219.127.74.122]) by sakura.ninth-nine.com (8.13.3/8.13.3/NinthNine) with ESMTP id j9QDmdJw076082; Wed, 26 Oct 2005 22:48:39 +0900 (JST) (envelope-from nork@FreeBSD.org) Date: Wed, 26 Oct 2005 22:48:39 +0900 From: Norikatsu Shigemura To: Ruslan Ermilov Message-Id: <20051026224839.bfa3920b.nork@FreeBSD.org> In-Reply-To: <20051025215759.25681b85.nork@FreeBSD.org> References: <20051025215759.25681b85.nork@FreeBSD.org> X-Mailer: Sylpheed version 2.1.4 (GTK+ 2.6.10; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0 (sakura.ninth-nine.com [219.127.74.121]); Wed, 26 Oct 2005 22:48:39 +0900 (JST) Cc: freebsd-emulation@FreeBSD.org, nork@FreeBSD.org Subject: Re: kqemu-kmod port 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, 26 Oct 2005 13:48:41 -0000 Hi ru! On Tue, 25 Oct 2005 21:57:59 +0900 Norikatsu Shigemura wrote: > Hi qemu maintainer and users! > I want kqemu only port to make buildkernel with PORTS_MODULES. > I tested that make buildworld PORTS_MODULES=emulators/qemu, > but no good. So I decided to make kqemu-kmod port.> > If I commit following port, I'll remove kqemu related code > from emulators/qemu/Makefile and add dependency on kqemu-kmod. > http://people.freebsd.org/~nork/kqemu-kmod.shar I'll try to make buildworld with abobe expremental ports: # make -j1 buildkernel PORTS_MODULES=local/kqemu-kmod But I contacted a problem like following lines: cd ${PORTSDIR:-/usr/ports}/local/kqemu-kmod; SYSDIR= /usr/obj/usr/src/make.i386/make -B all ===> Building for kqemu-kmod-0.7.2 "/usr/src/share/mk/bsd.kmod.mk", line 12: "can't find kernel source tree" *** Error code 1 Stop in /usr/ports/local/kqemu-kmod. *** Error code 1 1 error *** Error code 2 1 error *** Error code 2 1 error Do you have any idea for fix? From owner-freebsd-emulation@FreeBSD.ORG Wed Oct 26 20:21:42 2005 Return-Path: X-Original-To: freebsd-emulation@FreeBSD.org Delivered-To: freebsd-emulation@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3803B16A44E; Wed, 26 Oct 2005 20:21:42 +0000 (GMT) (envelope-from ru@ip.net.ua) Received: from tigra.ip.net.ua (tigra.ip.net.ua [82.193.96.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3F06F43D53; Wed, 26 Oct 2005 20:21:35 +0000 (GMT) (envelope-from ru@ip.net.ua) Received: from localhost (rocky.ip.net.ua [82.193.96.2]) by tigra.ip.net.ua (8.12.11/8.12.11) with ESMTP id j9QKLXa2063591; Wed, 26 Oct 2005 23:21:33 +0300 (EEST) (envelope-from ru@ip.net.ua) Received: from tigra.ip.net.ua ([82.193.96.10]) by localhost (rocky.ipnet [82.193.96.2]) (amavisd-new, port 10024) with LMTP id 64559-04-3; Wed, 26 Oct 2005 23:21:31 +0300 (EEST) Received: from heffalump.ip.net.ua (heffalump.ip.net.ua [82.193.96.213]) by tigra.ip.net.ua (8.12.11/8.12.11) with ESMTP id j9QKHhdE063425 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 26 Oct 2005 23:17:44 +0300 (EEST) (envelope-from ru@ip.net.ua) Received: (from ru@localhost) by heffalump.ip.net.ua (8.13.4/8.13.4) id j9QKHjvp060301; Wed, 26 Oct 2005 23:17:45 +0300 (EEST) (envelope-from ru) Date: Wed, 26 Oct 2005 23:17:45 +0300 From: Ruslan Ermilov To: Norikatsu Shigemura Message-ID: <20051026201745.GB68470@ip.net.ua> References: <20051025215759.25681b85.nork@FreeBSD.org> <20051026224839.bfa3920b.nork@FreeBSD.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="tThc/1wpZn/ma/RB" Content-Disposition: inline In-Reply-To: <20051026224839.bfa3920b.nork@FreeBSD.org> User-Agent: Mutt/1.5.9i X-Virus-Scanned: by amavisd-new at ip.net.ua Cc: freebsd-emulation@FreeBSD.org, Warner Losh Subject: Re: kqemu-kmod port 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, 26 Oct 2005 20:21:42 -0000 --tThc/1wpZn/ma/RB Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, On Wed, Oct 26, 2005 at 10:48:39PM +0900, Norikatsu Shigemura wrote: > Hi ru! >=20 > On Tue, 25 Oct 2005 21:57:59 +0900 > Norikatsu Shigemura wrote: > > Hi qemu maintainer and users! > > I want kqemu only port to make buildkernel with PORTS_MODULES. > > I tested that make buildworld PORTS_MODULES=3Demulators/qemu, > > but no good. So I decided to make kqemu-kmod port.>=20 > > If I commit following port, I'll remove kqemu related code > > from emulators/qemu/Makefile and add dependency on kqemu-kmod. >=20 > > http://people.freebsd.org/~nork/kqemu-kmod.shar >=20 > I'll try to make buildworld with abobe expremental ports: > # make -j1 buildkernel PORTS_MODULES=3Dlocal/kqemu-kmod >=20 > But I contacted a problem like following lines: >=20 > cd ${PORTSDIR:-/usr/ports}/local/kqemu-kmod; SYSDIR=3D /usr/obj/usr/src/m= ake.i386/make -B all > =3D=3D=3D> Building for kqemu-kmod-0.7.2 > "/usr/src/share/mk/bsd.kmod.mk", line 12: "can't find kernel source tree" > *** Error code 1 >=20 > Stop in /usr/ports/local/kqemu-kmod. > *** Error code 1 > 1 error > *** Error code 2 > 1 error > *** Error code 2 > 1 error >=20 > Do you have any idea for fix? >=20 Warner created this feature only to fit one case: where you build kernel =66rom its canonical place, /usr/src/sys//compile/, then ${.CURDIR}/../../../ will match the the correct SYSDIR. The below patch makes it work in all cases. If $S is absolute, it's used, otherwise ${.CURDIR}/$S is used: # pwd /usr/obj/usr/src/sys/HAMMER # make -V S -V PORTSMODULESENV -DPORTS_MODULES /usr/src/sys SYSDIR=3D/usr/src/sys # pwd /sys/amd64/compile/GENERIC # make -V S -V PORTSMODULESENV -DPORTS_MODULES =2E./../.. SYSDIR=3D/usr/src/sys/amd64/compile/GENERIC/../../.. %%% Index: kern.post.mk =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /home/ncvs/src/sys/conf/kern.post.mk,v retrieving revision 1.86 diff -u -r1.86 kern.post.mk --- kern.post.mk 25 Oct 2005 09:05:07 -0000 1.86 +++ kern.post.mk 26 Oct 2005 20:10:52 -0000 @@ -29,11 +29,7 @@ =20 # Handle out of tree ports=20 .if !defined(NO_MODULES) && defined(PORTS_MODULES) -.for _dir in ${.CURDIR}/../../.. -.if !defined(SYSDIR) && exists(${_dir}/kern/) -SYSDIR=3D ${_dir} -.endif -.endfor +SYSDIR?=3D ${S:C;^[^/];${.CURDIR}/&;} PORTSMODULESENV=3DSYSDIR=3D${SYSDIR} .for __target in all install reinstall clean ${__target}: ports-${__target} %%% Cheers, --=20 Ruslan Ermilov ru@FreeBSD.org FreeBSD committer --tThc/1wpZn/ma/RB Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQFDX+RpqRfpzJluFF4RAtoBAJ9P7QspwdMJMA2Zepxn3mDpHRwBCQCeL3om bgy5jHOmI7dGweMQRuqtDCk= =44Ke -----END PGP SIGNATURE----- --tThc/1wpZn/ma/RB-- From owner-freebsd-emulation@FreeBSD.ORG Thu Oct 27 08:00:26 2005 Return-Path: X-Original-To: emulation@freebsd.org Delivered-To: freebsd-emulation@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 34EC916A41F for ; Thu, 27 Oct 2005 08:00:26 +0000 (GMT) (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 7433443D48 for ; Thu, 27 Oct 2005 08:00:24 +0000 (GMT) (envelope-from Alexander@Leidinger.net) Received: from Andro-Beta.Leidinger.net (p54A5CFD6.dip.t-dialin.net [84.165.207.214]) (authenticated bits=0) by www.ebusiness-leidinger.de (8.13.1/8.13.1) with ESMTP id j9R7eYOd051377; Thu, 27 Oct 2005 09:40:37 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from localhost (localhost [127.0.0.1]) by Andro-Beta.Leidinger.net (8.13.3/8.13.3) with ESMTP id j9R80Gu9028405; Thu, 27 Oct 2005 10:00:16 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from pslux.cec.eu.int (pslux.cec.eu.int [158.169.9.14]) by netchild.homeip.net (Horde MIME library) with HTTP; Thu, 27 Oct 2005 10:00:16 +0200 Message-ID: <20051027100016.qpwre4w60woo088c@netchild.homeip.net> X-Priority: 3 (Normal) Date: Thu, 27 Oct 2005 10:00:16 +0200 From: Alexander Leidinger To: Ulrich Spoerlein References: <20051026123347.GA1054@galgenberg.net> <20051026150705.qzo2u74dgggcosss@netchild.homeip.net> <20051026133312.GB1054@galgenberg.net> In-Reply-To: <20051026133312.GB1054@galgenberg.net> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) H3 (4.0.3) / FreeBSD-4.11 X-Virus-Scanned: by amavisd-new Cc: emulation@freebsd.org Subject: Re: Porting linux-wine 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, 27 Oct 2005 08:00:26 -0000 Ulrich Spoerlein wrote: > as you can see from the port Makefile, I'm calling brandelf on all > binaries and > libs. Searching on freshports for wine or galgenberg doesn't reveal a wine port... so what port are we talking about? > % file /compat/linux/usr/lib/libwine.so.1; brandelf > /compat/linux/usr/lib/libwine.so.1 > /compat/linux/usr/lib/libwine.so.1: ELF 32-bit LSB shared object, > Intel 80386, version 1 (GNU/Linux), not stripped > File '/compat/linux/usr/lib/libwine.so.1' is of brand 'Linux' (3). Does libwine load plugins? What kind of branding do they have? Depends libwine upon another lib and the error message is misleading (prints the wrong lib)? Maybe it's not a problem of your port, but a problem somewhere else (linux_base/whatever). I don't have an answer for the problem, I just can tell what you have to search to solve the problem. Bye, Alexander. -- http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137 We're only in it for the volume. -- Black Sabbath From owner-freebsd-emulation@FreeBSD.ORG Thu Oct 27 08:38:32 2005 Return-Path: X-Original-To: emulation@freebsd.org Delivered-To: freebsd-emulation@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9480016A41F for ; Thu, 27 Oct 2005 08:38:32 +0000 (GMT) (envelope-from q@galgenberg.net) Received: from wrzx28.rz.uni-wuerzburg.de (wrzx28.rz.uni-wuerzburg.de [132.187.3.28]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7EEE943D45 for ; Thu, 27 Oct 2005 08:38:30 +0000 (GMT) (envelope-from q@galgenberg.net) Received: from wrzx30.rz.uni-wuerzburg.de (wrzx30.rz.uni-wuerzburg.de [132.187.1.30]) by wrzx28.rz.uni-wuerzburg.de (Postfix) with ESMTP id 7C3AB13F4E6; Thu, 27 Oct 2005 10:38:29 +0200 (CEST) Received: from virusscan (localhost [127.0.0.1]) by wrzx30.rz.uni-wuerzburg.de (Postfix) with ESMTP id 61B849EFAE; Thu, 27 Oct 2005 10:38:29 +0200 (CEST) Received: from wrzx28.rz.uni-wuerzburg.de (wrzx28.rz.uni-wuerzburg.de [132.187.3.28]) by wrzx30.rz.uni-wuerzburg.de (Postfix) with ESMTP id 414D39EFA8; Thu, 27 Oct 2005 10:38:29 +0200 (CEST) Received: from frodo.galgenberg.net (wwsx14.win-screen.uni-wuerzburg.de [132.187.253.14]) by wrzx28.rz.uni-wuerzburg.de (Postfix) with ESMTP id DEF4513F4E6; Thu, 27 Oct 2005 10:38:28 +0200 (CEST) Received: from coyote.q.local (gb-21-237.galgenberg.net [172.16.21.237]) by frodo.galgenberg.net (8.13.1/8.13.1) with ESMTP id j9R8cSc4077986; Thu, 27 Oct 2005 10:38:28 +0200 (CEST) (envelope-from q@galgenberg.net) Received: from roadrunner.q.local (roadrunner.q.local [192.168.0.148]) by coyote.q.local (8.13.4/8.13.4) with ESMTP id j9R8cS2A080153; Thu, 27 Oct 2005 10:38:28 +0200 (CEST) (envelope-from q@galgenberg.net) Received: from roadrunner.q.local (localhost [127.0.0.1]) by roadrunner.q.local (8.13.4/8.13.4) with ESMTP id j9R8cSEA001487; Thu, 27 Oct 2005 10:38:28 +0200 (CEST) (envelope-from q@galgenberg.net) Received: (from q@localhost) by roadrunner.q.local (8.13.4/8.13.4/Submit) id j9R8cRTe001486; Thu, 27 Oct 2005 10:38:27 +0200 (CEST) (envelope-from q@galgenberg.net) Date: Thu, 27 Oct 2005 10:38:27 +0200 From: Ulrich Spoerlein To: Alexander Leidinger Message-ID: <20051027083827.GA1070@galgenberg.net> Mail-Followup-To: Alexander Leidinger , emulation@freebsd.org References: <20051026123347.GA1054@galgenberg.net> <20051026150705.qzo2u74dgggcosss@netchild.homeip.net> <20051026133312.GB1054@galgenberg.net> <20051027100016.qpwre4w60woo088c@netchild.homeip.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="BXVAT5kNtrzKuDFl" Content-Disposition: inline In-Reply-To: <20051027100016.qpwre4w60woo088c@netchild.homeip.net> X-Virus-Scanned: by amavisd-new (Rechenzentrum Universitaet Wuerzburg) Cc: emulation@freebsd.org Subject: Re: Porting linux-wine 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, 27 Oct 2005 08:38:32 -0000 --BXVAT5kNtrzKuDFl Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, 27.10.2005 at 10:00:16 +0200, Alexander Leidinger wrote: > Searching on freshports for wine or galgenberg doesn't reveal a wine port= =2E.. > so what port are we talking about? Gnaa, it stripped the attachment. You can find the port at http://www.galgenberg.net/~q/linux-wine.shar > >% file /compat/linux/usr/lib/libwine.so.1; brandelf /compat/linux/usr/li= b/libwine.so.1 > >/compat/linux/usr/lib/libwine.so.1: ELF 32-bit LSB shared object, Intel = 80386, version 1=20 > >(GNU/Linux), not stripped > >File '/compat/linux/usr/lib/libwine.so.1' is of brand 'Linux' (3). >=20 > Does libwine load plugins? What kind of branding do they have? Depends > libwine upon another lib and the error message is misleading (prints the > wrong lib)? Maybe it's not a problem of your port, but a problem somewhere > else (linux_base/whatever). ktrace shows that libwine.so.1 is the first library to be loaded and it crashes immediately. 1475 wine NAMI "/compat/linux/usr/lib/libwine.so.1" 1475 wine NAMI "/compat/linux" 1475 wine NAMI "/compat/linux/usr/lib/libwine.so.1" 1475 wine RET open 3 1475 wine CALL read(0x3,0xbfbfdf14,0x200) 1475 wine GIO fd 3 read 512 bytes ... 1475 wine RET read 512/0x200 1475 wine CALL close(0x3) 1475 wine RET close 0 1475 wine CALL old.killpg(0x2,0xbfbfdb70,0xa) 1475 wine GIO fd 2 wrote 113 bytes "/compat/linux/usr/bin/wine: error while loading shared libraries: /= usr/lib/libwine.so.1: ELF file OS ABI invalid " 1475 wine RET old.killpg 113/0x71 1475 wine CALL exit(0x7f) But then, ISTR that I need a linux-kdump for this to actually work? > I don't have an answer for the problem, I just can tell what you have to > search to solve the problem. Thanks, that's appreciated! Btw, is ldd or linux-ldd supposed to work on linux binaries/libs? Ulrich Spoerlein --=20 PGP Key ID: F0DB9F44 Encrypted mail welcome! Fingerprint: F1CE D062 0CA9 ADE3 349B 2FE8 980A C6B5 F0DB 9F44 Ok, which part of "Ph'nglui mglw'nafh Cthulhu R'lyeh wgah'nagl fhtagn." didn't you understand? --BXVAT5kNtrzKuDFl Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQFDYJIDmArGtfDbn0QRAozBAKDv0yxka6eNUurr0bZ38XgSt6ugrACgmFGG tPm0qp5mfdEBKm3OJR6xBHc= =h1AO -----END PGP SIGNATURE----- --BXVAT5kNtrzKuDFl-- From owner-freebsd-emulation@FreeBSD.ORG Thu Oct 27 13:21:59 2005 Return-Path: X-Original-To: freebsd-emulation@FreeBSD.org Delivered-To: freebsd-emulation@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1FBB016A41F; Thu, 27 Oct 2005 13:21:59 +0000 (GMT) (envelope-from nork@FreeBSD.org) Received: from sakura.ninth-nine.com (sakura.ninth-nine.com [219.127.74.120]) by mx1.FreeBSD.org (Postfix) with ESMTP id A1FF543D46; Thu, 27 Oct 2005 13:21:58 +0000 (GMT) (envelope-from nork@FreeBSD.org) Received: from nadesico.ninth-nine.com (nadesico.ninth-nine.com [219.127.74.122]) by sakura.ninth-nine.com (8.13.3/8.13.3/NinthNine) with ESMTP id j9RDLvjn039995; Thu, 27 Oct 2005 22:21:57 +0900 (JST) (envelope-from nork@FreeBSD.org) Date: Thu, 27 Oct 2005 22:21:57 +0900 From: Norikatsu Shigemura To: Ruslan Ermilov Message-Id: <20051027222157.91ce56cf.nork@FreeBSD.org> In-Reply-To: <20051026201745.GB68470@ip.net.ua> References: <20051025215759.25681b85.nork@FreeBSD.org> <20051026224839.bfa3920b.nork@FreeBSD.org> <20051026201745.GB68470@ip.net.ua> X-Mailer: Sylpheed version 2.1.4 (GTK+ 2.6.10; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0 (sakura.ninth-nine.com [219.127.74.121]); Thu, 27 Oct 2005 22:21:57 +0900 (JST) Cc: freebsd-emulation@FreeBSD.org, imp@FreeBSD.org, nork@FreeBSD.org Subject: Re: kqemu-kmod port 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, 27 Oct 2005 13:21:59 -0000 On Wed, 26 Oct 2005 23:17:45 +0300 Ruslan Ermilov wrote: > > > http://people.freebsd.org/~nork/kqemu-kmod.shar > > I'll try to make buildworld with abobe expremental ports: > > # make -j1 buildkernel PORTS_MODULES=local/kqemu-kmod > > But I contacted a problem like following lines: > > cd ${PORTSDIR:-/usr/ports}/local/kqemu-kmod; SYSDIR= /usr/obj/usr/src/make.i386/make -B all > > ===> Building for kqemu-kmod-0.7.2 > > "/usr/src/share/mk/bsd.kmod.mk", line 12: "can't find kernel source tree" > > *** Error code 1 > > Do you have any idea for fix? > Warner created this feature only to fit one case: where you build kernel > from its canonical place, /usr/src/sys//compile/, then > ${.CURDIR}/../../../ will match the the correct SYSDIR. The below > patch makes it work in all cases. If $S is absolute, it's used, > otherwise ${.CURDIR}/$S is used: > # pwd > /usr/obj/usr/src/sys/HAMMER > # make -V S -V PORTSMODULESENV -DPORTS_MODULES > /usr/src/sys > SYSDIR=/usr/src/sys > # pwd > /sys/amd64/compile/GENERIC > # make -V S -V PORTSMODULESENV -DPORTS_MODULES > ../../.. > SYSDIR=/usr/src/sys/amd64/compile/GENERIC/../../.. Wow! I confirmed that your patch is good works. # make -j1 buildkernel PORTS_MODULES=local/kqemu-kmod : cd ${PORTSDIR:-/usr/ports}/local/kqemu-kmod; SYSDIR=/usr/src/sys /usr/obj/usr/src/make.i386/make -B all : # make installkernel PORTS_MODULES=local/kqemu-kmod : cd ${PORTSDIR:-/usr/ports}/local/kqemu-kmod; SYSDIR=/usr/src/sys /usr/obj/usr/src/make.i386/make -B deinstall deinstall reinstall ===> Deinstalling for emulators/kqemu-kmod ===> kqemu-kmod not installed, skipping ===> Installing for kqemu-kmod-0.7.2 ===> Generating temporary packing list ===> Checking if emulators/kqemu-kmod already installed install -o root -g wheel -m 555 kqemu.ko /boot/kernel kldxref /boot/kernel if mount |/usr/bin/grep ^devfs >/dev/null ; then : ; else if [ ! -e /dev/kqemu ]; then mknod /dev/kqemu c 250 0 ; fi ; /bin/chmod 666 /dev/kqemu ; fi ===> Registering installation for kqemu-kmod-0.7.2 # > %%% > Index: kern.post.mk > =================================================================== > RCS file: /home/ncvs/src/sys/conf/kern.post.mk,v > retrieving revision 1.86 > diff -u -r1.86 kern.post.mk > --- kern.post.mk 25 Oct 2005 09:05:07 -0000 1.86 > +++ kern.post.mk 26 Oct 2005 20:10:52 -0000 > @@ -29,11 +29,7 @@ > > # Handle out of tree ports > .if !defined(NO_MODULES) && defined(PORTS_MODULES) > -.for _dir in ${.CURDIR}/../../.. > -.if !defined(SYSDIR) && exists(${_dir}/kern/) > -SYSDIR= ${_dir} > -.endif > -.endfor > +SYSDIR?= ${S:C;^[^/];${.CURDIR}/&;} > PORTSMODULESENV=SYSDIR=${SYSDIR} > .for __target in all install reinstall clean > ${__target}: ports-${__target} > %%% Thank you. Please commit this patch:-). From owner-freebsd-emulation@FreeBSD.ORG Thu Oct 27 15:00:05 2005 Return-Path: X-Original-To: emulation@freebsd.org Delivered-To: freebsd-emulation@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1D81E16A41F for ; Thu, 27 Oct 2005 15:00:05 +0000 (GMT) (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 58E7F43D46 for ; Thu, 27 Oct 2005 15:00:03 +0000 (GMT) (envelope-from Alexander@Leidinger.net) Received: from Andro-Beta.Leidinger.net (p54A5CFD6.dip.t-dialin.net [84.165.207.214]) (authenticated bits=0) by www.ebusiness-leidinger.de (8.13.1/8.13.1) with ESMTP id j9REeBdE053082; Thu, 27 Oct 2005 16:40:12 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from localhost (localhost [127.0.0.1]) by Andro-Beta.Leidinger.net (8.13.3/8.13.3) with ESMTP id j9RExuuK005941; Thu, 27 Oct 2005 16:59:56 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from pslux.cec.eu.int (pslux.cec.eu.int [158.169.9.14]) by netchild.homeip.net (Horde MIME library) with HTTP; Thu, 27 Oct 2005 16:59:56 +0200 Message-ID: <20051027165956.yplku4x8gw804osc@netchild.homeip.net> X-Priority: 3 (Normal) Date: Thu, 27 Oct 2005 16:59:56 +0200 From: Alexander Leidinger To: Ulrich Spoerlein References: <20051026123347.GA1054@galgenberg.net> <20051026150705.qzo2u74dgggcosss@netchild.homeip.net> <20051026133312.GB1054@galgenberg.net> <20051027100016.qpwre4w60woo088c@netchild.homeip.net> <20051027083827.GA1070@galgenberg.net> In-Reply-To: <20051027083827.GA1070@galgenberg.net> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) H3 (4.0.3) / FreeBSD-4.11 X-Virus-Scanned: by amavisd-new Cc: emulation@freebsd.org Subject: Re: Porting linux-wine 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, 27 Oct 2005 15:00:05 -0000 Ulrich Spoerlein wrote: > On Thu, 27.10.2005 at 10:00:16 +0200, Alexander Leidinger wrote: >> Searching on freshports for wine or galgenberg doesn't reveal a wine port... >> so what port are we talking about? > > Gnaa, it stripped the attachment. You can find the port at > http://www.galgenberg.net/~q/linux-wine.shar ENOTIME... at work I don't have a FreeBSD system and at home I'm moving... so no testing possible ATM. > But then, ISTR that I need a linux-kdump for this to actually work? No, the FreeBSD ktrace records the FreeBSD (emulated) syscalls (we don't run on linux, we run translated syscalls on FreeBSD), so we need the FreeBSD kdump to read the FreeBSD ktrace output. Or did I got your question wrong? >> I don't have an answer for the problem, I just can tell what you have to >> search to solve the problem. > > Thanks, that's appreciated! > > Btw, is ldd or linux-ldd supposed to work on linux binaries/libs? FreeBSD ldd could work... some @FreeBSD posted some (small) patches somewhere which makes this work (or was it some other similar tool? ... argh, I lost the overview somewhere in the last month). I don't know if they are committed or not and if they are schedulled to get committed or not. Linux ldd has to work. Bye, Alexander. -- http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137 Scrubbing floors and emptying bedpans has as much dignity as the Presidency. -- Richard Nixon From owner-freebsd-emulation@FreeBSD.ORG Thu Oct 27 15:15:06 2005 Return-Path: X-Original-To: emulation@freebsd.org Delivered-To: freebsd-emulation@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4C28916A41F for ; Thu, 27 Oct 2005 15:15:06 +0000 (GMT) (envelope-from q@galgenberg.net) Received: from wrzx28.rz.uni-wuerzburg.de (wrzx28.rz.uni-wuerzburg.de [132.187.3.28]) by mx1.FreeBSD.org (Postfix) with ESMTP id CBA1943D45 for ; Thu, 27 Oct 2005 15:15:03 +0000 (GMT) (envelope-from q@galgenberg.net) Received: from wrzx30.rz.uni-wuerzburg.de (wrzx30.rz.uni-wuerzburg.de [132.187.1.30]) by wrzx28.rz.uni-wuerzburg.de (Postfix) with ESMTP id 2625913F502; Thu, 27 Oct 2005 17:15:01 +0200 (CEST) Received: from virusscan (localhost [127.0.0.1]) by wrzx30.rz.uni-wuerzburg.de (Postfix) with ESMTP id 0D0F49EFC4; Thu, 27 Oct 2005 17:15:01 +0200 (CEST) Received: from wrzx28.rz.uni-wuerzburg.de (wrzx28.rz.uni-wuerzburg.de [132.187.3.28]) by wrzx30.rz.uni-wuerzburg.de (Postfix) with ESMTP id DD22C9EF9B; Thu, 27 Oct 2005 17:15:00 +0200 (CEST) Received: from frodo.galgenberg.net (wwsx14.win-screen.uni-wuerzburg.de [132.187.253.14]) by wrzx28.rz.uni-wuerzburg.de (Postfix) with ESMTP id 9BDE213F532; Thu, 27 Oct 2005 17:15:00 +0200 (CEST) Received: from coyote.q.local (gb-21-237.galgenberg.net [172.16.21.237]) by frodo.galgenberg.net (8.13.1/8.13.1) with ESMTP id j9RFF0gP022729; Thu, 27 Oct 2005 17:15:00 +0200 (CEST) (envelope-from q@galgenberg.net) Received: from roadrunner.q.local (roadrunner.q.local [192.168.0.148]) by coyote.q.local (8.13.4/8.13.4) with ESMTP id j9RFExPp081949; Thu, 27 Oct 2005 17:14:59 +0200 (CEST) (envelope-from q@galgenberg.net) Received: from roadrunner.q.local (localhost [127.0.0.1]) by roadrunner.q.local (8.13.4/8.13.4) with ESMTP id j9RFEx1k003022; Thu, 27 Oct 2005 17:14:59 +0200 (CEST) (envelope-from q@galgenberg.net) Received: (from q@localhost) by roadrunner.q.local (8.13.4/8.13.4/Submit) id j9RFExNf003021; Thu, 27 Oct 2005 17:14:59 +0200 (CEST) (envelope-from q@galgenberg.net) Date: Thu, 27 Oct 2005 17:14:58 +0200 From: Ulrich Spoerlein To: Alexander Leidinger Message-ID: <20051027151458.GC1070@galgenberg.net> Mail-Followup-To: Alexander Leidinger , emulation@freebsd.org References: <20051026123347.GA1054@galgenberg.net> <20051026150705.qzo2u74dgggcosss@netchild.homeip.net> <20051026133312.GB1054@galgenberg.net> <20051027100016.qpwre4w60woo088c@netchild.homeip.net> <20051027083827.GA1070@galgenberg.net> <20051027165956.yplku4x8gw804osc@netchild.homeip.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="u65IjBhB3TIa72Vp" Content-Disposition: inline In-Reply-To: <20051027165956.yplku4x8gw804osc@netchild.homeip.net> X-Virus-Scanned: by amavisd-new (Rechenzentrum Universitaet Wuerzburg) Cc: emulation@freebsd.org Subject: Re: Porting linux-wine 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, 27 Oct 2005 15:15:06 -0000 --u65IjBhB3TIa72Vp Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, 27.10.2005 at 16:59:56 +0200, Alexander Leidinger wrote: > No, the FreeBSD ktrace records the FreeBSD (emulated) syscalls (we don't = run > on linux, we run translated syscalls on FreeBSD), so we need the FreeBSD > kdump to read the FreeBSD ktrace output. Or did I got your question wrong? There was a linux-kdump (or linux-ktrace) port once, that was necessary to get the translated syscalls right, IIRC. > >Btw, is ldd or linux-ldd supposed to work on linux binaries/libs? >=20 > FreeBSD ldd could work... some @FreeBSD posted some (small) patches somew= here > which makes this work (or was it some other similar tool? ... argh, I lost > the overview somewhere in the last month). I don't know if they are > committed or not and if they are schedulled to get committed or not. Linux > ldd has to work. Don't know what to make of this: % ldd /compat/linux/bin/bash /compat/linux/bin/bash: libtermcap.so.2 =3D> /lib/libtermcap.so.2 (0x480f1000) libdl.so.2 =3D> /lib/libdl.so.2 (0x480f6000) libc.so.6 =3D> /lib/libc.so.6 (0x480f9000) /lib/ld-linux.so.2 =3D> /lib/ld-linux.so.2 (0x480db000) % ldd /compat/linux/usr/bin/wine /compat/linux/usr/bin/wine: /compat/linux/usr/bin/wine: error while loading shared libraries: /usr/lib/= libwine.so.1: ELF file OS ABI invalid /compat/linux/usr/bin/wine: exit status 127 % sudo chroot /compat/linux /bin/bash bash-2.05b# ldd /bin/bash /usr/bin/ldd: line 1: /lib/ld-linux.so.2: cannot execute binary file /usr/bin/ldd: line 1: /lib/ld-linux.so.2: cannot execute binary file ldd: /lib/ld-linux.so.2 exited with unknown exit code (126) bash-2.05b# ldd /usr/bin/wine /usr/bin/ldd: line 1: /lib/ld-linux.so.2: cannot execute binary file /usr/bin/ldd: line 1: /lib/ld-linux.so.2: cannot execute binary file ldd: /lib/ld-linux.so.2 exited with unknown exit code (126) Ulrich Spoerlein --=20 PGP Key ID: F0DB9F44 Encrypted mail welcome! Fingerprint: F1CE D062 0CA9 ADE3 349B 2FE8 980A C6B5 F0DB 9F44 Ok, which part of "Ph'nglui mglw'nafh Cthulhu R'lyeh wgah'nagl fhtagn." didn't you understand? --u65IjBhB3TIa72Vp Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQFDYO7ymArGtfDbn0QRAvozAJ96chmljr2mAOPep1kuyu4RAVlyXACgtrb8 7mP7RRZMd3muxHBagrgwgVY= =Hd/M -----END PGP SIGNATURE----- --u65IjBhB3TIa72Vp-- From owner-freebsd-emulation@FreeBSD.ORG Fri Oct 28 04:02:44 2005 Return-Path: X-Original-To: freebsd-emulation@freebsd.org Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 998FC16A41F for ; Fri, 28 Oct 2005 04:02:44 +0000 (GMT) (envelope-from bland@FreeBSD.org) Received: from smtp3.jp.viruscheck.net (smtp3.jp.viruscheck.net [154.33.69.54]) by mx1.FreeBSD.org (Postfix) with ESMTP id C4D2D43D55 for ; Fri, 28 Oct 2005 04:02:43 +0000 (GMT) (envelope-from bland@FreeBSD.org) Received: from scan4.jp.viruscheck.net ([154.33.69.39] helo=mail2.jp.viruscheck.net) by smtp3.jp.viruscheck.net with esmtp (Exim 3.36 #1) id 1EVLRt-0002TE-00 for freebsd-emulation@freebsd.org; Fri, 28 Oct 2005 13:02:37 +0900 Received: from [218.44.39.248] (helo=noc.orchid.orchidtechnology.com) by mail2.jp.viruscheck.net with esmtp (Exim 3.36 #3) id 1EVLRt-0005Sv-00 for freebsd-emulation@FreeBSD.org; Fri, 28 Oct 2005 13:02:37 +0900 Received: from [89.60.10.11] (horse.orchid.orchidtechnology.com [89.60.10.11]) by noc.orchid.orchidtechnology.com (8.13.4/8.13.4) with ESMTP id j9S42aN3055452 for ; Fri, 28 Oct 2005 13:02:36 +0900 (JST) (envelope-from bland@FreeBSD.org) Message-ID: <4361A2DC.8080007@FreeBSD.org> Date: Fri, 28 Oct 2005 13:02:36 +0900 From: Alexander Nedotsukov User-Agent: Thunderbird 1.4 (Windows/20050908) MIME-Version: 1.0 To: freebsd-emulation@FreeBSD.org Content-Type: multipart/mixed; boundary="------------000907040805020000000806" Cc: Subject: linux-fontconfig update request X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Oct 2005 04:02:44 -0000 This is a multi-part message in MIME format. --------------000907040805020000000806 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hi guys, As some of you already know. GNOME 2.12 port will be committed to repository soon after FreeBSD 6.0 release. This will expose incompatibility with Linux version of fontconfig port we have ATM. The symptom is startup failure of any GTK2 based linux- application (acroread, relpalyer etc.) with complain from fontconfig library about misconfiguration. The source of problem lies in font cache files (fonts.cache-1). There was changes in format which made them backward incompatible with fontconfig 2.1 series. Please review patch attached. Thanks, Alexander. ps. I did not found any reliable source of v2.3.2 .rpms which going to be committed with GNOME 2.12. But if any of you will do or have a chance to cook its own .rpms this will be better. --------------000907040805020000000806 Content-Type: text/plain; name="linux-fontconfig.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="linux-fontconfig.patch" Index: Makefile =================================================================== RCS file: /home/pcvs/ports/x11-fonts/linux-fontconfig/Makefile,v retrieving revision 1.9 diff -u -r1.9 Makefile --- Makefile 17 Jun 2005 22:59:28 -0000 1.9 +++ Makefile 28 Oct 2005 03:38:11 -0000 @@ -6,9 +6,11 @@ # PORTNAME= fontconfig -PORTVERSION= 2.1 -PORTREVISION= 3 +PORTVERSION= 2.2.1 +PORTREVISION= 0 CATEGORIES= x11-fonts linux +MASTER_SITES= ${MASTER_SITE_FEDORA_LINUX} +MASTER_SITE_SUBDIR= 1/${ARCH}/os/Fedora/RPMS/ MAINTAINER= freebsd-emulation@FreeBSD.org COMMENT= Linux/i386 binary of Fontconfig @@ -18,10 +20,9 @@ RUN_DEPENDS= ${BUILD_DEPENDS} USE_REINPLACE= yes -BASEVERSION= 9 ONLY_FOR_ARCHS= i386 amd64 PLIST= ${WRKDIR}/plist -RPM_SET= fontconfig-2.1-9.i386.rpm +RPM_SET= fontconfig-2.2.1-6.1.i386.rpm #PKGINSTALL= ${WRKDIR}/pkg-install Index: distinfo.i386 =================================================================== RCS file: /home/pcvs/ports/x11-fonts/linux-fontconfig/distinfo.i386,v retrieving revision 1.2 diff -u -r1.2 distinfo.i386 --- distinfo.i386 17 Mar 2004 18:29:15 -0000 1.2 +++ distinfo.i386 28 Oct 2005 03:38:11 -0000 @@ -1,3 +1,2 @@ -$FreeBSD: ports/x11-fonts/linux-fontconfig/distinfo.i386,v 1.2 2004/03/17 18:29:15 trevor Exp $ -MD5 (rpm/fontconfig-2.1-9.i386.rpm) = 86e827ffaa502266116047e840f8eb8f -SIZE (rpm/fontconfig-2.1-9.i386.rpm) = 106739 +MD5 (rpm/fontconfig-2.2.1-6.1.i386.rpm) = dc67526d0458acfa59d40c9a699118c4 +SIZE (rpm/fontconfig-2.2.1-6.1.i386.rpm) = 113542 --------------000907040805020000000806-- From owner-freebsd-emulation@FreeBSD.ORG Fri Oct 28 06:51:37 2005 Return-Path: X-Original-To: emulation@freebsd.org Delivered-To: freebsd-emulation@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DE0B216A41F for ; Fri, 28 Oct 2005 06:51:37 +0000 (GMT) (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 06A9443D48 for ; Fri, 28 Oct 2005 06:51:36 +0000 (GMT) (envelope-from Alexander@Leidinger.net) Received: from Andro-Beta.Leidinger.net (p54A5C8DF.dip.t-dialin.net [84.165.200.223]) (authenticated bits=0) by www.ebusiness-leidinger.de (8.13.1/8.13.1) with ESMTP id j9S6Vbnv061559; Fri, 28 Oct 2005 08:31:38 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from localhost (localhost [127.0.0.1]) by Andro-Beta.Leidinger.net (8.13.3/8.13.3) with ESMTP id j9S6pUeP081378; Fri, 28 Oct 2005 08:51:31 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from pslux.cec.eu.int (pslux.cec.eu.int [158.169.9.14]) by netchild.homeip.net (Horde MIME library) with HTTP; Fri, 28 Oct 2005 08:51:30 +0200 Message-ID: <20051028085130.4wa89yr8ooowkck8@netchild.homeip.net> X-Priority: 3 (Normal) Date: Fri, 28 Oct 2005 08:51:30 +0200 From: Alexander Leidinger To: Ulrich Spoerlein References: <20051026123347.GA1054@galgenberg.net> <20051026150705.qzo2u74dgggcosss@netchild.homeip.net> <20051026133312.GB1054@galgenberg.net> <20051027100016.qpwre4w60woo088c@netchild.homeip.net> <20051027083827.GA1070@galgenberg.net> <20051027165956.yplku4x8gw804osc@netchild.homeip.net> <20051027151458.GC1070@galgenberg.net> In-Reply-To: <20051027151458.GC1070@galgenberg.net> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) H3 (4.0.3) / FreeBSD-4.11 X-Virus-Scanned: by amavisd-new Cc: emulation@freebsd.org Subject: Re: Porting linux-wine X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Oct 2005 06:51:38 -0000 Ulrich Spoerlein wrote: > Don't know what to make of this: > % sudo chroot /compat/linux /bin/bash > bash-2.05b# ldd /bin/bash > /usr/bin/ldd: line 1: /lib/ld-linux.so.2: cannot execute binary file > /usr/bin/ldd: line 1: /lib/ld-linux.so.2: cannot execute binary file > ldd: /lib/ld-linux.so.2 exited with unknown exit code (126) > bash-2.05b# ldd /usr/bin/wine > /usr/bin/ldd: line 1: /lib/ld-linux.so.2: cannot execute binary file > /usr/bin/ldd: line 1: /lib/ld-linux.so.2: cannot execute binary file > ldd: /lib/ld-linux.so.2 exited with unknown exit code (126) Please try: find /compat/linux/ -type f -print0 | xargs -0 file \ | grep ELF | cut -d : -f 1 | xargs brandelf -t Linux Bye, Alexander. -- http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137 Peter's Law of Substitution: Look after the molehills, and the mountains will look after themselves. From owner-freebsd-emulation@FreeBSD.ORG Fri Oct 28 07:56:36 2005 Return-Path: X-Original-To: freebsd-emulation@freebsd.org Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 12D5F16A41F; Fri, 28 Oct 2005 07:56:36 +0000 (GMT) (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 6CD7943D45; Fri, 28 Oct 2005 07:56:34 +0000 (GMT) (envelope-from Alexander@Leidinger.net) Received: from Andro-Beta.Leidinger.net (p54A5C8DF.dip.t-dialin.net [84.165.200.223]) (authenticated bits=0) by www.ebusiness-leidinger.de (8.13.1/8.13.1) with ESMTP id j9S7aXRP061836; Fri, 28 Oct 2005 09:36:34 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from localhost (localhost [127.0.0.1]) by Andro-Beta.Leidinger.net (8.13.3/8.13.3) with ESMTP id j9S7uQ4f093390; Fri, 28 Oct 2005 09:56:26 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from pslux.cec.eu.int (pslux.cec.eu.int [158.169.9.14]) by netchild.homeip.net (Horde MIME library) with HTTP; Fri, 28 Oct 2005 09:56:26 +0200 Message-ID: <20051028095626.rib1u1ohogs44gwc@netchild.homeip.net> X-Priority: 3 (Normal) Date: Fri, 28 Oct 2005 09:56:26 +0200 From: Alexander Leidinger To: Alexander Nedotsukov References: <4361A2DC.8080007@FreeBSD.org> In-Reply-To: <4361A2DC.8080007@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) H3 (4.0.3) / FreeBSD-4.11 X-Virus-Scanned: by amavisd-new Cc: freebsd-emulation@freebsd.org Subject: Re: linux-fontconfig update request X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Oct 2005 07:56:36 -0000 Alexander Nedotsukov wrote: > backward incompatible with fontconfig 2.1 series. Please review patch > attached. Looks good (I don't have time to test it, so I just looked at the diff). Maybe you can remove the "/i386" part from the COMMENT variable at the same time? > ps. I did not found any reliable source of v2.3.2 .rpms which going > to be committed with GNOME 2.12. But if any of you will do or have a > chance to cook its own .rpms this will be better. What about: http://rpmseek.com/rpm-dl/fontconfig-2.3.2-1.i386.html?hl=de&cs=fontconfig:PR:0:0:0:0:2139284 Maybe it works... At http://rpmseek.com/rpm-pl/fontconfig.html?hl=de&cs=fontconfig:PR:0:0:0:0 there are more sources listed. Bye, Alexander. -- http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137 The more specific the title of a course, the less you will be able to apply it later. From owner-freebsd-emulation@FreeBSD.ORG Fri Oct 28 10:00:48 2005 Return-Path: X-Original-To: emulation@freebsd.org Delivered-To: freebsd-emulation@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D101916A420 for ; Fri, 28 Oct 2005 10:00:48 +0000 (GMT) (envelope-from q@galgenberg.net) Received: from wrzx28.rz.uni-wuerzburg.de (wrzx28.rz.uni-wuerzburg.de [132.187.3.28]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6148543D48 for ; Fri, 28 Oct 2005 10:00:46 +0000 (GMT) (envelope-from q@galgenberg.net) Received: from wrzx34.rz.uni-wuerzburg.de (wrzx34.rz.uni-wuerzburg.de [132.187.3.34]) by wrzx28.rz.uni-wuerzburg.de (Postfix) with ESMTP id CE3A613F49F; Fri, 28 Oct 2005 12:00:45 +0200 (CEST) Received: from virusscan (localhost [127.0.0.1]) by wrzx34.rz.uni-wuerzburg.de (Postfix) with ESMTP id A849EB4EE2; Fri, 28 Oct 2005 12:00:45 +0200 (CEST) Received: from wrzx28.rz.uni-wuerzburg.de (wrzx28.rz.uni-wuerzburg.de [132.187.3.28]) by wrzx34.rz.uni-wuerzburg.de (Postfix) with ESMTP id 7EA78B4EDB; Fri, 28 Oct 2005 12:00:45 +0200 (CEST) Received: from frodo.galgenberg.net (wwsx14.win-screen.uni-wuerzburg.de [132.187.253.14]) by wrzx28.rz.uni-wuerzburg.de (Postfix) with ESMTP id 688F313F4C2; Fri, 28 Oct 2005 12:00:45 +0200 (CEST) Received: from coyote.q.local (gb-21-237.galgenberg.net [172.16.21.237]) by frodo.galgenberg.net (8.13.1/8.13.1) with ESMTP id j9SA0jPI026229; Fri, 28 Oct 2005 12:00:45 +0200 (CEST) (envelope-from q@galgenberg.net) Received: from roadrunner.q.local (roadrunner.q.local [192.168.0.148]) by coyote.q.local (8.13.4/8.13.4) with ESMTP id j9SA0iiA037685; Fri, 28 Oct 2005 12:00:44 +0200 (CEST) (envelope-from q@galgenberg.net) Received: from roadrunner.q.local (localhost [127.0.0.1]) by roadrunner.q.local (8.13.4/8.13.4) with ESMTP id j9SA0ibA002332; Fri, 28 Oct 2005 12:00:44 +0200 (CEST) (envelope-from q@galgenberg.net) Received: (from q@localhost) by roadrunner.q.local (8.13.4/8.13.4/Submit) id j9SA0iRo002331; Fri, 28 Oct 2005 12:00:44 +0200 (CEST) (envelope-from q@galgenberg.net) Date: Fri, 28 Oct 2005 12:00:44 +0200 From: Ulrich Spoerlein To: Alexander Leidinger Message-ID: <20051028100044.GB1126@galgenberg.net> Mail-Followup-To: Alexander Leidinger , emulation@freebsd.org References: <20051026123347.GA1054@galgenberg.net> <20051026150705.qzo2u74dgggcosss@netchild.homeip.net> <20051026133312.GB1054@galgenberg.net> <20051027100016.qpwre4w60woo088c@netchild.homeip.net> <20051027083827.GA1070@galgenberg.net> <20051027165956.yplku4x8gw804osc@netchild.homeip.net> <20051027151458.GC1070@galgenberg.net> <20051028085130.4wa89yr8ooowkck8@netchild.homeip.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="f0KYrhQ4vYSV2aJu" Content-Disposition: inline In-Reply-To: <20051028085130.4wa89yr8ooowkck8@netchild.homeip.net> X-Virus-Scanned: by amavisd-new (Rechenzentrum Universitaet Wuerzburg) Cc: emulation@freebsd.org Subject: Re: Porting linux-wine X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Oct 2005 10:00:49 -0000 --f0KYrhQ4vYSV2aJu Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, 28.10.2005 at 08:51:30 +0200, Alexander Leidinger wrote: > Please try: > find /compat/linux/ -type f -print0 | xargs -0 file \ > | grep ELF | cut -d : -f 1 | xargs brandelf -t Linux I first tried something slightly different ... and I'm shocked: % find /compat/linux/ -type f -print0 | xargs -0 file | grep ELF | cut -d := -f 1 | xargs brandelf > elf_list % grep -c Linux elf_list; grep -c SVR4 elf_list 343 393 So there are more binaries that are not branded than binaries that are branded. This is with the following ports installed: linux-XFree86-libs-4.3.99.902_3 linux-atk-1.2.0_3 linux-expat-1.95.5_3 linux-flashplugin-6.0r79_3 linux-flashplugin-7.0r25_2 linux-fontconfig-2.1_3 linux-glib2-2.2.1_3 linux-gtk2-2.2.1_5 linux-jpeg-6b.15_4 linux-pango-1.2.1_3 linux-png-1.2.7_6 linux-realplayer-10.0.5 linux-tiff-3.6.1_3 linux-wine-20050524 linux_base-8-8.0_7 linux_dri-4.3.0_3 After branding all bins/libs, I'm now unable to run /compat/linux/bin/bash because of libtermcap % ldd /compat/linux/usr/lib/libwine.so.1 /compat/linux/usr/lib/libwine.so.1: libdl.so.2 =3D> not found (0x0) libc.so.6 =3D> /lib/libc.so.6 (0x48080000) % sudo chroot /compat/linux /bin/bash /bin/bash: error while loading shared libraries: /lib/libtermcap.so.2: ELF = file OS ABI invalid (127)% ldd /compat/linux/bin/bash /compat/linux/bin/bash: /compat/linux/bin/bash: error while loading shared libraries: /lib/libtermc= ap.so.2: ELF file OS ABI invalid /compat/linux/bin/bash: exit status 127 (1)% ldd /compat/linux/lib/libtermcap.so.2 /compat/linux/lib/libtermcap.so.2: libc.so.6 =3D> /lib/libc.so.6 (0x48080000) It was one of the non-branded libs. So, is branding everything considered bad practice? % grep termcap elf_list File '/compat/linux/lib/libtermcap.so.2.0.8' is of brand 'SVR4' (0). Ulrich Spoerlein --=20 PGP Key ID: F0DB9F44 Encrypted mail welcome! Fingerprint: F1CE D062 0CA9 ADE3 349B 2FE8 980A C6B5 F0DB 9F44 Ok, which part of "Ph'nglui mglw'nafh Cthulhu R'lyeh wgah'nagl fhtagn." didn't you understand? --f0KYrhQ4vYSV2aJu Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQFDYfbMmArGtfDbn0QRAg3RAJ9Ryf+P+uoUW9pfIdMXa6vHl3bm/gCg89MC Wehg/Rvsw0k9JKi4kIawBK8= =YK6X -----END PGP SIGNATURE----- --f0KYrhQ4vYSV2aJu-- From owner-freebsd-emulation@FreeBSD.ORG Fri Oct 28 13:49:06 2005 Return-Path: X-Original-To: emulation@freebsd.org Delivered-To: freebsd-emulation@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4EED316A41F for ; Fri, 28 Oct 2005 13:49:06 +0000 (GMT) (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 9982143D45 for ; Fri, 28 Oct 2005 13:49:05 +0000 (GMT) (envelope-from Alexander@Leidinger.net) Received: from Andro-Beta.Leidinger.net (p54A5C8DF.dip.t-dialin.net [84.165.200.223]) (authenticated bits=0) by www.ebusiness-leidinger.de (8.13.1/8.13.1) with ESMTP id j9SDT2Wp063225; Fri, 28 Oct 2005 15:29:03 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from localhost (localhost [127.0.0.1]) by Andro-Beta.Leidinger.net (8.13.3/8.13.3) with ESMTP id j9SDmxm4058902; Fri, 28 Oct 2005 15:48:59 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from pslux.cec.eu.int (pslux.cec.eu.int [158.169.9.14]) by netchild.homeip.net (Horde MIME library) with HTTP; Fri, 28 Oct 2005 15:48:59 +0200 Message-ID: <20051028154859.6xvaydvtes88gows@netchild.homeip.net> X-Priority: 3 (Normal) Date: Fri, 28 Oct 2005 15:48:59 +0200 From: Alexander Leidinger To: Ulrich Spoerlein References: <20051026123347.GA1054@galgenberg.net> <20051026150705.qzo2u74dgggcosss@netchild.homeip.net> <20051026133312.GB1054@galgenberg.net> <20051027100016.qpwre4w60woo088c@netchild.homeip.net> <20051027083827.GA1070@galgenberg.net> <20051027165956.yplku4x8gw804osc@netchild.homeip.net> <20051027151458.GC1070@galgenberg.net> <20051028085130.4wa89yr8ooowkck8@netchild.homeip.net> <20051028100044.GB1126@galgenberg.net> In-Reply-To: <20051028100044.GB1126@galgenberg.net> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) H3 (4.0.3) / FreeBSD-4.11 X-Virus-Scanned: by amavisd-new Cc: emulation@freebsd.org Subject: Re: Porting linux-wine X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Oct 2005 13:49:06 -0000 Ulrich Spoerlein wrote: > On Fri, 28.10.2005 at 08:51:30 +0200, Alexander Leidinger wrote: >> Please try: >> find /compat/linux/ -type f -print0 | xargs -0 file \ >> | grep ELF | cut -d : -f 1 | xargs brandelf -t Linux > > I first tried something slightly different ... and I'm shocked: > % find /compat/linux/ -type f -print0 | xargs -0 file | grep ELF | > cut -d : -f 1 | xargs brandelf > elf_list > % grep -c Linux elf_list; grep -c SVR4 elf_list > 343 > 393 > > So there are more binaries that are not branded than binaries that are > branded. Welcome to one of the bugs in the linux part of the ports collection... > After branding all bins/libs, I'm now unable to run > /compat/linux/bin/bash because of libtermcap [error] You said you branded *all* libs, but libtermcap is still unbranded... is there anything obvious which I overlooked? [libtermcap] > It was one of the non-branded libs. So, is branding everything > considered bad practice? In an ideal Ports Collection, every ELF object which is supposed to be a linux object, is branded as such. A static linux binary has to be branded, else you will shoot yourself in the foot (it may cause the system to reboot or do other things you don't want to happen). A shared linux ELF object may work as intended, but if you want to do it properly, you have to brand them. I vote for doing it properly. The "find ... brandelf" line is from the linux_base-8 port, althought I only brand files in /{,usr/}{,s}bin there... obviously it needs to be extended (not only in the linux_base-8 port). Patches are welcome. Bye, Alexander. -- http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137 Robot, n: University administrator. From owner-freebsd-emulation@FreeBSD.ORG Fri Oct 28 14:25:11 2005 Return-Path: X-Original-To: emulation@freebsd.org Delivered-To: freebsd-emulation@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E405316A41F for ; Fri, 28 Oct 2005 14:25:11 +0000 (GMT) (envelope-from q@galgenberg.net) Received: from wrzx28.rz.uni-wuerzburg.de (wrzx28.rz.uni-wuerzburg.de [132.187.3.28]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8ED4E43D4C for ; Fri, 28 Oct 2005 14:25:08 +0000 (GMT) (envelope-from q@galgenberg.net) Received: from wrzx34.rz.uni-wuerzburg.de (wrzx34.rz.uni-wuerzburg.de [132.187.3.34]) by wrzx28.rz.uni-wuerzburg.de (Postfix) with ESMTP id 5142A13F45E; Fri, 28 Oct 2005 16:25:07 +0200 (CEST) Received: from virusscan (localhost [127.0.0.1]) by wrzx34.rz.uni-wuerzburg.de (Postfix) with ESMTP id 31218B4F08; Fri, 28 Oct 2005 16:25:07 +0200 (CEST) Received: from wrzx28.rz.uni-wuerzburg.de (wrzx28.rz.uni-wuerzburg.de [132.187.3.28]) by wrzx34.rz.uni-wuerzburg.de (Postfix) with ESMTP id EECD6B35A6; Fri, 28 Oct 2005 16:25:06 +0200 (CEST) Received: from frodo.galgenberg.net (wwsx14.win-screen.uni-wuerzburg.de [132.187.253.14]) by wrzx28.rz.uni-wuerzburg.de (Postfix) with ESMTP id D269913F45E; Fri, 28 Oct 2005 16:25:06 +0200 (CEST) Received: from coyote.q.local (gb-21-237.galgenberg.net [172.16.21.237]) by frodo.galgenberg.net (8.13.1/8.13.1) with ESMTP id j9SEP6bd032397; Fri, 28 Oct 2005 16:25:06 +0200 (CEST) (envelope-from q@galgenberg.net) Received: from roadrunner.q.local (roadrunner.q.local [192.168.0.148]) by coyote.q.local (8.13.4/8.13.4) with ESMTP id j9SEP68t038915; Fri, 28 Oct 2005 16:25:06 +0200 (CEST) (envelope-from q@galgenberg.net) Received: from roadrunner.q.local (localhost [127.0.0.1]) by roadrunner.q.local (8.13.4/8.13.4) with ESMTP id j9SEP5bC038245; Fri, 28 Oct 2005 16:25:06 +0200 (CEST) (envelope-from q@galgenberg.net) Received: (from q@localhost) by roadrunner.q.local (8.13.4/8.13.4/Submit) id j9SEP5x0038244; Fri, 28 Oct 2005 16:25:05 +0200 (CEST) (envelope-from q@galgenberg.net) Date: Fri, 28 Oct 2005 16:25:05 +0200 From: Ulrich Spoerlein To: Alexander Leidinger Message-ID: <20051028142505.GC1126@galgenberg.net> Mail-Followup-To: Alexander Leidinger , emulation@freebsd.org References: <20051026123347.GA1054@galgenberg.net> <20051026150705.qzo2u74dgggcosss@netchild.homeip.net> <20051026133312.GB1054@galgenberg.net> <20051027100016.qpwre4w60woo088c@netchild.homeip.net> <20051027083827.GA1070@galgenberg.net> <20051027165956.yplku4x8gw804osc@netchild.homeip.net> <20051027151458.GC1070@galgenberg.net> <20051028085130.4wa89yr8ooowkck8@netchild.homeip.net> <20051028100044.GB1126@galgenberg.net> <20051028154859.6xvaydvtes88gows@netchild.homeip.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="/3yNEOqWowh/8j+e" Content-Disposition: inline In-Reply-To: <20051028154859.6xvaydvtes88gows@netchild.homeip.net> X-Virus-Scanned: by amavisd-new (Rechenzentrum Universitaet Wuerzburg) Cc: emulation@freebsd.org Subject: Re: Porting linux-wine X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Oct 2005 14:25:12 -0000 --/3yNEOqWowh/8j+e Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, 28.10.2005 at 15:48:59 +0200, Alexander Leidinger wrote: > [error] >=20 > You said you branded *all* libs, but libtermcap is still unbranded... is > there anything obvious which I overlooked? Yes, the list I grepped was made _before_ branding. I just wanted to show, that it worked before branding, as it had brand 0. Then after branding to 3 it stopped working. But see below. > [libtermcap] > >It was one of the non-branded libs. So, is branding everything > >considered bad practice? >=20 > In an ideal Ports Collection, every ELF object which is supposed to be a > linux object, is branded as such. Better not! I just found out, that even ICC, which isn't even installed in /compat/linux will not run, after branding all libs /usr/local/intel_cc_80/bin/icpcbin: error while loading shared libraries: /= lib/libm.so.6: ELF file O S ABI invalid *** Error code 127 > A static linux binary has to be branded, else you will shoot yourself in = the > foot (it may cause the system to reboot or do other things you don't want= to > happen). A shared linux ELF object may work as intended, but if you want = to > do it properly, you have to brand them. I vote for doing it properly. I was thinking along the same lines, but there's obviously something wrong with this approach, as nearly all linux-apps stopped working here. > The "find ... brandelf" line is from the linux_base-8 port, althought I o= nly > brand files in /{,usr/}{,s}bin there... obviously it needs to be extended > (not only in the linux_base-8 port). Patches are welcome. I think I can explain why things don't work and the culprit seems to be /lib/ld-linux.so.2 which won't load libs when they are branded with type 3. Observe. % /compat/linux/usr/bin/djpeg Empty input file (1)% file /compat/linux/usr/bin/djpeg /compat/linux/usr/bin/djpeg: ELF 32-bit LSB executable, Intel 80386, versio= n 1 (SYSV), for GNU/Linux 2.0.0, dynamical ly linked (uses shared libs), stripped % ldd /compat/linux/usr/bin/djpeg /compat/linux/usr/bin/djpeg: libjpeg.so.62 =3D> /usr/lib/libjpeg.so.62 (0x48060000) libc.so.6 =3D> /lib/libc.so.6 (0x48083000) /lib/ld-linux.so.2 =3D> /lib/ld-linux.so.2 (0x4804d000) % brandelf /compat/linux/usr/bin/djpeg File '/compat/linux/usr/bin/djpeg' is of brand 'SVR4' (0). % brandelf /compat/linux/usr/lib/libjpeg.so.62 File '/compat/linux/usr/lib/libjpeg.so.62' is of brand 'SVR4' (0). Everything working so far. % sudo brandelf -t Linux /compat/linux/usr/lib/libjpeg.so.62 % ldd /compat/linux/usr/bin/djpeg /compat/linux/usr/bin/djpeg: /compat/linux/usr/bin/djpeg: error while loading shared libraries: /usr/lib= /libjpeg.so.62: ELF file OS ABI invalid /compat/linux/usr/bin/djpeg: exit status 127 (1)% /compat/linux/usr/bin/djpeg /compat/linux/usr/bin/djpeg: error while loading shared libraries: /usr/lib= /libjpeg.so.62: ELF file OS ABI invalid (127)% The way I see it (and I don't know nothing about ELF and shared libraries), the Linuxulator loads the branded binary, ok. Then ld-linux.so.2 kicks in and tries to load all necessary shared libraries. But it will only load them, if their brand is '0' (as that is what Linux uses). So when it encounters a lib with a brand of '3' it will error out. Does this make sense? If so, there a two possible fixes: 1) Tell the Linux folks to fix their ld-linux.so so it accepts brand 3 (is this standardized? Or did the FreeBSD Project make up the number '3' here?). Then wait for it to become available in the next linux_base and brand *all* binaries and libs. 2) Brand all binaries, that can/will be called directly from FreeBSD. Don't touch any libs that ld-linux.so could possibly load. I then even made some progress with wine. Branding the binaries only I got this: wine: failed to initialize: /usr/lib/wine/ntdll.dll.so: failed to map segme= nt from shared object: Cannot allocate memory which is probably due to the tricks wine plays with the heap. Perhaps, after all, linux-wine can never possibly work on FreeBSD? Ulrich Spoerlein --=20 PGP Key ID: F0DB9F44 Encrypted mail welcome! Fingerprint: F1CE D062 0CA9 ADE3 349B 2FE8 980A C6B5 F0DB 9F44 Ok, which part of "Ph'nglui mglw'nafh Cthulhu R'lyeh wgah'nagl fhtagn." didn't you understand? --/3yNEOqWowh/8j+e Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQFDYjTBmArGtfDbn0QRArhrAKD+GEwxkJ1G3cmaSunExO8Hb2YIPwCfR+0L pWTJhLN/QeiRinXQAZ2A6qg= =ogzq -----END PGP SIGNATURE----- --/3yNEOqWowh/8j+e-- From owner-freebsd-emulation@FreeBSD.ORG Fri Oct 28 14:33:40 2005 Return-Path: X-Original-To: emulation@hub.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 870B016A420; Fri, 28 Oct 2005 14:33:40 +0000 (GMT) (envelope-from vs@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 27C0843D46; Fri, 28 Oct 2005 14:33:40 +0000 (GMT) (envelope-from vs@FreeBSD.org) Received: from freefall.freebsd.org (vs@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j9SEXeTP040905; Fri, 28 Oct 2005 14:33:40 GMT (envelope-from vs@freefall.freebsd.org) Received: (from vs@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j9SEXdCx040901; Fri, 28 Oct 2005 14:33:39 GMT (envelope-from vs) Date: Fri, 28 Oct 2005 14:33:39 GMT From: Volker Stolz Message-Id: <200510281433.j9SEXdCx040901@freefall.freebsd.org> To: koma2@lovepeers.org, vs@FreeBSD.org, emulation@FreeBSD.org Cc: Subject: Re: ports/80837: x11-toolkits/linux-gtk: cannot install by non-root user 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: Fri, 28 Oct 2005 14:33:40 -0000 Synopsis: x11-toolkits/linux-gtk: cannot install by non-root user on amd64 State-Changed-From-To: open->feedback State-Changed-By: vs State-Changed-When: Fri Oct 28 14:32:35 GMT 2005 State-Changed-Why: Can you please check if this is still an issue? I'm unable to repeat this, albeit with a hand-crafted test-setup. Also, using MACHINE_ARCH is usually the wrong solution, please read bsd.port.mk for the rationale. http://www.freebsd.org/cgi/query-pr.cgi?pr=80837 From owner-freebsd-emulation@FreeBSD.ORG Fri Oct 28 14:34:31 2005 Return-Path: X-Original-To: emulation@hub.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 CE1C616A420; Fri, 28 Oct 2005 14:34:31 +0000 (GMT) (envelope-from vs@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8986143D49; Fri, 28 Oct 2005 14:34:31 +0000 (GMT) (envelope-from vs@FreeBSD.org) Received: from freefall.freebsd.org (vs@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j9SEYVcd040995; Fri, 28 Oct 2005 14:34:31 GMT (envelope-from vs@freefall.freebsd.org) Received: (from vs@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j9SEYVn0040991; Fri, 28 Oct 2005 14:34:31 GMT (envelope-from vs) Date: Fri, 28 Oct 2005 14:34:31 GMT From: Volker Stolz Message-Id: <200510281434.j9SEYVn0040991@freefall.freebsd.org> To: koma2@lovepeers.org, vs@FreeBSD.org, emulation@FreeBSD.org Cc: Subject: Re: ports/80679: emulators/linux_base-8: Use ${MACHINE_ARCH} instead of ${ARCH}. X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Oct 2005 14:34:31 -0000 Synopsis: emulators/linux_base-8: Use ${MACHINE_ARCH} instead of ${ARCH}. State-Changed-From-To: open->suspended State-Changed-By: vs State-Changed-When: Fri Oct 28 14:33:52 GMT 2005 State-Changed-Why: Waiting for clarification of the same issue mentioned in ports/80837 http://www.freebsd.org/cgi/query-pr.cgi?pr=80679 From owner-freebsd-emulation@FreeBSD.ORG Fri Oct 28 14:41:15 2005 Return-Path: X-Original-To: emulation@hub.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 E9AEA16A41F; Fri, 28 Oct 2005 14:41:15 +0000 (GMT) (envelope-from vs@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 09CE843D88; Fri, 28 Oct 2005 14:41:11 +0000 (GMT) (envelope-from vs@FreeBSD.org) Received: from freefall.freebsd.org (vs@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j9SEfAY8041723; Fri, 28 Oct 2005 14:41:10 GMT (envelope-from vs@freefall.freebsd.org) Received: (from vs@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j9SEfATJ041719; Fri, 28 Oct 2005 14:41:10 GMT (envelope-from vs) Date: Fri, 28 Oct 2005 14:41:10 GMT From: Volker Stolz Message-Id: <200510281441.j9SEfATJ041719@freefall.freebsd.org> To: jhb@FreeBSD.org, vs@FreeBSD.org, emulation@FreeBSD.org Cc: Subject: Re: ports/79655: linux_base-8 fails to install as non-root X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Oct 2005 14:41:16 -0000 Synopsis: linux_base-8 fails to install as non-root State-Changed-From-To: open->closed State-Changed-By: vs State-Changed-When: Fri Oct 28 14:40:35 GMT 2005 State-Changed-Why: Should be fixed, everything is handled in do-install: these days. http://www.freebsd.org/cgi/query-pr.cgi?pr=79655 From owner-freebsd-emulation@FreeBSD.ORG Sat Oct 29 00:59:59 2005 Return-Path: X-Original-To: freebsd-emulation@freebsd.org Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B4A0F16A41F for ; Sat, 29 Oct 2005 00:59:59 +0000 (GMT) (envelope-from linimon@FreeBSD.org) Received: from mail.droso.net (koala.droso.net [193.88.12.38]) by mx1.FreeBSD.org (Postfix) with ESMTP id 17A1943D49 for ; Sat, 29 Oct 2005 00:59:59 +0000 (GMT) (envelope-from linimon@FreeBSD.org) Received: from localhost (localhost [127.0.0.1]) by mail.droso.net (Postfix) with ESMTP id 473C0229CC for ; Sat, 29 Oct 2005 02:59:58 +0200 (CEST) Received: from koala.ipv6.droso.net (localhost [IPv6:::1]) by mail.droso.net (Postfix) with ESMTP id 8B6FE229C7 for ; Sat, 29 Oct 2005 02:59:55 +0200 (CEST) From: linimon@FreeBSD.org To: freebsd-emulation@freebsd.org Message-Id: <20051029005955.8B6FE229C7@mail.droso.net> Date: Sat, 29 Oct 2005 02:59:55 +0200 (CEST) X-Virus-Scanned: by amavisd 0.1 Subject: FreeBSD ports that you maintain which are currently marked broken X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 29 Oct 2005 00:59:59 -0000 Dear FreeBSD port maintainer: As part of an ongoing effort to reduce the number of problems in the FreeBSD ports system, we are attempting to notify maintainers of ports that are marked as "broken" in their Makefiles. In many cases these ports are failing to compile on some subset of the FreeBSD build environments. The most common problem is that recent versions of -CURRENT include gcc3.4, which is much stricter about such things as function declarations, literal strings constants that continue over several physical lines, and forcing the deprecation of antique header files such as varargs.h (we should now be using stdargs.h). The next most common problem is that compiles succeed on the i386 architecture (e.g. the common Intel PC), but fail on one or more of the other architectures due to assumptions about things such as size of various types, byte-alignment issues, and so forth. In occasional cases we see that the same port may have different errors in different build environments. The script that runs on the build cluster uses heuristics to try to 'guess' the error type to help you isolate problems, but it is only a rough guide. If you need help in one or more build environments that you do not have access to, please ask for help on the freebsd-ports mailing list. One more note: on occasion, there are transient build errors seen on the build farm. Unfortunately, there is not yet any way for this algorithm to tell the difference (humans are much, much better at this kind of thing.) The errors are listed below. In the case where the same problem exists on more than one build environment, the URL points to the latest errorlog for that type. (By 'build environment' here we mean 'combination of 4.x/5.x/6.x with target architecture'.) (Note: the dates are included to help you to gauge whether or not the error still applies to the latest version. The program that generates this report is not yet able to determine this automatically.) portname: devel/linux_devtools-6 broken because: dependent on linux_base-6 build errors: none. overview: http://portsmon.FreeBSD.org/portoverview.py?category=devel&portname=linux_devtools-6 portname: devel/linux_devtools-7 broken because: Incomplete pkg-plist build errors: http://pointyhat.freebsd.org/errorlogs/i386-errorlogs/e.5.2005091121/linux_devtools-7.1_3.log (Oct 15 14:23:34 UTC 2005) overview: http://portsmon.FreeBSD.org/portoverview.py?category=devel&portname=linux_devtools-7 If these errors are ones that you are already aware of, please accept our apologies and ignore this message. On the other hand, if you no longer wish to maintain this port (or ports), please reply with a message stating that, and accept our thanks for your efforts in the past. Every effort has been made to make sure that these error reports really do correspond to a port that you maintain. However, due to the fact that this is an automated process, it may indeed generate false matches. If one of these errors fits that description, please forward this email to the author of this software, Mark Linimon , so that he can attempt to fix the problem in the future. Thanks for your efforts to help improve FreeBSD. From owner-freebsd-emulation@FreeBSD.ORG Sat Oct 29 02:09:56 2005 Return-Path: X-Original-To: emulation@hub.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 02EF216A420; Sat, 29 Oct 2005 02:09:56 +0000 (GMT) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id B480D43D45; Sat, 29 Oct 2005 02:09:55 +0000 (GMT) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (linimon@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j9T29tZK036461; Sat, 29 Oct 2005 02:09:55 GMT (envelope-from linimon@freefall.freebsd.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j9T29ttY036457; Sat, 29 Oct 2005 02:09:55 GMT (envelope-from linimon) Date: Sat, 29 Oct 2005 02:09:55 GMT From: Mark Linimon Message-Id: <200510290209.j9T29ttY036457@freefall.freebsd.org> To: dmlb@dmlb.org, linimon@FreeBSD.org, emulation@FreeBSD.org Cc: Subject: Re: kern/42404: TIOCSCTTY not implemented in linuxulator 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, 29 Oct 2005 02:09:56 -0000 Synopsis: TIOCSCTTY not implemented in linuxulator State-Changed-From-To: patched->closed State-Changed-By: linimon State-Changed-When: Sat Oct 29 02:09:14 GMT 2005 State-Changed-Why: Implemented back in 2003 and unlikely to be MFCed any further back. http://www.freebsd.org/cgi/query-pr.cgi?pr=42404 From owner-freebsd-emulation@FreeBSD.ORG Sat Oct 29 02:12:03 2005 Return-Path: X-Original-To: emulation@hub.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 03A1D16A420; Sat, 29 Oct 2005 02:12:03 +0000 (GMT) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id B2CDB43D45; Sat, 29 Oct 2005 02:12:02 +0000 (GMT) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (linimon@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j9T2C29J036651; Sat, 29 Oct 2005 02:12:02 GMT (envelope-from linimon@freefall.freebsd.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j9T2C2Ip036647; Sat, 29 Oct 2005 02:12:02 GMT (envelope-from linimon) Date: Sat, 29 Oct 2005 02:12:02 GMT From: Mark Linimon Message-Id: <200510290212.j9T2C2Ip036647@freefall.freebsd.org> To: doconnor@cain.gsoft.com.au, linimon@FreeBSD.org, emulation@FreeBSD.org Cc: Subject: Re: kern/47349: Fake a sound ioctl (plus linux hook) 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, 29 Oct 2005 02:12:03 -0000 Synopsis: Fake a sound ioctl (plus linux hook) State-Changed-From-To: patched->closed State-Changed-By: linimon State-Changed-When: Sat Oct 29 02:11:41 GMT 2005 State-Changed-Why: Committed July 2004 and unlikely to be MFCed any further than that. http://www.freebsd.org/cgi/query-pr.cgi?pr=47349 From owner-freebsd-emulation@FreeBSD.ORG Sat Oct 29 02:12:05 2005 Return-Path: X-Original-To: freebsd-emulation@FreeBSD.org Delivered-To: freebsd-emulation@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6444716A41F; Sat, 29 Oct 2005 02:12:05 +0000 (GMT) (envelope-from nork@FreeBSD.org) Received: from sakura.ninth-nine.com (sakura.ninth-nine.com [219.127.74.120]) by mx1.FreeBSD.org (Postfix) with ESMTP id 942CF43D45; Sat, 29 Oct 2005 02:12:04 +0000 (GMT) (envelope-from nork@FreeBSD.org) Received: from nadesico.ninth-nine.com (nadesico.ninth-nine.com [219.127.74.122]) by sakura.ninth-nine.com (8.13.3/8.13.3/NinthNine) with ESMTP id j9T2BxAa011598; Sat, 29 Oct 2005 11:12:01 +0900 (JST) (envelope-from nork@FreeBSD.org) Date: Sat, 29 Oct 2005 11:11:59 +0900 From: Norikatsu Shigemura To: nox@jelal.kn-bremen.de Message-Id: <20051029111159.b1e06be9.nork@FreeBSD.org> In-Reply-To: <20051026224401.3acf2501.nork@FreeBSD.org> References: <20051025215759.25681b85.nork@FreeBSD.org> <20051025191141.GC7277@saturn.kn-bremen.de> <20051026224401.3acf2501.nork@FreeBSD.org> X-Mailer: Sylpheed version 2.1.4 (GTK+ 2.6.10; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0 (sakura.ninth-nine.com [219.127.74.121]); Sat, 29 Oct 2005 11:12:01 +0900 (JST) Cc: freebsd-emulation@FreeBSD.org, nork@FreeBSD.org, jkim@FreeBSD.org Subject: Re: kqemu-kmod port 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, 29 Oct 2005 02:12:05 -0000 On Wed, 26 Oct 2005 22:44:01 +0900 Norikatsu Shigemura wrote: > > Err. You may be able to build the kld seperately like that, but the > > qemu build also needs the kqemu bits in place in the build dir to add in > > kqemu support... So if you remove it from the qemu port the kld wont > > get used. > $ grep -r kqemu . > ./kqemu.c:#include "kqemu/kqemu.h" REVENGE overrided: my kqemu-kmod port http://people.freebsd.org/~nork/kqemu-kmod.shar Please reget my shar file. And I made a patch for qemu port. How about? Index: Makefile =================================================================== RCS file: /home/ncvs/ports/emulators/qemu/Makefile,v retrieving revision 1.33 diff -u -r1.33 Makefile --- Makefile 7 Oct 2005 19:26:21 -0000 1.33 +++ Makefile 28 Oct 2005 08:52:47 -0000 @@ -6,17 +6,13 @@ # PORTNAME= qemu -PORTVERSION= 0.7.2s.20050909 -PORTREVISION= 2 +PORTVERSION= 0.7.2s.20051027 +PORTREVISION= 0 CATEGORIES= emulators MASTER_SITES= http://www.qemu.org/ \ http://people.fruitsalad.org/nox/qemu/ \ - http://dad-answers.com/qemu/ -DISTNAME= ${PORTNAME}-snapshot-2005-09-09_23 -.if defined(WITH_KQEMU) -DISTFILES= ${EXTRACT_ONLY} ${DISTKQEMU} -.endif -EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX} + http://qemu.dad-answers.com/download/qemu/ +DISTNAME= ${PORTNAME}-snapshot-2005-10-27_23 MAINTAINER= nox@jelal.kn-bremen.de COMMENT= QEMU CPU Emulator @@ -25,10 +21,8 @@ .if defined(WITH_SAMBA) RUN_DEPENDS+= ${LOCALBASE}/sbin/smbd:${PORTSDIR}/net/samba .endif - .if defined(WITH_KQEMU) -DISTKQEMU= kqemu-0.7.2.tar.gz -EXTRA_PATCHES= ${FILESDIR}/kqemu-freebsd-patch +BUILD_DEPENDS+= ${LOCALBASE}/include/kqemu/kqemu.h:${PORTSDIR}/emulators/kqemu-kmod .endif HAS_CONFIGURE= yes @@ -43,13 +37,9 @@ MAN1= qemu.1 qemu-img.1 ONLY_FOR_ARCHS= amd64 i386 .if defined(WITH_KQEMU) -NO_PACKAGE= Depends on kernel, and module not redistributable CONFIGURE_ARGS+= --enable-kqemu -PLIST_SUB= WITH_KQEMU="" -PLIST_SUB+= KMODDIR=${KMODDIR:C/^\///} .else CONFIGURE_ARGS+= --disable-kqemu -PLIST_SUB= WITH_KQEMU="@comment " .endif .include @@ -59,9 +49,7 @@ .endif USE_GCC= 3.4 -.if defined(WITH_KQEMU) && !exists(${SRC_BASE}/sys/Makefile) -IGNORE= kqemu requires kernel source to be installed -.endif +CFLAGS+= -I${LOCALBASE}/include pre-everything:: .if !defined(WITH_KQEMU) @@ -74,11 +62,9 @@ @${ECHO_MSG} "WITH_SAMBA." .endif -.if defined(WITH_KQEMU) post-extract: - @cd ${WRKSRC} && ${TAR} xfz ${_DISTDIR}/${DISTKQEMU} - @${LN} -s Makefile.freebsd ${WRKSRC}/kqemu/BSDmakefile -.endif + @${MKDIR} ${WRKSRC}/kqemu + @${ECHO} all: > ${WRKSRC}/kqemu/Makefile pre-patch: @for A in ${ONLY_FOR_ARCHS}; do \ @@ -86,17 +72,6 @@ done post-install: -.if defined(WITH_KQEMU) - ${INSTALL_SCRIPT} ${WRKSRC}/kqemu/kqemu.ko ${KMODDIR} - if mount |${GREP} ^devfs >/dev/null ; then \ - : ; \ - else \ - if [ ! -e /dev/kqemu ]; then\ - mknod /dev/kqemu c 250 0 ; \ - fi ; \ - ${CHMOD} 666 /dev/kqemu ; \ - fi -.endif @${CAT} ${PKGMESSAGE} .include Index: distinfo =================================================================== RCS file: /home/ncvs/ports/emulators/qemu/distinfo,v retrieving revision 1.21 diff -u -r1.21 distinfo --- distinfo 10 Sep 2005 17:04:41 -0000 1.21 +++ distinfo 28 Oct 2005 05:29:25 -0000 @@ -1,4 +1,2 @@ -MD5 (qemu-snapshot-2005-09-09_23.tar.bz2) = db4ffeb081666c7352f5c0231e3f09c7 -SIZE (qemu-snapshot-2005-09-09_23.tar.bz2) = 1122120 -MD5 (kqemu-0.7.2.tar.gz) = 02cfdecda90458d6393781496ec6b48b -SIZE (kqemu-0.7.2.tar.gz) = 79314 +MD5 (qemu-snapshot-2005-10-27_23.tar.bz2) = f8afa04d0ede39350738ffb7d72b2e25 +SIZE (qemu-snapshot-2005-10-27_23.tar.bz2) = 1121793 Index: pkg-plist =================================================================== RCS file: /home/ncvs/ports/emulators/qemu/pkg-plist,v retrieving revision 1.12 diff -u -r1.12 pkg-plist --- pkg-plist 1 Oct 2005 13:25:08 -0000 1.12 +++ pkg-plist 29 Oct 2005 02:08:36 -0000 @@ -51,5 +51,3 @@ @dirrm %%DATADIR%%/keymaps @dirrm %%DATADIR%% %%PORTDOCS%%@dirrm %%DOCSDIR%% -@cwd / -%%WITH_KQEMU%%%%KMODDIR%%/kqemu.ko Index: files/kqemu-freebsd-patch =================================================================== RCS file: files/kqemu-freebsd-patch diff -N files/kqemu-freebsd-patch --- files/kqemu-freebsd-patch 7 Oct 2005 19:26:21 -0000 1.4 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -1,513 +0,0 @@ -Index: qemu/kqemu/Makefile.freebsd -@@ -5,6 +5,7 @@ - .elif ${MACHINE_ARCH} == "amd64" - OBJS= kqemu-mod-x86_64.o - .endif -+CC= cc - WERROR= - - .include -Index: qemu/kqemu/kqemu-freebsd.c -@@ -3,32 +3,55 @@ - #include - #include - #include -+#include -+#include - #include - #include - #include -+#if __FreeBSD_version >= 500000 - #include -+#endif - #include -+#include -+#if __FreeBSD_version >= 500000 - #include -+#endif - #include - #include -+#include -+#include -+#if __FreeBSD_version < 500000 -+#include -+#endif -+ - #include - #include - #include - #include - #include - #include -+#include -+ - #include - #include - - #include "kqemu-kernel.h" - -+#ifndef KQEMU_MAJOR -+#define KQEMU_MAJOR 250 -+#endif -+ - MALLOC_DECLARE(M_KQEMU); - MALLOC_DEFINE(M_KQEMU, "kqemu", "kqemu buffers"); - -+int kqemu_debug; -+SYSCTL_INT(_debug, OID_AUTO, kqemu_debug, CTLFLAG_RW, &kqemu_debug, 0, -+ "kqemu debug flag"); -+ - #define USER_BASE 0x1000 - - /* lock the page at virtual address 'user_addr' and return its -- physical page index. Return -1 if error */ -+ physical page index. Return NULL if error */ - struct kqemu_user_page *CDECL kqemu_lock_user_page(unsigned long *ppage_index, - unsigned long user_addr) - { -@@ -37,14 +60,18 @@ - vm_paddr_t pa = 0; - int ret; - pmap_t pmap; -+#if __FreeBSD_version >= 500000 - ret = vm_map_wire(&vm->vm_map, va, va+PAGE_SIZE, VM_MAP_WIRE_USER); -+#else -+ ret = vm_map_user_pageable(&vm->vm_map, va, va+PAGE_SIZE, FALSE); -+#endif - if (ret != KERN_SUCCESS) { -- printf("kqemu_lock_user_page(%08lx) failed, ret=%d\n", user_addr, ret); -+ kqemu_log("kqemu_lock_user_page(%08lx) failed, ret=%d\n", user_addr, ret); - return NULL; - } - pmap = vm_map_pmap(&vm->vm_map); - pa = pmap_extract(pmap, va); -- // printf("kqemu_lock_user_page(%08lx) va=%08x pa=%08x\n", user_addr, va, pa); -+ /* kqemu_log("kqemu_lock_user_page(%08lx) va=%08x pa=%08x\n", user_addr, va, pa); */ - *ppage_index = pa >> PAGE_SHIFT; - return (struct kqemu_user_page *)va; - } -@@ -54,12 +81,16 @@ - struct vmspace *vm = curproc->p_vmspace; - vm_offset_t va; - int ret; -- // printf("kqemu_unlock_user_page(%08lx)\n", page_index); -+ /* kqemu_log("kqemu_unlock_user_page(%08lx)\n", page_index); */ - va = (vm_offset_t)page; -+#if __FreeBSD_version >= 500000 - ret = vm_map_unwire(&vm->vm_map, va, va+PAGE_SIZE, VM_MAP_WIRE_USER); -+#else -+ ret = vm_map_user_pageable(&vm->vm_map, va, va+PAGE_SIZE, TRUE); -+#endif - #if 0 - if (ret != KERN_SUCCESS) { -- printf("kqemu_unlock_user_page(%08lx) failed, ret=%d\n", page_index, ret); -+ kqemu_log("kqemu_unlock_user_page(%08lx) failed, ret=%d\n", page_index, ret); - } - #endif - } -@@ -76,20 +107,21 @@ - - va = kmem_alloc(kernel_map, PAGE_SIZE); - if (va == 0) { -- printf("kqemu_alloc_zeroed_page: NULL\n"); -- return -1; -+ kqemu_log("kqemu_alloc_zeroed_page: NULL\n"); -+ return NULL; - } - pmap = vm_map_pmap(kernel_map); - pa = pmap_extract(pmap, va); -- // printf("kqemu_alloc_zeroed_page: %08x\n", pa); -+ /* kqemu_log("kqemu_alloc_zeroed_page: %08x\n", pa); */ - *ppage_index = pa >> PAGE_SHIFT; - return (struct kqemu_page *)va; - } - - void CDECL kqemu_free_page(struct kqemu_page *page) - { -- // printf("kqemu_free_page(%08lx)\n", page_index); -- /* XXX: do it */ -+ if (kqemu_debug > 0) -+ kqemu_log("kqemu_free_page(%p)\n", page); -+ kmem_free(kernel_map, (vm_offset_t) page, PAGE_SIZE); - } - - /* return kernel address of the physical page page_index */ -@@ -103,42 +135,29 @@ - GB of physical memory */ - void * CDECL kqemu_vmalloc(unsigned int size) - { -- struct vmspace *vm = curproc->p_vmspace; -- vm_offset_t va = USER_BASE; -- int rv; -- if (size % PAGE_SIZE != 0) { -- printf("kqemu_vmalloc(%d) not a multiple of page size\n", size); -- return NULL; -- } -- rv = vm_map_find(&vm->vm_map, NULL, 0, &va, size, 1, -- VM_PROT_ALL, VM_PROT_ALL, 0); -- if (rv != KERN_SUCCESS) { -- printf("kqemu_vmalloc(%d) failed rv=%d\n", size, rv); -- return NULL; -- } -- printf("kqemu_vmalloc(%d): %08x\n", size, va); -- return (void *)va; -+ void *ptr = malloc(size, M_KQEMU, M_WAITOK); -+ if (kqemu_debug > 0) -+ kqemu_log("kqemu_vmalloc(%d): %p\n", size, ptr); -+ return ptr; - } - - void CDECL kqemu_vfree(void *ptr) - { -- printf("kqemu_vfree(%p)\n", ptr); -+ if (kqemu_debug > 0) -+ kqemu_log("kqemu_vfree(%p)\n", ptr); -+ free(ptr, M_KQEMU); - } - - /* return the physical page index for a given virtual page */ - unsigned long CDECL kqemu_vmalloc_to_phys(const void *vaddr) - { -- struct vmspace *vm = curproc->p_vmspace; -- vm_paddr_t pa; -- pmap_t pmap; -- -- pmap = vm_map_pmap(&vm->vm_map); -- pa = pmap_extract(pmap, (vm_offset_t)vaddr); -+ vm_paddr_t pa = vtophys(vaddr); - if (pa == 0) { -- printf("kqemu_vmalloc_to_phys(%p)->error\n", vaddr); -+ kqemu_log("kqemu_vmalloc_to_phys(%p)->error\n", vaddr); - return -1; - } -- printf("kqemu_vmalloc_to_phys(%p)->%08x\n", vaddr, pa); -+ if (kqemu_debug > 0) -+ kqemu_log("kqemu_vmalloc_to_phys(%p)->%08x\n", vaddr, pa); - return pa >> PAGE_SHIFT; - } - -@@ -154,16 +173,48 @@ - { - } - -+#if __FreeBSD_version < 500000 -+static int -+curpriority_cmp(struct proc *p) -+{ -+ int c_class, p_class; -+ -+ c_class = RTP_PRIO_BASE(curproc->p_rtprio.type); -+ p_class = RTP_PRIO_BASE(p->p_rtprio.type); -+ if (p_class != c_class) -+ return (p_class - c_class); -+ if (p_class == RTP_PRIO_NORMAL) -+ return (((int)p->p_priority - (int)curpriority) / PPQ); -+ return ((int)p->p_rtprio.prio - (int)curproc->p_rtprio.prio); -+} -+ -+/* return TRUE if a signal is pending (i.e. the guest must stop -+ execution) */ -+int CDECL kqemu_schedule(void) -+{ -+ struct proc *p = curproc; -+ if (curpriority_cmp(p) > 0) { -+ int s = splhigh(); -+ p->p_priority = MAXPRI; -+ setrunqueue(p); -+ p->p_stats->p_ru.ru_nvcsw++; -+ mi_switch(); -+ splx(s); -+ } -+ return issignal(curproc) != 0; -+} -+#else - /* return TRUE if a signal is pending (i.e. the guest must stop - execution) */ - int CDECL kqemu_schedule(void) - { -- // printf("kqemu_schedule\n"); -+ /* kqemu_log("kqemu_schedule\n"); */ - mtx_lock_spin(&sched_lock); - mi_switch(SW_VOL, NULL); - mtx_unlock_spin(&sched_lock); - return SIGPENDING(curthread); - } -+#endif - - static char log_buf[4096]; - -@@ -176,47 +227,159 @@ - va_end(ap); - } - -+#define KQEMU_MAX_INSTANCES 4 -+ - struct kqemu_instance { -- // struct semaphore sem; -+#if __FreeBSD_version >= 500000 -+ TAILQ_ENTRY(kqemu_instance) kqemu_ent; -+ struct cdev *kqemu_dev; -+#endif -+ /* struct semaphore sem; */ - struct kqemu_state *state; - }; - -+static int kqemu_ref_count = 0; -+static int max_locked_pages; -+ -+#if __FreeBSD_version < 500000 -+static dev_t kqemu_dev; -+#else -+static struct clonedevs *kqemuclones; -+static TAILQ_HEAD(,kqemu_instance) kqemuhead = TAILQ_HEAD_INITIALIZER(kqemuhead); -+static eventhandler_tag clonetag; -+#endif -+ - static d_close_t kqemu_close; - static d_open_t kqemu_open; - static d_ioctl_t kqemu_ioctl; - - static struct cdevsw kqemu_cdevsw = { -+#if __FreeBSD_version < 500000 -+ /* open */ kqemu_open, -+ /* close */ kqemu_close, -+ /* read */ noread, -+ /* write */ nowrite, -+ /* ioctl */ kqemu_ioctl, -+ /* poll */ nopoll, -+ /* mmap */ nommap, -+ /* strategy */ nostrategy, -+ /* name */ "kqemu", -+ /* maj */ KQEMU_MAJOR, -+ /* dump */ nodump, -+ /* psize */ nopsize, -+ /* flags */ 0, -+ /* bmaj */ -1 -+#else - .d_version = D_VERSION, - .d_flags = D_NEEDGIANT, - .d_open = kqemu_open, - .d_ioctl = kqemu_ioctl, - .d_close = kqemu_close, - .d_name = "kqemu" -+#endif - }; - --/* For use with make_dev(9)/destroy_dev(9). */ --static struct cdev *kqemu_dev; -+#if __FreeBSD_version >= 500000 -+static void -+#if __FreeBSD_version >= 600034 -+kqemu_clone(void *arg, struct ucred *cred, char *name, int namelen, -+struct cdev **dev) -+#else -+kqemu_clone(void *arg, char *name, int namelen, struct cdev **dev) -+#endif -+{ -+ int unit, r; -+ if (*dev != NULL) -+ return; -+ -+ if (strcmp(name, "kqemu") == 0) -+ unit = -1; -+ else if (dev_stdclone(name, NULL, "kqemu", &unit) != 1) -+ return; /* Bad name */ -+ if (unit != -1 && unit > KQEMU_MAX_INSTANCES) -+ return; -+ -+ r = clone_create(&kqemuclones, &kqemu_cdevsw, &unit, dev, 0); -+ if (r) { -+ *dev = make_dev(&kqemu_cdevsw, unit2minor(unit), -+ UID_ROOT, GID_WHEEL, 0660, "kqemu%d", unit); -+ if (*dev != NULL) { -+ (*dev)->si_flags |= SI_CHEAPCLONE; -+ } -+ } -+} -+#endif -+ -+static void kqemu_destroy(struct kqemu_instance *ks) -+{ -+#if __FreeBSD_version >= 500000 -+ struct cdev *dev = ks->kqemu_dev; -+#endif -+ -+ if (ks->state) { -+ kqemu_delete(ks->state); -+ ks->state = NULL; -+ } -+ -+#if __FreeBSD_version >= 500000 -+ dev->si_drv1 = NULL; -+ TAILQ_REMOVE(&kqemuhead, ks, kqemu_ent); -+ destroy_dev(dev); -+#endif -+ free(ks, M_KQEMU); -+ --kqemu_ref_count; -+} - - /* ARGSUSED */ - static int -+#if __FreeBSD_version < 500000 -+kqemu_open(dev_t dev, int flags, int fmt __unused, struct proc *p) -+{ -+#else - kqemu_open(struct cdev *dev, int flags, int fmt __unused, - struct thread *td) - { -+ struct proc *p = td->td_proc; -+#endif - struct kqemu_instance *ks; -+ -+#if __FreeBSD_version >= 500000 -+ if (kqemu_ref_count >= KQEMU_MAX_INSTANCES) -+#else -+ if (dev->si_drv1 || kqemu_ref_count >= KQEMU_MAX_INSTANCES) -+#endif -+ return(EBUSY); -+ -+ if ((flags & (FREAD|FWRITE)) == FREAD) -+ return(EPERM); -+ - ks = malloc(sizeof(struct kqemu_instance), M_KQEMU, M_WAITOK); - if (ks == NULL) { -- printf("malloc failed\n"); -+ kqemu_log("malloc failed\n"); - return ENOMEM; - } -- ks->state = NULL; -+ memset(ks, 0, sizeof *ks); -+#if __FreeBSD_version >= 500000 -+ ks->kqemu_dev = dev; -+ TAILQ_INSERT_TAIL(&kqemuhead, ks, kqemu_ent); -+#endif -+ kqemu_ref_count++; -+ - dev->si_drv1 = ks; -+ if (kqemu_debug > 0) -+ kqemu_log("opened by pid=%d\n", p->p_pid); - return 0; - } - - /* ARGSUSED */ - static int -+#if __FreeBSD_version < 500000 -+kqemu_ioctl(dev_t dev, u_long cmd, caddr_t addr, -+ int flags __unused, struct proc *p) -+#else - kqemu_ioctl(struct cdev *dev, u_long cmd, caddr_t addr, - int flags __unused, struct thread *td) -+#endif - { - int error = 0; - int ret; -@@ -231,8 +394,9 @@ - break; - } - d1 = *(struct kqemu_init *)addr; -- printf("ram_base=%p ram_size=%ld\n", d1.ram_base, d1.ram_size); -- s = kqemu_init(d, 16000); -+ if (kqemu_debug > 0) -+ kqemu_log("ram_base=%p ram_size=%ld\n", d1.ram_base, d1.ram_size); -+ s = kqemu_init(d, max_locked_pages); - if (s == NULL) { - error = ENOMEM; - break; -@@ -248,9 +412,16 @@ - } - ctx = kqemu_get_cpu_state(s); - *ctx = *(struct kqemu_cpu_state *)addr; -+#if __FreeBSD_version >= 500000 - DROP_GIANT(); -+#endif - ret = kqemu_exec(s); -+#if __FreeBSD_version >= 500000 - PICKUP_GIANT(); -+ td->td_retval[0] = ret; -+#else -+ p->p_retval[0] = ret; -+#endif - *(struct kqemu_cpu_state *)addr = *ctx; - break; - } -@@ -265,10 +436,22 @@ - - /* ARGSUSED */ - static int -+#if __FreeBSD_version < 500000 -+kqemu_close(dev_t dev, int flags, int fmt __unused, struct proc *p) -+{ -+#else - kqemu_close(struct cdev *dev __unused, int flags, int fmt __unused, - struct thread *td) - { -- return 0; -+ struct proc *p = td->td_proc; -+#endif -+ struct kqemu_instance *ks = (struct kqemu_instance *) dev->si_drv1; -+ -+ kqemu_destroy(ks); -+ -+ if (kqemu_debug > 0) -+ kqemu_log("closed by pid=%d\n", p->p_pid); -+ return 0; - } - - /* ARGSUSED */ -@@ -276,15 +459,55 @@ - kqemu_modevent(module_t mod __unused, int type, void *data __unused) - { - int error = 0; -+#if __FreeBSD_version < 500000 -+ int rc; -+#else -+ struct kqemu_instance *ks; -+#endif - - switch (type) { - case MOD_LOAD: - printf("kqemu version 0x%08x\n", KQEMU_VERSION); -+ max_locked_pages = physmem / (2 * KQEMU_MAX_INSTANCES); -+ if (max_locked_pages > 32768) -+ max_locked_pages = 32768; -+#if __FreeBSD_version < 500000 -+ if ((rc = cdevsw_add(&kqemu_cdevsw))) { -+ kqemu_log("error registering cdevsw, rc=%d\n", rc); -+ error = ENOENT; -+ break; -+ } - kqemu_dev = make_dev(&kqemu_cdevsw, 0, -- UID_ROOT, GID_WHEEL, 0666, "kqemu"); -+ UID_ROOT, GID_WHEEL, 0660, "kqemu"); -+#else -+ clone_setup(&kqemuclones); -+ clonetag = EVENTHANDLER_REGISTER(dev_clone, kqemu_clone, 0, 1000); -+ if (!clonetag) { -+ error = ENOMEM; -+ break; -+ } -+#endif -+ kqemu_log("KQEMU installed, max_instances=%d max_locked_mem=%dkB.\n", -+ KQEMU_MAX_INSTANCES, max_locked_pages * 4); -+ -+ kqemu_ref_count = 0; - break; - case MOD_UNLOAD: -+ if (kqemu_ref_count > 0) { -+ error = EBUSY; -+ break; -+ } -+#if __FreeBSD_version < 500000 - destroy_dev(kqemu_dev); -+ if ((rc = cdevsw_remove(&kqemu_cdevsw))) -+ kqemu_log("error unregistering, rc=%d\n", rc); -+#else -+ EVENTHANDLER_DEREGISTER(dev_clone, clonetag); -+ while ((ks = TAILQ_FIRST(&kqemuhead)) != NULL) { -+ kqemu_destroy(ks); -+ } -+ clone_cleanup(&kqemuclones); -+#endif - break; - case MOD_SHUTDOWN: - break; From owner-freebsd-emulation@FreeBSD.ORG Sat Oct 29 03:19:31 2005 Return-Path: X-Original-To: emulation@hub.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 A5A9C16A420; Sat, 29 Oct 2005 03:19:31 +0000 (GMT) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 077BF43D46; Sat, 29 Oct 2005 03:19:31 +0000 (GMT) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (linimon@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j9T3JUD0046413; Sat, 29 Oct 2005 03:19:30 GMT (envelope-from linimon@freefall.freebsd.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j9T3JUnZ046409; Sat, 29 Oct 2005 03:19:30 GMT (envelope-from linimon) Date: Sat, 29 Oct 2005 03:19:30 GMT From: Mark Linimon Message-Id: <200510290319.j9T3JUnZ046409@freefall.freebsd.org> To: nicolls@dip.ee.uct.ac.za, linimon@FreeBSD.org, emulation@FreeBSD.org Cc: Subject: Re: kern/23561: [linux] feature request: Linux compatibility mode does not support /dev/ptmx device 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, 29 Oct 2005 03:19:31 -0000 Synopsis: [linux] feature request: Linux compatibility mode does not support /dev/ptmx device State-Changed-From-To: open->suspended State-Changed-By: linimon State-Changed-When: Sat Oct 29 03:18:59 GMT 2005 State-Changed-Why: Mark suspended awaiting patches. http://www.freebsd.org/cgi/query-pr.cgi?pr=23561 From owner-freebsd-emulation@FreeBSD.ORG Sat Oct 29 08:53:03 2005 Return-Path: X-Original-To: freebsd-emulation@freebsd.org Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2C74016A41F for ; Sat, 29 Oct 2005 08:53:03 +0000 (GMT) (envelope-from michael.hopkins@hopkins-research.com) Received: from neon.webfusion.co.uk (neon.webfusion.co.uk [212.67.202.39]) by mx1.FreeBSD.org (Postfix) with ESMTP id C788E43D46 for ; Sat, 29 Oct 2005 08:53:02 +0000 (GMT) (envelope-from michael.hopkins@hopkins-research.com) Received: from 83-216-132-201.markch725.adsl.metronet.co.uk ([83.216.132.201] helo=[192.168.0.4]) by neon.webfusion.co.uk with asmtp (Exim 3.36 #1) id 1EVmWE-0006Po-00 for freebsd-emulation@freebsd.org; Sat, 29 Oct 2005 09:56:54 +0100 User-Agent: Microsoft-Entourage/11.1.0.040913 Date: Sat, 29 Oct 2005 09:52:51 +0100 From: Michael Hopkins To: Message-ID: Mime-version: 1.0 Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit Subject: More recent gcc for linux_devtools? 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, 29 Oct 2005 08:53:03 -0000 Hi all I am wondering if there is any likelihood of the linux-devtools port being upgraded to a newer gcc toolchain anytime soon? The gcc there is 3.2 which is getting a little long in the tooth and is breaking on some C++ code that works fine on FreeBSD 64 native (3.4 & 4.1), Mac OS X (3.3 & 4.0) and mingw (3.4.*). It is either barfing during the build: /compat/linux/usr/lib/libstdc++.a(eh_throw.o): In function `__cxa_rethrow': ../../../../libstdc++-v3/libsupc++/eh_throw.cc:49: undefined reference to `_Unwind_Resume_or_Rethrow' collect2: ld returned 1 exit status *** Error code 1 Or segfaulting at runtime. If a newer linux_devtools port is not likely, what are the possibilities for us to build one from source in /linux/compat/ or maybe install one from rpm, tarball, apt-get or whatever? We have limited success with these ideas (have got a gcc 3.3.2 sort of working from a linux binary rpm) so would appreciate relevant tips or warnings from those that know. Thanks in advance Michael _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ _/ _/ _/_/_/ Hopkins Research Ltd _/ _/ _/ _/ _/_/_/_/ _/_/_/ http://www.hopkins-research.com/ _/ _/ _/ _/ _/ _/ _/ _/ 'touch the future' _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ From owner-freebsd-emulation@FreeBSD.ORG Sat Oct 29 12:07:29 2005 Return-Path: X-Original-To: freebsd-emulation@hub.freebsd.org Delivered-To: freebsd-emulation@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D55B416A41F; Sat, 29 Oct 2005 12:07:29 +0000 (GMT) (envelope-from oliver@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8CD9243D45; Sat, 29 Oct 2005 12:07:29 +0000 (GMT) (envelope-from oliver@FreeBSD.org) Received: from freefall.freebsd.org (oliver@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j9TC7T6S022907; Sat, 29 Oct 2005 12:07:29 GMT (envelope-from oliver@freefall.freebsd.org) Received: (from oliver@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j9TC7T1X022903; Sat, 29 Oct 2005 12:07:29 GMT (envelope-from oliver) Date: Sat, 29 Oct 2005 12:07:29 GMT From: Oliver Lehmann Message-Id: <200510291207.j9TC7T1X022903@freefall.freebsd.org> To: oliver@FreeBSD.org, freebsd-ports-bugs@FreeBSD.org, freebsd-emulation@FreeBSD.org Cc: Subject: Re: ports/88174: fix pkg-plist: linux_base-8 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, 29 Oct 2005 12:07:30 -0000 Synopsis: fix pkg-plist: linux_base-8 Responsible-Changed-From-To: freebsd-ports-bugs->freebsd-emulation Responsible-Changed-By: oliver Responsible-Changed-When: Sat Oct 29 12:06:59 GMT 2005 Responsible-Changed-Why: Assign to maintainer http://www.freebsd.org/cgi/query-pr.cgi?pr=88174 From owner-freebsd-emulation@FreeBSD.ORG Sat Oct 29 16:20:20 2005 Return-Path: X-Original-To: freebsd-emulation@hub.freebsd.org Delivered-To: freebsd-emulation@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5636B16A41F for ; Sat, 29 Oct 2005 16:20:20 +0000 (GMT) (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 1024243D48 for ; Sat, 29 Oct 2005 16:20:20 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j9TGKJsp060514 for ; Sat, 29 Oct 2005 16:20:19 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j9TGKJAY060513; Sat, 29 Oct 2005 16:20:19 GMT (envelope-from gnats) Date: Sat, 29 Oct 2005 16:20:19 GMT Message-Id: <200510291620.j9TGKJAY060513@freefall.freebsd.org> To: freebsd-emulation@FreeBSD.org From: Harald Hanche-Olsen Cc: Subject: Re: kern/22826: Memory limits have no effect in linux compatibility X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Harald Hanche-Olsen List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 29 Oct 2005 16:20:20 -0000 The following reply was made to PR kern/22826; it has been noted by GNATS. From: Harald Hanche-Olsen To: bug-followup@FreeBSD.org Cc: nge@cs.hmc.edu Subject: Re: kern/22826: Memory limits have no effect in linux compatibility Date: Sat, 29 Oct 2005 18:10:12 +0200 (CEST) As the originator of this PR, I guess I should chime in, though this is a bit outside my expertise. Nate's explanation seems reasonable to me, so I think it is indeed time to close this one. (And the problem doesn't bite me anymore, anyway.) - Harald From owner-freebsd-emulation@FreeBSD.ORG Sat Oct 29 16:33:54 2005 Return-Path: X-Original-To: freebsd-emulation@hub.freebsd.org Delivered-To: freebsd-emulation@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A4C6616A41F; Sat, 29 Oct 2005 16:33:54 +0000 (GMT) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 60F7143D45; Sat, 29 Oct 2005 16:33:54 +0000 (GMT) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (linimon@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j9TGXsW2063682; Sat, 29 Oct 2005 16:33:54 GMT (envelope-from linimon@freefall.freebsd.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j9TGXsi8063678; Sat, 29 Oct 2005 16:33:54 GMT (envelope-from linimon) Date: Sat, 29 Oct 2005 16:33:54 GMT From: Mark Linimon Message-Id: <200510291633.j9TGXsi8063678@freefall.freebsd.org> To: hanche@math.ntnu.no, linimon@FreeBSD.org, freebsd-emulation@FreeBSD.org Cc: Subject: Re: kern/22826: [linux] Memory limits have no effect in linux compatibility 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, 29 Oct 2005 16:33:54 -0000 Synopsis: [linux] Memory limits have no effect in linux compatibility State-Changed-From-To: open->closed State-Changed-By: linimon State-Changed-When: Sat Oct 29 16:33:25 GMT 2005 State-Changed-Why: Closed at submitter's request. http://www.freebsd.org/cgi/query-pr.cgi?pr=22826 From owner-freebsd-emulation@FreeBSD.ORG Sat Oct 29 18:10:39 2005 Return-Path: X-Original-To: freebsd-emulation@freebsd.org Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B517A16A41F for ; Sat, 29 Oct 2005 18:10:39 +0000 (GMT) (envelope-from vladimir@math.uic.edu) Received: from rwcrmhc12.comcast.net (rwcrmhc12.comcast.net [204.127.198.43]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4828E43D45 for ; Sat, 29 Oct 2005 18:10:39 +0000 (GMT) (envelope-from vladimir@math.uic.edu) Received: from cat.math.uic.edu (c-24-12-126-199.hsd1.il.comcast.net[24.12.126.199]) by comcast.net (rwcrmhc12) with SMTP id <20051029181037014001lm7le>; Sat, 29 Oct 2005 18:10:37 +0000 Received: (qmail 4926 invoked by uid 31415); 29 Oct 2005 18:10:36 -0000 Message-ID: <20051029181036.4925.qmail@cat.math.uic.edu> From: vladimir@math.uic.edu Date: Sat, 29 Oct 2005 13:10:36 -0500 To: freebsd-emulation@freebsd.org User-Agent: nail 11.25 7/29/05 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: booting qemu from a physical NTFS disk 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, 29 Oct 2005 18:10:39 -0000 I have a dual-boot machine, with BSD-current running on the primary drive of the first IDE controller, and WinXP installed on the primary drive of the second IDE. Is there any way to boot Windows XP in qemu (running on FreeBSD host) from a WindowsXP physical drive? I googled for an answer, but didn't find anything definite. Many thanks, Vladimir From owner-freebsd-emulation@FreeBSD.ORG Sat Oct 29 19:02:10 2005 Return-Path: X-Original-To: freebsd-emulation@FreeBSD.org Delivered-To: freebsd-emulation@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B0CD316A420; Sat, 29 Oct 2005 19:02:10 +0000 (GMT) (envelope-from nox@saturn.kn-bremen.de) Received: from gwyn.kn-bremen.de (gwyn.kn-bremen.de [212.63.36.242]) by mx1.FreeBSD.org (Postfix) with ESMTP id EA27043D76; Sat, 29 Oct 2005 19:02:00 +0000 (GMT) (envelope-from nox@saturn.kn-bremen.de) Received: from gwyn.kn-bremen.de (gwyn [127.0.0.1]) by gwyn.kn-bremen.de (8.13.4/8.13.4/Debian-3) with ESMTP id j9TJ1xNl005873; Sat, 29 Oct 2005 21:01:59 +0200 Received: from saturn.kn-bremen.de (uucp@localhost) by gwyn.kn-bremen.de (8.13.4/8.13.4/Submit) with UUCP id j9TJ1xFO005871; Sat, 29 Oct 2005 21:01:59 +0200 Received: from saturn.kn-bremen.de (localhost [127.0.0.1]) by saturn.kn-bremen.de (8.13.1/8.13.1) with ESMTP id j9TIp32v080983; Sat, 29 Oct 2005 20:51:03 +0200 (CEST) (envelope-from nox@saturn.kn-bremen.de) Received: (from nox@localhost) by saturn.kn-bremen.de (8.13.1/8.13.1/Submit) id j9TIp3n7080982; Sat, 29 Oct 2005 20:51:03 +0200 (CEST) (envelope-from nox) From: Juergen Lock Date: Sat, 29 Oct 2005 20:51:03 +0200 To: Norikatsu Shigemura Message-ID: <20051029185103.GA80501@saturn.kn-bremen.de> Mail-Followup-To: Norikatsu Shigemura , freebsd-emulation@FreeBSD.org, jkim@FreeBSD.org References: <20051025215759.25681b85.nork@FreeBSD.org> <20051025191141.GC7277@saturn.kn-bremen.de> <20051026224401.3acf2501.nork@FreeBSD.org> <20051029111159.b1e06be9.nork@FreeBSD.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20051029111159.b1e06be9.nork@FreeBSD.org> User-Agent: Mutt/1.4.2.1i Cc: freebsd-emulation@FreeBSD.org, jkim@FreeBSD.org Subject: Re: kqemu-kmod port 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, 29 Oct 2005 19:02:11 -0000 On Sat, Oct 29, 2005 at 11:11:59AM +0900, Norikatsu Shigemura wrote: > On Wed, 26 Oct 2005 22:44:01 +0900 > Norikatsu Shigemura wrote: > > > Err. You may be able to build the kld seperately like that, but the > > > qemu build also needs the kqemu bits in place in the build dir to add in > > > kqemu support... So if you remove it from the qemu port the kld wont > > > get used. > > $ grep -r kqemu . > > ./kqemu.c:#include "kqemu/kqemu.h" > > REVENGE Eh? :) > > overrided: my kqemu-kmod port > http://people.freebsd.org/~nork/kqemu-kmod.shar > Please reget my shar file. > > And I made a patch for qemu port. How about? Well, three changes: 1. use the old disfile, Fabrice still hasn't committed anything new (the copy on dad-answers.com is only there for one day each) 2. CFLAGS+= -I${LOCALBASE}/include doesn't get propagated to the build at least here, need to patch Makefile.target instead 3. need ${WRKSRC}/kqemu/Makefile.freebsd instead of ${WRKSRC}/kqemu/Makefile Index: Makefile =================================================================== RCS file: /home/ncvs/ports/emulators/qemu/Makefile,v retrieving revision 1.33 diff -u -r1.33 Makefile --- Makefile 7 Oct 2005 19:26:21 -0000 1.33 +++ Makefile 29 Oct 2005 17:56:29 -0000 @@ -7,16 +7,11 @@ PORTNAME= qemu PORTVERSION= 0.7.2s.20050909 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= emulators -MASTER_SITES= http://www.qemu.org/ \ - http://people.fruitsalad.org/nox/qemu/ \ - http://dad-answers.com/qemu/ +MASTER_SITES= http://people.fruitsalad.org/nox/qemu/ \ + http://qemu.dad-answers.com/download/qemu/ DISTNAME= ${PORTNAME}-snapshot-2005-09-09_23 -.if defined(WITH_KQEMU) -DISTFILES= ${EXTRACT_ONLY} ${DISTKQEMU} -.endif -EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX} MAINTAINER= nox@jelal.kn-bremen.de COMMENT= QEMU CPU Emulator @@ -25,10 +20,8 @@ .if defined(WITH_SAMBA) RUN_DEPENDS+= ${LOCALBASE}/sbin/smbd:${PORTSDIR}/net/samba .endif - .if defined(WITH_KQEMU) -DISTKQEMU= kqemu-0.7.2.tar.gz -EXTRA_PATCHES= ${FILESDIR}/kqemu-freebsd-patch +BUILD_DEPENDS+= ${LOCALBASE}/include/kqemu/kqemu.h:${PORTSDIR}/emulators/kqemu-kmod .endif HAS_CONFIGURE= yes @@ -43,13 +36,9 @@ MAN1= qemu.1 qemu-img.1 ONLY_FOR_ARCHS= amd64 i386 .if defined(WITH_KQEMU) -NO_PACKAGE= Depends on kernel, and module not redistributable CONFIGURE_ARGS+= --enable-kqemu -PLIST_SUB= WITH_KQEMU="" -PLIST_SUB+= KMODDIR=${KMODDIR:C/^\///} .else CONFIGURE_ARGS+= --disable-kqemu -PLIST_SUB= WITH_KQEMU="@comment " .endif .include @@ -59,10 +48,6 @@ .endif USE_GCC= 3.4 -.if defined(WITH_KQEMU) && !exists(${SRC_BASE}/sys/Makefile) -IGNORE= kqemu requires kernel source to be installed -.endif - pre-everything:: .if !defined(WITH_KQEMU) @${ECHO_MSG} "Notice: you can build qemu with the (alpha!) kqemu accelerator kernel module" @@ -74,11 +59,9 @@ @${ECHO_MSG} "WITH_SAMBA." .endif -.if defined(WITH_KQEMU) post-extract: - @cd ${WRKSRC} && ${TAR} xfz ${_DISTDIR}/${DISTKQEMU} - @${LN} -s Makefile.freebsd ${WRKSRC}/kqemu/BSDmakefile -.endif + @${MKDIR} ${WRKSRC}/kqemu + @${ECHO} all: > ${WRKSRC}/kqemu/Makefile.freebsd pre-patch: @for A in ${ONLY_FOR_ARCHS}; do \ @@ -86,17 +69,6 @@ done post-install: -.if defined(WITH_KQEMU) - ${INSTALL_SCRIPT} ${WRKSRC}/kqemu/kqemu.ko ${KMODDIR} - if mount |${GREP} ^devfs >/dev/null ; then \ - : ; \ - else \ - if [ ! -e /dev/kqemu ]; then\ - mknod /dev/kqemu c 250 0 ; \ - fi ; \ - ${CHMOD} 666 /dev/kqemu ; \ - fi -.endif @${CAT} ${PKGMESSAGE} .include Index: distinfo =================================================================== RCS file: /home/ncvs/ports/emulators/qemu/distinfo,v retrieving revision 1.21 diff -u -r1.21 distinfo --- distinfo 10 Sep 2005 17:04:41 -0000 1.21 +++ distinfo 29 Oct 2005 17:32:44 -0000 @@ -1,4 +1,2 @@ MD5 (qemu-snapshot-2005-09-09_23.tar.bz2) = db4ffeb081666c7352f5c0231e3f09c7 SIZE (qemu-snapshot-2005-09-09_23.tar.bz2) = 1122120 -MD5 (kqemu-0.7.2.tar.gz) = 02cfdecda90458d6393781496ec6b48b -SIZE (kqemu-0.7.2.tar.gz) = 79314 Index: pkg-plist =================================================================== RCS file: /home/ncvs/ports/emulators/qemu/pkg-plist,v retrieving revision 1.12 diff -u -r1.12 pkg-plist --- pkg-plist 1 Oct 2005 13:25:08 -0000 1.12 +++ pkg-plist 29 Oct 2005 17:26:58 -0000 @@ -51,5 +51,3 @@ @dirrm %%DATADIR%%/keymaps @dirrm %%DATADIR%% %%PORTDOCS%%@dirrm %%DOCSDIR%% -@cwd / -%%WITH_KQEMU%%%%KMODDIR%%/kqemu.ko Index: files/kqemu-freebsd-patch =================================================================== RCS file: /home/ncvs/ports/emulators/qemu/files/kqemu-freebsd-patch,v retrieving revision 1.4 diff -u -r1.4 kqemu-freebsd-patch --- files/kqemu-freebsd-patch 7 Oct 2005 19:26:21 -0000 1.4 +++ files/kqemu-freebsd-patch 29 Oct 2005 17:29:47 -0000 @@ -1,513 +0,0 @@ -Index: qemu/kqemu/Makefile.freebsd -@@ -5,6 +5,7 @@ - .elif ${MACHINE_ARCH} == "amd64" - OBJS= kqemu-mod-x86_64.o - .endif -+CC= cc - WERROR= - - .include -Index: qemu/kqemu/kqemu-freebsd.c -@@ -3,32 +3,55 @@ - #include - #include - #include -+#include -+#include - #include - #include - #include -+#if __FreeBSD_version >= 500000 - #include -+#endif - #include -+#include -+#if __FreeBSD_version >= 500000 - #include -+#endif - #include - #include -+#include -+#include -+#if __FreeBSD_version < 500000 -+#include -+#endif -+ - #include - #include - #include - #include - #include - #include -+#include -+ - #include - #include - - #include "kqemu-kernel.h" - -+#ifndef KQEMU_MAJOR -+#define KQEMU_MAJOR 250 -+#endif -+ - MALLOC_DECLARE(M_KQEMU); - MALLOC_DEFINE(M_KQEMU, "kqemu", "kqemu buffers"); - -+int kqemu_debug; -+SYSCTL_INT(_debug, OID_AUTO, kqemu_debug, CTLFLAG_RW, &kqemu_debug, 0, -+ "kqemu debug flag"); -+ - #define USER_BASE 0x1000 - - /* lock the page at virtual address 'user_addr' and return its -- physical page index. Return -1 if error */ -+ physical page index. Return NULL if error */ - struct kqemu_user_page *CDECL kqemu_lock_user_page(unsigned long *ppage_index, - unsigned long user_addr) - { -@@ -37,14 +60,18 @@ - vm_paddr_t pa = 0; - int ret; - pmap_t pmap; -+#if __FreeBSD_version >= 500000 - ret = vm_map_wire(&vm->vm_map, va, va+PAGE_SIZE, VM_MAP_WIRE_USER); -+#else -+ ret = vm_map_user_pageable(&vm->vm_map, va, va+PAGE_SIZE, FALSE); -+#endif - if (ret != KERN_SUCCESS) { -- printf("kqemu_lock_user_page(%08lx) failed, ret=%d\n", user_addr, ret); -+ kqemu_log("kqemu_lock_user_page(%08lx) failed, ret=%d\n", user_addr, ret); - return NULL; - } - pmap = vm_map_pmap(&vm->vm_map); - pa = pmap_extract(pmap, va); -- // printf("kqemu_lock_user_page(%08lx) va=%08x pa=%08x\n", user_addr, va, pa); -+ /* kqemu_log("kqemu_lock_user_page(%08lx) va=%08x pa=%08x\n", user_addr, va, pa); */ - *ppage_index = pa >> PAGE_SHIFT; - return (struct kqemu_user_page *)va; - } -@@ -54,12 +81,16 @@ - struct vmspace *vm = curproc->p_vmspace; - vm_offset_t va; - int ret; -- // printf("kqemu_unlock_user_page(%08lx)\n", page_index); -+ /* kqemu_log("kqemu_unlock_user_page(%08lx)\n", page_index); */ - va = (vm_offset_t)page; -+#if __FreeBSD_version >= 500000 - ret = vm_map_unwire(&vm->vm_map, va, va+PAGE_SIZE, VM_MAP_WIRE_USER); -+#else -+ ret = vm_map_user_pageable(&vm->vm_map, va, va+PAGE_SIZE, TRUE); -+#endif - #if 0 - if (ret != KERN_SUCCESS) { -- printf("kqemu_unlock_user_page(%08lx) failed, ret=%d\n", page_index, ret); -+ kqemu_log("kqemu_unlock_user_page(%08lx) failed, ret=%d\n", page_index, ret); - } - #endif - } -@@ -76,20 +107,21 @@ - - va = kmem_alloc(kernel_map, PAGE_SIZE); - if (va == 0) { -- printf("kqemu_alloc_zeroed_page: NULL\n"); -- return -1; -+ kqemu_log("kqemu_alloc_zeroed_page: NULL\n"); -+ return NULL; - } - pmap = vm_map_pmap(kernel_map); - pa = pmap_extract(pmap, va); -- // printf("kqemu_alloc_zeroed_page: %08x\n", pa); -+ /* kqemu_log("kqemu_alloc_zeroed_page: %08x\n", pa); */ - *ppage_index = pa >> PAGE_SHIFT; - return (struct kqemu_page *)va; - } - - void CDECL kqemu_free_page(struct kqemu_page *page) - { -- // printf("kqemu_free_page(%08lx)\n", page_index); -- /* XXX: do it */ -+ if (kqemu_debug > 0) -+ kqemu_log("kqemu_free_page(%p)\n", page); -+ kmem_free(kernel_map, (vm_offset_t) page, PAGE_SIZE); - } - - /* return kernel address of the physical page page_index */ -@@ -103,42 +135,29 @@ - GB of physical memory */ - void * CDECL kqemu_vmalloc(unsigned int size) - { -- struct vmspace *vm = curproc->p_vmspace; -- vm_offset_t va = USER_BASE; -- int rv; -- if (size % PAGE_SIZE != 0) { -- printf("kqemu_vmalloc(%d) not a multiple of page size\n", size); -- return NULL; -- } -- rv = vm_map_find(&vm->vm_map, NULL, 0, &va, size, 1, -- VM_PROT_ALL, VM_PROT_ALL, 0); -- if (rv != KERN_SUCCESS) { -- printf("kqemu_vmalloc(%d) failed rv=%d\n", size, rv); -- return NULL; -- } -- printf("kqemu_vmalloc(%d): %08x\n", size, va); -- return (void *)va; -+ void *ptr = malloc(size, M_KQEMU, M_WAITOK); -+ if (kqemu_debug > 0) -+ kqemu_log("kqemu_vmalloc(%d): %p\n", size, ptr); -+ return ptr; - } - - void CDECL kqemu_vfree(void *ptr) - { -- printf("kqemu_vfree(%p)\n", ptr); -+ if (kqemu_debug > 0) -+ kqemu_log("kqemu_vfree(%p)\n", ptr); -+ free(ptr, M_KQEMU); - } - - /* return the physical page index for a given virtual page */ - unsigned long CDECL kqemu_vmalloc_to_phys(const void *vaddr) - { -- struct vmspace *vm = curproc->p_vmspace; -- vm_paddr_t pa; -- pmap_t pmap; -- -- pmap = vm_map_pmap(&vm->vm_map); -- pa = pmap_extract(pmap, (vm_offset_t)vaddr); -+ vm_paddr_t pa = vtophys(vaddr); - if (pa == 0) { -- printf("kqemu_vmalloc_to_phys(%p)->error\n", vaddr); -+ kqemu_log("kqemu_vmalloc_to_phys(%p)->error\n", vaddr); - return -1; - } -- printf("kqemu_vmalloc_to_phys(%p)->%08x\n", vaddr, pa); -+ if (kqemu_debug > 0) -+ kqemu_log("kqemu_vmalloc_to_phys(%p)->%08x\n", vaddr, pa); - return pa >> PAGE_SHIFT; - } - -@@ -154,16 +173,48 @@ - { - } - -+#if __FreeBSD_version < 500000 -+static int -+curpriority_cmp(struct proc *p) -+{ -+ int c_class, p_class; -+ -+ c_class = RTP_PRIO_BASE(curproc->p_rtprio.type); -+ p_class = RTP_PRIO_BASE(p->p_rtprio.type); -+ if (p_class != c_class) -+ return (p_class - c_class); -+ if (p_class == RTP_PRIO_NORMAL) -+ return (((int)p->p_priority - (int)curpriority) / PPQ); -+ return ((int)p->p_rtprio.prio - (int)curproc->p_rtprio.prio); -+} -+ -+/* return TRUE if a signal is pending (i.e. the guest must stop -+ execution) */ -+int CDECL kqemu_schedule(void) -+{ -+ struct proc *p = curproc; -+ if (curpriority_cmp(p) > 0) { -+ int s = splhigh(); -+ p->p_priority = MAXPRI; -+ setrunqueue(p); -+ p->p_stats->p_ru.ru_nvcsw++; -+ mi_switch(); -+ splx(s); -+ } -+ return issignal(curproc) != 0; -+} -+#else - /* return TRUE if a signal is pending (i.e. the guest must stop - execution) */ - int CDECL kqemu_schedule(void) - { -- // printf("kqemu_schedule\n"); -+ /* kqemu_log("kqemu_schedule\n"); */ - mtx_lock_spin(&sched_lock); - mi_switch(SW_VOL, NULL); - mtx_unlock_spin(&sched_lock); - return SIGPENDING(curthread); - } -+#endif - - static char log_buf[4096]; - -@@ -176,47 +227,159 @@ - va_end(ap); - } - -+#define KQEMU_MAX_INSTANCES 4 -+ - struct kqemu_instance { -- // struct semaphore sem; -+#if __FreeBSD_version >= 500000 -+ TAILQ_ENTRY(kqemu_instance) kqemu_ent; -+ struct cdev *kqemu_dev; -+#endif -+ /* struct semaphore sem; */ - struct kqemu_state *state; - }; - -+static int kqemu_ref_count = 0; -+static int max_locked_pages; -+ -+#if __FreeBSD_version < 500000 -+static dev_t kqemu_dev; -+#else -+static struct clonedevs *kqemuclones; -+static TAILQ_HEAD(,kqemu_instance) kqemuhead = TAILQ_HEAD_INITIALIZER(kqemuhead); -+static eventhandler_tag clonetag; -+#endif -+ - static d_close_t kqemu_close; - static d_open_t kqemu_open; - static d_ioctl_t kqemu_ioctl; - - static struct cdevsw kqemu_cdevsw = { -+#if __FreeBSD_version < 500000 -+ /* open */ kqemu_open, -+ /* close */ kqemu_close, -+ /* read */ noread, -+ /* write */ nowrite, -+ /* ioctl */ kqemu_ioctl, -+ /* poll */ nopoll, -+ /* mmap */ nommap, -+ /* strategy */ nostrategy, -+ /* name */ "kqemu", -+ /* maj */ KQEMU_MAJOR, -+ /* dump */ nodump, -+ /* psize */ nopsize, -+ /* flags */ 0, -+ /* bmaj */ -1 -+#else - .d_version = D_VERSION, - .d_flags = D_NEEDGIANT, - .d_open = kqemu_open, - .d_ioctl = kqemu_ioctl, - .d_close = kqemu_close, - .d_name = "kqemu" -+#endif - }; - --/* For use with make_dev(9)/destroy_dev(9). */ --static struct cdev *kqemu_dev; -+#if __FreeBSD_version >= 500000 -+static void -+#if __FreeBSD_version >= 600034 -+kqemu_clone(void *arg, struct ucred *cred, char *name, int namelen, -+struct cdev **dev) -+#else -+kqemu_clone(void *arg, char *name, int namelen, struct cdev **dev) -+#endif -+{ -+ int unit, r; -+ if (*dev != NULL) -+ return; -+ -+ if (strcmp(name, "kqemu") == 0) -+ unit = -1; -+ else if (dev_stdclone(name, NULL, "kqemu", &unit) != 1) -+ return; /* Bad name */ -+ if (unit != -1 && unit > KQEMU_MAX_INSTANCES) -+ return; -+ -+ r = clone_create(&kqemuclones, &kqemu_cdevsw, &unit, dev, 0); -+ if (r) { -+ *dev = make_dev(&kqemu_cdevsw, unit2minor(unit), -+ UID_ROOT, GID_WHEEL, 0660, "kqemu%d", unit); -+ if (*dev != NULL) { -+ (*dev)->si_flags |= SI_CHEAPCLONE; -+ } -+ } -+} -+#endif -+ -+static void kqemu_destroy(struct kqemu_instance *ks) -+{ -+#if __FreeBSD_version >= 500000 -+ struct cdev *dev = ks->kqemu_dev; -+#endif -+ -+ if (ks->state) { -+ kqemu_delete(ks->state); -+ ks->state = NULL; -+ } -+ -+#if __FreeBSD_version >= 500000 -+ dev->si_drv1 = NULL; -+ TAILQ_REMOVE(&kqemuhead, ks, kqemu_ent); -+ destroy_dev(dev); -+#endif -+ free(ks, M_KQEMU); -+ --kqemu_ref_count; -+} - - /* ARGSUSED */ - static int -+#if __FreeBSD_version < 500000 -+kqemu_open(dev_t dev, int flags, int fmt __unused, struct proc *p) -+{ -+#else - kqemu_open(struct cdev *dev, int flags, int fmt __unused, - struct thread *td) - { -+ struct proc *p = td->td_proc; -+#endif - struct kqemu_instance *ks; -+ -+#if __FreeBSD_version >= 500000 -+ if (kqemu_ref_count >= KQEMU_MAX_INSTANCES) -+#else -+ if (dev->si_drv1 || kqemu_ref_count >= KQEMU_MAX_INSTANCES) -+#endif -+ return(EBUSY); -+ -+ if ((flags & (FREAD|FWRITE)) == FREAD) -+ return(EPERM); -+ - ks = malloc(sizeof(struct kqemu_instance), M_KQEMU, M_WAITOK); - if (ks == NULL) { -- printf("malloc failed\n"); -+ kqemu_log("malloc failed\n"); - return ENOMEM; - } -- ks->state = NULL; -+ memset(ks, 0, sizeof *ks); -+#if __FreeBSD_version >= 500000 -+ ks->kqemu_dev = dev; -+ TAILQ_INSERT_TAIL(&kqemuhead, ks, kqemu_ent); -+#endif -+ kqemu_ref_count++; -+ - dev->si_drv1 = ks; -+ if (kqemu_debug > 0) -+ kqemu_log("opened by pid=%d\n", p->p_pid); - return 0; - } - - /* ARGSUSED */ - static int -+#if __FreeBSD_version < 500000 -+kqemu_ioctl(dev_t dev, u_long cmd, caddr_t addr, -+ int flags __unused, struct proc *p) -+#else - kqemu_ioctl(struct cdev *dev, u_long cmd, caddr_t addr, - int flags __unused, struct thread *td) -+#endif - { - int error = 0; - int ret; -@@ -231,8 +394,9 @@ - break; - } - d1 = *(struct kqemu_init *)addr; -- printf("ram_base=%p ram_size=%ld\n", d1.ram_base, d1.ram_size); -- s = kqemu_init(d, 16000); -+ if (kqemu_debug > 0) -+ kqemu_log("ram_base=%p ram_size=%ld\n", d1.ram_base, d1.ram_size); -+ s = kqemu_init(d, max_locked_pages); - if (s == NULL) { - error = ENOMEM; - break; -@@ -248,9 +412,16 @@ - } - ctx = kqemu_get_cpu_state(s); - *ctx = *(struct kqemu_cpu_state *)addr; -+#if __FreeBSD_version >= 500000 - DROP_GIANT(); -+#endif - ret = kqemu_exec(s); -+#if __FreeBSD_version >= 500000 - PICKUP_GIANT(); -+ td->td_retval[0] = ret; -+#else -+ p->p_retval[0] = ret; -+#endif - *(struct kqemu_cpu_state *)addr = *ctx; - break; - } -@@ -265,10 +436,22 @@ - - /* ARGSUSED */ - static int -+#if __FreeBSD_version < 500000 -+kqemu_close(dev_t dev, int flags, int fmt __unused, struct proc *p) -+{ -+#else - kqemu_close(struct cdev *dev __unused, int flags, int fmt __unused, - struct thread *td) - { -- return 0; -+ struct proc *p = td->td_proc; -+#endif -+ struct kqemu_instance *ks = (struct kqemu_instance *) dev->si_drv1; -+ -+ kqemu_destroy(ks); -+ -+ if (kqemu_debug > 0) -+ kqemu_log("closed by pid=%d\n", p->p_pid); -+ return 0; - } - - /* ARGSUSED */ -@@ -276,15 +459,55 @@ - kqemu_modevent(module_t mod __unused, int type, void *data __unused) - { - int error = 0; -+#if __FreeBSD_version < 500000 -+ int rc; -+#else -+ struct kqemu_instance *ks; -+#endif - - switch (type) { - case MOD_LOAD: - printf("kqemu version 0x%08x\n", KQEMU_VERSION); -+ max_locked_pages = physmem / (2 * KQEMU_MAX_INSTANCES); -+ if (max_locked_pages > 32768) -+ max_locked_pages = 32768; -+#if __FreeBSD_version < 500000 -+ if ((rc = cdevsw_add(&kqemu_cdevsw))) { -+ kqemu_log("error registering cdevsw, rc=%d\n", rc); -+ error = ENOENT; -+ break; -+ } - kqemu_dev = make_dev(&kqemu_cdevsw, 0, -- UID_ROOT, GID_WHEEL, 0666, "kqemu"); -+ UID_ROOT, GID_WHEEL, 0660, "kqemu"); -+#else -+ clone_setup(&kqemuclones); -+ clonetag = EVENTHANDLER_REGISTER(dev_clone, kqemu_clone, 0, 1000); -+ if (!clonetag) { -+ error = ENOMEM; -+ break; -+ } -+#endif -+ kqemu_log("KQEMU installed, max_instances=%d max_locked_mem=%dkB.\n", -+ KQEMU_MAX_INSTANCES, max_locked_pages * 4); -+ -+ kqemu_ref_count = 0; - break; - case MOD_UNLOAD: -+ if (kqemu_ref_count > 0) { -+ error = EBUSY; -+ break; -+ } -+#if __FreeBSD_version < 500000 - destroy_dev(kqemu_dev); -+ if ((rc = cdevsw_remove(&kqemu_cdevsw))) -+ kqemu_log("error unregistering, rc=%d\n", rc); -+#else -+ EVENTHANDLER_DEREGISTER(dev_clone, clonetag); -+ while ((ks = TAILQ_FIRST(&kqemuhead)) != NULL) { -+ kqemu_destroy(ks); -+ } -+ clone_cleanup(&kqemuclones); -+#endif - break; - case MOD_SHUTDOWN: - break; Index: files/patch-Makefile.target @@ -0,0 +1,9 @@ +Index: qemu/Makefile.target +@@ -18,6 +18,7 @@ + DEFINES+=-I$(SRC_PATH)/linux-user -I$(SRC_PATH)/linux-user/$(TARGET_ARCH) + endif + CFLAGS=-Wall -O2 -g -fno-strict-aliasing ++CFLAGS+=-I${LOCALBASE}/include + #CFLAGS+=-Werror + LDFLAGS=-g + LIBS= From owner-freebsd-emulation@FreeBSD.ORG Sat Oct 29 19:39:28 2005 Return-Path: X-Original-To: freebsd-emulation@freebsd.org Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F3AC516A41F for ; Sat, 29 Oct 2005 19:39:27 +0000 (GMT) (envelope-from nox@saturn.kn-bremen.de) Received: from gwyn.kn-bremen.de (gwyn.kn-bremen.de [212.63.36.242]) by mx1.FreeBSD.org (Postfix) with ESMTP id 45D7043D46 for ; Sat, 29 Oct 2005 19:39:26 +0000 (GMT) (envelope-from nox@saturn.kn-bremen.de) Received: from gwyn.kn-bremen.de (gwyn [127.0.0.1]) by gwyn.kn-bremen.de (8.13.4/8.13.4/Debian-3) with ESMTP id j9TJdPuw009014; Sat, 29 Oct 2005 21:39:25 +0200 Received: from saturn.kn-bremen.de (uucp@localhost) by gwyn.kn-bremen.de (8.13.4/8.13.4/Submit) with UUCP id j9TJdPVQ009012; Sat, 29 Oct 2005 21:39:25 +0200 Received: from saturn.kn-bremen.de (localhost [127.0.0.1]) by saturn.kn-bremen.de (8.13.1/8.13.1) with ESMTP id j9TJcWx8082063; Sat, 29 Oct 2005 21:38:32 +0200 (CEST) (envelope-from nox@saturn.kn-bremen.de) Received: (from nox@localhost) by saturn.kn-bremen.de (8.13.1/8.13.1/Submit) id j9TJcVZ1082062; Sat, 29 Oct 2005 21:38:31 +0200 (CEST) (envelope-from nox) From: Juergen Lock Date: Sat, 29 Oct 2005 21:38:31 +0200 To: vladimir@math.uic.edu Message-ID: <20051029193831.GA81894@saturn.kn-bremen.de> Mail-Followup-To: vladimir@math.uic.edu, freebsd-emulation@freebsd.org References: <20051029181036.4925.qmail@cat.math.uic.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20051029181036.4925.qmail@cat.math.uic.edu> User-Agent: Mutt/1.4.2.1i Cc: freebsd-emulation@freebsd.org Subject: Re: booting qemu from a physical NTFS disk 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, 29 Oct 2005 19:39:28 -0000 On Sat, Oct 29, 2005 at 01:10:36PM -0500, vladimir@math.uic.edu wrote: > I have a dual-boot machine, with BSD-current running > on the primary drive of the first IDE controller, > and WinXP installed on the primary drive of the second IDE. > Is there any way to boot Windows XP in qemu (running on > FreeBSD host) from a WindowsXP physical drive? > I googled for an answer, but didn't find anything definite. >From the freenode #qemu faq: http://lilly.csoft.net/~jeffryj/cgi-bin/moin.cgi/FrequentlyAskedQuestions Can I run my Windows on my /dev/hda in qemu? Short answer: Probably not. Long answer: Once installed, Windows has only the minimal drivers required to boot the hardware on your computer - which happens to be completely different from what qemu emulates. Windows 9x has enough problems with this, but Windows NT is especially fickle. You may be able to boot Windows 95 or 98 work from qemu this way (there have been a few reports of success), but if you want to try we can not help you. You are better off installing Windows into a disk image. Windows XP Home or Windows XP Professional also has issues related to hardware activation. If you really really want to try to set up Windows XP or Windows 2000 to be able to boot on both your real hardware and on qemu, try looking at [WWW] You receive a Stop 0x0000007B error after you move the Windows XP system disk to another computer and [WWW] How to Move a Hard Disk with Windows 2000 Installed to Another Computer, which explains part of the problem in greater detail as well as some possible workarounds. This is for really advanced users only. If you don't understand what this article says, or if you follow its instructions but they don't work for you, do not come to us for help. We probably won't know any more about the problem than you. Note: If you try this with XP Home or XP Professional, you will be required to re-activate XP. [end quote] The easiest way to go about is proably to install windows into a qemu image and then pass /dev/ad2 as -hdb so you can mount the data on there. Juergen From owner-freebsd-emulation@FreeBSD.ORG Sat Oct 29 20:21:51 2005 Return-Path: X-Original-To: freebsd-emulation@freebsd.org Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EFBE416A41F for ; Sat, 29 Oct 2005 20:21:51 +0000 (GMT) (envelope-from vladimir@math.uic.edu) Received: from thor.math.uic.edu (thor.math.uic.edu [131.193.178.67]) by mx1.FreeBSD.org (Postfix) with ESMTP id A30F943D45 for ; Sat, 29 Oct 2005 20:21:51 +0000 (GMT) (envelope-from vladimir@math.uic.edu) Received: from shell.math.uic.edu ([131.193.178.53]:45111 "HELO math.uic.edu") by thor.math.uic.edu with SMTP id S503453AbVJ2UVb (ORCPT ); Sat, 29 Oct 2005 15:21:31 -0500 Received: (qmail 3847 invoked by uid 31415); 29 Oct 2005 20:21:15 -0000 Date: 29 Oct 2005 20:21:15 -0000 Message-ID: <20051029202115.3846.qmail@math.uic.edu> From: vladimir@math.uic.edu To: nox@jelal.kn-bremen.de, vladimir@math.uic.edu In-Reply-To: <20051029193831.GA81894@saturn.kn-bremen.de> Cc: freebsd-emulation@freebsd.org Subject: Re: booting qemu from a physical NTFS disk 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, 29 Oct 2005 20:21:52 -0000 >From nox@saturn.kn-bremen.de Sat Oct 29 19:45:49 2005 >From: Juergen Lock >Date: Sat, 29 Oct 2005 21:38:31 +0200 >To: vladimir@math.uic.edu >Cc: freebsd-emulation@freebsd.org >Subject: Re: booting qemu from a physical NTFS disk > >On Sat, Oct 29, 2005 at 01:10:36PM -0500, vladimir@math.uic.edu wrote: >> I have a dual-boot machine, with BSD-current running >> on the primary drive of the first IDE controller, >> and WinXP installed on the primary drive of the second IDE. >> Is there any way to boot Windows XP in qemu (running on >> FreeBSD host) from a WindowsXP physical drive? >> I googled for an answer, but didn't find anything definite. > >>From the freenode #qemu faq: >http://lilly.csoft.net/~jeffryj/cgi-bin/moin.cgi/FrequentlyAskedQuestions > >Can I run my Windows on my /dev/hda in qemu? > >Short answer: Probably not. > >Long answer: Once installed, Windows has only the minimal drivers required to boot the hardware on your computer - which happens to be completely different from what qemu emulates. Windows 9x has enough problems with this, but Windows NT is especially fickle. You may be able to boot Windows 95 or 98 work from qemu this way (there have been a few reports of success), but if you want to try we can not help you. You are better off installing Windows into a disk image. Windows XP Home or Windows XP Professional also has issues related to hardware activation. > >If you really really want to try to set up Windows XP or Windows 2000 to be able to boot on both your real hardware and on qemu, try looking at [WWW] You receive a Stop 0x0000007B error after you move the Windows XP system disk to another computer and [WWW] How to Move a Hard Disk with Windows 2000 Installed to Another Computer, which explains part of the problem in greater detail as well as some possible workarounds. This is for really advanced users only. If you don't understand what this article says, or if you follow its instructions but they don't work for you, do not come to us for help. We probably won't know any more about the problem than you. Note: If you try this with XP Home or XP Professional, you will be required to re-activate XP. > >[end quote] > > The easiest way to go about is proably to install windows into a qemu >image and then pass /dev/ad2 as -hdb so you can mount the data on there. > > Juergen > Many thanks for your answer. I was in fact more interested in full write access to the XP partition rather than in booting from it. Maybe passing -hdb would work, I'll try that. Vladimir From owner-freebsd-emulation@FreeBSD.ORG Sat Oct 29 20:29:50 2005 Return-Path: X-Original-To: freebsd-emulation@freebsd.org Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CF37416A420; Sat, 29 Oct 2005 20:29:50 +0000 (GMT) (envelope-from arno@heho.snv.jussieu.fr) Received: from shiva.jussieu.fr (shiva.jussieu.fr [134.157.0.129]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1D36343D46; Sat, 29 Oct 2005 20:29:49 +0000 (GMT) (envelope-from arno@heho.snv.jussieu.fr) Received: from heho.snv.jussieu.fr (heho.snv.jussieu.fr [134.157.184.22]) by shiva.jussieu.fr (8.13.5/jtpda-5.4) with ESMTP id j9TKTmoO004136 ; Sat, 29 Oct 2005 22:29:48 +0200 (CEST) X-Ids: 165 Received: from heho.labo (localhost [127.0.0.1]) by heho.snv.jussieu.fr (8.13.3/jtpda-5.2) with ESMTP id j9TKTlsG020753 ; Sat, 29 Oct 2005 22:29:47 +0200 (MEST) Received: (from arno@localhost) by heho.labo (8.13.3/8.13.1/Submit) id j9TKTlwA020750; Sat, 29 Oct 2005 22:29:47 +0200 (MEST) (envelope-from arno) Sender: arno@heho.snv.jussieu.fr To: freebsd-stable@freebsd.org From: "Arno J. Klaassen" Date: 29 Oct 2005 22:29:47 +0200 Message-ID: Lines: 97 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-1.7.2 (shiva.jussieu.fr [134.157.0.165]); Sat, 29 Oct 2005 22:29:48 +0200 (CEST) X-Antivirus: scanned by sophie at shiva.jussieu.fr X-Miltered: at shiva.jussieu.fr with ID 4363DBBC.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! Cc: freebsd-emulation@freebsd.org, freebsd-amd64@freebsd.org Subject: RELENG_6 linux emulation problem 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: Sat, 29 Oct 2005 20:29:51 -0000 Hello, I get an easy to reproduce panic on recent RELENG_6/amd64 : -su-2.05b# /compat/linux/bin/bash bash-2.05b# cd /dev bash-2.05b# ls panic : kmem_malloc: entry not found or misaligned Setup is as follows : /dev/ad0s3d mounted on / /dev/ad0s4d mount on /files /usr is a symlink to /files/amd64/usr if ever that might be of importance (the rest of ad0s3 is RELENG_5/i386) uname -a : FreeBSD demo 6.0-RC1 FreeBSD 6.0-RC1 #1: Sat Oct 29 17:04:50 CEST 2005 toor@demo:/files/amd64/obj/files/bsd/src6/sys/D470K amd64 generic config-file with outcommented non-needed drivers and extra options : device cpufreq device tap device atapicam device sound device smbus device iicbus device iicsmb options NTFS options TCP_DROP_SYNFIN linux_base-8-8.0_7 installed. NB, please respond preferentially to list; i still need a good solution to filter important email from my flooding "misc" procmail-filter output ;( Arno ##### kgdb trace : #### (kgdb) where #0 doadump () at /files/bsd/src6/sys/kern/kern_shutdown.c:234 #1 0xffffffff8030c10b in boot (howto=260) at /files/bsd/src6/sys/kern/kern_shutdown.c:399 #2 0xffffffff8030c5de in panic ( fmt=0xffffffff805cdea8 "kmem_malloc: entry not found or misaligned") at /files/bsd/src6/sys/kern/kern_shutdown.c:555 #3 0xffffffff804ed2cf in kmem_malloc (map=0xffffff003e0b0160, size=0, flags=258) at /files/bsd/src6/sys/vm/vm_kern.c:382 #4 0xffffffff804e00a2 in page_alloc (zone=0x0, bytes=0, pflag=0xffffffffa7aba5e7 "\002\200\202®-", wait=258) at /files/bsd/src6/sys/vm/uma_core.c:957 #5 0xffffffff804e3bbb in uma_large_malloc (size=0, wait=258) at /files/bsd/src6/sys/vm/uma_core.c:2711 #6 0xffffffff802fc503 in malloc (size=0, mtp=0xffffffff80706880, flags=258) at /files/bsd/src6/sys/kern/kern_malloc.c:327 #7 0xffffffff802fc6fe in realloc (addr=0x0, size=18446744073709549576, mtp=0xffffffff80706880, flags=258) at /files/bsd/src6/sys/kern/kern_malloc.c:416 #8 0xffffffff80398412 in vfs_read_dirent (ap=0xffffffffa7aba790, dp=0xffffff0000e16298, off=0) at /files/bsd/src6/sys/kern/vfs_subr.c:3877 #9 0xffffffff80290f56 in devfs_readdir (ap=0xffffffffa7aba790) at /files/bsd/src6/sys/fs/devfs/devfs_vnops.c:828 #10 0xffffffff805815ec in VOP_READDIR_APV (vop=0xffffffff806fc480, a=0xffffffffa7aba790) at vnode_if.c:1427 #11 0xffffffff8056f559 in VOP_READDIR (vp=0xffffff0002f6e000, uio=0xffffffffa7abaab0, cred=0xffffff002e93c700, eofflag=0xffffffffa7aba854, ncookies=0xffffffffa7aba834, cookies=0xffffffffa7aba840) at vnode_if.h:747 #12 0xffffffff8056efe6 in getdents_common (td=0xffffff002ff22be0, args=0xffffffffa7abab90, is64bit=1) at /files/bsd/src6/sys/compat/linux/linux_file.c:328 #13 0xffffffff8056f612 in linux_getdents64 (td=0xffffff002ff22be0, args=0xffffffffa7abab90) at /files/bsd/src6/sys/compat/linux/linux_file.c:476 #14 0xffffffff80564f54 in ia32_syscall (frame= {tf_rdi = 3, tf_rsi = 0, tf_rdx = 4096, tf_rcx = 134598592, tf_r8 = 0, tf_r9 = 0, tf_rax = 220, tf_rbx = 3, tf_rbp = 4294958168, tf_r10 = 0, tf_r11 = 0, tf_r12 = 0, tf_r13 = 0, tf_r14 = 0, tf_r15 = 0, tf_trapno = 12, tf_addr = 134602692, tf_flags = 0, tf_err = 2, tf_rip = 672250937, tf_cs = 27, tf_rflags = 582, tf_rsp = 4294958092, tf_ss = 35}) at /files/bsd/src6/sys/amd64/ia32/ia32_syscall.c:186 #15 0xffffffff8050c1ad in Xint0x80_syscall () at ia32_exception.S:64 #16 0x000000002811bc39 in ?? () Previous frame inner to this frame (corrupt stack?) (kgdb) -- Arno J. Klaassen SCITO S.A. 8 rue des Haies F-75020 Paris, France http://scito.com From owner-freebsd-emulation@FreeBSD.ORG Sat Oct 29 23:32:35 2005 Return-Path: X-Original-To: freebsd-emulation@FreeBSD.org Delivered-To: freebsd-emulation@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0BD9416A41F; Sat, 29 Oct 2005 23:32:35 +0000 (GMT) (envelope-from nork@FreeBSD.org) Received: from sakura.ninth-nine.com (sakura.ninth-nine.com [219.127.74.120]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3E6CD43D4C; Sat, 29 Oct 2005 23:32:34 +0000 (GMT) (envelope-from nork@FreeBSD.org) Received: from nadesico.ninth-nine.com (nadesico.ninth-nine.com [219.127.74.122]) by sakura.ninth-nine.com (8.13.3/8.13.3/NinthNine) with ESMTP id j9TNWVpV043566; Sun, 30 Oct 2005 08:32:33 +0900 (JST) (envelope-from nork@FreeBSD.org) Date: Sun, 30 Oct 2005 08:32:31 +0900 From: Norikatsu Shigemura To: Juergen Lock Message-Id: <20051030083231.bc207520.nork@FreeBSD.org> In-Reply-To: <20051029185103.GA80501@saturn.kn-bremen.de> References: <20051025215759.25681b85.nork@FreeBSD.org> <20051025191141.GC7277@saturn.kn-bremen.de> <20051026224401.3acf2501.nork@FreeBSD.org> <20051029111159.b1e06be9.nork@FreeBSD.org> <20051029185103.GA80501@saturn.kn-bremen.de> X-Mailer: Sylpheed version 2.1.4 (GTK+ 2.6.10; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0 (sakura.ninth-nine.com [219.127.74.121]); Sun, 30 Oct 2005 08:32:33 +0900 (JST) Cc: freebsd-emulation@FreeBSD.org, nork@FreeBSD.org, jkim@FreeBSD.org Subject: Re: kqemu-kmod port 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, 29 Oct 2005 23:32:35 -0000 On Sat, 29 Oct 2005 20:51:03 +0200 Juergen Lock wrote: > > > > Err. You may be able to build the kld seperately like that, but the > > > > qemu build also needs the kqemu bits in place in the build dir to add in > > > > kqemu support... So if you remove it from the qemu port the kld wont > > > > get used. > > > $ grep -r kqemu . > > > ./kqemu.c:#include "kqemu/kqemu.h" > > REVENGE > Eh? :) Skip it:-). > > overrided: my kqemu-kmod port > > http://people.freebsd.org/~nork/kqemu-kmod.shar > > Please reget my shar file. > > And I made a patch for qemu port. How about? > Well, three changes: > 1. use the old disfile, Fabrice still hasn't committed anything new > (the copy on dad-answers.com is only there for one day each) > 2. CFLAGS+= -I${LOCALBASE}/include doesn't get propagated to the build > at least here, need to patch Makefile.target instead Agree. > 3. need ${WRKSRC}/kqemu/Makefile.freebsd instead of ${WRKSRC}/kqemu/Makefile Why? According to qemu/configure, ${WRKSRC}/kqemu/Makefile is needed instead of ${WRKSRC}/kqemu/Makefile.freebsd. - - - - - - - - - - - - - - - - - - - - in qemu/configure #375 # kqemu support if test $kqemu = "yes" ; then # test if the source code is installed if test '!' -f "kqemu/Makefile" ; then kqemu="no" fi fi - - - - - - - - - - - - - - - - - - - - > -MASTER_SITES= http://www.qemu.org/ \ > - http://people.fruitsalad.org/nox/qemu/ \ > - http://dad-answers.com/qemu/ > +MASTER_SITES= http://people.fruitsalad.org/nox/qemu/ \ > + http://qemu.dad-answers.com/download/qemu/ > DISTNAME= ${PORTNAME}-snapshot-2005-09-09_23 Humm... How about following lines? - - - - - - - - - - - - - - - - - - - - MASTER_SITES= http://www.qemu.org/:release \ http://people.fruitsalad.org/nox/qemu/:snapshot \ http://qemu.dad-answers.com/download/qemu/:snapshot DISTFILES= ${PORTNAME}-snapshot-2005-09-09_23${EXTRACT_SUFX}:snapshot - - - - - - - - - - - - - - - - - - - - You can replace :snapshot to :release, if new qemu is released. From owner-freebsd-emulation@FreeBSD.ORG Sat Oct 29 23:54:33 2005 Return-Path: X-Original-To: freebsd-emulation@freebsd.org Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 471B316A41F for ; Sat, 29 Oct 2005 23:54:33 +0000 (GMT) (envelope-from vladimir@math.uic.edu) Received: from rwcrmhc11.comcast.net (rwcrmhc11.comcast.net [204.127.198.35]) by mx1.FreeBSD.org (Postfix) with ESMTP id D891443D46 for ; Sat, 29 Oct 2005 23:54:32 +0000 (GMT) (envelope-from vladimir@math.uic.edu) Received: from cat.math.uic.edu (c-24-12-126-199.hsd1.il.comcast.net[24.12.126.199]) by comcast.net (rwcrmhc11) with SMTP id <2005102923543101300ato83e>; Sat, 29 Oct 2005 23:54:32 +0000 Received: (qmail 828 invoked by uid 31415); 29 Oct 2005 23:54:30 -0000 Date: Sat, 29 Oct 2005 18:54:30 -0500 From: Vladimir Egorin To: nox@jelal.kn-bremen.de Message-ID: <20051029235430.GA802@math.uic.edu> References: <20051029193831.GA81894@saturn.kn-bremen.de> <20051029202115.3846.qmail@math.uic.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20051029202115.3846.qmail@math.uic.edu> User-Agent: Mutt/1.5.11 Cc: freebsd-emulation@freebsd.org Subject: Re: booting qemu from a physical NTFS disk 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, 29 Oct 2005 23:54:33 -0000 On Sat, Oct 29, 2005 at 08:21:15PM -0000, vladimir@math.uic.edu wrote: > >From nox@saturn.kn-bremen.de Sat Oct 29 19:45:49 2005 > >From: Juergen Lock > >Date: Sat, 29 Oct 2005 21:38:31 +0200 > >To: vladimir@math.uic.edu > >Cc: freebsd-emulation@freebsd.org > >Subject: Re: booting qemu from a physical NTFS disk > > > >On Sat, Oct 29, 2005 at 01:10:36PM -0500, vladimir@math.uic.edu wrote: > >> I have a dual-boot machine, with BSD-current running > >> on the primary drive of the first IDE controller, > >> and WinXP installed on the primary drive of the second IDE. > >> Is there any way to boot Windows XP in qemu (running on > >> FreeBSD host) from a WindowsXP physical drive? > >> I googled for an answer, but didn't find anything definite. > > > >>From the freenode #qemu faq: > >http://lilly.csoft.net/~jeffryj/cgi-bin/moin.cgi/FrequentlyAskedQuestions > > > >Can I run my Windows on my /dev/hda in qemu? > > > >Short answer: Probably not. > > > >Long answer: Once installed, Windows has only the minimal drivers required to boot the hardware on your computer - which happens to be completely different from what qemu emulates. Windows 9x has enough problems with this, but Windows NT is especially fickle. You may be able to boot Windows 95 or 98 work from qemu this way (there have been a few reports of success), but if you want to try we can not help you. You are better off installing Windows into a disk image. Windows XP Home or Windows XP Professional also has issues related to hardware activation. > > > >If you really really want to try to set up Windows XP or Windows 2000 to be able to boot on both your real hardware and on qemu, try looking at [WWW] You receive a Stop 0x0000007B error after you move the Windows XP system disk to another computer and [WWW] How to Move a Hard Disk with Windows 2000 Installed to Another Computer, which explains part of the problem in greater detail as well as some possible workarounds. This is for really advanced users only. If you don't understand what this article says, or if you follow its instructions but they don't work for you, do not come to us for help. We probably won't know any more about the problem than you. Note: If you try this with XP Home or XP Professional, you will be required to re-activate XP. > > > >[end quote] > > > > The easiest way to go about is proably to install windows into a qemu > >image and then pass /dev/ad2 as -hdb so you can mount the data on there. > > > > Juergen > > > > Many thanks for your answer. I was in fact more interested in full write > access to the XP partition rather than in booting from it. Maybe passing > -hdb would work, I'll try that. > > Vladimir ... and I am happy to say that this worked! Thanks again for the suggestion. -- Vladimir