From owner-freebsd-questions@FreeBSD.ORG Tue Apr 1 20:43:00 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 77A551065670 for ; Tue, 1 Apr 2008 20:43:00 +0000 (UTC) (envelope-from SRS0=3Ceq5D=US=vvelox.net=v.velox@yourhostingaccount.com) Received: from mailout11.yourhostingaccount.com (mailout11.yourhostingaccount.com [65.254.253.90]) by mx1.freebsd.org (Postfix) with ESMTP id 2C44D8FC21 for ; Tue, 1 Apr 2008 20:43:00 +0000 (UTC) (envelope-from SRS0=3Ceq5D=US=vvelox.net=v.velox@yourhostingaccount.com) Received: from mailscan03.yourhostingaccount.com ([10.1.15.3] helo=mailscan03.yourhostingaccount.com) by mailout11.yourhostingaccount.com with esmtp (Exim) id 1Jgmp4-0002J2-2C for freebsd-questions@freebsd.org; Tue, 01 Apr 2008 16:11:10 -0400 Received: from impout02.yourhostingaccount.com ([10.1.55.2] helo=impout02.yourhostingaccount.com) by mailscan03.yourhostingaccount.com with esmtp (Exim) id 1Jgmp3-0007Dy-Ag; Tue, 01 Apr 2008 16:11:09 -0400 Received: from authsmtp10.yourhostingaccount.com ([10.1.18.10]) by impout02.yourhostingaccount.com with NO UCE id 8LAx1Z0070D2B7u0000000; Tue, 01 Apr 2008 16:10:57 -0400 X-EN-OrigOutIP: 10.1.18.10 X-EN-IMPSID: 8LAx1Z0070D2B7u0000000 Received: from c-68-51-74-1.hsd1.il.comcast.net ([68.51.74.1] helo=vixen42) by authsmtp10.yourhostingaccount.com with esmtpa (Exim) id 1Jgmoq-00027Q-L5; Tue, 01 Apr 2008 16:10:56 -0400 Date: Tue, 1 Apr 2008 15:12:32 -0500 From: "Zane C.B." To: Da Rock Message-ID: <20080401151232.2d2efa43@vixen42> In-Reply-To: <1206006734.27757.73.camel@laptop2.herveybayaustralia.com.au> References: <1205980623.27757.35.camel@laptop2.herveybayaustralia.com.au> <20080320085002.F8385@wojtek.tensor.gdynia.pl> <1206003571.27757.58.camel@laptop2.herveybayaustralia.com.au> <34394a3a0803200214p135008c9oc427459d9dee6bb0@mail.gmail.com> <1206006734.27757.73.camel@laptop2.herveybayaustralia.com.au> X-Mailer: Claws Mail 3.3.1 (GTK+ 2.12.9; i386-portbld-freebsd6.3) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-EN-UserInfo: 0d1ca1697cdb7a831d4877828571b7ab:1570f0de6936c69fef9e164fffc541bc X-EN-AuthUser: vvelox2 Sender: "Zane C.B." X-EN-OrigIP: 68.51.74.1 X-EN-OrigHost: c-68-51-74-1.hsd1.il.comcast.net Cc: freebsd-questions@freebsd.org Subject: Re: linux emulation X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Apr 2008 20:43:00 -0000 On Thu, 20 Mar 2008 19:52:14 +1000 Da Rock wrote: > > > On 20/03/2008, Da Rock wrote: > > > > > > On Thu, 2008-03-20 at 08:50 +0100, Wojciech Puchar wrote: > > > > > I've read the handbook and just about anything on linux > > > > > compat under freebsd. I am particularly interested in > > > > > drivers under linux compat. > > > > > > > > emulation allows execution of normal linux programs, not > > > > drivers > > > > > > > > > Ok. So input devices won't work either? I refer to this page > > > here: > > > http://people.freebsd.org/~3d/apps/games/unreal_tournament/ > > > > > > What is the driver mentioned here? > > > > > > Incidentally, what is the difference between linux and bsd > > > drivers? The drivers in question are manufacturers binaries for > > > linux in an RPM; hence the question. Plus I came across several > > > notations regarding building or using drivers from linux in bsd > > > (linux-kmod-compat port, the above link, and more). > > > > > > For reference I'm merely very curious, not argumentative on > > > this. Cheers for any answers offered. > > > > > > On Thu, 2008-03-20 at 02:14 -0700, Patrick C wrote: > > A binary is compiled assembly/code. The binary still needs to > > interact with low-level hardware using system calls, handling > > interrupts, etc. in a way that the operating system understands. > > Applications are more portable and less operating- and > > hardware-specific than drivers, which require a good > > understanding of the operating system and the hardware. > > > > Please read the current status of linux-kmod-compat, it > > specifically indicates it is for USB drivers. USB is a simplified > > bus where the low-level access is handled in the same manner for > > every device so it's simpler to port the driver. > > > > Glide in your case is an API/Library, not an actual driver. > > Libraries are very similar to applications in how they act with > > the operating system/environment, and are a must-have on running > > Linux binaries. This is supported and works well. > > > > -Patrick > > > > Ok, got that. I read that about the linux-kmod-compat, but I thought > that it might have been the beginning of something beautiful (pardon > poetics...). I was unaware of the glide situation though. I though glide has been long since past usefulness given the cards it was for no longer are effectively around outside ebay and peoples hardware drawers. I regards to running UT on FreeBSD it runs nicely, other than it requires a hackish manner to install 2007 if you have it on CD. > Does anyone know what the differences are between linux and bsd at > the system calls, interrupts, etc? I understand that there are some > software which accesses hardware at this sort of level which has > been adapted as well (raid controllers mainly), so surely there > must be some information on what can enable this to work. > > What this discussion has got me thinking on is a "wrapper" (ie > NDIS), since the drivers are not from the linux oss community but > from the actual manufacturer I'm assuming (forgive me, > please... :) ) that this may be a feasible solution. In which case, > then, I'm going to have to "map" calls and create device nodes. > Should be simple then, no? ;P! > > I'd love to hear any more suggestions or links to info on any of > this, thanks guys. > > Also, on the linux compat- am I correct in my observation that you > have to actually chroot to enable the running of a linux binary? > Enter the file structure of the linux compat? Or can you just run > it?