From owner-freebsd-emulation@FreeBSD.ORG Mon Jun 2 02:23:10 2008 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 B35671065672 for ; Mon, 2 Jun 2008 02:23:10 +0000 (UTC) (envelope-from novembre@gmail.com) Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.251]) by mx1.freebsd.org (Postfix) with ESMTP id 60BDF8FC21 for ; Mon, 2 Jun 2008 02:23:10 +0000 (UTC) (envelope-from novembre@gmail.com) Received: by an-out-0708.google.com with SMTP id b33so749640ana.13 for ; Sun, 01 Jun 2008 19:23:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type; bh=a2LHzFTqt4Hg06WzrIbZTZ2r3HkL3lJbJ1HNRL0Yf8Q=; b=Q/nh09Dcrkk8ccxG4OhTWc5dIrC65bbJSvPvg7+mR38Nci0hYvNNelhyIKSE72iZM/3NL87rJpkAz+aeeJQqYHOgAyTsZh1BsMjHg3QzIGuxfvWel93Rb0iKoycYAhCUXAFbtuJVHMCtxYw5t29O8qP5HNmLFzeq4a5PP7C4NGs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=MbEsloUrvOFVgwdyaoB7KLrcD95v4EmGavpfOCx0eoEFOi51sWX9kbUQXc10Hw8t4DH1TnAmJ5N4iW41kAT8+W2jXLomGPwo+A0rRjQ9OXMQWFKBV7FCt3/1SOaborMiJjxFC6G6FzpdwgnXB/PO5qbNz9T+f9gMYoM8bXhG0g8= Received: by 10.100.14.2 with SMTP id 2mr13839068ann.67.1212371914667; Sun, 01 Jun 2008 18:58:34 -0700 (PDT) Received: by 10.100.13.7 with HTTP; Sun, 1 Jun 2008 18:58:34 -0700 (PDT) Message-ID: <3b47caa90806011858y69b04edap806f34712c346b52@mail.gmail.com> Date: Sun, 1 Jun 2008 20:58:34 -0500 From: Novembre To: freebsd-emulation@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: linux 2.6 on 7.0-RELEASE 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, 02 Jun 2008 02:23:10 -0000 Hi, I know that 2.4 is the default Linux kernel to use on 7.0-RELEASE, but is it possible to use the Linux 2.6 compatibility layer or the changes needed to run it only exists in 7.0-STABLE? I couldn't find any information in the wiki page ( http://wiki.freebsd.org/linux-kernel/ ) --- it was last updated in September 2007. Thanks a lot From owner-freebsd-emulation@FreeBSD.ORG Mon Jun 2 07:31:53 2008 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 B0DA81065678; Mon, 2 Jun 2008 07:31:53 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: from palm.hoeg.nl (mx0.hoeg.nl [IPv6:2001:610:652::211]) by mx1.freebsd.org (Postfix) with ESMTP id 4C2618FC12; Mon, 2 Jun 2008 07:31:53 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: by palm.hoeg.nl (Postfix, from userid 1000) id 6D8A51CDB9; Mon, 2 Jun 2008 09:31:52 +0200 (CEST) Date: Mon, 2 Jun 2008 09:31:52 +0200 From: Ed Schouten To: freebsd-emulation@FreeBSD.org Message-ID: <20080602073152.GO64397@hoeg.nl> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="gS/sOEqITpbrYRmu" Content-Disposition: inline User-Agent: Mutt/1.5.18 (2008-05-17) Cc: philip@FreeBSD.org Subject: Linux major/minor conversion not entirely correct 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, 02 Jun 2008 07:31:53 -0000 --gS/sOEqITpbrYRmu Content-Type: multipart/mixed; boundary="VjpKO6h983+pAmpQ" Content-Disposition: inline --VjpKO6h983+pAmpQ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello everyone, The last couple of months I've been working on redesigning FreeBSD's TTY layer. This is all going quite good. Too good, actually. Last week I've been toying around with getting sshd working inside a Linux jail, which seems to work quite nicely right now. I've made some changes to our Linux compat layer that could already get (partially) merged back to SVN. The Linux compat layer generates fake major/minor numbers for certain devices, because Linux still depends on that information a lot (yuck). I've discovered that our Linux compat layer returns the same major/minor pair for all nodes in /dev/pts, but doesn't do this consistently either. We'd better push the conversion down into linux_driver_get_major_minor(), to make sure the numbers always get converted. We should also make sure we hand out unique numbers. The patch also contains a change I made to support the new DTYPE_PTS (pseudo-terminal master device). This part of the diff should be ignored. I've just added it for completeness. Does anyone mind if I commit this patch soonish? --=20 Ed Schouten WWW: http://80386.nl/ --VjpKO6h983+pAmpQ Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="linux-tty.diff" Content-Transfer-Encoding: quoted-printable --- sys/compat/linux/linux_stats.c +++ sys/compat/linux/linux_stats.c @@ -44,6 +44,7 @@ #include #include #include +#include #include #include #include @@ -109,8 +110,17 @@ if (fp->f_vnode !=3D NULL && fp->f_vnode->v_un.vu_cdev !=3D NULL && linux_driver_get_major_minor(fp->f_vnode->v_un.vu_cdev->si_name, - &major, &minor) =3D=3D 0) + &major, &minor) =3D=3D 0) { buf->st_rdev =3D (major << 8 | minor); + } else if (fp->f_type =3D=3D DTYPE_PTS) { + struct tty *tp =3D fp->f_data; + + /* Convert the numbers for the slave device */ + if (linux_driver_get_major_minor(tp->t_dev->si_name, + &major, &minor) =3D=3D 0) { + buf->st_rdev =3D (major << 8 | minor); + } + } fdrop(fp, td); } =20 @@ -178,19 +188,8 @@ #endif =20 error =3D kern_stat(td, path, UIO_SYSSPACE, &buf); - if (!error) { - if (strlen(path) > strlen("/dev/pts/") && - !strncmp(path, "/dev/pts/", strlen("/dev/pts/")) && - path[9] >=3D '0' && path[9] <=3D '9') { - /* - * Linux checks major and minors of the slave device - * to make sure it's a pty device, so let's make him - * believe it is. - */ - buf.st_rdev =3D (136 << 8); - } else - translate_path_major_minor(td, path, &buf); - } + if (!error) + translate_path_major_minor(td, path, &buf); LFREEPATH(path); if (error) return (error); @@ -528,19 +527,8 @@ #endif =20 error =3D kern_stat(td, filename, UIO_SYSSPACE, &buf); - if (!error) { - if (strlen(filename) > strlen("/dev/pts/") && - !strncmp(filename, "/dev/pts/", strlen("/dev/pts/")) && - filename[9] >=3D '0' && filename[9] <=3D '9') { - /* - * Linux checks major and minors of the slave device - * to make sure it's a pty deivce, so let's make him - * believe it is. - */ - buf.st_rdev =3D (136 << 8); - } else - translate_path_major_minor(td, filename, &buf); - } + if (!error) + translate_path_major_minor(td, filename, &buf); LFREEPATH(filename); if (error) return (error); --- sys/compat/linux/linux_util.c +++ sys/compat/linux/linux_util.c @@ -130,6 +130,22 @@ =20 if (node =3D=3D NULL || major =3D=3D NULL || minor =3D=3D NULL) return 1; + + if (strlen(node) > strlen("pts/") && + strncmp(node, "pts/", strlen("pts/")) =3D=3D 0) { + unsigned long devno; + + /* + * Linux checks major and minors of the slave device + * to make sure it's a pty device, so let's make him + * believe it is. + */ + devno =3D strtoul(node + strlen("pts/"), NULL, 10); + *major =3D 136 + (devno / 256); + *minor =3D devno % 256; + return 0; + } + TAILQ_FOREACH(de, &devices, list) { if (strcmp(node, de->entry.bsd_device_name) =3D=3D 0) { *major =3D de->entry.linux_major; --VjpKO6h983+pAmpQ-- --gS/sOEqITpbrYRmu Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) iEYEARECAAYFAkhDoegACgkQ52SDGA2eCwVZYgCfXv5mDo114WQ15Kz3ShZKj5SW TIAAniMIkaeRX65zfmmhGWTVKYiVw/UO =c1nt -----END PGP SIGNATURE----- --gS/sOEqITpbrYRmu-- From owner-freebsd-emulation@FreeBSD.ORG Mon Jun 2 07:52:25 2008 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 B407C106566B for ; Mon, 2 Jun 2008 07:52:25 +0000 (UTC) (envelope-from rdivacky@vlk.vlakno.cz) Received: from vlakno.cz (vlk.vlakno.cz [62.168.28.247]) by mx1.freebsd.org (Postfix) with ESMTP id 68D6F8FC1D for ; Mon, 2 Jun 2008 07:52:24 +0000 (UTC) (envelope-from rdivacky@vlk.vlakno.cz) Received: from localhost (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id 21A0B67EA69; Mon, 2 Jun 2008 09:51:40 +0200 (CEST) X-Virus-Scanned: amavisd-new at vlakno.cz Received: from vlakno.cz ([127.0.0.1]) by localhost (vlk.vlakno.cz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id A1C4ndzyQf6D; Mon, 2 Jun 2008 09:51:29 +0200 (CEST) Received: from vlk.vlakno.cz (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id 5973F67E7D8; Mon, 2 Jun 2008 09:51:29 +0200 (CEST) Received: (from rdivacky@localhost) by vlk.vlakno.cz (8.14.2/8.14.2/Submit) id m527pSJP067569; Mon, 2 Jun 2008 09:51:28 +0200 (CEST) (envelope-from rdivacky) Date: Mon, 2 Jun 2008 09:51:28 +0200 From: Roman Divacky To: Novembre Message-ID: <20080602075128.GA67510@freebsd.org> References: <3b47caa90806011858y69b04edap806f34712c346b52@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3b47caa90806011858y69b04edap806f34712c346b52@mail.gmail.com> User-Agent: Mutt/1.4.2.3i Cc: freebsd-emulation@freebsd.org Subject: Re: linux 2.6 on 7.0-RELEASE 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, 02 Jun 2008 07:52:25 -0000 On Sun, Jun 01, 2008 at 08:58:34PM -0500, Novembre wrote: > Hi, > > I know that 2.4 is the default Linux kernel to use on 7.0-RELEASE, but is it > possible to use the Linux 2.6 compatibility layer or the changes needed to > run it only exists in 7.0-STABLE? I couldn't find any information in the > wiki page ( http://wiki.freebsd.org/linux-kernel/ ) --- it was last updated > in September 2007. you can use 2.6 emulation in 7.0R, although I'd recommend using 7-STABLE. I'll add some info on the wiki page that the information there is out of date.. it confuses more than it informs From owner-freebsd-emulation@FreeBSD.ORG Mon Jun 2 07:54:02 2008 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 249741065677 for ; Mon, 2 Jun 2008 07:54:02 +0000 (UTC) (envelope-from rdivacky@vlk.vlakno.cz) Received: from vlakno.cz (vlk.vlakno.cz [62.168.28.247]) by mx1.freebsd.org (Postfix) with ESMTP id B4A6B8FC14 for ; Mon, 2 Jun 2008 07:54:01 +0000 (UTC) (envelope-from rdivacky@vlk.vlakno.cz) Received: from localhost (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id 5749267EA69; Mon, 2 Jun 2008 09:53:17 +0200 (CEST) X-Virus-Scanned: amavisd-new at vlakno.cz Received: from vlakno.cz ([127.0.0.1]) by localhost (vlk.vlakno.cz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id YGzCFFHT4FLS; Mon, 2 Jun 2008 09:53:15 +0200 (CEST) Received: from vlk.vlakno.cz (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id AE38A67E7D8; Mon, 2 Jun 2008 09:53:15 +0200 (CEST) Received: (from rdivacky@localhost) by vlk.vlakno.cz (8.14.2/8.14.2/Submit) id m527rFWa067688; Mon, 2 Jun 2008 09:53:15 +0200 (CEST) (envelope-from rdivacky) Date: Mon, 2 Jun 2008 09:53:15 +0200 From: Roman Divacky To: Ed Schouten Message-ID: <20080602075315.GB67510@freebsd.org> References: <20080602073152.GO64397@hoeg.nl> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="J2SCkAp4GZ/dPZZf" Content-Disposition: inline In-Reply-To: <20080602073152.GO64397@hoeg.nl> User-Agent: Mutt/1.4.2.3i Cc: freebsd-emulation@FreeBSD.org, philip@FreeBSD.org Subject: Re: Linux major/minor conversion not entirely correct 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, 02 Jun 2008 07:54:02 -0000 --J2SCkAp4GZ/dPZZf Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jun 02, 2008 at 09:31:52AM +0200, Ed Schouten wrote: > Hello everyone, >=20 > The last couple of months I've been working on redesigning FreeBSD's TTY > layer. This is all going quite good. Too good, actually. >=20 > Last week I've been toying around with getting sshd working inside a > Linux jail, which seems to work quite nicely right now. I've made some > changes to our Linux compat layer that could already get (partially) > merged back to SVN. >=20 > The Linux compat layer generates fake major/minor numbers for certain > devices, because Linux still depends on that information a lot (yuck). > I've discovered that our Linux compat layer returns the same major/minor > pair for all nodes in /dev/pts, but doesn't do this consistently either. > We'd better push the conversion down into linux_driver_get_major_minor(), > to make sure the numbers always get converted. We should also make sure > we hand out unique numbers. >=20 > The patch also contains a change I made to support the new DTYPE_PTS > (pseudo-terminal master device). This part of the diff should be > ignored. I've just added it for completeness. >=20 > Does anyone mind if I commit this patch soonish? I dont see a problem with it... go commit that. thnx! --J2SCkAp4GZ/dPZZf Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) iEYEARECAAYFAkhDpusACgkQLVEj6D3CBExamwCfZrps5Gv8JBvg8KjvsB/GjrRb gv4AniCY4xC1c+BLqq91Lby99FL/mBmU =K5nh -----END PGP SIGNATURE----- --J2SCkAp4GZ/dPZZf-- From owner-freebsd-emulation@FreeBSD.ORG Mon Jun 2 08:47:41 2008 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 A77F81065670; Mon, 2 Jun 2008 08:47:41 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: from palm.hoeg.nl (mx0.hoeg.nl [IPv6:2001:610:652::211]) by mx1.freebsd.org (Postfix) with ESMTP id 6749E8FC1E; Mon, 2 Jun 2008 08:47:41 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: by palm.hoeg.nl (Postfix, from userid 1000) id B657F1CDBB; Mon, 2 Jun 2008 10:47:40 +0200 (CEST) Date: Mon, 2 Jun 2008 10:47:40 +0200 From: Ed Schouten To: Roman Divacky Message-ID: <20080602084740.GP64397@hoeg.nl> References: <20080602073152.GO64397@hoeg.nl> <20080602075315.GB67510@freebsd.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="RU5vHP6eAM91MAfE" Content-Disposition: inline In-Reply-To: <20080602075315.GB67510@freebsd.org> User-Agent: Mutt/1.5.18 (2008-05-17) Cc: freebsd-emulation@FreeBSD.org, philip@FreeBSD.org Subject: Re: Linux major/minor conversion not entirely correct 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, 02 Jun 2008 08:47:41 -0000 --RU5vHP6eAM91MAfE Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Roman Divacky wrote: > > Does anyone mind if I commit this patch soonish? >=20 > I dont see a problem with it... go commit that. Done. Thank you! --=20 Ed Schouten WWW: http://80386.nl/ --RU5vHP6eAM91MAfE Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) iEYEARECAAYFAkhDs6wACgkQ52SDGA2eCwX5XwCfT2Azv2c/1dm3fS4xwqp9o+AI tosAnjeQfAJVRtPNq6npnxiAVv3qJE1R =Dd0q -----END PGP SIGNATURE----- --RU5vHP6eAM91MAfE-- From owner-freebsd-emulation@FreeBSD.ORG Mon Jun 2 09:09:35 2008 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 C8466106567D for ; Mon, 2 Jun 2008 09:09:35 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from redbull.bpaserver.net (redbullneu.bpaserver.net [213.198.78.217]) by mx1.freebsd.org (Postfix) with ESMTP id 725928FC25 for ; Mon, 2 Jun 2008 09:09:35 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from outgoing.leidinger.net (p54A5761E.dip.t-dialin.net [84.165.118.30]) by redbull.bpaserver.net (Postfix) with ESMTP id 9076D2E21B; Mon, 2 Jun 2008 11:09:25 +0200 (CEST) Received: from webmail.leidinger.net (webmail.leidinger.net [192.168.1.102]) by outgoing.leidinger.net (Postfix) with ESMTP id E5A53111F02; Mon, 2 Jun 2008 11:09:19 +0200 (CEST) Received: (from www@localhost) by webmail.leidinger.net (8.14.2/8.13.8/Submit) id m5299JcX090964; Mon, 2 Jun 2008 11:09:19 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from pslux.cec.eu.int (pslux.cec.eu.int [158.169.9.14]) by webmail.leidinger.net (Horde Framework) with HTTP; Mon, 02 Jun 2008 11:09:19 +0200 Message-ID: <20080602110919.17204gghm3yhhzwg@webmail.leidinger.net> X-Priority: 3 (Normal) Date: Mon, 02 Jun 2008 11:09:19 +0200 From: Alexander Leidinger To: Ed Schouten References: <20080602073152.GO64397@hoeg.nl> In-Reply-To: <20080602073152.GO64397@hoeg.nl> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) H3 (4.2-RC2) / FreeBSD-8.0 X-BPAnet-MailScanner-Information: Please contact the ISP for more information X-BPAnet-MailScanner: Found to be clean X-BPAnet-MailScanner-SpamCheck: not spam, ORDB-RBL, SpamAssassin (not cached, score=-14.9, required 6, BAYES_00 -15.00, RDNS_DYNAMIC 0.10) X-BPAnet-MailScanner-From: alexander@leidinger.net X-Spam-Status: No Cc: freebsd-emulation@FreeBSD.org, philip@FreeBSD.org Subject: Re: Linux major/minor conversion not entirely correct 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, 02 Jun 2008 09:09:35 -0000 Quoting Ed Schouten (from Mon, 2 Jun 2008 09:31:52 +0200): > Last week I've been toying around with getting sshd working inside a > Linux jail, which seems to work quite nicely right now. I've made some > changes to our Linux compat layer that could already get (partially) > merged back to SVN. Does this mean your patch makes sshd inside a linux jail working for non-root logins? If yes: MFC planned (I haven't checked the commit mails yet, sorry)? Bye, Alexander. -- I have learned silence from the talkative, toleration from the intolerant, and kindness from the unkind. -- Kahlil Gibran http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137 From owner-freebsd-emulation@FreeBSD.ORG Mon Jun 2 09:14:08 2008 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 E5DF5106566C; Mon, 2 Jun 2008 09:14:08 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: from palm.hoeg.nl (mx0.hoeg.nl [IPv6:2001:610:652::211]) by mx1.freebsd.org (Postfix) with ESMTP id A85AA8FC0C; Mon, 2 Jun 2008 09:14:08 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: by palm.hoeg.nl (Postfix, from userid 1000) id 03C191CD58; Mon, 2 Jun 2008 11:14:07 +0200 (CEST) Date: Mon, 2 Jun 2008 11:14:07 +0200 From: Ed Schouten To: Alexander Leidinger Message-ID: <20080602091407.GQ64397@hoeg.nl> References: <20080602073152.GO64397@hoeg.nl> <20080602110919.17204gghm3yhhzwg@webmail.leidinger.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="vtBqmokgY1evbO3C" Content-Disposition: inline In-Reply-To: <20080602110919.17204gghm3yhhzwg@webmail.leidinger.net> User-Agent: Mutt/1.5.18 (2008-05-17) Cc: freebsd-emulation@FreeBSD.org, philip@FreeBSD.org Subject: Re: Linux major/minor conversion not entirely correct 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, 02 Jun 2008 09:14:09 -0000 --vtBqmokgY1evbO3C Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Alexander Leidinger wrote: > Quoting Ed Schouten (from Mon, 2 Jun 2008 09:31:52 +0200): > >> Last week I've been toying around with getting sshd working inside a >> Linux jail, which seems to work quite nicely right now. I've made some >> changes to our Linux compat layer that could already get (partially) >> merged back to SVN. > > Does this mean your patch makes sshd inside a linux jail working for =20 > non-root logins? If yes: MFC planned (I haven't checked the commit mails= =20 > yet, sorry)? Only on i386. We still have to deal with the sendmsg() badness. It doesn't seem to work properly on amd64. --=20 Ed Schouten WWW: http://80386.nl/ --vtBqmokgY1evbO3C Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) iEYEARECAAYFAkhDud8ACgkQ52SDGA2eCwU59QCcDQGZezaL6kJ/+nSmJ9DzVJAb lvgAnA2hj2rRddskoFh4FnnQWD1bZ+Ed =5LbP -----END PGP SIGNATURE----- --vtBqmokgY1evbO3C-- From owner-freebsd-emulation@FreeBSD.ORG Mon Jun 2 10:03:02 2008 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 EE31B1065673; Mon, 2 Jun 2008 10:03:02 +0000 (UTC) (envelope-from rdivacky@vlk.vlakno.cz) Received: from vlakno.cz (vlk.vlakno.cz [62.168.28.247]) by mx1.freebsd.org (Postfix) with ESMTP id AAB638FC1A; Mon, 2 Jun 2008 10:03:01 +0000 (UTC) (envelope-from rdivacky@vlk.vlakno.cz) Received: from localhost (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id 90DB2680AEA; Mon, 2 Jun 2008 12:02:16 +0200 (CEST) X-Virus-Scanned: amavisd-new at vlakno.cz Received: from vlakno.cz ([127.0.0.1]) by localhost (vlk.vlakno.cz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id wSZ-mvht5boy; Mon, 2 Jun 2008 12:02:06 +0200 (CEST) Received: from vlk.vlakno.cz (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id 53D87680AE7; Mon, 2 Jun 2008 12:02:06 +0200 (CEST) Received: (from rdivacky@localhost) by vlk.vlakno.cz (8.14.2/8.14.2/Submit) id m52A26kF076921; Mon, 2 Jun 2008 12:02:06 +0200 (CEST) (envelope-from rdivacky) Date: Mon, 2 Jun 2008 12:02:06 +0200 From: Roman Divacky To: Ed Schouten Message-ID: <20080602100206.GA76861@freebsd.org> References: <20080602073152.GO64397@hoeg.nl> <20080602110919.17204gghm3yhhzwg@webmail.leidinger.net> <20080602091407.GQ64397@hoeg.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080602091407.GQ64397@hoeg.nl> User-Agent: Mutt/1.4.2.3i Cc: Alexander Leidinger , freebsd-emulation@FreeBSD.org, philip@FreeBSD.org Subject: Re: Linux major/minor conversion not entirely correct 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, 02 Jun 2008 10:03:03 -0000 On Mon, Jun 02, 2008 at 11:14:07AM +0200, Ed Schouten wrote: > * Alexander Leidinger wrote: > > Quoting Ed Schouten (from Mon, 2 Jun 2008 09:31:52 +0200): > > > >> Last week I've been toying around with getting sshd working inside a > >> Linux jail, which seems to work quite nicely right now. I've made some > >> changes to our Linux compat layer that could already get (partially) > >> merged back to SVN. > > > > Does this mean your patch makes sshd inside a linux jail working for > > non-root logins? If yes: MFC planned (I haven't checked the commit mails > > yet, sorry)? > > Only on i386. We still have to deal with the sendmsg() badness. It > doesn't seem to work properly on amd64. check the logs... something was done with it already... dont remember details.... anyway, when/if I find time I'll try to look at it. but my queue is long :( From owner-freebsd-emulation@FreeBSD.ORG Mon Jun 2 11:06:46 2008 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 DA4411065682 for ; Mon, 2 Jun 2008 11:06:46 +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 CF8A78FC16 for ; Mon, 2 Jun 2008 11:06:46 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m52B6k3x093125 for ; Mon, 2 Jun 2008 11:06:46 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m52B6k4Y093121 for freebsd-emulation@FreeBSD.org; Mon, 2 Jun 2008 11:06:46 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 2 Jun 2008 11:06:46 GMT Message-Id: <200806021106.m52B6k4Y093121@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, 02 Jun 2008 11:06:46 -0000 Current FreeBSD problem reports Critical problems Serious problems S Tracker Resp. Description -------------------------------------------------------------------------------- o kern/21463 emulation [linux] Linux compatability mode should not allow setu o kern/97326 emulation [linux] file descriptor leakage in linux emulation o kern/117010 emulation [linux] linux_getdents() get something like buffer ove 3 problems total. Non-critical problems S Tracker Resp. Description -------------------------------------------------------------------------------- o kern/11165 emulation [ibcs2] IBCS2 doesn't work correctly with PID_MAX 9999 o kern/29698 emulation [linux] [patch] linux ipcs doesn'work o kern/39201 emulation [linux] [patch] ptrace(2) and rfork(RFLINUXTHPN) confu o kern/41543 emulation [patch] [request] easier wine/w23 support a kern/72920 emulation [linux]: path "prefixing" is not done on unix domain s o kern/73777 emulation [linux] [patch] linux emulation: root dir special hand o kern/91293 emulation [svr4] [patch] *Experimental* Update to the SVR4 emula o ports/91318 emulation [fix] graphics/linux_dri: works on amd64 too o ports/121800 emulation x11-toolkits/linux-openmotif - OpenMotif upgrade to 2. o kern/122318 emulation [linux] [cmake]: Segmentation fault when running Linux o ports/123960 emulation Port fix: archivers/linux-par2cmdline - better handlin o ports/123964 emulation Mk fix: bsd.linux-rpm.mk - Handling of NOPORTDOCS 12 problems total. From owner-freebsd-emulation@FreeBSD.ORG Mon Jun 2 14:46:41 2008 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 BBEE9106567A for ; Mon, 2 Jun 2008 14:46:41 +0000 (UTC) (envelope-from jhein@timing.com) Received: from Daffy.timing.com (smtp.timing.com [206.168.13.218]) by mx1.freebsd.org (Postfix) with ESMTP id 99F2D8FC1B for ; Mon, 2 Jun 2008 14:46:41 +0000 (UTC) (envelope-from jhein@timing.com) Received: from gromit.timing.com (gromit.timing.com [206.168.13.209]) by Daffy.timing.com (8.13.1/8.13.1) with ESMTP id m52EkJ6W047757; Mon, 2 Jun 2008 08:46:19 -0600 (MDT) (envelope-from jhein@timing.com) Received: from gromit.timing.com (localhost [127.0.0.1]) by gromit.timing.com (8.14.2/8.14.2) with ESMTP id m52EkFB7014439; Mon, 2 Jun 2008 08:46:15 -0600 (MDT) (envelope-from jhein@gromit.timing.com) Received: (from jhein@localhost) by gromit.timing.com (8.14.2/8.14.2/Submit) id m52EkEg5014436; Mon, 2 Jun 2008 08:46:14 -0600 (MDT) (envelope-from jhein) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18500.1974.681847.564212@gromit.timing.com> Date: Mon, 2 Jun 2008 08:46:14 -0600 From: John E Hein To: Ed Schouten In-Reply-To: <20080602073152.GO64397@hoeg.nl> References: <20080602073152.GO64397@hoeg.nl> X-Mailer: VM 7.19 under Emacs 22.1.1 X-Virus-Scanned: ClamAV version 0.91.2, clamav-milter version 0.91.2 on Daffy.timing.com X-Virus-Status: Clean Cc: freebsd-emulation@freebsd.org, philip@freebsd.org Subject: Re: Linux major/minor conversion not entirely correct 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, 02 Jun 2008 14:46:41 -0000 Ed Schouten wrote at 09:31 +0200 on Jun 2, 2008: > + /* > + * Linux checks major and minors of the slave device > + * to make sure it's a pty device, so let's make him > + * believe it is. > + */ > + devno = strtoul(node + strlen("pts/"), NULL, 10); > + *major = 136 + (devno / 256); > + *minor = devno % 256; > + return 0; Where does the magic number 136 come from? From owner-freebsd-emulation@FreeBSD.ORG Mon Jun 2 14:47:49 2008 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 80B641065672; Mon, 2 Jun 2008 14:47:49 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: from palm.hoeg.nl (mx0.hoeg.nl [IPv6:2001:610:652::211]) by mx1.freebsd.org (Postfix) with ESMTP id 4A46A8FC19; Mon, 2 Jun 2008 14:47:49 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: by palm.hoeg.nl (Postfix, from userid 1000) id 6642E1CD58; Mon, 2 Jun 2008 16:47:44 +0200 (CEST) Date: Mon, 2 Jun 2008 16:47:44 +0200 From: Ed Schouten To: John E Hein Message-ID: <20080602144744.GU64397@hoeg.nl> References: <20080602073152.GO64397@hoeg.nl> <18500.1974.681847.564212@gromit.timing.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="B4kTqtjDNMSIbfiv" Content-Disposition: inline In-Reply-To: <18500.1974.681847.564212@gromit.timing.com> User-Agent: Mutt/1.5.18 (2008-05-17) Cc: freebsd-emulation@freebsd.org, philip@freebsd.org Subject: Re: Linux major/minor conversion not entirely correct 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, 02 Jun 2008 14:47:49 -0000 --B4kTqtjDNMSIbfiv Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * John E Hein wrote: > Ed Schouten wrote at 09:31 +0200 on Jun 2, 2008: > > + /* > > + * Linux checks major and minors of the slave device > > + * to make sure it's a pty device, so let's make him > > + * believe it is. > > + */ > > + devno =3D strtoul(node + strlen("pts/"), NULL, 10); > > + *major =3D 136 + (devno / 256); > > + *minor =3D devno % 256; > > + return 0; >=20 > Where does the magic number 136 come from? Linux uses major numbers 136,137,138,... for PTY's. --=20 Ed Schouten WWW: http://80386.nl/ --B4kTqtjDNMSIbfiv Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) iEYEARECAAYFAkhECBAACgkQ52SDGA2eCwV6AQCeMYE8lwW2+ue8pdziJ9Ol7SR7 XD4An1VqSVk0raWiZo8qEEe9fmieoYFI =33dv -----END PGP SIGNATURE----- --B4kTqtjDNMSIbfiv-- From owner-freebsd-emulation@FreeBSD.ORG Mon Jun 2 15:13:52 2008 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 65BBC106564A; Mon, 2 Jun 2008 15:13:52 +0000 (UTC) (envelope-from jhein@timing.com) Received: from Daffy.timing.com (smtp.timing.com [206.168.13.218]) by mx1.freebsd.org (Postfix) with ESMTP id 3F0FA8FC19; Mon, 2 Jun 2008 15:13:52 +0000 (UTC) (envelope-from jhein@timing.com) Received: from gromit.timing.com (gromit.timing.com [206.168.13.209]) by Daffy.timing.com (8.13.1/8.13.1) with ESMTP id m52FDYaU050792; Mon, 2 Jun 2008 09:13:34 -0600 (MDT) (envelope-from jhein@timing.com) Received: from gromit.timing.com (localhost [127.0.0.1]) by gromit.timing.com (8.14.2/8.14.2) with ESMTP id m52FDXVj015018; Mon, 2 Jun 2008 09:13:33 -0600 (MDT) (envelope-from jhein@gromit.timing.com) Received: (from jhein@localhost) by gromit.timing.com (8.14.2/8.14.2/Submit) id m52FDXBK015015; Mon, 2 Jun 2008 09:13:33 -0600 (MDT) (envelope-from jhein) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18500.3613.230514.193236@gromit.timing.com> Date: Mon, 2 Jun 2008 09:13:33 -0600 From: John E Hein To: Ed Schouten In-Reply-To: <20080602144744.GU64397@hoeg.nl> References: <20080602073152.GO64397@hoeg.nl> <18500.1974.681847.564212@gromit.timing.com> <20080602144744.GU64397@hoeg.nl> X-Mailer: VM 7.19 under Emacs 22.1.1 X-Virus-Scanned: ClamAV version 0.91.2, clamav-milter version 0.91.2 on Daffy.timing.com X-Virus-Status: Clean Cc: freebsd-emulation@freebsd.org, philip@freebsd.org Subject: Re: Linux major/minor conversion not entirely correct 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, 02 Jun 2008 15:13:52 -0000 Ed Schouten wrote at 16:47 +0200 on Jun 2, 2008: > > Where does the magic number 136 come from? > > Linux uses major numbers 136,137,138,... for PTY's. We should probably point that out in a comment &/or #define. I've heard no plans to change the device numbering scheme in linux in the near future. So this magic number should likely be stable for some time to come, correct? From owner-freebsd-emulation@FreeBSD.ORG Mon Jun 2 21:27:15 2008 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 535B61065678 for ; Mon, 2 Jun 2008 21:27:15 +0000 (UTC) (envelope-from chagin.dmitry@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.172]) by mx1.freebsd.org (Postfix) with ESMTP id E89D88FC24 for ; Mon, 2 Jun 2008 21:27:14 +0000 (UTC) (envelope-from chagin.dmitry@gmail.com) Received: by ug-out-1314.google.com with SMTP id q2so399683uge.37 for ; Mon, 02 Jun 2008 14:27:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:to:cc:subject :in-reply-to:message-id:references:user-agent:mime-version :content-type:from; bh=aNjdeKkPSf162pwiGxxnD7TLo65F9w2+V7wSr1aihiQ=; b=iWjj+5cff4LykxFhIKYYfSBGwruT6c4Kqc2YrXWy7sWWiZJ85I89rRvZH/7g6Jj1WM ul+gY4rqBq3cUtQcUZU3wE8P6uT8NMMRPUhKl4GYQlCadLaN5tlHIclub1X7T7+g/H84 P0RUcpNqP2j87asFQgo03HFR1xV7MTXNCQQ+o= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:to:cc:subject:in-reply-to:message-id:references:user-agent :mime-version:content-type:from; b=t3RiOPgbv0M+aA+iYV0xKvJSoYilyQjXCFt4IvQiYT9I9VCSOteETj47n85AdkeEJ7 TTbs2xkX6Kj+qOM6tIELuftQBEzhjS0+5fUGHpyi5K+Wb6uUJEqh9iC0c5FAH8tV3omM c4n5J08qouwqqWMCWNZIka1xt0LjvGQgMGOF8= Received: by 10.210.115.15 with SMTP id n15mr1189090ebc.28.1212442033861; Mon, 02 Jun 2008 14:27:13 -0700 (PDT) Received: from ora.chd.net ( [81.200.6.196]) by mx.google.com with ESMTPS id y37sm4545026iky.8.2008.06.02.14.27.11 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 02 Jun 2008 14:27:12 -0700 (PDT) Date: Tue, 3 Jun 2008 01:27:19 +0400 (MSD) To: Roman Divacky In-Reply-To: <20080602100206.GA76861@freebsd.org> Message-ID: References: <20080602073152.GO64397@hoeg.nl> <20080602110919.17204gghm3yhhzwg@webmail.leidinger.net> <20080602091407.GQ64397@hoeg.nl> <20080602100206.GA76861@freebsd.org> User-Agent: Alpine 1.10 (BSF 962 2008-03-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed From: Chagin Dmitry Cc: Ed Schouten , freebsd-emulation@freebsd.org, philip@freebsd.org, Alexander Leidinger Subject: Re: Linux major/minor conversion not entirely correct 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, 02 Jun 2008 21:27:15 -0000 On Mon, 2 Jun 2008, Roman Divacky wrote: > On Mon, Jun 02, 2008 at 11:14:07AM +0200, Ed Schouten wrote: >> * Alexander Leidinger wrote: >> > Quoting Ed Schouten (from Mon, 2 Jun 2008 09:31:52 +0200): >> > >> >> Last week I've been toying around with getting sshd working inside a >> >> Linux jail, which seems to work quite nicely right now. I've made some >> >> changes to our Linux compat layer that could already get (partially) >> >> merged back to SVN. >> > >> > Does this mean your patch makes sshd inside a linux jail working for >> > non-root logins? If yes: MFC planned (I haven't checked the commit mails >> > yet, sorry)? >> >> Only on i386. We still have to deal with the sendmsg() badness. It >> doesn't seem to work properly on amd64. > > check the logs... something was done with it already... dont remember > details.... anyway, when/if I find time I'll try to look at it. but my > queue is long :( too has got stuck in sendmsg/recvmsg when did linux64 ltp tests, and at first sight here not a simple problem. Linux and fbsd at x86-64 have different definitions of msghdr & cmsghdr struct. it's not problem to convert msghdr :) with cmsghdr more difficult. see unp_internalize() at sys/kern/uipc_usrreq.c i think about it now. thnx! -- Have fun! chd From owner-freebsd-emulation@FreeBSD.ORG Mon Jun 2 21:28:10 2008 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 EEA251065673 for ; Mon, 2 Jun 2008 21:28:10 +0000 (UTC) (envelope-from rick@kiwi-computer.com) Received: from kiwi-computer.com (keira.kiwi-computer.com [63.224.10.3]) by mx1.freebsd.org (Postfix) with SMTP id 954E88FC16 for ; Mon, 2 Jun 2008 21:28:10 +0000 (UTC) (envelope-from rick@kiwi-computer.com) Received: (qmail 37477 invoked by uid 2001); 2 Jun 2008 21:01:28 -0000 Date: Mon, 2 Jun 2008 16:01:28 -0500 From: "Rick C. Petty" To: Roman Divacky Message-ID: <20080602210128.GA36770@keira.kiwi-computer.com> References: <3b47caa90806011858y69b04edap806f34712c346b52@mail.gmail.com> <20080602075128.GA67510@freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080602075128.GA67510@freebsd.org> User-Agent: Mutt/1.4.2.3i Cc: freebsd-emulation@freebsd.org, Novembre Subject: Re: linux 2.6 on 7.0-RELEASE X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: rick-freebsd@kiwi-computer.com List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Jun 2008 21:28:11 -0000 On Mon, Jun 02, 2008 at 09:51:28AM +0200, Roman Divacky wrote: > > > > I know that 2.4 is the default Linux kernel to use on 7.0-RELEASE, but is it > > possible to use the Linux 2.6 compatibility layer or the changes needed to > > run it only exists in 7.0-STABLE? I couldn't find any information in the > > wiki page ( http://wiki.freebsd.org/linux-kernel/ ) --- it was last updated > > in September 2007. > > you can use 2.6 emulation in 7.0R, although I'd recommend using 7-STABLE. Howso? I always get the error: compat.linux.osrelease: 2.4.2 is not supported > I'll add some info on the wiki page that the information there is out of date.. > it confuses more than it informs That would be great, thanks! -- Rick C. Petty From owner-freebsd-emulation@FreeBSD.ORG Tue Jun 3 02:58:53 2008 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 8B245106564A for ; Tue, 3 Jun 2008 02:58:53 +0000 (UTC) (envelope-from novembre@gmail.com) Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.243]) by mx1.freebsd.org (Postfix) with ESMTP id 4A6EC8FC12 for ; Tue, 3 Jun 2008 02:58:53 +0000 (UTC) (envelope-from novembre@gmail.com) Received: by an-out-0708.google.com with SMTP id b33so931489ana.13 for ; Mon, 02 Jun 2008 19:58:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; bh=JyO9prGZHvrqphwRDxTPi+RU7EdrHeZseXBD6pmZtUg=; b=UGL95cp1LW/3IHTL5JF3P8EOPuQsWi0+o6A2/q30BWLxgX3W6dBBc2GGoFVl6KLpeLbmBhAPPhaRnhKFRJSaInAH3lIjvtr656xLVlrI3ZULXucS8Y26/E1RETksBlL2+J00k0Vpk2ffXT9gw6Af0SN36OJIva7CVrFkRJ7uyCQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=UWUoAYTM2blmZjLwvDa6cmEgBWZInRCJklSe/qLWkItPMBqJ07OEIF88C8JOoFMGboRSxKSc8H30YhUU3d+YzEoMU63CZ0jGr4e4LBS06mYV8bw39wogboiumYW4my3M7N+gPo+BHaFoPA2fSNrmGX/IUx4rHz8n4OT3a+u5LcY= Received: by 10.100.228.13 with SMTP id a13mr7311503anh.70.1212461932306; Mon, 02 Jun 2008 19:58:52 -0700 (PDT) Received: by 10.100.13.7 with HTTP; Mon, 2 Jun 2008 19:58:52 -0700 (PDT) Message-ID: <3b47caa90806021958yff18f26i47c8b4978a67f212@mail.gmail.com> Date: Mon, 2 Jun 2008 21:58:52 -0500 From: Novembre To: "Roman Divacky" In-Reply-To: <20080602075128.GA67510@freebsd.org> MIME-Version: 1.0 References: <3b47caa90806011858y69b04edap806f34712c346b52@mail.gmail.com> <20080602075128.GA67510@freebsd.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-emulation@freebsd.org Subject: Re: linux 2.6 on 7.0-RELEASE 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, 03 Jun 2008 02:58:53 -0000 On Mon, Jun 2, 2008 at 2:51 AM, Roman Divacky wrote: > On Sun, Jun 01, 2008 at 08:58:34PM -0500, Novembre wrote: > > Hi, > > > > I know that 2.4 is the default Linux kernel to use on 7.0-RELEASE, but is > it > > possible to use the Linux 2.6 compatibility layer or the changes needed > to > > run it only exists in 7.0-STABLE? I couldn't find any information in the > > wiki page ( http://wiki.freebsd.org/linux-kernel/ ) --- it was last > updated > > in September 2007. > > you can use 2.6 emulation in 7.0R, although I'd recommend using 7-STABLE. > > I'll add some info on the wiki page that the information there is out of > date.. > it confuses more than it informs > thanks :) is there something specific that i should do to be able to run 2.6 emulation on 7.0-RELEASE? is there any guide somewhere online about it? the handbook, I believe, is talking about the default 2.4 emulation, am I right? From owner-freebsd-emulation@FreeBSD.ORG Tue Jun 3 08:08:46 2008 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 A05E31065673 for ; Tue, 3 Jun 2008 08:08:46 +0000 (UTC) (envelope-from rdivacky@vlk.vlakno.cz) Received: from vlakno.cz (vlk.vlakno.cz [62.168.28.247]) by mx1.freebsd.org (Postfix) with ESMTP id 56D5B8FC13 for ; Tue, 3 Jun 2008 08:08:45 +0000 (UTC) (envelope-from rdivacky@vlk.vlakno.cz) Received: from localhost (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id 818D1680C61; Tue, 3 Jun 2008 10:08:00 +0200 (CEST) X-Virus-Scanned: amavisd-new at vlakno.cz Received: from vlakno.cz ([127.0.0.1]) by localhost (vlk.vlakno.cz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id IkiIW+zfpXcN; Tue, 3 Jun 2008 10:07:58 +0200 (CEST) Received: from vlk.vlakno.cz (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id F362D680C63; Tue, 3 Jun 2008 10:07:57 +0200 (CEST) Received: (from rdivacky@localhost) by vlk.vlakno.cz (8.14.2/8.14.2/Submit) id m5387vKH058312; Tue, 3 Jun 2008 10:07:57 +0200 (CEST) (envelope-from rdivacky) Date: Tue, 3 Jun 2008 10:07:57 +0200 From: Roman Divacky To: Novembre Message-ID: <20080603080757.GA58232@freebsd.org> References: <3b47caa90806011858y69b04edap806f34712c346b52@mail.gmail.com> <20080602075128.GA67510@freebsd.org> <3b47caa90806021958yff18f26i47c8b4978a67f212@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3b47caa90806021958yff18f26i47c8b4978a67f212@mail.gmail.com> User-Agent: Mutt/1.4.2.3i Cc: freebsd-emulation@freebsd.org Subject: Re: linux 2.6 on 7.0-RELEASE 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, 03 Jun 2008 08:08:46 -0000 On Mon, Jun 02, 2008 at 09:58:52PM -0500, Novembre wrote: > On Mon, Jun 2, 2008 at 2:51 AM, Roman Divacky wrote: > > > On Sun, Jun 01, 2008 at 08:58:34PM -0500, Novembre wrote: > > > Hi, > > > > > > I know that 2.4 is the default Linux kernel to use on 7.0-RELEASE, but is > > it > > > possible to use the Linux 2.6 compatibility layer or the changes needed > > to > > > run it only exists in 7.0-STABLE? I couldn't find any information in the > > > wiki page ( http://wiki.freebsd.org/linux-kernel/ ) --- it was last > > updated > > > in September 2007. > > > > you can use 2.6 emulation in 7.0R, although I'd recommend using 7-STABLE. > > > > I'll add some info on the wiki page that the information there is out of > > date.. > > it confuses more than it informs > > > > > thanks :) is there something specific that i should do to be able to run 2.6 > emulation on 7.0-RELEASE? is there any guide somewhere online about it? the > handbook, I believe, is talking about the default 2.4 emulation, am I right? you can run it by setting sysctl compat.linux.osrelease to 2.6.16, but I really recomend running 7-stable for this. Linuxulator was shipped in 7.0R with a known bug which was fixed in 7-STABLE... From owner-freebsd-emulation@FreeBSD.ORG Tue Jun 3 09:06:15 2008 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 74C731065679; Tue, 3 Jun 2008 09:06:15 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from redbull.bpaserver.net (redbullneu.bpaserver.net [213.198.78.217]) by mx1.freebsd.org (Postfix) with ESMTP id 23AD78FC1B; Tue, 3 Jun 2008 09:06:15 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from outgoing.leidinger.net (p54A5703C.dip.t-dialin.net [84.165.112.60]) by redbull.bpaserver.net (Postfix) with ESMTP id E71452E0A4; Tue, 3 Jun 2008 11:06:11 +0200 (CEST) Received: from webmail.leidinger.net (webmail.leidinger.net [192.168.1.102]) by outgoing.leidinger.net (Postfix) with ESMTP id 0A8BF1148FB; Tue, 3 Jun 2008 11:06:09 +0200 (CEST) Received: (from www@localhost) by webmail.leidinger.net (8.14.2/8.13.8/Submit) id m53968EX037341; Tue, 3 Jun 2008 11:06:08 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from pslux.cec.eu.int (pslux.cec.eu.int [158.169.9.14]) by webmail.leidinger.net (Horde Framework) with HTTP; Tue, 03 Jun 2008 11:06:07 +0200 Message-ID: <20080603110607.31037ihwi7u55oso@webmail.leidinger.net> X-Priority: 3 (Normal) Date: Tue, 03 Jun 2008 11:06:07 +0200 From: Alexander Leidinger To: rick-freebsd@kiwi-computer.com References: <3b47caa90806011858y69b04edap806f34712c346b52@mail.gmail.com> <20080602075128.GA67510@freebsd.org> <20080602210128.GA36770@keira.kiwi-computer.com> In-Reply-To: <20080602210128.GA36770@keira.kiwi-computer.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable User-Agent: Internet Messaging Program (IMP) H3 (4.2-RC2) / FreeBSD-8.0 X-BPAnet-MailScanner-Information: Please contact the ISP for more information X-BPAnet-MailScanner: Found to be clean X-BPAnet-MailScanner-SpamCheck: not spam, ORDB-RBL, SpamAssassin (not cached, score=-13.504, required 6, BAYES_00 -15.00, MIME_QP_LONG_LINE 1.40, RDNS_DYNAMIC 0.10) X-BPAnet-MailScanner-From: alexander@leidinger.net X-Spam-Status: No Cc: freebsd-emulation@freebsd.org, Novembre Subject: Re: linux 2.6 on 7.0-RELEASE 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, 03 Jun 2008 09:06:15 -0000 Quoting "Rick C. Petty" (from Mon, 2 =20 Jun 2008 16:01:28 -0500): > On Mon, Jun 02, 2008 at 09:51:28AM +0200, Roman Divacky wrote: >> > >> > I know that 2.4 is the default Linux kernel to use on =20 >> 7.0-RELEASE, but is it >> > possible to use the Linux 2.6 compatibility layer or the changes needed= to >> > run it only exists in 7.0-STABLE? I couldn't find any information in th= e >> > wiki page ( http://wiki.freebsd.org/linux-kernel/ ) --- it was =20 >> last updated >> > in September 2007. >> >> you can use 2.6 emulation in 7.0R, although I'd recommend using 7-STABLE. > > Howso? I always get the error: > > compat.linux.osrelease: 2.4.2 is not supported What operation are you doing to get this error? If you install a linux =20 base port which depends upon 2.6: you need to switch the linuxulator =20 into 2.6 mode first. See other mails here. IF you do something else: =20 pleas show us the command. Bye, Alexander. --=20 Sometimes I live in the country, And sometimes I live in town. And sometimes I have a great notion, To jump in the river and drown. http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID =3D B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID =3D 72077137 From owner-freebsd-emulation@FreeBSD.ORG Tue Jun 3 16:12:13 2008 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 A46AF1065671 for ; Tue, 3 Jun 2008 16:12:13 +0000 (UTC) (envelope-from rick@kiwi-computer.com) Received: from kiwi-computer.com (keira.kiwi-computer.com [63.224.10.3]) by mx1.freebsd.org (Postfix) with SMTP id 3AFE98FC14 for ; Tue, 3 Jun 2008 16:12:13 +0000 (UTC) (envelope-from rick@kiwi-computer.com) Received: (qmail 49664 invoked by uid 2001); 3 Jun 2008 16:12:12 -0000 Date: Tue, 3 Jun 2008 11:12:12 -0500 From: "Rick C. Petty" To: Alexander Leidinger Message-ID: <20080603161212.GA49615@keira.kiwi-computer.com> References: <3b47caa90806011858y69b04edap806f34712c346b52@mail.gmail.com> <20080602075128.GA67510@freebsd.org> <20080602210128.GA36770@keira.kiwi-computer.com> <20080603110607.31037ihwi7u55oso@webmail.leidinger.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080603110607.31037ihwi7u55oso@webmail.leidinger.net> User-Agent: Mutt/1.4.2.3i Cc: freebsd-emulation@freebsd.org, Novembre Subject: Re: linux 2.6 on 7.0-RELEASE X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: rick-freebsd@kiwi-computer.com List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Jun 2008 16:12:13 -0000 On Tue, Jun 03, 2008 at 11:06:07AM +0200, Alexander Leidinger wrote: > Quoting "Rick C. Petty" (from Mon, 2 > Jun 2008 16:01:28 -0500): > > >Howso? I always get the error: > > > >compat.linux.osrelease: 2.4.2 is not supported > > What operation are you doing to get this error? If you install a linux > base port which depends upon 2.6: you need to switch the linuxulator > into 2.6 mode first. See other mails here. IF you do something else: > pleas show us the command. portmaster -gDb emulators/linux_base-fc6 Perhaps the suggestion to setting compat.linux.osrelease should be specified in the port's Makefile, maybe part of the IGNORE message. I would not have thought to do that; it's very unobvious. -- Rick C. Petty From owner-freebsd-emulation@FreeBSD.ORG Tue Jun 3 19:21:23 2008 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 D0DB41065679 for ; Tue, 3 Jun 2008 19:21:23 +0000 (UTC) (envelope-from jhein@timing.com) Received: from Daffy.timing.com (mail.timing.com [206.168.13.218]) by mx1.freebsd.org (Postfix) with ESMTP id 8F70A8FC14 for ; Tue, 3 Jun 2008 19:21:23 +0000 (UTC) (envelope-from jhein@timing.com) Received: from gromit.timing.com (gromit.timing.com [206.168.13.209]) by Daffy.timing.com (8.13.1/8.13.1) with ESMTP id m53JLMTU045013; Tue, 3 Jun 2008 13:21:22 -0600 (MDT) (envelope-from jhein@timing.com) Received: from gromit.timing.com (localhost [127.0.0.1]) by gromit.timing.com (8.14.2/8.14.2) with ESMTP id m53JLLTF066124; Tue, 3 Jun 2008 13:21:21 -0600 (MDT) (envelope-from jhein@gromit.timing.com) Received: (from jhein@localhost) by gromit.timing.com (8.14.2/8.14.2/Submit) id m53JLLIm066121; Tue, 3 Jun 2008 13:21:21 -0600 (MDT) (envelope-from jhein) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18501.39345.276357.941733@gromit.timing.com> Date: Tue, 3 Jun 2008 13:21:21 -0600 From: John E Hein To: emulation@freebsd.org X-Mailer: VM 7.19 under Emacs 22.1.1 X-Virus-Scanned: ClamAV version 0.91.2, clamav-milter version 0.91.2 on Daffy.timing.com X-Virus-Status: Clean Cc: Subject: mfc linux_stats.c:1.86 to releng_6 - fifoor fix 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, 03 Jun 2008 19:21:23 -0000 Can someone MFC to 6.x Junk-uk Kim's fix for the linux block-on-a-fifo problem (rev 1.86 of linux_stats.c)? I've been running with it for nearly two years now without a problem. It's already in RELENG_7. I prepared a patch against RELENG_6 to make it easier... Index: sys/compat/linux/linux_stats.c =================================================================== RCS file: /base/FreeBSD-CVS/src/sys/compat/linux/linux_stats.c,v retrieving revision 1.72.2.8 diff -u -p -r1.72.2.8 linux_stats.c --- sys/compat/linux/linux_stats.c 9 Jan 2008 16:07:32 -0000 1.72.2.8 +++ sys/compat/linux/linux_stats.c 3 Jun 2008 15:57:55 -0000 @@ -99,23 +99,16 @@ static void translate_fd_major_minor(struct thread *td, int fd, struct stat *buf) { struct file *fp; - int error; int major, minor; - if ((error = fget(td, fd, &fp)) != 0) + if ((!S_ISCHR(buf->st_mode) && !S_ISBLK(buf->st_mode)) || + fget(td, fd, &fp) != 0) return; - if (fp->f_vnode) { - if (fp->f_vnode->v_type == VCHR - || fp->f_vnode->v_type == VBLK) { - if (fp->f_vnode->v_un.vu_cdev) { - if (linux_driver_get_major_minor( - fp->f_vnode->v_un.vu_cdev->si_name, - &major, &minor) == 0) { - buf->st_rdev = (major << 8 | minor); - } - } - } - } + if (fp->f_vnode != NULL && + fp->f_vnode->v_un.vu_cdev != NULL && + linux_driver_get_major_minor(fp->f_vnode->v_un.vu_cdev->si_name, + &major, &minor) == 0) + buf->st_rdev = (major << 8 | minor); fdrop(fp, td); } @@ -128,6 +121,8 @@ translate_path_major_minor(struct thread int fd; int temp; + if (!S_ISCHR(buf->st_mode) && !S_ISBLK(buf->st_mode)) + return; temp = td->td_retval[0]; if (kern_open(td, path, UIO_SYSSPACE, O_RDONLY, 0) != 0) return; @@ -178,18 +173,19 @@ linux_newstat(struct thread *td, struct #endif error = kern_stat(td, path, UIO_SYSSPACE, &buf); - if (!error && strlen(path) > strlen("/dev/pts/") && - !strncmp(path, "/dev/pts/", strlen("/dev/pts/")) - && path[9] >= '0' && path[9] <= '9') { - /* - * Linux checks major and minors of the slave device to make - * sure it's a pty device, so let's make him believe it is. - */ - buf.st_rdev = (136 << 8); - } - - translate_path_major_minor(td, path, &buf); - + if (!error) { + if (strlen(path) > strlen("/dev/pts/") && + !strncmp(path, "/dev/pts/", strlen("/dev/pts/")) && + path[9] >= '0' && path[9] <= '9') { + /* + * Linux checks major and minors of the slave device + * to make sure it's a pty device, so let's make him + * believe it is. + */ + buf.st_rdev = (136 << 8); + } else + translate_path_major_minor(td, path, &buf); + } LFREEPATH(path); if (error) return (error); From owner-freebsd-emulation@FreeBSD.ORG Tue Jun 3 20:54:40 2008 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 00A7B1065688 for ; Tue, 3 Jun 2008 20:54:40 +0000 (UTC) (envelope-from nox@saturn.kn-bremen.de) Received: from gwyn.kn-bremen.de (gwyn.kn-bremen.de [212.63.36.242]) by mx1.freebsd.org (Postfix) with ESMTP id 7C1A68FC1F for ; Tue, 3 Jun 2008 20:54:39 +0000 (UTC) (envelope-from nox@saturn.kn-bremen.de) Received: by gwyn.kn-bremen.de (Postfix, from userid 10) id D6AE62E02B7; Tue, 3 Jun 2008 22:54:35 +0200 (CEST) Received: from saturn.kn-bremen.de (nox@localhost [127.0.0.1]) by saturn.kn-bremen.de (8.14.2/8.13.8) with ESMTP id m53KqlM0013868; Tue, 3 Jun 2008 22:52:47 +0200 (CEST) (envelope-from nox@saturn.kn-bremen.de) Received: (from nox@localhost) by saturn.kn-bremen.de (8.14.2/8.13.6/Submit) id m53KqjcO013867; Tue, 3 Jun 2008 22:52:45 +0200 (CEST) (envelope-from nox) From: Juergen Lock Date: Tue, 3 Jun 2008 22:52:45 +0200 To: Todd Wasson Message-ID: <20080603205245.GA13843@saturn.kn-bremen.de> Mail-Followup-To: Todd Wasson , freebsd-emulation@freebsd.org, Bakul Shah References: <20080515080948.3B1F15B47@mail.bitblocks.com> <200805152323.m4FNNO7H017348@saturn.kn-bremen.de> <20080518142427.GA20876@saturn.kn-bremen.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) Cc: freebsd-emulation@freebsd.org Subject: Re: kqemu locking my machine hard on amd64 smp, with most recent patches 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, 03 Jun 2008 20:54:40 -0000 On Sun, May 18, 2008 at 06:16:21PM -0400, Todd Wasson wrote: > Hi Juergen. That patch seems to have fixed the problem for me, as verified > with both kqemu-kmod-1.3.0.p11_6 and kqemu-kmod-1.3.0.p11_7. However, I'm > somewhat uneasy about using this patch on my system long-term, since it > hasn't been rigorously tested. Are there putative implications of this > patch with other software that I should be aware of? Is this kernel patch > considered to be the final fix, or just a band-aid until the underlying > cause can be addressed from within kqemu alone? I just noticed the new fixup code should better be called before entering the monitor not after, maybe that was what caused your problem. Can you please try the following patch (without the kernel patch)? Thanx, Juergen Index: Makefile =================================================================== RCS file: /home/pcvs/ports/emulators/kqemu-kmod/Makefile,v retrieving revision 1.26 diff -u -p -r1.26 Makefile --- Makefile 18 May 2008 20:23:40 -0000 1.26 +++ Makefile 3 Jun 2008 20:45:07 -0000 @@ -7,7 +7,7 @@ PORTNAME= kqemu PORTVERSION= 1.3.0.p11 -PORTREVISION= 7 +PORTREVISION= 8 CATEGORIES= emulators kld MASTER_SITES= http://fabrice.bellard.free.fr/qemu/ \ http://qemu.org/ \ Index: files/patch-tssworkaround =================================================================== RCS file: /home/pcvs/ports/emulators/kqemu-kmod/files/patch-tssworkaround,v retrieving revision 1.4 diff -u -p -r1.4 patch-tssworkaround --- files/patch-tssworkaround 18 May 2008 20:23:40 -0000 1.4 +++ files/patch-tssworkaround 3 Jun 2008 20:08:24 -0000 @@ -83,20 +83,21 @@ Index: common/kernel.c #endif #ifdef PROFILE -@@ -1188,6 +1191,13 @@ - apic_restore_nmi(s, apic_nmi_mask); +@@ -1096,6 +1099,14 @@ + apic_nmi_mask = apic_save_and_disable_nmi(s); } - profile_record(s); + +#ifdef __FreeBSD__ +#ifdef __x86_64__ + spin_lock(&g->lock); ++ asm volatile ("sgdt %0" : : "m" (s->kernel_gdt)); + kqemu_tss_fixup(s->kernel_gdt.base); + spin_unlock(&g->lock); +#endif +#endif - - if (s->mon_req == MON_REQ_IRQ) { - struct kqemu_exception_regs *r; + /* load breakpoint registers and avoid setting them if in the + monitor address space. We suppose that no breakpoints are + set by the host OS for this process */ Index: kqemu-kernel.h @@ -48,4 +48,10 @@ From owner-freebsd-emulation@FreeBSD.ORG Tue Jun 3 21:25:59 2008 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 A26751065670; Tue, 3 Jun 2008 21:25:59 +0000 (UTC) (envelope-from rdivacky@vlk.vlakno.cz) Received: from vlakno.cz (vlk.vlakno.cz [62.168.28.247]) by mx1.freebsd.org (Postfix) with ESMTP id 59E088FC0A; Tue, 3 Jun 2008 21:25:59 +0000 (UTC) (envelope-from rdivacky@vlk.vlakno.cz) Received: from localhost (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id 1D687680D58; Tue, 3 Jun 2008 23:25:14 +0200 (CEST) X-Virus-Scanned: amavisd-new at vlakno.cz Received: from vlakno.cz ([127.0.0.1]) by localhost (vlk.vlakno.cz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id YYEhxl5rf-+J; Tue, 3 Jun 2008 23:25:11 +0200 (CEST) Received: from vlk.vlakno.cz (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id 4B1ED680D1E; Tue, 3 Jun 2008 23:25:11 +0200 (CEST) Received: (from rdivacky@localhost) by vlk.vlakno.cz (8.14.2/8.14.2/Submit) id m53LPBki056282; Tue, 3 Jun 2008 23:25:11 +0200 (CEST) (envelope-from rdivacky) Date: Tue, 3 Jun 2008 23:25:11 +0200 From: Roman Divacky To: current@freebsd.org Message-ID: <20080603212511.GA55743@freebsd.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="IJpNTDwzlM2Ie8A6" Content-Disposition: inline User-Agent: Mutt/1.4.2.3i Cc: emulation@freebsd.org Subject: [HEADSUP]: Linux 2.6 emulation enabled on default 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, 03 Jun 2008 21:25:59 -0000 --IJpNTDwzlM2Ie8A6 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline hi, today I commited a patch that enabled Linux 2.6 emulation on default in contrast to 2.4 as it was until now. If you see any problems please contact emulation@ mailing list, I hope by enabling this on default we can put some more testing on the Linuxulator so we can ship 8.0R with 2.6 on default. This enables us to use newer linux_base than Fedora Core 4. there is a known problem with getdents() with a fix noone tested yet [1]. I also have a patch from NetBSD which I was unable to test but I am sure it's correct [2]. Please test those patches in a case of problems so I can commit them. thnx! roman [1] www.vlakno.cz/~rdivacky/getdents.patch [2] www.vlakno.cz/~rdivacky/linux_nptl.patch --IJpNTDwzlM2Ie8A6 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) iEYEARECAAYFAkhFtrcACgkQLVEj6D3CBEyV+wCfesUlptEad0F+z/mqYvTL+tk8 J1YAn11ac4Rzr73sACaxndpyn+mT2In8 =WVcR -----END PGP SIGNATURE----- --IJpNTDwzlM2Ie8A6-- From owner-freebsd-emulation@FreeBSD.ORG Tue Jun 3 21:38:14 2008 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 7A6A31065670 for ; Tue, 3 Jun 2008 21:38:14 +0000 (UTC) (envelope-from rdivacky@vlk.vlakno.cz) Received: from vlakno.cz (vlk.vlakno.cz [62.168.28.247]) by mx1.freebsd.org (Postfix) with ESMTP id 015E68FC0A for ; Tue, 3 Jun 2008 21:38:13 +0000 (UTC) (envelope-from rdivacky@vlk.vlakno.cz) Received: from localhost (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id 8D677680D60; Tue, 3 Jun 2008 23:37:28 +0200 (CEST) X-Virus-Scanned: amavisd-new at vlakno.cz Received: from vlakno.cz ([127.0.0.1]) by localhost (vlk.vlakno.cz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id eTVw65a-bPye; Tue, 3 Jun 2008 23:37:18 +0200 (CEST) Received: from vlk.vlakno.cz (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id 23868680D5D; Tue, 3 Jun 2008 23:37:18 +0200 (CEST) Received: (from rdivacky@localhost) by vlk.vlakno.cz (8.14.2/8.14.2/Submit) id m53LbHwP056904; Tue, 3 Jun 2008 23:37:17 +0200 (CEST) (envelope-from rdivacky) Date: Tue, 3 Jun 2008 23:37:17 +0200 From: Roman Divacky To: Chagin Dmitry Message-ID: <20080603213717.GA56678@freebsd.org> References: <200805191106.m4JB6oBF011533@freefall.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i Cc: freebsd-emulation@freebsd.org Subject: Re: 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: Tue, 03 Jun 2008 21:38:14 -0000 > struct l_dirent { > - l_long d_ino; > + l_ino_t d_ino; > l_off_t d_off; > l_ushort d_reclen; > char d_name[LINUX_NAME_MAX + 1]; this part is correct... linux indeed uses unsigned long which is l_ino_t. > @@ -536,6 +538,7 @@ linux_getdents64(struct thread *td, struct > linux_getdents64_args *args) > return (getdents_common(td, args, 1)); > } > > + > /* > * These exist mainly for hooks for doing /compat/linux translation. > */ > @@ -905,6 +908,7 @@ linux_truncate(struct thread *td, struct > linux_truncate_args *args) > return (error); > } > > +#if defined(__i386__) || (defined(__amd64__) && defined(COMPAT_LINUX32)) > int > linux_truncate64(struct thread *td, struct linux_truncate64_args *args) > { > @@ -922,6 +926,8 @@ linux_truncate64(struct thread *td, struct > linux_truncate64_args *args) > LFREEPATH(path); > return (error); > } > +#endif /* __i386__ || (__amd64__ && COMPAT_LINUX32) */ > + > int > linux_ftruncate(struct thread *td, struct linux_ftruncate_args *args) > { > @@ -1119,6 +1125,7 @@ linux_mount(struct thread *td, struct > linux_mount_args *args) > return (error); > } > > +#if defined(__i386__) || (defined(__amd64__) && defined(COMPAT_LINUX32)) > int > linux_oldumount(struct thread *td, struct linux_oldumount_args *args) > { > @@ -1128,6 +1135,7 @@ linux_oldumount(struct thread *td, struct > linux_oldumount_args *args) > args2.flags = 0; > return (linux_umount(td, &args2)); > } > +#endif /* __i386__ || (__amd64__ && COMPAT_LINUX32) */ > > int > linux_umount(struct thread *td, struct linux_umount_args *args) > @@ -1258,7 +1266,7 @@ bsd_to_linux_flock64(struct flock *bsd_flock, struct > l_flock64 *linux_flock) > #endif /* __i386__ || (__amd64__ && COMPAT_LINUX32) */ > > static int > -fcntl_common(struct thread *td, struct linux_fcntl64_args *args) > +fcntl_common(struct thread *td, struct linux_fcntl_args *args) > { > struct l_flock linux_flock; > struct flock bsd_flock; > @@ -1382,17 +1390,13 @@ fcntl_common(struct thread *td, struct > linux_fcntl64_args *args) > int > linux_fcntl(struct thread *td, struct linux_fcntl_args *args) > { > - struct linux_fcntl64_args args64; > > #ifdef DEBUG > if (ldebug(fcntl)) > printf(ARGS(fcntl, "%d, %08x, *"), args->fd, args->cmd); > #endif > > - args64.fd = args->fd; > - args64.cmd = args->cmd; > - args64.arg = args->arg; > - return (fcntl_common(td, &args64)); > + return (fcntl_common(td, args)); > } > > #if defined(__i386__) || (defined(__amd64__) && defined(COMPAT_LINUX32)) > @@ -1401,6 +1405,7 @@ linux_fcntl64(struct thread *td, struct > linux_fcntl64_args *args) > { > struct l_flock64 linux_flock; > struct flock bsd_flock; > + struct linux_fcntl_args fcntl_args; > int error; > > #ifdef DEBUG > @@ -1441,7 +1446,10 @@ linux_fcntl64(struct thread *td, struct > linux_fcntl64_args *args) > (intptr_t)&bsd_flock)); > } > > - return (fcntl_common(td, args)); > + fcntl_args.fd = args->fd; > + fcntl_args.cmd = args->cmd; > + fcntl_args.arg = args->arg; > + return (fcntl_common(td, &fcntl_args)); > } > #endif /* __i386__ || (__amd64__ && COMPAT_LINUX32) */ the replacement of fcntl64 with fcntl does not make any sense to me. those structures are exactly the same... can you test if just the first fix (long -> unsigned long) is sufficient to make the problem go away? thnx! roman From owner-freebsd-emulation@FreeBSD.ORG Tue Jun 3 21:44:00 2008 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 3C9051065681 for ; Tue, 3 Jun 2008 21:44:00 +0000 (UTC) (envelope-from bsam@ipt.ru) Received: from mail.ipt.ru (mail.ipt.ru [194.62.233.102]) by mx1.freebsd.org (Postfix) with ESMTP id E33788FC1C for ; Tue, 3 Jun 2008 21:43:59 +0000 (UTC) (envelope-from bsam@ipt.ru) Received: from sp34.ipt.ru ([194.62.233.107] helo=bs1.sp34.ru) by mail.ipt.ru with esmtp (Exim 4.62 (FreeBSD)) (envelope-from ) id 1K3eIQ-000IBu-4B; Wed, 04 Jun 2008 01:43:58 +0400 Received: from bsam by bs1.sp34.ru with local (Exim 4.69 (FreeBSD)) (envelope-from ) id 1K3eIX-000Hta-Vi; Wed, 04 Jun 2008 01:44:05 +0400 To: Roman Divacky References: <20080603212511.GA55743@freebsd.org> From: Boris Samorodov Date: Wed, 04 Jun 2008 01:44:05 +0400 In-Reply-To: <20080603212511.GA55743@freebsd.org> (Roman Divacky's message of "Tue\, 3 Jun 2008 23\:25\:11 +0200") Message-ID: <29223514@bs1.sp34.ru> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: emulation@freebsd.org, current@freebsd.org Subject: Re: [HEADSUP]: Linux 2.6 emulation enabled on default 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, 03 Jun 2008 21:44:00 -0000 On Tue, 3 Jun 2008 23:25:11 +0200 Roman Divacky wrote: > today I commited a patch that enabled Linux 2.6 emulation on default > in contrast to 2.4 as it was until now. Great! Roman, big thanks for you and all who participated. > If you see any problems please contact emulation@ mailing list, I > hope by enabling this on default we can put some more testing on the > Linuxulator so we can ship 8.0R with 2.6 on default. This enables > us to use newer linux_base than Fedora Core 4. Yes, just as Roman said: "This enables us...". No more, no less. The default linux base port is linux_base-fc4. It should work fine with 2.6 emulation. If someone want to override the default linux port then OVERRIDE_LINUX_BASE_PORT variable should be defined at /etc/make.conf. More information about how to update to a new linux base port one may find at /usr/ports/UPDATING. WBR -- Boris Samorodov (bsam) Research Engineer, http://www.ipt.ru Telephone & Internet SP FreeBSD committer, http://www.FreeBSD.org The Power To Serve From owner-freebsd-emulation@FreeBSD.ORG Wed Jun 4 06:40:32 2008 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 89CA4106564A for ; Wed, 4 Jun 2008 06:40:32 +0000 (UTC) (envelope-from itetcu@FreeBSD.org) Received: from it.buh.tecnik93.com (it.buh.tecnik93.com [81.196.204.98]) by mx1.freebsd.org (Postfix) with ESMTP id F239F8FC12 for ; Wed, 4 Jun 2008 06:40:31 +0000 (UTC) (envelope-from itetcu@FreeBSD.org) Received: from it.buh.tecnik93.com (localhost [127.0.0.1]) by it.buh.tecnik93.com (Postfix) with ESMTP id 8FBCD2C50D1B for ; Wed, 4 Jun 2008 09:40:30 +0300 (EEST) Date: Wed, 4 Jun 2008 09:40:30 +0300 From: Ion-Mihai Tetcu To: freebsd-emulation@FreeBSD.org Message-ID: <20080604094030.532f72ae@it.buh.tecnik93.com> X-Mailer: Claws Mail 3.4.0 (GTK+ 2.12.9; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: Subject: graphics/linux-png10 - ba plist X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Jun 2008 06:40:32 -0000 Hi, You receive this email if you are either the maintainer of the port or if you recently committed to it. If the error is already fixed please ignore this email; if you submit a PR to fix it CC me and I'll commit it ASAP. These emails are generated in one of the following cases: - an automated build was scheduled because the port was touched in CVS - the periodic QA build has reached it. - the port was scheduled because it is a dependency of a port from the cases above. There is no fixed interval for this; if other ports depend on it you will receive this emails more often since testing those other ports is made impossible by this port being broken. Efforts are made to restrict the number of outgoing emails to one/port/week for QA or dependency builds (but not for commit-triggered builds; if you commit 3 times in 5 minutes to the same port and the first 2 versions fail you'll receive 2 emails). The builds are done under tinderbox-2.4.2_2 , on 7-STABLE on amd64, with tinderd_flags="-nullfs -plistcheck -onceonly" and ccache support, with the official up-to-date Ports Tree (for commit-triggered builds the files are fetched via CVSWeb), with the following vars set: FORCE_PACKAGE=yes, NOPORTDOCS=yes, NOPORTEXAMPLES=yes, NOPORTDATA=yes. When you fix install/plist errors please bear in mind that each of the 3 NO* vars controls the installation of different type of files, so constructs like: .ifndef NOPORTDOCS @${MKDIR} ${DATADIR} ... .endif or %%PORTDOCS%%%%EXAMPLESDIR%%/some_example_file are wrong, WRONG, _WRONG_. The error which triggered this email is bellow: ======================================== ===> Building package for linux-png-1.0.18 Creating package /tmp/packages/All/linux-png-1.0.18.tbz Registering depends: linux_base-fc-4_13. Creating bzip'd tar ball in '/tmp/packages/All/linux-png-1.0.18.tbz' Deleting linux-png-1.0.18 ================================================================ === Checking filesystem state list of extra files and directories in / (not present before this port was installed but present after it was deinstalled) 15358872 4 drwxr-xr-x 2 root wheel 512 Jun 4 02:10 compat/linux/usr/share/doc/libpng10-1.0.18 15358873 156 -rw-r--r-- 1 root wheel 78778 Jun 4 02:09 compat/linux/usr/share/doc/libpng10-1.0.18/CHANGES 15358874 12 -rw-r--r-- 1 root wheel 4105 Jun 4 02:09 compat/linux/usr/share/doc/libpng10-1.0.18/LICENSE 15358875 28 -rw-r--r-- 1 root wheel 13995 Jun 4 02:09 compat/linux/usr/share/doc/libpng10-1.0.18/README 15358876 4 -rw-r--r-- 1 root wheel 1182 Jun 4 02:09 compat/linux/usr/share/doc/libpng10-1.0.18/TODO 15358877 60 -rw-r--r-- 1 root wheel 29793 Jun 4 02:09 compat/linux/usr/share/doc/libpng10-1.0.18/example.c 15358878 240 -rw-r--r-- 1 root wheel 121006 Jun 4 02:09 compat/linux/usr/share/doc/libpng10-1.0.18/libpng.txt ================================================================ build of /usr/ports/graphics/linux-png10 ended at Wed Jun 4 02:10:21 UTC 2008 http://t64.tecnik93.com/errors/7-STABLE-FTP/linux-png-1.0.18.log Thanks for your work on making FreeBSD better, -- IOnut - Un^d^dregistered ;) FreeBSD "user" "Intellectual Property" is nowhere near as valuable as "Intellect" FreeBSD committer -> itetcu@FreeBSD.org, PGP Key ID 057E9F8B493A297B From owner-freebsd-emulation@FreeBSD.ORG Wed Jun 4 08:23:35 2008 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 3FB48106564A for ; Wed, 4 Jun 2008 08:23:35 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from redbull.bpaserver.net (redbullneu.bpaserver.net [213.198.78.217]) by mx1.freebsd.org (Postfix) with ESMTP id E1A288FC14 for ; Wed, 4 Jun 2008 08:23:34 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from outgoing.leidinger.net (p54A5737A.dip.t-dialin.net [84.165.115.122]) by redbull.bpaserver.net (Postfix) with ESMTP id 744D72E098; Wed, 4 Jun 2008 10:23:29 +0200 (CEST) Received: from webmail.leidinger.net (webmail.leidinger.net [192.168.1.102]) by outgoing.leidinger.net (Postfix) with ESMTP id D2BFA1155BC; Wed, 4 Jun 2008 10:23:26 +0200 (CEST) Received: (from www@localhost) by webmail.leidinger.net (8.14.2/8.13.8/Submit) id m548NP4u078835; Wed, 4 Jun 2008 10:23:25 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from pslux.cec.eu.int (pslux.cec.eu.int [158.169.9.14]) by webmail.leidinger.net (Horde Framework) with HTTP; Wed, 04 Jun 2008 10:23:25 +0200 Message-ID: <20080604102325.206044izm4lgmjok@webmail.leidinger.net> X-Priority: 3 (Normal) Date: Wed, 04 Jun 2008 10:23:25 +0200 From: Alexander Leidinger To: rick-freebsd@kiwi-computer.com References: <3b47caa90806011858y69b04edap806f34712c346b52@mail.gmail.com> <20080602075128.GA67510@freebsd.org> <20080602210128.GA36770@keira.kiwi-computer.com> <20080603110607.31037ihwi7u55oso@webmail.leidinger.net> <20080603161212.GA49615@keira.kiwi-computer.com> In-Reply-To: <20080603161212.GA49615@keira.kiwi-computer.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable User-Agent: Internet Messaging Program (IMP) H3 (4.2-RC2) / FreeBSD-8.0 X-BPAnet-MailScanner-Information: Please contact the ISP for more information X-BPAnet-MailScanner: Found to be clean X-BPAnet-MailScanner-SpamCheck: not spam, ORDB-RBL, SpamAssassin (not cached, score=-14.9, required 6, BAYES_00 -15.00, RDNS_DYNAMIC 0.10) X-BPAnet-MailScanner-From: alexander@leidinger.net X-Spam-Status: No Cc: freebsd-emulation@freebsd.org, Novembre Subject: Re: linux 2.6 on 7.0-RELEASE 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, 04 Jun 2008 08:23:35 -0000 Quoting "Rick C. Petty" (from Tue, 3 =20 Jun 2008 11:12:12 -0500): > On Tue, Jun 03, 2008 at 11:06:07AM +0200, Alexander Leidinger wrote: >> Quoting "Rick C. Petty" (from Mon, 2 >> Jun 2008 16:01:28 -0500): >> >> >Howso? I always get the error: >> > >> >compat.linux.osrelease: 2.4.2 is not supported >> >> What operation are you doing to get this error? If you install a linux >> base port which depends upon 2.6: you need to switch the linuxulator >> into 2.6 mode first. See other mails here. IF you do something else: >> pleas show us the command. > > portmaster -gDb emulators/linux_base-fc6 > > Perhaps the suggestion to setting compat.linux.osrelease should be > specified in the port's Makefile, maybe part of the IGNORE message. I > would not have thought to do that; it's very unobvious. A normal user is not supposed to install the non-default f6 =20 (unfortunately skype requires it, so in case you come this way, =20 complain to the maintainer of skype to not provide enough instructions =20 for you). If someone installs f6, he is supposed to know enough about =20 the topic that he doesn't stumbles over this problem. If someone =20 stumbles over it, he doesn't know enough about it yet. f6 support is =20 experimental stuff, so expect problems. Bye, Alexander. --=20 I never failed to convince an audience that the best thing they could do was to go away. http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID =3D B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID =3D 72077137 From owner-freebsd-emulation@FreeBSD.ORG Wed Jun 4 10:52:13 2008 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 CB6131065671 for ; Wed, 4 Jun 2008 10:52:13 +0000 (UTC) (envelope-from vova@sw.ru) Received: from relay.sw.ru (mailhub.sw.ru [195.214.232.25]) by mx1.freebsd.org (Postfix) with ESMTP id 35A608FC14 for ; Wed, 4 Jun 2008 10:52:12 +0000 (UTC) (envelope-from vova@sw.ru) Received: from vbook.fbsd.ru ([10.30.1.111]) (authenticated bits=0) by relay.sw.ru (8.13.4/8.13.4) with ESMTP id m54AG3d0004958 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Wed, 4 Jun 2008 14:16:04 +0400 (MSD) Received: from vova by vbook.fbsd.ru with local (Exim 4.69 (FreeBSD)) (envelope-from ) id 1K3q1f-000Ksa-MA for emulation@freebsd.org; Wed, 04 Jun 2008 14:15:27 +0400 From: Vladimir Grebenschikov To: emulation@freebsd.org Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: quoted-printable Organization: SWsoft Date: Wed, 04 Jun 2008 14:15:26 +0400 Message-Id: <1212574526.1613.25.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.22.2 FreeBSD GNOME Team Port Sender: Vladimir Grebenschikov Cc: Subject: Failed to build recent wine (1.0-rc3) on 8-CURRENT 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, 04 Jun 2008 10:52:13 -0000 Hi=20 # portupgrade wine .... cc -c -I. -I. -I../../include -I../../include -D__WINESRC__ -D_WINX32_ -D_= REENTRANT -fPIC -Wall -pipe -fno-strict-aliasing -Wdeclaration-after-statem= ent -Wwrite-strings -Wpointer-arith -I/usr/local/include -O2 -pipe -fno-st= rict-aliasing -o http.o http.c In file included from /usr/local/include/openssl/ssl.h:183, from internet.h:48, from http.c:60: /usr/local/include/openssl/x509.h:207: error: expected ')' before numeric c= onstant In file included from /usr/local/include/openssl/ssl.h:183, from internet.h:48, from http.c:60: /usr/local/include/openssl/x509.h:929: error: expected identifier or '(' be= fore 'LPCSTR' /usr/local/include/openssl/x509.h:929: error: expected ')' before numeric c= onstant /usr/local/include/openssl/x509.h:929: error: expected declaration specifie= rs or '...' before '(' token /usr/local/include/openssl/x509.h:929: error: expected ')' before numeric c= onstant In file included from /usr/local/include/openssl/ssl.h:183, from internet.h:48, from http.c:60: /usr/local/include/openssl/x509.h:929:1: error: pasting ")" and "_it" does = not give a valid preprocessing token gmake[2]: *** [http.o] =EF=DB=C9=C2=CB=C1 1 gmake[2]: Leaving directory `/usr/ports/emulators/wine/work/wine-1.0-rc3/dl= ls/wininet' gmake[1]: *** [wininet] =EF=DB=C9=C2=CB=C1 2 gmake[1]: Leaving directory `/usr/ports/emulators/wine/work/wine-1.0-rc3/dl= ls' gmake: *** [dlls] =EF=DB=C9=C2=CB=C1 2 *** Error code 2 Stop in /usr/ports/emulators/wine. ** Command failed [exit code 1]: /usr/bin/script -qa /tmp/portupgrade.40169= .0 env UPGRADE_TOOL=3Dportupgrade UPGRADE_PORT=3Dwine-1.0.r2,1 UPGRADE_PORT= _VER=3D1.0.r2,1 make ** Fix the problem and try again. ** Listing the failed packages (-:ignored / *:skipped / !:failed) ! emulators/wine (wine-1.0.r2,1) (unknown build error) Script done, output file is /var/log/portupgrade/40164.output ! emulators/wine (wine-1.0.r2,1) (unknown build error) # pkg_info -I wine\* openssl\* openssl-0.9.8h SSL and crypto library wine-1.0.r2,1 Microsoft Windows compatibility layer for Unix-like sys= tems # Any hints will be very appreciated. --=20 Vladimir B. Grebenschikov Parallels Inc. vova@parallels.com From owner-freebsd-emulation@FreeBSD.ORG Wed Jun 4 14:34:16 2008 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 0EED41065686; Wed, 4 Jun 2008 14:34:16 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from redbull.bpaserver.net (redbullneu.bpaserver.net [213.198.78.217]) by mx1.freebsd.org (Postfix) with ESMTP id B11128FC0A; Wed, 4 Jun 2008 14:34:15 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from outgoing.leidinger.net (p54A5737A.dip.t-dialin.net [84.165.115.122]) by redbull.bpaserver.net (Postfix) with ESMTP id 3BAFF2E290; Wed, 4 Jun 2008 16:34:06 +0200 (CEST) Received: from webmail.leidinger.net (webmail.leidinger.net [192.168.1.102]) by outgoing.leidinger.net (Postfix) with ESMTP id 88E79113449; Wed, 4 Jun 2008 16:34:03 +0200 (CEST) Received: (from www@localhost) by webmail.leidinger.net (8.14.2/8.13.8/Submit) id m54EY38h040850; Wed, 4 Jun 2008 16:34:03 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from pslux.cec.eu.int (pslux.cec.eu.int [158.169.9.14]) by webmail.leidinger.net (Horde Framework) with HTTP; Wed, 04 Jun 2008 16:34:03 +0200 Message-ID: <20080604163403.94472bf83paff3rs@webmail.leidinger.net> X-Priority: 3 (Normal) Date: Wed, 04 Jun 2008 16:34:03 +0200 From: Alexander Leidinger To: Roman Divacky References: <20080603212511.GA55743@freebsd.org> In-Reply-To: <20080603212511.GA55743@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable User-Agent: Internet Messaging Program (IMP) H3 (4.2-RC2) / FreeBSD-8.0 X-BPAnet-MailScanner-Information: Please contact the ISP for more information X-BPAnet-MailScanner: Found to be clean X-BPAnet-MailScanner-SpamCheck: not spam, ORDB-RBL, SpamAssassin (not cached, score=-14.9, required 6, BAYES_00 -15.00, RDNS_DYNAMIC 0.10) X-BPAnet-MailScanner-From: alexander@leidinger.net X-Spam-Status: No Cc: emulation@freebsd.org, current@freebsd.org Subject: Re: [HEADSUP]: Linux 2.6 emulation enabled on default 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, 04 Jun 2008 14:34:16 -0000 Quoting Roman Divacky (from Tue, 3 Jun 2008 =20 23:25:11 +0200): > hi, > > today I commited a patch that enabled Linux 2.6 emulation on default > in contrast to 2.4 as it was until now. At some point we need a FreeBSD revision bump to be able to determine =20 in the ports if we have a default 2.6.16 or a manual 2.6.16. This can =20 be now, or at some point in the future when you commit some patches to =20 the linuxulator which fix some 2.6 bugs (maybe the ones you specified =20 at the end of your mail). This allows us to switch the default linux_base port upon something =20 else than only the linuxlator version (nothing planned yet, but at =20 least we have the possiblity then). Personally I would try to be on the safe side by bumping the freebsd =20 version now to denote the transition point. If no showstopper bug =20 shows up, we can use this freebsd version value to handle the userland =20 side of the linuxulator, if we stumble upon a showstopper bug, we can =20 bump the freebsd version again. Bye, Alexander. --=20 http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID =3D B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID =3D 72077137 From owner-freebsd-emulation@FreeBSD.ORG Wed Jun 4 15:21:18 2008 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 AB61D1065672 for ; Wed, 4 Jun 2008 15:21:18 +0000 (UTC) (envelope-from eculp@encontacto.net) Received: from ns2.bafirst.com (72-12-2-19.static.networktel.net [72.12.2.19]) by mx1.freebsd.org (Postfix) with ESMTP id 2EE2B8FC1A for ; Wed, 4 Jun 2008 15:21:17 +0000 (UTC) (envelope-from eculp@encontacto.net) Received: from HOME.encontacto.net ([189.190.8.164]) by ns2.bafirst.com with esmtp; Wed, 04 Jun 2008 10:10:59 -0500 id 000D4CB6.4846B084.00000134 Received: from localhost (localhost [127.0.0.1]) (uid 80) by HOME.encontacto.net with local; Wed, 04 Jun 2008 10:10:54 -0500 id 0004AC20.4846B07E.0000BA91 Received: from 172.16.0.2 ([172.16.0.2]) by intranet.encontacto.net (Horde Framework) with HTTP; Wed, 04 Jun 2008 10:10:53 -0500 Message-ID: <20080604101053.73757ihhz0p3t748@intranet.encontacto.net> Date: Wed, 04 Jun 2008 10:10:53 -0500 From: eculp To: emulation@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) H3 (4.2-cvs) Cc: Subject: Confirm that wine will not build and run on amd64 current. 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, 04 Jun 2008 15:21:18 -0000 I just want to confirm that wine will not build and run on amd64 current as the port says. Thanks, ed From owner-freebsd-emulation@FreeBSD.ORG Wed Jun 4 15:36:47 2008 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 838A61065671 for ; Wed, 4 Jun 2008 15:36:47 +0000 (UTC) (envelope-from bsam@ipt.ru) Received: from mail.ipt.ru (mail.ipt.ru [194.62.233.102]) by mx1.freebsd.org (Postfix) with ESMTP id 3041C8FC13 for ; Wed, 4 Jun 2008 15:36:47 +0000 (UTC) (envelope-from bsam@ipt.ru) Received: from sp34.ipt.ru ([194.62.233.107] helo=bs1.sp34.ru) by mail.ipt.ru with esmtp (Exim 4.62 (FreeBSD)) (envelope-from ) id 1K3v2b-000NPN-Ee; Wed, 04 Jun 2008 19:36:45 +0400 Received: from bsam by bs1.sp34.ru with local (Exim 4.69 (FreeBSD)) (envelope-from ) id 1K3v2n-0000TG-NM; Wed, 04 Jun 2008 19:36:57 +0400 To: Vladimir Grebenschikov References: <1212574526.1613.25.camel@localhost> From: Boris Samorodov Date: Wed, 04 Jun 2008 19:36:57 +0400 In-Reply-To: <1212574526.1613.25.camel@localhost> (Vladimir Grebenschikov's message of "Wed\, 04 Jun 2008 14\:15\:26 +0400") Message-ID: <50651286@bs1.sp34.ru> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: emulation@freebsd.org Subject: Re: Failed to build recent wine (1.0-rc3) on 8-CURRENT 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, 04 Jun 2008 15:36:47 -0000 On Wed, 04 Jun 2008 14:15:26 +0400 Vladimir Grebenschikov wrote: > # portupgrade wine > .... > cc -c -I. -I. -I../../include -I../../include -D__WINESRC__ -D_WINX32_ -= D_REENTRANT -fPIC -Wall -pipe -fno-strict-aliasing -Wdeclaration-after-stat= ement -Wwrite-strings -Wpointer-arith -I/usr/local/include -O2 -pipe -fno-= strict-aliasing -o http.o http.c > In file included from /usr/local/include/openssl/ssl.h:183, > from internet.h:48, > from http.c:60: > /usr/local/include/openssl/x509.h:207: error: expected ')' before numeric= constant > In file included from /usr/local/include/openssl/ssl.h:183, > from internet.h:48, > from http.c:60: > /usr/local/include/openssl/x509.h:929: error: expected identifier or '(' = before 'LPCSTR' > /usr/local/include/openssl/x509.h:929: error: expected ')' before numeric= constant > /usr/local/include/openssl/x509.h:929: error: expected declaration specif= iers or '...' before '(' token > /usr/local/include/openssl/x509.h:929: error: expected ')' before numeric= constant > In file included from /usr/local/include/openssl/ssl.h:183, > from internet.h:48, > from http.c:60: > /usr/local/include/openssl/x509.h:929:1: error: pasting ")" and "_it" doe= s not give a valid preprocessing token > gmake[2]: *** [http.o] =D0=9E=D1=88=D0=B8=D0=B1=D0=BA=D0=B0 1 > gmake[2]: Leaving directory `/usr/ports/emulators/wine/work/wine-1.0-rc3/= dlls/wininet' > gmake[1]: *** [wininet] =D0=9E=D1=88=D0=B8=D0=B1=D0=BA=D0=B0 2 > gmake[1]: Leaving directory `/usr/ports/emulators/wine/work/wine-1.0-rc3/= dlls' > gmake: *** [dlls] =D0=9E=D1=88=D0=B8=D0=B1=D0=BA=D0=B0 2 > *** Error code 2 > Stop in /usr/ports/emulators/wine. > ** Command failed [exit code 1]: /usr/bin/script -qa /tmp/portupgrade.401= 69.0 env UPGRADE_TOOL=3Dportupgrade UPGRADE_PORT=3Dwine-1.0.r2,1 UPGRADE_PO= RT_VER=3D1.0.r2,1 make > ** Fix the problem and try again. > ** Listing the failed packages (-:ignored / *:skipped / !:failed) > ! emulators/wine (wine-1.0.r2,1) (unknown build error) > Script done, output file is /var/log/portupgrade/40164.output > ! emulators/wine (wine-1.0.r2,1) (unknown build error) > # pkg_info -I wine\* openssl\* > openssl-0.9.8h SSL and crypto library > wine-1.0.r2,1 Microsoft Windows compatibility layer for Unix-like s= ystems > # > Any hints will be very appreciated. I don't know if it really may help but I don't have installed openssl from ports and wine is built just fine. One warning though. I managed to use Cyrillic fonts only if wine is compiled with apropriate locale. HTH & WBR --=20 Boris Samorodov (bsam) Research Engineer, http://www.ipt.ru Telephone & Internet SP FreeBSD committer, http://www.FreeBSD.org The Power To Serve From owner-freebsd-emulation@FreeBSD.ORG Wed Jun 4 16:13:59 2008 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 6AE6A10656B9 for ; Wed, 4 Jun 2008 16:13:59 +0000 (UTC) (envelope-from rick@kiwi-computer.com) Received: from kiwi-computer.com (keira.kiwi-computer.com [63.224.10.3]) by mx1.freebsd.org (Postfix) with SMTP id E5D308FC27 for ; Wed, 4 Jun 2008 16:13:58 +0000 (UTC) (envelope-from rick@kiwi-computer.com) Received: (qmail 67749 invoked by uid 2001); 4 Jun 2008 16:13:57 -0000 Date: Wed, 4 Jun 2008 11:13:57 -0500 From: "Rick C. Petty" To: Alexander Leidinger Message-ID: <20080604161357.GA67625@keira.kiwi-computer.com> References: <3b47caa90806011858y69b04edap806f34712c346b52@mail.gmail.com> <20080602075128.GA67510@freebsd.org> <20080602210128.GA36770@keira.kiwi-computer.com> <20080603110607.31037ihwi7u55oso@webmail.leidinger.net> <20080603161212.GA49615@keira.kiwi-computer.com> <20080604102325.206044izm4lgmjok@webmail.leidinger.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080604102325.206044izm4lgmjok@webmail.leidinger.net> User-Agent: Mutt/1.4.2.3i Cc: freebsd-emulation@freebsd.org Subject: Re: linux 2.6 on 7.0-RELEASE X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: rick-freebsd@kiwi-computer.com List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Jun 2008 16:13:59 -0000 On Wed, Jun 04, 2008 at 10:23:25AM +0200, Alexander Leidinger wrote: > > A normal user is not supposed to install the non-default f6 > (unfortunately skype requires it, so in case you come this way, > complain to the maintainer of skype to not provide enough instructions > for you). I don't think that skype should provide said instructions. > If someone installs f6, he is supposed to know enough about > the topic that he doesn't stumbles over this problem. If someone > stumbles over it, he doesn't know enough about it yet. f6 support is > experimental stuff, so expect problems. Hmm. All I'm saying is adding a note in the Makefile wouldn't hurt any. Put your Beware Of Dog warnings in there, but I think that extra info in this case is not a bad thing. I subscribe to and follow the -emulation list but that does not mean I read every single message, especially when the threads are long and not immediately applicable to me. I'm just saying that throwing in extra information into the Makefile of -fc6 would do more good than harm. -- Rick C. Petty From owner-freebsd-emulation@FreeBSD.ORG Wed Jun 4 17:24:20 2008 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 39AB1106566B for ; Wed, 4 Jun 2008 17:24:20 +0000 (UTC) (envelope-from eculp@encontacto.net) Received: from ns2.bafirst.com (72-12-2-19.static.networktel.net [72.12.2.19]) by mx1.freebsd.org (Postfix) with ESMTP id C93358FC1D for ; Wed, 4 Jun 2008 17:24:19 +0000 (UTC) (envelope-from eculp@encontacto.net) Received: from HOME.encontacto.net ([189.190.8.164]) by ns2.bafirst.com with esmtp; Wed, 04 Jun 2008 12:24:12 -0500 id 000D4CB6.4846CFBD.0000057E Received: from localhost (localhost [127.0.0.1]) (uid 80) by HOME.encontacto.net with local; Wed, 04 Jun 2008 12:24:07 -0500 id 0004AC1B.4846CFB7.0000D1EE Received: from 172.16.0.2 ([172.16.0.2]) by intranet.encontacto.net (Horde Framework) with HTTP; Wed, 04 Jun 2008 12:24:07 -0500 Message-ID: <20080604122407.188217sdanmlq37k@intranet.encontacto.net> Date: Wed, 04 Jun 2008 12:24:07 -0500 From: eculp To: emulation@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) H3 (4.2-cvs) Cc: Subject: qemu: could not open disk image /tmp/c.img that was created by 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: Wed, 04 Jun 2008 17:24:20 -0000 I'm running amd64 current-8 and am up to date on most everything. I'm trying to give qemu a try and am using the quick start on the qemu site, step by step and got all the way to the second step ;) # qemu-img create -f qcow c.img 3G Formatting 'c.img', fmt=qcow, size=3145728 kB # qemu -cdrom /dev/acd0 -hda /tmp/c.img -m 256 -boot d qemu: could not open disk image /tmp/c.img acd0 was an unmounted windowsXP installation CD. Should the procedure be changed for FreeBSD, I obviously assumed not? Thanks, ed From owner-freebsd-emulation@FreeBSD.ORG Wed Jun 4 18:10:33 2008 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 6E9791065670 for ; Wed, 4 Jun 2008 18:10:33 +0000 (UTC) (envelope-from bsam@ipt.ru) Received: from mail.ipt.ru (mail.ipt.ru [194.62.233.102]) by mx1.freebsd.org (Postfix) with ESMTP id 1C1C48FC13 for ; Wed, 4 Jun 2008 18:10:33 +0000 (UTC) (envelope-from bsam@ipt.ru) Received: from sp34.ipt.ru ([194.62.233.107] helo=bs1.sp34.ru) by mail.ipt.ru with esmtp (Exim 4.62 (FreeBSD)) (envelope-from ) id 1K3xRP-000O0l-Lx; Wed, 04 Jun 2008 22:10:31 +0400 Received: from bsam by bs1.sp34.ru with local (Exim 4.69 (FreeBSD)) (envelope-from ) id 1K3xRb-0000eF-E6; Wed, 04 Jun 2008 22:10:43 +0400 To: Vladimir Grebenschikov References: <1212574526.1613.25.camel@localhost> From: Boris Samorodov Date: Wed, 04 Jun 2008 22:10:43 +0400 In-Reply-To: <1212574526.1613.25.camel@localhost> (Vladimir Grebenschikov's message of "Wed\, 04 Jun 2008 14\:15\:26 +0400") Message-ID: <52412060@bs1.sp34.ru> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: emulation@freebsd.org Subject: Re: Failed to build recent wine (1.0-rc3) on 8-CURRENT 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, 04 Jun 2008 18:10:33 -0000 On Wed, 04 Jun 2008 14:15:26 +0400 Vladimir Grebenschikov wrote: > Script done, output file is /var/log/portupgrade/40164.output > ! emulators/wine (wine-1.0.r2,1) (unknown build error) > # pkg_info -I wine\* openssl\* > openssl-0.9.8h SSL and crypto library > wine-1.0.r2,1 Microsoft Windows compatibility layer for Unix-like systems > # > Any hints will be very appreciated. A fix seems to be just committed to the port. WBR -- Boris Samorodov (bsam) Research Engineer, http://www.ipt.ru Telephone & Internet SP FreeBSD committer, http://www.FreeBSD.org The Power To Serve From owner-freebsd-emulation@FreeBSD.ORG Thu Jun 5 01:04:02 2008 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 19296106564A for ; Thu, 5 Jun 2008 01:04:02 +0000 (UTC) (envelope-from tsw5@duke.edu) Received: from smtp.duke.edu (smtp-03.oit.duke.edu [152.3.174.16]) by mx1.freebsd.org (Postfix) with ESMTP id C2CF88FC12 for ; Thu, 5 Jun 2008 01:04:01 +0000 (UTC) (envelope-from tsw5@duke.edu) Received: from smtp.duke.edu (localhost.localdomain [127.0.0.1]) by localhost (Postfix) with SMTP id C6B39867B; Wed, 4 Jun 2008 21:04:00 -0400 (EDT) Received: from avenue.wintermute (cpe-076-182-024-090.nc.res.rr.com [76.182.24.90]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by smtp.duke.edu (Postfix) with ESMTP id 887338066; Wed, 4 Jun 2008 21:04:00 -0400 (EDT) Message-Id: From: Todd Wasson To: Juergen Lock In-Reply-To: <20080603205245.GA13843@saturn.kn-bremen.de> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v924) Date: Wed, 4 Jun 2008 21:03:59 -0400 References: <20080515080948.3B1F15B47@mail.bitblocks.com> <200805152323.m4FNNO7H017348@saturn.kn-bremen.de> <20080518142427.GA20876@saturn.kn-bremen.de> <20080603205245.GA13843@saturn.kn-bremen.de> X-Mailer: Apple Mail (2.924) X-PMX-Version: 5.4.1.325704, Antispam-Engine: 2.6.0.325393, Antispam-Data: 2008.6.4.174601 Cc: freebsd-emulation@freebsd.org Subject: Re: kqemu locking my machine hard on amd64 smp, with most recent patches 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, 05 Jun 2008 01:04:02 -0000 Wow, it worked! Thanks a ton. I've successfully booted a linux and windows xp image now on my machine with the 7.0-RELEASE kernel. Thanks for all of your hard work! Todd On Jun 3, 2008, at 4:52 PM, Juergen Lock wrote: > On Sun, May 18, 2008 at 06:16:21PM -0400, Todd Wasson wrote: >> Hi Juergen. That patch seems to have fixed the problem for me, as >> verified >> with both kqemu-kmod-1.3.0.p11_6 and kqemu-kmod-1.3.0.p11_7. >> However, I'm >> somewhat uneasy about using this patch on my system long-term, >> since it >> hasn't been rigorously tested. Are there putative implications of >> this >> patch with other software that I should be aware of? Is this >> kernel patch >> considered to be the final fix, or just a band-aid until the >> underlying >> cause can be addressed from within kqemu alone? > > I just noticed the new fixup code should better be called before > entering the monitor not after, maybe that was what caused your > problem. > Can you please try the following patch (without the kernel patch)? > > Thanx, > Juergen > > Index: Makefile > =================================================================== > RCS file: /home/pcvs/ports/emulators/kqemu-kmod/Makefile,v > retrieving revision 1.26 > diff -u -p -r1.26 Makefile > --- Makefile 18 May 2008 20:23:40 -0000 1.26 > +++ Makefile 3 Jun 2008 20:45:07 -0000 > @@ -7,7 +7,7 @@ > > PORTNAME= kqemu > PORTVERSION= 1.3.0.p11 > -PORTREVISION= 7 > +PORTREVISION= 8 > CATEGORIES= emulators kld > MASTER_SITES= http://fabrice.bellard.free.fr/qemu/ \ > http://qemu.org/ \ > Index: files/patch-tssworkaround > =================================================================== > RCS file: /home/pcvs/ports/emulators/kqemu-kmod/files/patch- > tssworkaround,v > retrieving revision 1.4 > diff -u -p -r1.4 patch-tssworkaround > --- files/patch-tssworkaround 18 May 2008 20:23:40 -0000 1.4 > +++ files/patch-tssworkaround 3 Jun 2008 20:08:24 -0000 > @@ -83,20 +83,21 @@ Index: common/kernel.c > #endif > > #ifdef PROFILE > -@@ -1188,6 +1191,13 @@ > - apic_restore_nmi(s, apic_nmi_mask); > +@@ -1096,6 +1099,14 @@ > + apic_nmi_mask = apic_save_and_disable_nmi(s); > } > - profile_record(s); > + > +#ifdef __FreeBSD__ > +#ifdef __x86_64__ > + spin_lock(&g->lock); > ++ asm volatile ("sgdt %0" : : "m" (s->kernel_gdt)); > + kqemu_tss_fixup(s->kernel_gdt.base); > + spin_unlock(&g->lock); > +#endif > +#endif > - > - if (s->mon_req == MON_REQ_IRQ) { > - struct kqemu_exception_regs *r; > + /* load breakpoint registers and avoid setting them if in > the > + monitor address space. We suppose that no breakpoints are > + set by the host OS for this process */ > Index: kqemu-kernel.h > @@ -48,4 +48,10 @@ > From owner-freebsd-emulation@FreeBSD.ORG Thu Jun 5 21:22:32 2008 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 8C3DC106566C for ; Thu, 5 Jun 2008 21:22:32 +0000 (UTC) (envelope-from nox@saturn.kn-bremen.de) Received: from gwyn.kn-bremen.de (gwyn.kn-bremen.de [212.63.36.242]) by mx1.freebsd.org (Postfix) with ESMTP id 443258FC19 for ; Thu, 5 Jun 2008 21:22:32 +0000 (UTC) (envelope-from nox@saturn.kn-bremen.de) Received: by gwyn.kn-bremen.de (Postfix, from userid 10) id 7CEA32DFC7D; Thu, 5 Jun 2008 23:22:30 +0200 (CEST) Received: from saturn.kn-bremen.de (nox@localhost [127.0.0.1]) by saturn.kn-bremen.de (8.14.2/8.13.8) with ESMTP id m55LCWkD075990; Thu, 5 Jun 2008 23:12:32 +0200 (CEST) (envelope-from nox@saturn.kn-bremen.de) Received: (from nox@localhost) by saturn.kn-bremen.de (8.14.2/8.13.6/Submit) id m55LCUtm075989; Thu, 5 Jun 2008 23:12:30 +0200 (CEST) (envelope-from nox) From: Juergen Lock Date: Thu, 5 Jun 2008 23:12:30 +0200 To: Todd Wasson Message-ID: <20080605211230.GA75969@saturn.kn-bremen.de> Mail-Followup-To: Todd Wasson , freebsd-emulation@freebsd.org, Bakul Shah References: <20080515080948.3B1F15B47@mail.bitblocks.com> <200805152323.m4FNNO7H017348@saturn.kn-bremen.de> <20080518142427.GA20876@saturn.kn-bremen.de> <20080603205245.GA13843@saturn.kn-bremen.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) Cc: freebsd-emulation@freebsd.org Subject: Re: kqemu locking my machine hard on amd64 smp, with most recent patches 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, 05 Jun 2008 21:22:32 -0000 On Wed, Jun 04, 2008 at 09:03:59PM -0400, Todd Wasson wrote: > Wow, it worked! Thanks a ton. I've successfully booted a linux and > windows xp image now on my machine with the 7.0-RELEASE kernel. Thanks for > all of your hard work! Okay, committed, thanx for testing. :) Juergen From owner-freebsd-emulation@FreeBSD.ORG Thu Jun 5 21:55:58 2008 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 465FC106567E for ; Thu, 5 Jun 2008 21:55:58 +0000 (UTC) (envelope-from nox@saturn.kn-bremen.de) Received: from gwyn.kn-bremen.de (gwyn.kn-bremen.de [212.63.36.242]) by mx1.freebsd.org (Postfix) with ESMTP id 04AB08FC25 for ; Thu, 5 Jun 2008 21:55:57 +0000 (UTC) (envelope-from nox@saturn.kn-bremen.de) Received: by gwyn.kn-bremen.de (Postfix, from userid 10) id 8F7F32B5E85; Thu, 5 Jun 2008 23:55:56 +0200 (CEST) Received: from saturn.kn-bremen.de (nox@localhost [127.0.0.1]) by saturn.kn-bremen.de (8.14.2/8.13.8) with ESMTP id m55LqSM7089335; Thu, 5 Jun 2008 23:52:28 +0200 (CEST) (envelope-from nox@saturn.kn-bremen.de) Received: (from nox@localhost) by saturn.kn-bremen.de (8.14.2/8.13.6/Submit) id m55LqRlE089334; Thu, 5 Jun 2008 23:52:27 +0200 (CEST) (envelope-from nox) Date: Thu, 5 Jun 2008 23:52:27 +0200 (CEST) From: Juergen Lock Message-Id: <200806052152.m55LqRlE089334@saturn.kn-bremen.de> To: eculp@encontacto.net X-Newsgroups: local.list.freebsd.emulation In-Reply-To: <20080604122407.188217sdanmlq37k@intranet.encontacto.net> Organization: home Cc: freebsd-emulation@freebsd.org Subject: Re: qemu: could not open disk image /tmp/c.img that was created by qemu X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Jun 2008 21:55:58 -0000 In article <20080604122407.188217sdanmlq37k@intranet.encontacto.net> you write: >I'm running amd64 current-8 and am up to date on most everything. > >I'm trying to give qemu a try and am using the quick start on the qemu >site, step by step and got all the way to the second step ;) > ># qemu-img create -f qcow c.img 3G >Formatting 'c.img', fmt=qcow, size=3145728 kB > ># qemu -cdrom /dev/acd0 -hda /tmp/c.img -m 256 -boot d >qemu: could not open disk image /tmp/c.img > >acd0 was an unmounted windowsXP installation CD. > >Should the procedure be changed for FreeBSD, I obviously assumed not? Hmm, seems the CVE 2008-0928 security patch broke qcow, or at least new qcow images. qcow is also deprecated tho, you can just use qcow2 instead which still works. Or use raw images which should still be faster, only they are sparse files which some backup software like bsdtar doesn't know how to deal with properly. (dump still works tho, as should gtar or star when passed appropriate flags.) I just checked, seems that patch also has been backed out from qemu svn but no replacement committed since. Hmm... Juergen From owner-freebsd-emulation@FreeBSD.ORG Fri Jun 6 02:49:00 2008 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 6F04A106564A for ; Fri, 6 Jun 2008 02:49:00 +0000 (UTC) (envelope-from eculp@encontacto.net) Received: from ns2.bafirst.com (72-12-2-19.static.networktel.net [72.12.2.19]) by mx1.freebsd.org (Postfix) with ESMTP id 1EF548FC0C for ; Fri, 6 Jun 2008 02:48:59 +0000 (UTC) (envelope-from eculp@encontacto.net) Received: from HOME.encontacto.net ([189.190.8.164]) by ns2.bafirst.com with esmtp; Thu, 05 Jun 2008 21:38:42 -0500 id 000D4CB6.4848A332.000065E7 Received: from localhost (localhost [127.0.0.1]) (uid 80) by HOME.encontacto.net with local; Thu, 05 Jun 2008 21:38:36 -0500 id 0004AC0C.4848A32C.00013025 Received: from 172.16.0.2 ([172.16.0.2]) by intranet.encontacto.net (Horde Framework) with HTTP; Thu, 05 Jun 2008 21:38:36 -0500 Message-ID: <20080605213836.115228l5veqj0qxw@intranet.encontacto.net> Date: Thu, 05 Jun 2008 21:38:36 -0500 From: eculp To: Juergen Lock References: <200806052152.m55LqRlE089334@saturn.kn-bremen.de> In-Reply-To: <200806052152.m55LqRlE089334@saturn.kn-bremen.de> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable User-Agent: Internet Messaging Program (IMP) H3 (4.2-cvs) Cc: freebsd-emulation@freebsd.org Subject: Re: qemu: could not open disk image /tmp/c.img that was created by qemu X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Jun 2008 02:49:00 -0000 Quoting Juergen Lock : > In article <20080604122407.188217sdanmlq37k@intranet.encontacto.net> =20 > you write: >> I'm running amd64 current-8 and am up to date on most everything. >> >> I'm trying to give qemu a try and am using the quick start on the qemu >> site, step by step and got all the way to the second step ;) >> >> # qemu-img create -f qcow c.img 3G >> Formatting 'c.img', fmt=3Dqcow, size=3D3145728 kB >> >> # qemu -cdrom /dev/acd0 -hda /tmp/c.img -m 256 -boot d >> qemu: could not open disk image /tmp/c.img >> >> acd0 was an unmounted windowsXP installation CD. >> >> Should the procedure be changed for FreeBSD, I obviously assumed not? > > Hmm, seems the CVE 2008-0928 security patch broke qcow, or at least > new qcow images. qcow is also deprecated tho, you can just use qcow2 Hi Juergen, Bakul Shah suggested qcow2 yesterday and I was able to bring up xp =20 without problems. Now I just need to figure out the network and I'll =20 be in business. Thanks a lot for your help, ed > instead which still works. Or use raw images which should still be > faster, only they are sparse files which some backup software like > bsdtar doesn't know how to deal with properly. (dump still works tho, > as should gtar or star when passed appropriate flags.) > > I just checked, seems that patch also has been backed out from qemu svn > but no replacement committed since. Hmm... > > =09Juergen >