From owner-freebsd-emulation@FreeBSD.ORG Sun Oct 18 10:06:56 2009 Return-Path: Delivered-To: freebsd-emulation@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 323571065679; Sun, 18 Oct 2009 10:06:56 +0000 (UTC) (envelope-from bsam@ipt.ru) Received: from services.ipt.ru (services.ipt.ru [194.62.233.110]) by mx1.freebsd.org (Postfix) with ESMTP id DCBFB8FC0C; Sun, 18 Oct 2009 10:06:55 +0000 (UTC) Received: from [85.173.16.144] (helo=izar) by services.ipt.ru with esmtpa (Exim 4.54 (FreeBSD)) id 1MzSf8-0005wi-DW; Sun, 18 Oct 2009 14:06:54 +0400 To: jstub@jstub.com References: <4AD74421.8020807@jstub.com> From: Boris Samorodov Date: Sun, 18 Oct 2009 14:09:14 +0400 In-Reply-To: <4AD74421.8020807@jstub.com> (John B. Stubblebine's message of "Thu\, 15 Oct 2009 08\:47\:45 -0700") Message-ID: <65494917@ipt.ru> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: ports@FreeBSD.org, freebsd-emulation@FreeBSD.org, hrs@FreeBSD.org Subject: Re: FreeBSD Port: acroread9-9.2 X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Oct 2009 10:06:56 -0000 "John B. Stubblebine" writes: > So how do I get linux-pango 1.24, or later?? This is a real FAQ for some time. Please, search archieves (ports@, emulation@) and even the PR-database for the answer. -- WBR, bsam From owner-freebsd-emulation@FreeBSD.ORG Sun Oct 18 10:28:24 2009 Return-Path: Delivered-To: freebsd-emulation@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 425AB106566C for ; Sun, 18 Oct 2009 10:28:24 +0000 (UTC) (envelope-from bsam@ipt.ru) Received: from services.ipt.ru (services.ipt.ru [194.62.233.110]) by mx1.freebsd.org (Postfix) with ESMTP id F10278FC14 for ; Sun, 18 Oct 2009 10:28:23 +0000 (UTC) Received: from [85.173.16.144] (helo=izar) by services.ipt.ru with esmtpa (Exim 4.54 (FreeBSD)) id 1MzSzu-0006Cy-QR; Sun, 18 Oct 2009 14:28:22 +0400 To: Juergen Lock References: <20091017154404.GA80599@triton8.kn-bremen.de> From: Boris Samorodov Date: Sun, 18 Oct 2009 14:30:43 +0400 In-Reply-To: <20091017154404.GA80599@triton8.kn-bremen.de> (Juergen Lock's message of "Sat\, 17 Oct 2009 17\:44\:04 +0200") Message-ID: <99413628@ipt.ru> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: freebsd-emulation@FreeBSD.org Subject: Re: how to test for linux base version? (googleearth) X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Oct 2009 10:28:24 -0000 Juergen Lock writes: > I just got reminded to add a linux base version check to astro/google-earth > (It now needs recent linux libstdc++.so.6 with GLIBCXX_3.4.9 that only > is in f9 or f10, you can do First of, I'd recommend leaving f9 alone (I'm going to deprecate all linux base ports except fc4 and f10 soon). > objdump -T /compat/linux/usr/lib/libstdc++.so.6 |grep 'ABS.*GLIBCXX' > to check) - and was wondering how to best check for that in a port. > This is what I came up with so far: > > Index: Makefile > =================================================================== > RCS file: /home/pcvs/ports/astro/google-earth/Makefile,v > retrieving revision 1.35 > diff -u -p -r1.35 Makefile > --- Makefile 24 Sep 2009 21:01:36 -0000 1.35 > +++ Makefile 17 Oct 2009 15:32:22 -0000 > @@ -38,6 +38,14 @@ RUN_DEPENDS+= ${LINUXBASE}/usr/lib/libGL > USE_LINUX_APPS+= dri > .endif > > +.if (${OSVERSION} < 800076 && \ > + !defined(OVERRIDE_LINUX_BASE_PORT)) || \ > + (defined(OVERRIDE_LINUX_BASE_PORT) && \ > + !(${OVERRIDE_LINUX_BASE_PORT} == f10) || \ > + ${OVERRIDE_LINUX_BASE_PORT} == f9) > +IGNORE= needs at least f9 Linux base > +.endif > + > do-extract: > @${MKDIR} ${WRKSRC} > @${CP} ${DISTDIR}/${DIST_SUBDIR}/${DISTFILES} ${WRKSRC} > > Anyone have a better idea? :) I'm not sure if it's better but just an other idea: ----- .if ${OSVERSION}<7000XX /*** XX should be find out ***/ IGNORE FreeBSD>=7.X is needed with Linux emulation 2.6.x. .elif ${OSVERSION}<800076 && \ ! defined (OVERRIDE_LINUX_NONBASE_PORTS) || ! (${OVERRIDE_LINUX_NONBASE_PORTS} == f10) IGNORE= you need to use non-default linux ports (define OVERRIDE_LINUX_BASE_PORT=f10 and OVERRIDE_LINUX_NONBASE_PORTS=f10) .endif ----- This check is not strict either. The thing is that both BASE and NONBASE variables should be defined and have f10 value for OSVERSION<800076. I have an item at my TODO list to switch to using USE_LINUX=f10[+] or similar but it's not the highest priority and ENOTIME now... -- WBR, bsam From owner-freebsd-emulation@FreeBSD.ORG Sun Oct 18 17:33:14 2009 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 367021065672 for ; Sun, 18 Oct 2009 17:33:14 +0000 (UTC) (envelope-from fli@shapeshifter.se) Received: from mx1.h3q.net (mx1.h3q.net [IPv6:2001:16d8:ffe5:1::f1]) by mx1.freebsd.org (Postfix) with ESMTP id F11088FC08 for ; Sun, 18 Oct 2009 17:33:13 +0000 (UTC) Received: from smtp-auth.h3q.net (smtp-auth.h3q.net [127.0.0.1]) (Authenticated sender: hidden) by mx1.h3q.net (Postfix) with ESMTPSA id 75ECD33CCD ; Sun, 18 Oct 2009 19:33:12 +0200 (CEST) Message-ID: <4ADB515A.4050309@shapeshifter.se> Date: Sun, 18 Oct 2009 19:33:14 +0200 From: Fredrik Lindberg User-Agent: Thunderbird 2.0.0.23 (X11/20090912) MIME-Version: 1.0 To: David Naylor References: <200910151950.26620.naylor.b.david@gmail.com> In-Reply-To: <200910151950.26620.naylor.b.david@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-emulation@freebsd.org Subject: Re: VirtualBox: vboxnetflt related problems X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Oct 2009 17:33:14 -0000 David Naylor wrote: > Hi, > > Thanks for porting VirtualBox, it has proven most useful (no more slow RDC). > > I've found some problems relating to VirtualBox's bridged networking: > > 1) loader doesn't pull in all the dependencies for vboxnetflt (kldload > does) [missing dependencies: ng_ether] I couldn't figure out how properly depend on ng_ether, a simple MODULE_DEPEND does not work. I guess it's because ng_ether doesn't declare MODULE_VERSION. ng_ether *should* be loaded by the explicit kern_kldload, does this not happen on your system? > > 2) even with the dependencies specified in loader.conf vboxnetflt fails to > initialise on boot [module_register_init: MOD_LOAD (ng_vboxnetflt, 0xc0f44fd9, > 0xc19bd6a0) error 22] There is a known issue where the vboxdrv module (and thus VirtualBox) sometimes fail to see that vboxnetflt is loaded - is this what you're seeing? or does vboxnetflt simply not load at all? vnoxnetflt should load fine even without ng_ether loaded. > > 3) bridging doesn't work when connecting to bridge0 or tap0: > # netstat -w1 -I tap0 > input (tap0) output > packets errs bytes packets errs bytes colls > 0 0 0 0 0 0 0 > 0 0 0 0 2 151 0 > ... > This happen with and without giving tap0 an IP address. This is because vboxnetflt uses ng_ether and the interaction between ng_ether/bridge/tap/vboxnetflt doesn't work. Fredrik From owner-freebsd-emulation@FreeBSD.ORG Sun Oct 18 17:43:44 2009 Return-Path: Delivered-To: freebsd-emulation@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8E2B7106568D for ; Sun, 18 Oct 2009 17:43:44 +0000 (UTC) (envelope-from nox@jelal.kn-bremen.de) Received: from smtp.kn-bremen.de (gelbbaer.kn-bremen.de [78.46.108.116]) by mx1.freebsd.org (Postfix) with ESMTP id 4D5678FC0C for ; Sun, 18 Oct 2009 17:43:44 +0000 (UTC) Received: by smtp.kn-bremen.de (Postfix, from userid 10) id B16511E006F3; Sun, 18 Oct 2009 19:43:42 +0200 (CEST) Received: from triton8.kn-bremen.de (noident@localhost [127.0.0.1]) by triton8.kn-bremen.de (8.14.3/8.14.3) with ESMTP id n9IHfwi8099734; Sun, 18 Oct 2009 19:41:58 +0200 (CEST) (envelope-from nox@triton8.kn-bremen.de) Received: (from nox@localhost) by triton8.kn-bremen.de (8.14.3/8.14.3/Submit) id n9IHfwLe099733; Sun, 18 Oct 2009 19:41:58 +0200 (CEST) (envelope-from nox) From: Juergen Lock Date: Sun, 18 Oct 2009 19:41:57 +0200 To: Boris Samorodov Message-ID: <20091018174157.GB99191@triton8.kn-bremen.de> References: <20091017154404.GA80599@triton8.kn-bremen.de> <99413628@ipt.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <99413628@ipt.ru> User-Agent: Mutt/1.5.20 (2009-06-14) Cc: freebsd-emulation@FreeBSD.org, Juergen Lock Subject: Re: how to test for linux base version? (googleearth) X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Oct 2009 17:43:44 -0000 On Sun, Oct 18, 2009 at 02:30:43PM +0400, Boris Samorodov wrote: > Juergen Lock writes: > > > I just got reminded to add a linux base version check to astro/google-earth > > (It now needs recent linux libstdc++.so.6 with GLIBCXX_3.4.9 that only > > is in f9 or f10, you can do > > First of, I'd recommend leaving f9 alone (I'm going to deprecate all > linux base ports except fc4 and f10 soon). > Ah Ok. (Does f10 work well enough on 7.x yet?) > > objdump -T /compat/linux/usr/lib/libstdc++.so.6 |grep 'ABS.*GLIBCXX' > > to check) - and was wondering how to best check for that in a port. > > This is what I came up with so far: > > > > Index: Makefile > > =================================================================== > > RCS file: /home/pcvs/ports/astro/google-earth/Makefile,v > > retrieving revision 1.35 > > diff -u -p -r1.35 Makefile > > --- Makefile 24 Sep 2009 21:01:36 -0000 1.35 > > +++ Makefile 17 Oct 2009 15:32:22 -0000 > > @@ -38,6 +38,14 @@ RUN_DEPENDS+= ${LINUXBASE}/usr/lib/libGL > > USE_LINUX_APPS+= dri > > .endif > > > > +.if (${OSVERSION} < 800076 && \ > > + !defined(OVERRIDE_LINUX_BASE_PORT)) || \ > > + (defined(OVERRIDE_LINUX_BASE_PORT) && \ > > + !(${OVERRIDE_LINUX_BASE_PORT} == f10) || \ > > + ${OVERRIDE_LINUX_BASE_PORT} == f9) > > +IGNORE= needs at least f9 Linux base > > +.endif > > + > > do-extract: > > @${MKDIR} ${WRKSRC} > > @${CP} ${DISTDIR}/${DIST_SUBDIR}/${DISTFILES} ${WRKSRC} > > > > Anyone have a better idea? :) > > I'm not sure if it's better but just an other idea: > ----- > .if ${OSVERSION}<7000XX /*** XX should be find out ***/ > IGNORE FreeBSD>=7.X is needed with Linux emulation 2.6.x. > .elif ${OSVERSION}<800076 && \ > ! defined (OVERRIDE_LINUX_NONBASE_PORTS) || > ! (${OVERRIDE_LINUX_NONBASE_PORTS} == f10) > IGNORE= you need to use non-default linux ports (define OVERRIDE_LINUX_BASE_PORT=f10 and OVERRIDE_LINUX_NONBASE_PORTS=f10) > .endif > ----- In the meantime I found emulators/linux-systemsimcell does something similar, and it uses ${OSVERSION}<700055 for the first check. Does that look alright? (seems to be the last OSVERSION before 7.0-R from looking at http://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/book.html#FREEBSD-VERSIONS ) > > This check is not strict either. The thing is that both BASE and NONBASE > variables should be defined and have f10 value for OSVERSION<800076. > Ok. > I have an item at my TODO list to switch to using USE_LINUX=f10[+] or > similar but it's not the highest priority and ENOTIME now... Heh yeah I guess that'd be useful here... Anyway, thanx, :) Juergen From owner-freebsd-emulation@FreeBSD.ORG Sun Oct 18 18:26:21 2009 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C632B1065693 for ; Sun, 18 Oct 2009 18:26:21 +0000 (UTC) (envelope-from blauwirbel@gmail.com) Received: from mail-fx0-f210.google.com (mail-fx0-f210.google.com [209.85.220.210]) by mx1.freebsd.org (Postfix) with ESMTP id 508F78FC16 for ; Sun, 18 Oct 2009 18:26:20 +0000 (UTC) Received: by fxm6 with SMTP id 6so4045714fxm.43 for ; Sun, 18 Oct 2009 11:26:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=wsHttvTbre/YJbXvOwVPslIa/VlrjYRxrybV/AFeDs0=; b=PRoobguAjKtoAduCwRIx2taVulSR08W1wCcvsQjTLvNqXPoi2brnqqHahIpojVvPq5 wKk4n+dm6oczvHAaUaZoPU+Lv1gvBPzv2TricG+dt7EX0OSonDqFcTcvYdidwMwbh+lF 1iQu6IZcw1zw7qfe5+xsXza71NDJUUAbIO9tE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=Dry+JveYgpSA8W2Mzq5qX6f414wKpYn7wNCAY25YZ5J7zjVhGG/RVpBqDd7cDTPzmV Xw6wwjkj/goHG0epubzp1D4EeF1/rYAnLKRATYNMlnhxaC9oUT5/7tqleYcczPPPI6zR 9HrA3vnUbVS5sudh8Jy4Nz/7cyu1r907FSA40= MIME-Version: 1.0 Received: by 10.223.76.65 with SMTP id b1mr732064fak.44.1255890380137; Sun, 18 Oct 2009 11:26:20 -0700 (PDT) In-Reply-To: <20091016223426.GA54110@triton8.kn-bremen.de> References: <20091007220549.GA65997@triton8.kn-bremen.de> <20091011221840.GA55502@triton8.kn-bremen.de> <20091012222058.GA43121@triton8.kn-bremen.de> <20091013221932.GA32808@triton8.kn-bremen.de> <20091016223426.GA54110@triton8.kn-bremen.de> From: Blue Swirl Date: Sun, 18 Oct 2009 21:26:00 +0300 Message-ID: To: Juergen Lock Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-emulation@freebsd.org, qemu-devel@nongnu.org, Aleksej Saushev , Toni Subject: Re: [Qemu-devel] Re: playing with qemu usermode emulation on FreeBSD... X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Oct 2009 18:26:21 -0000 On Sat, Oct 17, 2009 at 1:34 AM, Juergen Lock wrot= e: > On Wed, Oct 14, 2009 at 12:19:32AM +0200, Juergen Lock wrote: >> On Tue, Oct 13, 2009 at 12:20:58AM +0200, Juergen Lock wrote: >> > On Mon, Oct 12, 2009 at 10:55:24PM +0300, Blue Swirl wrote: >> > > On Mon, Oct 12, 2009 at 1:18 AM, Juergen Lock wrote: >> > > > On Thu, Oct 08, 2009 at 12:05:49AM +0200, Juergen Lock wrote: >> > > >> I recently noticed there are x86 bsd-user targets now (yeah I tot= ally >> > > >> missed those commits...) and now got it working a tiny little bit= : >> > > >> I can run >> > > >> =C2=A0 =C2=A0 =C2=A0 qemu-x86_64 -bsd freebsd /rescue/echo foo ba= r >> > > >> here on FreeBSD 8/amd64 and it echoes foo bar as expected, but >> > > >> segfaults afterwards. :) =C2=A0(in pthread_setcancelstate() invok= ed from >> > > >> a guest write() syscall, in case anyone is wondering.) =C2=A0Othe= r things >> > > >> I tried either exit with errors or segfault as well, and i386 hos= ts >> > > >> probably still don't work at all yet. =C2=A0(qemu-i386 here on am= d64 does >> > > >> at least something, but probably needs lock_user() treatment for = all >> > > >> kinds of syscalls, I only tried adding that for sysctl so far.) >> > > >> >> > > >> =C2=A0Anyway, here is an emulators/qemu-devel git head snapshot p= ort >> > > >> update with my current patches (files/patch-bsd-user), feel free = to >> > > >> test/debug/improve: >> > > >> =C2=A0 =C2=A0 =C2=A0 http://people.freebsd.org/~nox/qemu/qemu-dev= el-20091007.patch >> > > >> (For the folks reading this on the qemu list: =C2=A0I shall start= doing >> > > >> `proper' patch submissions later, this is more for the FreeBSD fo= lks >> > > >> and because I was asked to send what I have...) >> > > > >> > > > New version at the same place, which now runs FreeBSD/{i386,sparc6= 4} >> > > > /rescue/echo on FreeBSD/amd64, the FreeBSD/amd64 target now segfau= lts >> > > > in pthread_setcancelstate() invoked from the final writev() tho. >> > > > Oh and I also uploaded the snapshot tarball so others can now actu= ally >> > > > build the port too... :) =C2=A0And I have switched to the cpu-exec= .c patch >> > > > posted by Aleksej Saushev on the qemu list and added back amd64 >> > > > code there. >> > > > >> > > > =C2=A0Here is the bsd-user patch again: >> > > >> > > Please add Signed-off-by: line and use 'diff -u' (or preferably git = diff). >> > > >> > Well I wasn't expecting this diff to be committed just yet anyway, >> > it's still more a wip version... >> > >> > > > + =C2=A0 =C2=A0if (1 /* bsd_type =3D=3D target_freebsd */) >> > > > + =C2=A0 =C2=A0 =C2=A0 =C2=A0regs->rdi =3D infop->start_stack; >> > > >> > > Why the if and comment? >> > > >> > > > + =C2=A0 =C2=A0 =C2=A0 =C2=A0if (1 /* bsd_type =3D=3D target_freeb= sd */) { >> > > > + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0regs->u_regs[8] =3D inf= op->start_stack; >> > > > + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0regs->u_regs[11] =3D in= fop->start_stack; >> > > >> > > Same here. >> > > >> > =C2=A0Because bsd_type isn't available at these places in the code but >> > probably should be checked, I still wanted to fix that. =C2=A0(Maybe >> > make it global?) >> > >> I still haven't fixed this... >> >> > > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 case 0x100: >> > > > + =C2=A0 =C2=A0 =C2=A0 =C2=A0/* FreeBSD uses 0x141 for syscalls to= o */ >> > > > + =C2=A0 =C2=A0 =C2=A0 =C2=A0case 0x141: >> > > > + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0if (bsd_type !=3D targe= t_freebsd) >> > > > + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0goto badt= rap; >> > > >> > > You are now also trapping on case 0x100 if bsd_type !=3D target_free= bsd, >> > > which probably breaks other BSDs. >> > > >> > =C2=A0Right, thats broken, the 0x141 case should come before the 0x100 >> > here of course. >> > >> =C2=A0...but this I just fixed, and I added the multiboot.S patch, and >> fixed the port's cdrom dma disable knob (files/cdrom-dma-patch). >> (And I added the cpu-exec.c whitspace fix that was already in the >> patch I posted in the BSD support thread.) >> >> =C2=A0New version at the same place, >> =C2=A0 =C2=A0 =C2=A0 http://people.freebsd.org/~nox/qemu/qemu-devel-2009= 1007.patch >> and I now also made a shar of the patched port: >> =C2=A0 =C2=A0 =C2=A0 http://people.freebsd.org/~nox/qemu/qemu-devel-2009= 1007.shar > > Updated again, among other things I added basic FreeBSD sysarch(2) > handling, fixed syscall errno return (I had added code to set the > carry bit for the x86 target before but the sign of the returned errno > was still wrong), and I finally fixed the if (1) above (made bsd_type > global.) > > =C2=A0And, I now can run FreeBSD/amd64 /bin/sh and vim on same! :) =C2=A0= (zsh > not yet tho.) > > =C2=A0Oh and Toni tested taking FreeBSD/i386's default linker script, > changing only the load address to 0x60000000 as in qemu's and, > using that as i386.ld, he now can run qemu-i386 on FreeBSD/i386 with > simple executables too... =C2=A0See files/patch-bsd-user-ld in the shar, > which I also now moved the x86_64.ld patch to that I had talked about > earlier. =C2=A0It probably can't be used everywhere as is tho since it ha= s: > =C2=A0 =C2=A0 =C2=A0 =C2=A0OUTPUT_FORMAT("elf32-i386-freebsd", "elf32-i38= 6-freebsd", > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0"elf32-i386-freebsd") > (and I also don't know if the one currently in the tree has other > features that are needed at least on Linux, any linker gurus care > to comment?) > > =C2=A0Here is the rest of the bsd-user patches again (files/patch-bsd-use= r > in the shar), if you think they are ready to commit I'm not against it > anymore :), comments are also welcome of course. Thanks, applied. I made up a short commit message. From owner-freebsd-emulation@FreeBSD.ORG Sun Oct 18 20:09:39 2009 Return-Path: Delivered-To: freebsd-emulation@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 02BA31065692 for ; Sun, 18 Oct 2009 20:09:39 +0000 (UTC) (envelope-from oberman@es.net) Received: from mailgw.es.net (mail4.es.net [IPv6:2001:400:6000:6::2]) by mx1.freebsd.org (Postfix) with ESMTP id A7A768FC20 for ; Sun, 18 Oct 2009 20:09:38 +0000 (UTC) Received: from ptavv.es.net (ptavv.es.net [IPv6:2001:400:910::29]) by mailgw.es.net (8.14.3/8.14.3) with ESMTP id n9IK9Zj8017497 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sun, 18 Oct 2009 13:09:36 -0700 Received: from ptavv.es.net (ptavv.es.net [127.0.0.1]) by ptavv.es.net (Tachyon Server) with ESMTP id 9C2DE1CC37; Sun, 18 Oct 2009 13:09:35 -0700 (PDT) To: Juergen Lock In-reply-to: Your message of "Sun, 18 Oct 2009 19:41:57 +0200." <20091018174157.GB99191@triton8.kn-bremen.de> Date: Sun, 18 Oct 2009 13:09:35 -0700 From: "Kevin Oberman" Message-Id: <20091018200935.9C2DE1CC37@ptavv.es.net> X-Proofpoint-Virus-Version: vendor=fsecure engine=1.12.8161:2.4.5, 1.2.40, 4.0.166 definitions=2009-10-18_05:2009-09-29, 2009-10-18, 2009-10-18 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 ipscore=0 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx engine=5.0.0-0908210000 definitions=main-0910180158 Cc: freebsd-emulation@FreeBSD.org Subject: Re: how to test for linux base version? (googleearth) X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Oct 2009 20:09:39 -0000 > From: Juergen Lock > Date: Sun, 18 Oct 2009 19:41:57 +0200 > Sender: owner-freebsd-emulation@freebsd.org > > On Sun, Oct 18, 2009 at 02:30:43PM +0400, Boris Samorodov wrote: > > Juergen Lock writes: > > > > > I just got reminded to add a linux base version check to astro/google-earth > > > (It now needs recent linux libstdc++.so.6 with GLIBCXX_3.4.9 that only > > > is in f9 or f10, you can do > > > > First of, I'd recommend leaving f9 alone (I'm going to deprecate all > > linux base ports except fc4 and f10 soon). > > > Ah Ok. (Does f10 work well enough on 7.x yet?) It works pretty well with 7.2. I have heard that it might not with 7.1, but I don't have any 7.1 systems, so that is hear-say. My 7.2 system does Flash and Skype fine. I think it might do RealPlayer, but I'm not completely sure on that. (It works on 8.0, though.) -- R. Kevin Oberman, Network Engineer Energy Sciences Network (ESnet) Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab) E-mail: oberman@es.net Phone: +1 510 486-8634 Key fingerprint:059B 2DDF 031C 9BA3 14A4 EADA 927D EBB3 987B 3751 From owner-freebsd-emulation@FreeBSD.ORG Sun Oct 18 20:11:02 2009 Return-Path: Delivered-To: freebsd-emulation@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3B33E1065676 for ; Sun, 18 Oct 2009 20:11:02 +0000 (UTC) (envelope-from bsam@ipt.ru) Received: from services.ipt.ru (services.ipt.ru [194.62.233.110]) by mx1.freebsd.org (Postfix) with ESMTP id E7AE78FC1A for ; Sun, 18 Oct 2009 20:11:01 +0000 (UTC) Received: from [85.173.16.144] (helo=izar) by services.ipt.ru with esmtpa (Exim 4.54 (FreeBSD)) id 1Mzc5k-000D9R-JB; Mon, 19 Oct 2009 00:11:00 +0400 To: Juergen Lock References: <20091017154404.GA80599@triton8.kn-bremen.de> <99413628@ipt.ru> <20091018174157.GB99191@triton8.kn-bremen.de> From: Boris Samorodov Date: Mon, 19 Oct 2009 00:13:20 +0400 In-Reply-To: <20091018174157.GB99191@triton8.kn-bremen.de> (Juergen Lock's message of "Sun\, 18 Oct 2009 19\:41\:57 +0200") Message-ID: <99401887@ipt.ru> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: freebsd-emulation@FreeBSD.org Subject: Re: how to test for linux base version? (googleearth) X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Oct 2009 20:11:02 -0000 Juergen Lock writes: > On Sun, Oct 18, 2009 at 02:30:43PM +0400, Boris Samorodov wrote: >> Juergen Lock writes: >> >> > I just got reminded to add a linux base version check to astro/google-earth >> > (It now needs recent linux libstdc++.so.6 with GLIBCXX_3.4.9 that only >> > is in f9 or f10, you can do >> >> First of, I'd recommend leaving f9 alone (I'm going to deprecate all >> linux base ports except fc4 and f10 soon). >> > Ah Ok. (Does f10 work well enough on 7.x yet?) Well, there is no choice anyway. We do have fc4 and f10 infractructure ports. I think it's wise to use apropriate base ports. I don't think there is any difference between f9 and f10 linux base ports. If someone shows a difference (i.e. possibility to use f9 but not f10 linux base port under 7.x I may change my mind). >> > objdump -T /compat/linux/usr/lib/libstdc++.so.6 |grep 'ABS.*GLIBCXX' >> > to check) - and was wondering how to best check for that in a port. >> > This is what I came up with so far: >> > >> > Index: Makefile >> > =================================================================== >> > RCS file: /home/pcvs/ports/astro/google-earth/Makefile,v >> > retrieving revision 1.35 >> > diff -u -p -r1.35 Makefile >> > --- Makefile 24 Sep 2009 21:01:36 -0000 1.35 >> > +++ Makefile 17 Oct 2009 15:32:22 -0000 >> > @@ -38,6 +38,14 @@ RUN_DEPENDS+= ${LINUXBASE}/usr/lib/libGL >> > USE_LINUX_APPS+= dri >> > .endif >> > >> > +.if (${OSVERSION} < 800076 && \ >> > + !defined(OVERRIDE_LINUX_BASE_PORT)) || \ >> > + (defined(OVERRIDE_LINUX_BASE_PORT) && \ >> > + !(${OVERRIDE_LINUX_BASE_PORT} == f10) || \ >> > + ${OVERRIDE_LINUX_BASE_PORT} == f9) >> > +IGNORE= needs at least f9 Linux base >> > +.endif >> > + >> > do-extract: >> > @${MKDIR} ${WRKSRC} >> > @${CP} ${DISTDIR}/${DIST_SUBDIR}/${DISTFILES} ${WRKSRC} >> > >> > Anyone have a better idea? :) >> >> I'm not sure if it's better but just an other idea: >> ----- >> .if ${OSVERSION}<7000XX /*** XX should be find out ***/ >> IGNORE FreeBSD>=7.X is needed with Linux emulation 2.6.x. >> .elif ${OSVERSION}<800076 && \ >> ! defined (OVERRIDE_LINUX_NONBASE_PORTS) || >> ! (${OVERRIDE_LINUX_NONBASE_PORTS} == f10) >> IGNORE= you need to use non-default linux ports (define OVERRIDE_LINUX_BASE_PORT=f10 and OVERRIDE_LINUX_NONBASE_PORTS=f10) >> .endif >> ----- > > In the meantime I found emulators/linux-systemsimcell does something > similar, and it uses ${OSVERSION}<700055 for the first check. Does > that look alright? (seems to be the last OSVERSION before 7.0-R from > looking at > http://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/book.html#FREEBSD-VERSIONS > ) We discussed those checks with the maintainer and his checks were good (for his software). I can't say more than that, sorry. -- WBR, bsam From owner-freebsd-emulation@FreeBSD.ORG Sun Oct 18 20:11:10 2009 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 90A72106568F; Sun, 18 Oct 2009 20:11:10 +0000 (UTC) (envelope-from webmaster@kibab.com) Received: from mx0.deglitch.com (backbone.deglitch.com [IPv6:2001:16d8:fffb:4::abba]) by mx1.freebsd.org (Postfix) with ESMTP id 39AB08FC26; Sun, 18 Oct 2009 20:11:10 +0000 (UTC) Received: from kibab-nb.kibab.com (unknown [77.232.3.143]) by mx0.deglitch.com (Postfix) with ESMTPA id 2FB6B8FC4E; Mon, 19 Oct 2009 00:11:06 +0400 (MSD) Date: Mon, 19 Oct 2009 00:11:01 +0400 From: Ilya Bakulin To: freebsd-emulation@freebsd.org, hselasky@freebsd.org Message-ID: <20091019001101.31c22fad@kibab-nb.kibab.com> Organization: Deglitch Networks X-Mailer: Claws Mail 3.7.2 (GTK+ 2.16.5; i386-portbld-freebsd8.0) Mime-Version: 1.0 Content-Type: multipart/signed; micalg=PGP-SHA1; boundary="Sig_/_KH74=2//Q=/QAPmMuanfir"; protocol="application/pgp-signature" Cc: Subject: USB webcam++ support for FreeBSD-8-current is soon here X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Oct 2009 20:11:10 -0000 --Sig_/_KH74=2//Q=/QAPmMuanfir Content-Type: multipart/mixed; boundary="MP_//DkgE._H4FCTu3frtEpPm2d" --MP_//DkgE._H4FCTu3frtEpPm2d Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi, Just checked out Userland Linux kernel wrapper from here: svn --username anonsvn --password anonsvn \ checkout svn://svn.turbocat.net/i4b/trunk/usbcam/ulinux And tried to compile it according to instructions in Makefile: make fetch sudo make patch all install It complained about missing definition of __u32 in ulinux/libv4l/v4l2-apps/= libv4l/libv4lconvert/control/libv4lcontrol.c Following patch fixed this problem for me, built-in USB webcam works with p= wcview: ---- kibab@kibab-nb%sudo pwcview KrefGet: 0x28731404 =3D 1 KrefGet: 0x28731404 =3D 2 KrefGet: 0x2873160c =3D 1 KrefGet: 0x287316c8 =3D 1 Added device 0x28618c44 KrefGet: 0x28618c48 =3D 1 KrefGet: 0x28618c48 =3D 2 KrefGet: 0x287ada38 =3D 1 Webcam set to: 320x240 (sif) at 5 fps ---- BTW after quitting pwcview Webcam continues to work (blue LED indicator sta= ys ON). It's not a big problem, after "power_off/power_on" commands via usbconfig LED goes away :-D Is there any way to make Skype work with Webcam (as I understand, it requir= es /dev/video0 device to be present?) -- Regards, Ilya Bakulin http://kibab.com xmpp://kibab612@jabber.ru --MP_//DkgE._H4FCTu3frtEpPm2d Content-Type: text/x-patch Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename=vl42_buildfix.diff --- ulinux/libv4l-4714b31863c5/v4l2-apps/libv4l/libv4lconvert/control/libv4= lcontrol.c 2009-10-18 02:41:39.000000000 +0400 +++ ulinux/libv4l-4714b31863c5/v4l2-apps/libv4l/libv4lconvert/control/libv4= lcontrol.c 2009-10-18 23:01:33.000000000 +0400 @@ -45,6 +45,7 @@ #define V4L2_IN_ST_VFLIP 0x00000020 /* Frames are flipped vertically= */ #endif =20 +#define __u32 uint32_t =20 /* List of cams which need special flags */ static const struct v4lcontrol_flags_info v4lcontrol_flags[] =3D { --MP_//DkgE._H4FCTu3frtEpPm2d-- --Sig_/_KH74=2//Q=/QAPmMuanfir Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.12 (FreeBSD) iEYEARECAAYFAkrbdlkACgkQo9vlj1oadwiDFQCcCxnN534+nNrJZZoEJHzaME9b DksAoJPZiAxasUmkuUb8XIddgMZxyhgn =ziZT -----END PGP SIGNATURE----- --Sig_/_KH74=2//Q=/QAPmMuanfir-- From owner-freebsd-emulation@FreeBSD.ORG Sun Oct 18 20:12:41 2009 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B1DAD1065697 for ; Sun, 18 Oct 2009 20:12:41 +0000 (UTC) (envelope-from nox@jelal.kn-bremen.de) Received: from smtp.kn-bremen.de (gelbbaer.kn-bremen.de [78.46.108.116]) by mx1.freebsd.org (Postfix) with ESMTP id 4C1548FC29 for ; Sun, 18 Oct 2009 20:12:41 +0000 (UTC) Received: by smtp.kn-bremen.de (Postfix, from userid 10) id 6428B1E006F3; Sun, 18 Oct 2009 22:12:40 +0200 (CEST) Received: from triton8.kn-bremen.de (noident@localhost [127.0.0.1]) by triton8.kn-bremen.de (8.14.3/8.14.3) with ESMTP id n9IKACR5052705; Sun, 18 Oct 2009 22:10:12 +0200 (CEST) (envelope-from nox@triton8.kn-bremen.de) Received: (from nox@localhost) by triton8.kn-bremen.de (8.14.3/8.14.3/Submit) id n9IKABEp052704; Sun, 18 Oct 2009 22:10:11 +0200 (CEST) (envelope-from nox) From: Juergen Lock Date: Sun, 18 Oct 2009 22:10:11 +0200 To: Blue Swirl Message-ID: <20091018201011.GA52533@triton8.kn-bremen.de> References: <20091007220549.GA65997@triton8.kn-bremen.de> <20091011221840.GA55502@triton8.kn-bremen.de> <20091012222058.GA43121@triton8.kn-bremen.de> <20091013221932.GA32808@triton8.kn-bremen.de> <20091016223426.GA54110@triton8.kn-bremen.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) Cc: freebsd-emulation@freebsd.org, Toni , Juergen Lock , Aleksej Saushev , qemu-devel@nongnu.org Subject: Re: [Qemu-devel] Re: playing with qemu usermode emulation on FreeBSD... X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Oct 2009 20:12:41 -0000 On Sun, Oct 18, 2009 at 09:26:00PM +0300, Blue Swirl wrote: > On Sat, Oct 17, 2009 at 1:34 AM, Juergen Lock wrote: > > On Wed, Oct 14, 2009 at 12:19:32AM +0200, Juergen Lock wrote: > >> On Tue, Oct 13, 2009 at 12:20:58AM +0200, Juergen Lock wrote: > >> > On Mon, Oct 12, 2009 at 10:55:24PM +0300, Blue Swirl wrote: > >> > > On Mon, Oct 12, 2009 at 1:18 AM, Juergen Lock wrote: > >> > > > On Thu, Oct 08, 2009 at 12:05:49AM +0200, Juergen Lock wrote: > >> > > >> I recently noticed there are x86 bsd-user targets now (yeah I totally > >> > > >> missed those commits...) and now got it working a tiny little bit: > >> > > >> I can run > >> > > >>       qemu-x86_64 -bsd freebsd /rescue/echo foo bar > >> > > >> here on FreeBSD 8/amd64 and it echoes foo bar as expected, but > >> > > >> segfaults afterwards. :)  (in pthread_setcancelstate() invoked from > >> > > >> a guest write() syscall, in case anyone is wondering.)  Other things > >> > > >> I tried either exit with errors or segfault as well, and i386 hosts > >> > > >> probably still don't work at all yet.  (qemu-i386 here on amd64 does > >> > > >> at least something, but probably needs lock_user() treatment for all > >> > > >> kinds of syscalls, I only tried adding that for sysctl so far.) > >> > > >> > >> > > >>  Anyway, here is an emulators/qemu-devel git head snapshot port > >> > > >> update with my current patches (files/patch-bsd-user), feel free to > >> > > >> test/debug/improve: > >> > > >>       http://people.freebsd.org/~nox/qemu/qemu-devel-20091007.patch > >> > > >> (For the folks reading this on the qemu list:  I shall start doing > >> > > >> `proper' patch submissions later, this is more for the FreeBSD folks > >> > > >> and because I was asked to send what I have...) > >> > > > > >> > > > New version at the same place, which now runs FreeBSD/{i386,sparc64} > >> > > > /rescue/echo on FreeBSD/amd64, the FreeBSD/amd64 target now segfaults > >> > > > in pthread_setcancelstate() invoked from the final writev() tho. > >> > > > Oh and I also uploaded the snapshot tarball so others can now actually > >> > > > build the port too... :)  And I have switched to the cpu-exec.c patch > >> > > > posted by Aleksej Saushev on the qemu list and added back amd64 > >> > > > code there. > >> > > > > >> > > >  Here is the bsd-user patch again: > >> > > > >> > > Please add Signed-off-by: line and use 'diff -u' (or preferably git diff). > >> > > > >> > Well I wasn't expecting this diff to be committed just yet anyway, > >> > it's still more a wip version... > >> > > >> > > > +    if (1 /* bsd_type == target_freebsd */) > >> > > > +        regs->rdi = infop->start_stack; > >> > > > >> > > Why the if and comment? > >> > > > >> > > > +        if (1 /* bsd_type == target_freebsd */) { > >> > > > +            regs->u_regs[8] = infop->start_stack; > >> > > > +            regs->u_regs[11] = infop->start_stack; > >> > > > >> > > Same here. > >> > > > >> >  Because bsd_type isn't available at these places in the code but > >> > probably should be checked, I still wanted to fix that.  (Maybe > >> > make it global?) > >> > > >> I still haven't fixed this... > >> > >> > > >         case 0x100: > >> > > > +        /* FreeBSD uses 0x141 for syscalls too */ > >> > > > +        case 0x141: > >> > > > +            if (bsd_type != target_freebsd) > >> > > > +                goto badtrap; > >> > > > >> > > You are now also trapping on case 0x100 if bsd_type != target_freebsd, > >> > > which probably breaks other BSDs. > >> > > > >> >  Right, thats broken, the 0x141 case should come before the 0x100 > >> > here of course. > >> > > >>  ...but this I just fixed, and I added the multiboot.S patch, and > >> fixed the port's cdrom dma disable knob (files/cdrom-dma-patch). > >> (And I added the cpu-exec.c whitspace fix that was already in the > >> patch I posted in the BSD support thread.) > >> > >>  New version at the same place, > >>       http://people.freebsd.org/~nox/qemu/qemu-devel-20091007.patch > >> and I now also made a shar of the patched port: > >>       http://people.freebsd.org/~nox/qemu/qemu-devel-20091007.shar > > > > Updated again, among other things I added basic FreeBSD sysarch(2) > > handling, fixed syscall errno return (I had added code to set the > > carry bit for the x86 target before but the sign of the returned errno > > was still wrong), and I finally fixed the if (1) above (made bsd_type > > global.) > > > >  And, I now can run FreeBSD/amd64 /bin/sh and vim on same! :)  (zsh > > not yet tho.) > > > >  Oh and Toni tested taking FreeBSD/i386's default linker script, > > changing only the load address to 0x60000000 as in qemu's and, > > using that as i386.ld, he now can run qemu-i386 on FreeBSD/i386 with > > simple executables too...  See files/patch-bsd-user-ld in the shar, > > which I also now moved the x86_64.ld patch to that I had talked about > > earlier.  It probably can't be used everywhere as is tho since it has: > >        OUTPUT_FORMAT("elf32-i386-freebsd", "elf32-i386-freebsd", > >                      "elf32-i386-freebsd") > > (and I also don't know if the one currently in the tree has other > > features that are needed at least on Linux, any linker gurus care > > to comment?) > > > >  Here is the rest of the bsd-user patches again (files/patch-bsd-user > > in the shar), if you think they are ready to commit I'm not against it > > anymore :), comments are also welcome of course. > > Thanks, applied. I made up a short commit message. Sorry, my fault, I should have supplied a `proper' one... :/ (sysarch(2) and errno were only the things I fixed since the last iteration, I guess its too late to add the rest now?) In other news... I have made another port update from today's git: http://people.freebsd.org/~nox/qemu/qemu-devel-20091018.patch resp. http://people.freebsd.org/~nox/qemu/qemu-devel-20091018.shar Enjoy, Juergen From owner-freebsd-emulation@FreeBSD.ORG Sun Oct 18 20:30:09 2009 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 65F4F1065676 for ; Sun, 18 Oct 2009 20:30:09 +0000 (UTC) (envelope-from naylor.b.david@gmail.com) Received: from ey-out-2122.google.com (ey-out-2122.google.com [74.125.78.27]) by mx1.freebsd.org (Postfix) with ESMTP id E5BBD8FC0A for ; Sun, 18 Oct 2009 20:30:08 +0000 (UTC) Received: by ey-out-2122.google.com with SMTP id 9so832221eyd.9 for ; Sun, 18 Oct 2009 13:30:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:subject:date :user-agent:cc:references:in-reply-to:mime-version:content-type :content-transfer-encoding:message-id; bh=DA+/fW3mjN928UefMtGwsgxfLsh/3kcZgrG98SbyMhM=; b=i7Hhgz2DHjUGt95AhRCZ60rPb973L//sHIVxx480VurkcTIUnwhRe//g+rUF1gAzwJ bC9JbFacTPnGSY5R7azLdhD9zOz+97xJDKruawtY8uO8s77UTUb01YBPc/21ALCkoPf/ txkGWmb1NIaXhWoJr/zu7P50lcTTHV6Q+OAIw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:date:user-agent:cc:references:in-reply-to :mime-version:content-type:content-transfer-encoding:message-id; b=qBHxY1c5x44MtVwwTGnliU74l0GYiLIWk2waSZK63UzUOJ7g9XwlaP9ml8R/rA25j/ Z38ixdlFw2bIKTw4VX8ZuYBe00dH8q0aTm+TxVe6wB6/XL+QV+9ojeDU+KVJ+SOXk4pb uszYxubNatRxoJNRdgJX/wu5GtlfgBIpAn1yI= Received: by 10.211.130.19 with SMTP id h19mr4532553ebn.54.1255897807881; Sun, 18 Oct 2009 13:30:07 -0700 (PDT) Received: from dragon.dg ([41.0.54.23]) by mx.google.com with ESMTPS id 10sm395411eyz.19.2009.10.18.13.30.06 (version=SSLv3 cipher=RC4-MD5); Sun, 18 Oct 2009 13:30:07 -0700 (PDT) From: David Naylor To: Fredrik Lindberg Date: Sun, 18 Oct 2009 22:30:05 +0200 User-Agent: KMail/1.12.2 (FreeBSD/8.0-RC1; KDE/4.3.2; i386; ; ) References: <200910151950.26620.naylor.b.david@gmail.com> <4ADB515A.4050309@shapeshifter.se> In-Reply-To: <4ADB515A.4050309@shapeshifter.se> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1994853.9U7Iv6TqMT"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200910182230.08620.naylor.b.david@gmail.com> Cc: freebsd-emulation@freebsd.org Subject: Re: VirtualBox: vboxnetflt related problems X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Oct 2009 20:30:09 -0000 --nextPart1994853.9U7Iv6TqMT Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable On Sunday, 18 October 2009 19:33:14 Fredrik Lindberg wrote: > David Naylor wrote: > > Hi, > > > > Thanks for porting VirtualBox, it has proven most useful (no more slow > > RDC). > > > > I've found some problems relating to VirtualBox's bridged networking: > > > > 1) loader doesn't pull in all the dependencies for vboxnetflt (kldload > > does) [missing dependencies: ng_ether] >=20 > I couldn't figure out how properly depend on ng_ether, a simple > MODULE_DEPEND does not work. I guess it's because ng_ether doesn't > declare MODULE_VERSION. ng_ether *should* be loaded by the > explicit kern_kldload, does this not happen on your system? I assume you mean kldload after the system boots. Yes it does. =20 > > 2) even with the dependencies specified in loader.conf vboxnetflt fails > > to initialise on boot [module_register_init: MOD_LOAD (ng_vboxnetflt, > > 0xc0f44fd9, 0xc19bd6a0) error 22] >=20 > There is a known issue where the vboxdrv module (and thus VirtualBox) > sometimes fail to see that vboxnetflt is loaded - is this what you're > seeing? or does vboxnetflt simply not load at all? The module fails to register. As per the message I quoted above: module_register_init: MOD_LOAD (ng_vboxnetflt, 0xc0f44fd9, 0xc19bd6a0) erro= r=20 22 This only happens if loader loads the module. I've never had a problem the= =20 kldload loading the module. =20 > vnoxnetflt should load fine even without ng_ether loaded. The above error message occurs irrespective of ng_ether being loaded. =20 > > 3) bridging doesn't work when connecting to bridge0 or tap0: > > # netstat -w1 -I tap0 > > input (tap0) output > > packets errs bytes packets errs bytes colls > > 0 0 0 0 0 0 0 > > 0 0 0 0 2 151 0 > > ... > > This happen with and without giving tap0 an IP address. >=20 > This is because vboxnetflt uses ng_ether and the interaction between > ng_ether/bridge/tap/vboxnetflt doesn't work. Good to know :-). Is there anyway to communicate directly with the host us= ing=20 a bridged connection? This is not much of a concern for me since I need to= =20 bounce my files through a server (to accommodate windows) but it might be a= =20 concern for others. =20 David --nextPart1994853.9U7Iv6TqMT Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.13 (FreeBSD) iEYEABECAAYFAkrbetAACgkQUaaFgP9pFrJgkgCfQ9MT0VaGBICP2xON+MelLC5O QKAAmwcOCPiwanxczD25agC/KTo4cw5p =oGR4 -----END PGP SIGNATURE----- --nextPart1994853.9U7Iv6TqMT-- From owner-freebsd-emulation@FreeBSD.ORG Sun Oct 18 20:32:17 2009 Return-Path: Delivered-To: freebsd-emulation@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7CD051065743 for ; Sun, 18 Oct 2009 20:32:17 +0000 (UTC) (envelope-from nox@jelal.kn-bremen.de) Received: from smtp.kn-bremen.de (gelbbaer.kn-bremen.de [78.46.108.116]) by mx1.freebsd.org (Postfix) with ESMTP id 0B1258FC0C for ; Sun, 18 Oct 2009 20:32:16 +0000 (UTC) Received: by smtp.kn-bremen.de (Postfix, from userid 10) id 0B31E1E006F4; Sun, 18 Oct 2009 22:32:15 +0200 (CEST) Received: from triton8.kn-bremen.de (noident@localhost [127.0.0.1]) by triton8.kn-bremen.de (8.14.3/8.14.3) with ESMTP id n9IKPjaZ053430; Sun, 18 Oct 2009 22:25:45 +0200 (CEST) (envelope-from nox@triton8.kn-bremen.de) Received: (from nox@localhost) by triton8.kn-bremen.de (8.14.3/8.14.3/Submit) id n9IKPj5a053429; Sun, 18 Oct 2009 22:25:45 +0200 (CEST) (envelope-from nox) From: Juergen Lock Date: Sun, 18 Oct 2009 22:25:45 +0200 To: Boris Samorodov Message-ID: <20091018202545.GA53402@triton8.kn-bremen.de> References: <20091017154404.GA80599@triton8.kn-bremen.de> <99413628@ipt.ru> <20091018174157.GB99191@triton8.kn-bremen.de> <99401887@ipt.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <99401887@ipt.ru> User-Agent: Mutt/1.5.20 (2009-06-14) Cc: freebsd-emulation@FreeBSD.org, Juergen Lock Subject: Re: how to test for linux base version? (googleearth) X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Oct 2009 20:32:17 -0000 On Mon, Oct 19, 2009 at 12:13:20AM +0400, Boris Samorodov wrote: > Juergen Lock writes: > > On Sun, Oct 18, 2009 at 02:30:43PM +0400, Boris Samorodov wrote: > >> Juergen Lock writes: > >> > >> > I just got reminded to add a linux base version check to astro/google-earth > >> > (It now needs recent linux libstdc++.so.6 with GLIBCXX_3.4.9 that only > >> > is in f9 or f10, you can do > >> > >> First of, I'd recommend leaving f9 alone (I'm going to deprecate all > >> linux base ports except fc4 and f10 soon). > >> > > Ah Ok. (Does f10 work well enough on 7.x yet?) > > Well, there is no choice anyway. We do have fc4 and f10 infractructure > ports. I think it's wise to use apropriate base ports. I don't think > there is any difference between f9 and f10 linux base ports. > Oh I was more thinking of f8 since we have nonbase ports for that too... > If someone shows a difference (i.e. possibility to use f9 but not > f10 linux base port under 7.x I may change my mind). > Ok so `someone' would need to test this... > >> > objdump -T /compat/linux/usr/lib/libstdc++.so.6 |grep 'ABS.*GLIBCXX' > >> > to check) - and was wondering how to best check for that in a port. > >> > This is what I came up with so far: > >> > > >> > Index: Makefile > >> > =================================================================== > >> > RCS file: /home/pcvs/ports/astro/google-earth/Makefile,v > >> > retrieving revision 1.35 > >> > diff -u -p -r1.35 Makefile > >> > --- Makefile 24 Sep 2009 21:01:36 -0000 1.35 > >> > +++ Makefile 17 Oct 2009 15:32:22 -0000 > >> > @@ -38,6 +38,14 @@ RUN_DEPENDS+= ${LINUXBASE}/usr/lib/libGL > >> > USE_LINUX_APPS+= dri > >> > .endif > >> > > >> > +.if (${OSVERSION} < 800076 && \ > >> > + !defined(OVERRIDE_LINUX_BASE_PORT)) || \ > >> > + (defined(OVERRIDE_LINUX_BASE_PORT) && \ > >> > + !(${OVERRIDE_LINUX_BASE_PORT} == f10) || \ > >> > + ${OVERRIDE_LINUX_BASE_PORT} == f9) > >> > +IGNORE= needs at least f9 Linux base > >> > +.endif > >> > + > >> > do-extract: > >> > @${MKDIR} ${WRKSRC} > >> > @${CP} ${DISTDIR}/${DIST_SUBDIR}/${DISTFILES} ${WRKSRC} > >> > > >> > Anyone have a better idea? :) > >> > >> I'm not sure if it's better but just an other idea: > >> ----- > >> .if ${OSVERSION}<7000XX /*** XX should be find out ***/ > >> IGNORE FreeBSD>=7.X is needed with Linux emulation 2.6.x. > >> .elif ${OSVERSION}<800076 && \ > >> ! defined (OVERRIDE_LINUX_NONBASE_PORTS) || > >> ! (${OVERRIDE_LINUX_NONBASE_PORTS} == f10) > >> IGNORE= you need to use non-default linux ports (define OVERRIDE_LINUX_BASE_PORT=f10 and OVERRIDE_LINUX_NONBASE_PORTS=f10) > >> .endif > >> ----- > > > > In the meantime I found emulators/linux-systemsimcell does something > > similar, and it uses ${OSVERSION}<700055 for the first check. Does > > that look alright? (seems to be the last OSVERSION before 7.0-R from > > looking at > > http://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/book.html#FREEBSD-VERSIONS > > ) > > We discussed those checks with the maintainer and his checks were good > (for his software). I can't say more than that, sorry. Ok. Maybe I should just commit it like that, I guess it's kinda unlikely someone who's running a FreeBSD _desktop_ still uses something as old as 7.0 anyway. Thanx, Juergen From owner-freebsd-emulation@FreeBSD.ORG Sun Oct 18 20:45:00 2009 Return-Path: Delivered-To: freebsd-emulation@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1E6A41065672 for ; Sun, 18 Oct 2009 20:45:00 +0000 (UTC) (envelope-from bsam@ipt.ru) Received: from services.ipt.ru (services.ipt.ru [194.62.233.110]) by mx1.freebsd.org (Postfix) with ESMTP id CC7078FC18 for ; Sun, 18 Oct 2009 20:44:59 +0000 (UTC) Received: from [85.173.16.144] (helo=izar) by services.ipt.ru with esmtpa (Exim 4.54 (FreeBSD)) id 1Mzccc-000DZS-Nc; Mon, 19 Oct 2009 00:44:58 +0400 To: Juergen Lock References: <20091017154404.GA80599@triton8.kn-bremen.de> <99413628@ipt.ru> <20091018174157.GB99191@triton8.kn-bremen.de> <99401887@ipt.ru> <20091018202545.GA53402@triton8.kn-bremen.de> From: Boris Samorodov Date: Mon, 19 Oct 2009 00:47:19 +0400 In-Reply-To: <20091018202545.GA53402@triton8.kn-bremen.de> (Juergen Lock's message of "Sun\, 18 Oct 2009 22\:25\:45 +0200") Message-ID: <33329848@ipt.ru> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: freebsd-emulation@FreeBSD.org Subject: Re: how to test for linux base version? (googleearth) X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Oct 2009 20:45:00 -0000 Juergen Lock writes: > On Mon, Oct 19, 2009 at 12:13:20AM +0400, Boris Samorodov wrote: >> Juergen Lock writes: >> > On Sun, Oct 18, 2009 at 02:30:43PM +0400, Boris Samorodov wrote: >> >> Juergen Lock writes: >> >> >> >> > I just got reminded to add a linux base version check to astro/google-earth >> >> > (It now needs recent linux libstdc++.so.6 with GLIBCXX_3.4.9 that only >> >> > is in f9 or f10, you can do >> >> >> >> First of, I'd recommend leaving f9 alone (I'm going to deprecate all >> >> linux base ports except fc4 and f10 soon). >> >> >> > Ah Ok. (Does f10 work well enough on 7.x yet?) >> >> Well, there is no choice anyway. We do have fc4 and f10 infractructure >> ports. I think it's wise to use apropriate base ports. I don't think >> there is any difference between f9 and f10 linux base ports. >> > Oh I was more thinking of f8 since we have nonbase ports for that too... Hm, but it were you who said that only f9 and f10 base ports had libstdc++.so.6 with apropriate symbols. ;-) About f8 ports. Almost all current linux ports play well with f10 ports at 7.2, 8.0 and 9-CURRENT. Only one exception I'm aware is acroread9 (a linux syscall should be implemented). If those ports (f8) are usefull for 7.0 and 7.1 (6.x doesn't have apropriate kernel sources) then they should stay until 7.0 and 7.1 are EOLed. -- WBR, bsam From owner-freebsd-emulation@FreeBSD.ORG Sun Oct 18 21:04:36 2009 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C2FD0106566B for ; Sun, 18 Oct 2009 21:04:36 +0000 (UTC) (envelope-from nox@jelal.kn-bremen.de) Received: from smtp.kn-bremen.de (gelbbaer.kn-bremen.de [78.46.108.116]) by mx1.freebsd.org (Postfix) with ESMTP id 8371C8FC0A for ; Sun, 18 Oct 2009 21:04:36 +0000 (UTC) Received: by smtp.kn-bremen.de (Postfix, from userid 10) id 67F2E1E006F3; Sun, 18 Oct 2009 23:04:35 +0200 (CEST) Received: from triton8.kn-bremen.de (noident@localhost [127.0.0.1]) by triton8.kn-bremen.de (8.14.3/8.14.3) with ESMTP id n9IL3C0t054642; Sun, 18 Oct 2009 23:03:12 +0200 (CEST) (envelope-from nox@triton8.kn-bremen.de) Received: (from nox@localhost) by triton8.kn-bremen.de (8.14.3/8.14.3/Submit) id n9IL36HK054641; Sun, 18 Oct 2009 23:03:06 +0200 (CEST) (envelope-from nox) Date: Sun, 18 Oct 2009 23:03:06 +0200 (CEST) From: Juergen Lock Message-Id: <200910182103.n9IL36HK054641@triton8.kn-bremen.de> To: fli@shapeshifter.se X-Newsgroups: local.list.freebsd.emulation In-Reply-To: <4ADB515A.4050309@shapeshifter.se> References: <200910151950.26620.naylor.b.david@gmail.com> Organization: home Cc: freebsd-emulation@freebsd.org, David Naylor Subject: Re: VirtualBox: vboxnetflt related problems X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Oct 2009 21:04:36 -0000 In article <4ADB515A.4050309@shapeshifter.se> you write: >David Naylor wrote: >> Hi, >> >> Thanks for porting VirtualBox, it has proven most useful (no more slow RDC). >> >> I've found some problems relating to VirtualBox's bridged networking: >> >> 1) loader doesn't pull in all the dependencies for vboxnetflt (kldload >> does) [missing dependencies: ng_ether] > >I couldn't figure out how properly depend on ng_ether, a simple >MODULE_DEPEND does not work. I guess it's because ng_ether doesn't >declare MODULE_VERSION. ng_ether *should* be loaded by the >explicit kern_kldload, does this not happen on your system? > >> >> 2) even with the dependencies specified in loader.conf vboxnetflt fails to >> initialise on boot [module_register_init: MOD_LOAD (ng_vboxnetflt, 0xc0f44fd9, >> 0xc19bd6a0) error 22] > >There is a known issue where the vboxdrv module (and thus VirtualBox) >sometimes fail to see that vboxnetflt is loaded - is this what you're >seeing? or does vboxnetflt simply not load at all? > >vnoxnetflt should load fine even without ng_ether loaded. > >> >> 3) bridging doesn't work when connecting to bridge0 or tap0: >> # netstat -w1 -I tap0 >> input (tap0) output >> packets errs bytes packets errs bytes colls >> 0 0 0 0 0 0 0 >> 0 0 0 0 2 151 0 >> ... >> This happen with and without giving tap0 an IP address. > >This is because vboxnetflt uses ng_ether and the interaction between >ng_ether/bridge/tap/vboxnetflt doesn't work. Hmm, would it make sense to add back the tuntap code as a special case for when someone selects a tap interface for `bridged' networking? I haven't looked if thats even doable easily enough with all the conditional compilation going on tho. (VBOX_WITH_NETFLT...) Cheers, Juergen From owner-freebsd-emulation@FreeBSD.ORG Sun Oct 18 21:09:30 2009 Return-Path: Delivered-To: freebsd-emulation@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CF067106566B for ; Sun, 18 Oct 2009 21:09:30 +0000 (UTC) (envelope-from nox@jelal.kn-bremen.de) Received: from smtp.kn-bremen.de (gelbbaer.kn-bremen.de [78.46.108.116]) by mx1.freebsd.org (Postfix) with ESMTP id 8BFCA8FC16 for ; Sun, 18 Oct 2009 21:09:30 +0000 (UTC) Received: by smtp.kn-bremen.de (Postfix, from userid 10) id 7018E1E006F3; Sun, 18 Oct 2009 23:09:29 +0200 (CEST) Received: from triton8.kn-bremen.de (noident@localhost [127.0.0.1]) by triton8.kn-bremen.de (8.14.3/8.14.3) with ESMTP id n9IL8QFN055109; Sun, 18 Oct 2009 23:08:26 +0200 (CEST) (envelope-from nox@triton8.kn-bremen.de) Received: (from nox@localhost) by triton8.kn-bremen.de (8.14.3/8.14.3/Submit) id n9IL8Q0r055108; Sun, 18 Oct 2009 23:08:26 +0200 (CEST) (envelope-from nox) From: Juergen Lock Date: Sun, 18 Oct 2009 23:08:21 +0200 To: Boris Samorodov Message-ID: <20091018210821.GA55095@triton8.kn-bremen.de> References: <20091017154404.GA80599@triton8.kn-bremen.de> <99413628@ipt.ru> <20091018174157.GB99191@triton8.kn-bremen.de> <99401887@ipt.ru> <20091018202545.GA53402@triton8.kn-bremen.de> <33329848@ipt.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <33329848@ipt.ru> User-Agent: Mutt/1.5.20 (2009-06-14) Cc: freebsd-emulation@FreeBSD.org, Juergen Lock Subject: Re: how to test for linux base version? (googleearth) X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Oct 2009 21:09:30 -0000 On Mon, Oct 19, 2009 at 12:47:19AM +0400, Boris Samorodov wrote: > Juergen Lock writes: > > On Mon, Oct 19, 2009 at 12:13:20AM +0400, Boris Samorodov wrote: > >> Juergen Lock writes: > >> > On Sun, Oct 18, 2009 at 02:30:43PM +0400, Boris Samorodov wrote: > >> >> Juergen Lock writes: > >> >> > >> >> > I just got reminded to add a linux base version check to astro/google-earth > >> >> > (It now needs recent linux libstdc++.so.6 with GLIBCXX_3.4.9 that only > >> >> > is in f9 or f10, you can do > >> >> > >> >> First of, I'd recommend leaving f9 alone (I'm going to deprecate all > >> >> linux base ports except fc4 and f10 soon). > >> >> > >> > Ah Ok. (Does f10 work well enough on 7.x yet?) > >> > >> Well, there is no choice anyway. We do have fc4 and f10 infractructure > >> ports. I think it's wise to use apropriate base ports. I don't think > >> there is any difference between f9 and f10 linux base ports. > >> > > Oh I was more thinking of f8 since we have nonbase ports for that too... > > Hm, but it were you who said that only f9 and f10 base ports had > libstdc++.so.6 with apropriate symbols. ;-) > Oh yeah, that comment was meant more in general, not for this specific port. > About f8 ports. Almost all current linux ports play well with f10 > ports at 7.2, 8.0 and 9-CURRENT. Only one exception I'm aware is > acroread9 (a linux syscall should be implemented). If those ports > (f8) are usefull for 7.0 and 7.1 (6.x doesn't have apropriate > kernel sources) then they should stay until 7.0 and 7.1 are EOLed. Ok. Cheers, Juergen From owner-freebsd-emulation@FreeBSD.ORG Mon Oct 19 01:22:48 2009 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 09965106566B for ; Mon, 19 Oct 2009 01:22:48 +0000 (UTC) (envelope-from hselasky@freebsd.org) Received: from swip.net (mailfe06.swip.net [212.247.154.161]) by mx1.freebsd.org (Postfix) with ESMTP id 91DC48FC13 for ; Mon, 19 Oct 2009 01:22:47 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=UVsXOa8ue38A:10 a=MnI1ikcADjEx7bvsp0jZvQ==:17 a=3y1cGK-7_mqjH7LiAcoA:9 a=UCn6mYIArn0Dsx676SAOgG9mv-EA:4 Received: from [188.126.201.140] (account mc467741@c2i.net HELO laptop.adsl.tele2.no) by mailfe06.swip.net (CommuniGate Pro SMTP 5.2.16) with ESMTPA id 1311606417; Mon, 19 Oct 2009 02:22:44 +0200 Received-SPF: softfail receiver=mailfe06.swip.net; client-ip=188.126.201.140; envelope-from=hselasky@freebsd.org From: Hans Petter Selasky To: Ilya Bakulin Date: Mon, 19 Oct 2009 02:23:44 +0200 User-Agent: KMail/1.11.4 (FreeBSD/9.0-CURRENT; KDE/4.2.4; i386; ; ) References: <20091019001101.31c22fad@kibab-nb.kibab.com> In-Reply-To: <20091019001101.31c22fad@kibab-nb.kibab.com> X-Face: (%:6u[ldzJ`0qjD7sCkfdMmD*RxpOwEEQ+KWt[{J#x6ow~JO:,zwp.(t; @Aq :4:&nFCgDb8[3oIeTb^'",;u{5{}C9>"PuY\)!=#\u9SSM-nz8+SR~B\!qBv MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200910190223.45229.hselasky@freebsd.org> Cc: freebsd-emulation@freebsd.org Subject: Re: USB webcam++ support for FreeBSD-8-current is soon here 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, 19 Oct 2009 01:22:48 -0000 On Sunday 18 October 2009 22:11:01 Ilya Bakulin wrote: > Is there any way to make Skype work with Webcam (as I understand, it > requires /dev/video0 device to be present?) When skype links with libv4l like the rest of the Linux V4L applications nowadays, it will work given some minor changes I think. NOTE: if you try to build KDE4(network) after you installed my libv4l, then KDE4 will start using libv4l instead of /dev/video0. It will break a couple of times, but should be easy to fix. Mostly I needed to add libv4lxdrivers.so to the installed libv4l .pc files. Thanks for your patch. I will forward it. --HPS From owner-freebsd-emulation@FreeBSD.ORG Mon Oct 19 02:33:57 2009 Return-Path: Delivered-To: freebsd-emulation@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1199510656B9; Mon, 19 Oct 2009 02:33:57 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id DD14A8FC16; Mon, 19 Oct 2009 02:33:56 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n9J2XuHd088475; Mon, 19 Oct 2009 02:33:56 GMT (envelope-from linimon@freefall.freebsd.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n9J2XuLq088471; Mon, 19 Oct 2009 02:33:56 GMT (envelope-from linimon) Date: Mon, 19 Oct 2009 02:33:56 GMT Message-Id: <200910190233.n9J2XuLq088471@freefall.freebsd.org> To: linimon@FreeBSD.org, freebsd-amd64@FreeBSD.org, freebsd-emulation@FreeBSD.org From: linimon@FreeBSD.org Cc: Subject: Re: kern/139423: [parallels] Networking does not work on amd64 guest on Parallels Desktop 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, 19 Oct 2009 02:33:57 -0000 Old Synopsis: Networking does not work on amd64 guest on Parallels Desktop New Synopsis: [parallels] Networking does not work on amd64 guest on Parallels Desktop Responsible-Changed-From-To: freebsd-amd64->freebsd-emulation Responsible-Changed-By: linimon Responsible-Changed-When: Mon Oct 19 02:33:21 UTC 2009 Responsible-Changed-Why: reclassify. http://www.freebsd.org/cgi/query-pr.cgi?pr=139423 From owner-freebsd-emulation@FreeBSD.ORG Mon Oct 19 05:10:12 2009 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1D92C106566C for ; Mon, 19 Oct 2009 05:10:12 +0000 (UTC) (envelope-from fli@shapeshifter.se) Received: from mx1.h3q.net (mx1.h3q.net [IPv6:2001:16d8:ffe5:1::f1]) by mx1.freebsd.org (Postfix) with ESMTP id D68568FC15 for ; Mon, 19 Oct 2009 05:10:11 +0000 (UTC) Received: by mx1.h3q.net (Postfix, from userid 80) id 9FE9133D97; Mon, 19 Oct 2009 07:10:10 +0200 (CEST) To: Juergen Lock MIME-Version: 1.0 Date: Mon, 19 Oct 2009 07:10:10 +0200 From: Fredrik Lindberg In-Reply-To: <200910182103.n9IL36HK054641@triton8.kn-bremen.de> References: <200910151950.26620.naylor.b.david@gmail.com> <200910182103.n9IL36HK054641@triton8.kn-bremen.de> Message-ID: <9ffa951df1394cfafab170773a1c9b8d@localhost> X-Sender: fli@shapeshifter.se User-Agent: RoundCube Webmail/0.3-stable Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Cc: freebsd-emulation@freebsd.org, David Naylor Subject: Re: VirtualBox: vboxnetflt related problems 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, 19 Oct 2009 05:10:12 -0000 On Sun, 18 Oct 2009 23:03:06 +0200 (CEST), Juergen Lock wrote: > In article <4ADB515A.4050309@shapeshifter.se> you write: >>David Naylor wrote: >>> >>> 3) bridging doesn't work when connecting to bridge0 or tap0: >>> # netstat -w1 -I tap0 >>> input (tap0) output >>> packets errs bytes packets errs bytes colls >>> 0 0 0 0 0 0 0 >>> 0 0 0 0 2 151 0 >>> ... >>> This happen with and without giving tap0 an IP address. >> >>This is because vboxnetflt uses ng_ether and the interaction between >>ng_ether/bridge/tap/vboxnetflt doesn't work. > > Hmm, would it make sense to add back the tuntap code as a special > case for when someone selects a tap interface for `bridged' > networking? > > I haven't looked if thats even doable easily enough with all the > conditional compilation going on tho. (VBOX_WITH_NETFLT...) > Yes, the tuntap stuff and the vboxnetflt stuff seemed to both be controlled by VBOX_WITH_NETFLT which makes life difficult :) I think the bridge case might be fixable, there are explicit calls to the bridge code inside ng_ether, but somewhere, something goes wrong. Briefly looking at if_tap.c, I see that it calls ether_attach so ng_ether *should* pick up frames from it - I need to look at this further. Fredrik From owner-freebsd-emulation@FreeBSD.ORG Mon Oct 19 11:06:51 2009 Return-Path: Delivered-To: freebsd-emulation@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 653A0106566C for ; Mon, 19 Oct 2009 11:06:51 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 3A32D8FC22 for ; Mon, 19 Oct 2009 11:06:51 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n9JB6ppp063410 for ; Mon, 19 Oct 2009 11:06:51 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n9JB6owD063408 for freebsd-emulation@FreeBSD.org; Mon, 19 Oct 2009 11:06:50 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 19 Oct 2009 11:06:50 GMT Message-Id: <200910191106.n9JB6owD063408@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-emulation@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-emulation@FreeBSD.org 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, 19 Oct 2009 11:06:51 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o kern/139423 emulation [parallels] Networking does not work on amd64 guest on o kern/138944 emulation [parallels] [regression] Parallels no longer works in o kern/138880 emulation [linux] munmap segfaults after linux_mmap2 stresstest o ports/137332 emulation add caution messages to some adobe products f ports/136321 emulation x11-toolkits/linux-pango: please update linux based po o ports/136229 emulation [linux] certain linux apps look for libraries using a o ports/135337 emulation [PATCH] emulators/linux_base-f10: incorrect bash usage f ports/135322 emulation Port graphics/linux_dri has incorrect packaging list c o kern/130724 emulation [linprocfs] [patch] cpuinfo in linprocfs is dated, cau o kern/129169 emulation [linux] [patch] Linux Emulation ENOTCONN error using n f ports/127018 emulation Linuxulator incapable of using FreeBSD's LDAP environm o kern/126232 emulation [linux] Linux ioctl TCGETS (0x5401) always fails o kern/97326 emulation [linux] file descriptor leakage in linux emulation o kern/73777 emulation [linux] [patch] linux emulation: root dir special hand a kern/72920 emulation [linux]: path "prefixing" is not done on unix domain s o kern/56451 emulation [linprocfs] /compat/linux/proc/cpuinfo gives wrong CPU o kern/41543 emulation [patch] [request] easier wine/w23 support o kern/39201 emulation [linux] [patch] ptrace(2) and rfork(RFLINUXTHPN) confu o kern/29698 emulation [linux] [patch] linux ipcs doesn'work o kern/21463 emulation [linux] Linux compatability mode should not allow setu o kern/11165 emulation [ibcs2] IBCS2 doesn't work correctly with PID_MAX 9999 21 problems total. From owner-freebsd-emulation@FreeBSD.ORG Mon Oct 19 18:40:05 2009 Return-Path: Delivered-To: freebsd-emulation@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 634AF1065676 for ; Mon, 19 Oct 2009 18:40:05 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 3951E8FC1B for ; Mon, 19 Oct 2009 18:40:05 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n9JIe52L056171 for ; Mon, 19 Oct 2009 18:40:05 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n9JIe5Og056170; Mon, 19 Oct 2009 18:40:05 GMT (envelope-from gnats) Date: Mon, 19 Oct 2009 18:40:05 GMT Message-Id: <200910191840.n9JIe5Og056170@freefall.freebsd.org> To: freebsd-emulation@FreeBSD.org From: David Evans Cc: Subject: Re: kern/138944: [parallels] [regression] Parallels no longer works in FreeBSD 8 Beta X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: David Evans List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Oct 2009 18:40:05 -0000 The following reply was made to PR kern/138944; it has been noted by GNATS. From: David Evans To: bug-followup@FreeBSD.org, charlie@begeistert.org Cc: Subject: Re: kern/138944: [parallels] [regression] Parallels no longer works in FreeBSD 8 Beta Date: Mon, 19 Oct 2009 19:04:34 +0100 What version of Parallels are you using? I find 8-RC1 i386 is working fine on Parallels 4.0 Build 3846 for Mac OS X Identical source compiled for amd64 also mostly works, but ifconfig leads to a crash. See my bug report kern/139423 From owner-freebsd-emulation@FreeBSD.ORG Thu Oct 22 05:20:02 2009 Return-Path: Delivered-To: freebsd-emulation@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A5524106566C for ; Thu, 22 Oct 2009 05:20:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 93DA78FC0C for ; Thu, 22 Oct 2009 05:20:02 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n9M5K2ug092919 for ; Thu, 22 Oct 2009 05:20:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n9M5K2oM092918; Thu, 22 Oct 2009 05:20:02 GMT (envelope-from gnats) Date: Thu, 22 Oct 2009 05:20:02 GMT Message-Id: <200910220520.n9M5K2oM092918@freefall.freebsd.org> To: freebsd-emulation@FreeBSD.org From: Alexander Best Cc: Subject: Re: kern/97326: [linux] file descriptor leakage in linux emulation X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Alexander Best List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Oct 2009 05:20:02 -0000 The following reply was made to PR kern/97326; it has been noted by GNATS. From: Alexander Best To: Cc: Subject: Re: kern/97326: [linux] file descriptor leakage in linux emulation Date: Thu, 22 Oct 2009 07:12:52 +0200 (CEST) as reported by Marcin Cieslak and Vladimir Grebenschikov this PR was fixed in 1.138.2.1. linux binaries no longer leak descriptors. here's an example from running unreal tournament 2004. `while sleep 3; do lsof|grep ut2004|wc; done` reports: 0 0 0 28 247 2935 134 1201 15701 171 1534 20261 189 1697 23146 603 5523 74247 603 5523 74247 603 5523 74247 603 5523 74247 609 5577 74982 609 5577 74982 609 5577 74982 609 5577 74982 609 5577 74982 609 5577 74982 609 5577 74982 609 5577 74982 609 5577 74982 609 5577 74982 609 5577 74982 609 5577 74982 609 5577 74982 99 930 10920 0 0 0 cheers. alex From owner-freebsd-emulation@FreeBSD.ORG Thu Oct 22 14:23:03 2009 Return-Path: Delivered-To: freebsd-emulation@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 38436106568B; Thu, 22 Oct 2009 14:23:03 +0000 (UTC) (envelope-from gavin@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 0F2028FC1D; Thu, 22 Oct 2009 14:23:03 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n9MEN24D000253; Thu, 22 Oct 2009 14:23:02 GMT (envelope-from gavin@freefall.freebsd.org) Received: (from gavin@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n9MEN2ZL000249; Thu, 22 Oct 2009 14:23:02 GMT (envelope-from gavin) Date: Thu, 22 Oct 2009 14:23:02 GMT Message-Id: <200910221423.n9MEN2ZL000249@freefall.freebsd.org> To: bakul@bitblocks.com, gavin@FreeBSD.org, freebsd-emulation@FreeBSD.org From: gavin@FreeBSD.org Cc: Subject: Re: kern/97326: [linux] file descriptor leakage in linux emulation X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Oct 2009 14:23:03 -0000 Synopsis: [linux] file descriptor leakage in linux emulation State-Changed-From-To: open->closed State-Changed-By: gavin State-Changed-When: Thu Oct 22 14:22:36 UTC 2009 State-Changed-Why: >From the audit trail, it looks like this is now resolved. http://www.freebsd.org/cgi/query-pr.cgi?pr=97326 From owner-freebsd-emulation@FreeBSD.ORG Fri Oct 23 19:23:11 2009 Return-Path: Delivered-To: emulation@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2AD7B1065693 for ; Fri, 23 Oct 2009 19:23:11 +0000 (UTC) (envelope-from yuri@rawbw.com) Received: from shell.rawbw.com (shell.rawbw.com [198.144.192.42]) by mx1.freebsd.org (Postfix) with ESMTP id 010F68FC18 for ; Fri, 23 Oct 2009 19:23:10 +0000 (UTC) Received: from eagle.syrec.org (c-24-6-221-126.hsd1.ca.comcast.net [24.6.221.126]) (authenticated bits=0) by shell.rawbw.com (8.13.6/8.13.6) with ESMTP id n9NIw68R012915 for ; Fri, 23 Oct 2009 11:58:06 -0700 (PDT) Message-ID: <4AE1FCBD.3040307@rawbw.com> Date: Fri, 23 Oct 2009 11:58:05 -0700 From: Yuri User-Agent: Thunderbird 2.0.0.23 (X11/20090824) MIME-Version: 1.0 To: emulation@FreeBSD.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: Can't start VirtualBox: COM server problem? X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: yuri@rawbw.com List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Oct 2009 19:23:11 -0000 When I run: cat /dev/ad1s1 | VBoxManage stdin OutPutFile.vdi 21474836480 on 80-RC2 I get this output: ERROR: failed to create the VirtualBox object! ERROR: code NS_ERROR_ABORT (0x80004004) - Operation aborted (extended info not available) Most likely, the VirtualBox COM server is not running or failed to start. No processes with name VirtualBox are running. What could be the problem? Yuri