Re: [WISH] Linux kernel as drop-in replacement in FreeBSD?

2006-02-08 Thread Brian Sobolak

cpghost wrote:
 Hello,

 since Linux' support for some hardware is better than FreeBSD's,
 it would be nice to have an *optional* way of running a FreeBSD
 system (userland, including all third party programs) on top
 of the Linux kernel.

 This would be somewhat the reverse of /boot/kernel/linux.ko,
 some kind of adaptation layer between Linux kernel and our libc,
 loader etc...

 If we had this feature (perhaps as a port), it would be
 convenient to boot into Linux kernel when FreeBSD-non-supported
 hardware is needed; of course keeping FreeBSD kernel as the
 default, high-performance optimized one for all normal cases.

 Perhaps someone's already working on this, but I can't find
 any hints or pointers to it.

If I'm not mistaken, this is basically what Apple has done with OSX.  They
started with a Mach kernel instead of Linux, but the userland is BSD.

If you're not particular about the kernel, it might be an option for you.

brian


--
Brian Sobolak
http://www.planetshwoop.com/

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: [WISH] Linux kernel as drop-in replacement in FreeBSD?

2006-02-08 Thread Dieter
   since Linux' support for some hardware is better than FreeBSD's,
   it would be nice to have an *optional* way of running a FreeBSD
   system (userland, including all third party programs) on top
   of the Linux kernel.
  
  I'd prefer to have a way to use a Linux device driver with a
  BSD kernel.
 
 Of course, but if I understand drivers correctly, that would be
 nearly impossible... unless the interface between linux device
 drivers and the rest of the linux kernel consisted of a well
 defined API (perhaps it does, I don't know). Basically, a driver
 can access ANY data structure of the kernel, and that's why it's
 not trivial to combine a Linux driver with the FreeBSD kernel.

If the driver is loaded with modprobe, wouldn't that have a
well defined API?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: [WISH] Linux kernel as drop-in replacement in FreeBSD?

2006-02-08 Thread Dieter
 That's exactly what I'm doing right now. For example when I need
 to use my Pinnacle DC10+ (Zoran) card, I simply reboot into Gentoo,
 do the capture, and then reboot into FreeBSD to run the rest of
 mjpegtools. Same for MIDI recording etc... or other stuff that's
 currently unavailable within FreeBSD.

 The problem with this is that there are two systems to care for:
 my primary FreeBSD environment, and a minimal Gentoo environment
 just for a few programs.

There is another problem with dual-booting.  FreeBSD isn't available
when Linux is running, and visa-versa.  If you have jobs that need to
run at specific times and the machine is running the wrong OS at that
time, you lose.

I suspect that a lot of people only need a driver or two from Linux.
Userland stuff tends to be fairly portable between BSD and Linux.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: [WISH] Linux kernel as drop-in replacement in FreeBSD?

2006-02-08 Thread Giorgos Keramidas
On 2006-02-08 10:29, Dieter [EMAIL PROTECTED] wrote:
 since Linux' support for some hardware is better than FreeBSD's, it
 would be nice to have an *optional* way of running a FreeBSD system
 (userland, including all third party programs) on top of the Linux
 kernel.

 I'd prefer to have a way to use a Linux device driver with a BSD
 kernel.

 Of course, but if I understand drivers correctly, that would be
 nearly impossible... unless the interface between linux device
 drivers and the rest of the linux kernel consisted of a well defined
 API (perhaps it does, I don't know). Basically, a driver can access
 ANY data structure of the kernel, and that's why it's not trivial to
 combine a Linux driver with the FreeBSD kernel.

 If the driver is loaded with modprobe, wouldn't that have a well
 defined API?

Only as far as loading  unloading is concerned.  Once a driver gets
loaded, even before module_load() finishes some times, the driver has
full access to the guts of the kernel and can wreak havoc all over the
place without any serious problem :)

- Giorgos

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


[WISH] Linux kernel as drop-in replacement in FreeBSD?

2006-02-07 Thread cpghost
Hello,

since Linux' support for some hardware is better than FreeBSD's,
it would be nice to have an *optional* way of running a FreeBSD
system (userland, including all third party programs) on top
of the Linux kernel.

This would be somewhat the reverse of /boot/kernel/linux.ko,
some kind of adaptation layer between Linux kernel and our libc,
loader etc...

If we had this feature (perhaps as a port), it would be
convenient to boot into Linux kernel when FreeBSD-non-supported
hardware is needed; of course keeping FreeBSD kernel as the
default, high-performance optimized one for all normal cases.

Perhaps someone's already working on this, but I can't find
any hints or pointers to it.

Thanks,
-cpghost.

-- 
Cordula's Web. http://www.cordula.ws/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: [WISH] Linux kernel as drop-in replacement in FreeBSD?

2006-02-07 Thread Dieter
 since Linux' support for some hardware is better than FreeBSD's,
 it would be nice to have an *optional* way of running a FreeBSD
 system (userland, including all third party programs) on top
 of the Linux kernel.

I'd prefer to have a way to use a Linux device driver with a
BSD kernel.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: [WISH] Linux kernel as drop-in replacement in FreeBSD?

2006-02-07 Thread Kris Kennaway
On Tue, Feb 07, 2006 at 10:48:05PM +0100, cpghost wrote:
 Hello,
 
 since Linux' support for some hardware is better than FreeBSD's,
 it would be nice to have an *optional* way of running a FreeBSD
 system (userland, including all third party programs) on top
 of the Linux kernel.
 
 This would be somewhat the reverse of /boot/kernel/linux.ko,
 some kind of adaptation layer between Linux kernel and our libc,
 loader etc...
 
 If we had this feature (perhaps as a port), it would be
 convenient to boot into Linux kernel when FreeBSD-non-supported
 hardware is needed; of course keeping FreeBSD kernel as the
 default, high-performance optimized one for all normal cases.

 Perhaps someone's already working on this, but I can't find
 any hints or pointers to it.

There's a debian project to do this, but it's not likely anything that
will be merged into FreeBSD (let alone available as a port).

Kris


pgp1LtXqxGhlr.pgp
Description: PGP signature


Re: [WISH] Linux kernel as drop-in replacement in FreeBSD?

2006-02-07 Thread Michael P. Soulier
On 07/02/06 cpghost said:

 Hello,
 
 since Linux' support for some hardware is better than FreeBSD's,
 it would be nice to have an *optional* way of running a FreeBSD
 system (userland, including all third party programs) on top
 of the Linux kernel.

Then run Gentoo Linux. It's the closest you'll get to FreeBSD in Linux land.
Their portage system is basically a ports ripoff.

Mike

-- 
Michael P. Soulier [EMAIL PROTECTED]
Any intelligent fool can make things bigger and more complex... It takes a
touch of genius - and a lot of courage to move in the opposite direction.
--Albert Einstein


pgpBzbQpajYDf.pgp
Description: PGP signature


Re: [WISH] Linux kernel as drop-in replacement in FreeBSD?

2006-02-07 Thread Gustavo De Nardin
Hello.

On 07/02/06, Kris Kennaway [EMAIL PROTECTED] wrote:
 On Tue, Feb 07, 2006 at 10:48:05PM +0100, cpghost wrote:
  since Linux' support for some hardware is better than FreeBSD's,
  it would be nice to have an *optional* way of running a FreeBSD
  system (userland, including all third party programs) on top
  of the Linux kernel.
 
 There's a debian project to do this, but it's not likely anything that
 will be merged into FreeBSD (let alone available as a port).

It is my understanding that the Debian project is the opposite
(running GNU/Linux userland on top of a FreeBSD kernel) of what he
asked: http://www.debian.org/ports/kfreebsd-gnu/.

--
(nil)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: [WISH] Linux kernel as drop-in replacement in FreeBSD?

2006-02-07 Thread Kris Kennaway
On Wed, Feb 08, 2006 at 02:15:40AM +0100, Urs Schroffenegger wrote:
 Kris Kennaway wrote:
 
 On Tue, Feb 07, 2006 at 10:48:05PM +0100, cpghost wrote:
  
 
 Hello,
 
 since Linux' support for some hardware is better than FreeBSD's,
 it would be nice to have an *optional* way of running a FreeBSD
 system (userland, including all third party programs) on top
 of the Linux kernel.
 
 This would be somewhat the reverse of /boot/kernel/linux.ko,
 some kind of adaptation layer between Linux kernel and our libc,
 loader etc...
 
 If we had this feature (perhaps as a port), it would be
 convenient to boot into Linux kernel when FreeBSD-non-supported
 hardware is needed; of course keeping FreeBSD kernel as the
 default, high-performance optimized one for all normal cases.
 
 Perhaps someone's already working on this, but I can't find
 any hints or pointers to it.

 
 
 There's a debian project to do this, but it's not likely anything that
 will be merged into FreeBSD (let alone available as a port).
 
 Kris
  
 
 IMHO, the debian project seems to be exactly the inverse of that: a 
 freebsd kernel with GNU userland. (More info here: 
 http://www.debian.org/ports/kfreebsd-gnu/)

Sorry, you're right.  I don't know of anyone working on the OP's
project.

Kris


pgpb8bzlKFHOi.pgp
Description: PGP signature


Re: [WISH] Linux kernel as drop-in replacement in FreeBSD?

2006-02-07 Thread Kris Kennaway
On Tue, Feb 07, 2006 at 11:44:46PM -0200, Gustavo De Nardin wrote:
 Hello.
 
 On 07/02/06, Kris Kennaway [EMAIL PROTECTED] wrote:
  On Tue, Feb 07, 2006 at 10:48:05PM +0100, cpghost wrote:
   since Linux' support for some hardware is better than FreeBSD's,
   it would be nice to have an *optional* way of running a FreeBSD
   system (userland, including all third party programs) on top
   of the Linux kernel.
  
  There's a debian project to do this, but it's not likely anything that
  will be merged into FreeBSD (let alone available as a port).
 
 It is my understanding that the Debian project is the opposite
 (running GNU/Linux userland on top of a FreeBSD kernel) of what he
 asked: http://www.debian.org/ports/kfreebsd-gnu/.

Yes, you're right.

Kris


pgpjFfpDp7raO.pgp
Description: PGP signature


Re: [WISH] Linux kernel as drop-in replacement in FreeBSD?

2006-02-07 Thread cpghost
On Tue, Feb 07, 2006 at 02:53:57PM +, Dieter wrote:
  since Linux' support for some hardware is better than FreeBSD's,
  it would be nice to have an *optional* way of running a FreeBSD
  system (userland, including all third party programs) on top
  of the Linux kernel.
 
 I'd prefer to have a way to use a Linux device driver with a
 BSD kernel.

Of course, but if I understand drivers correctly, that would be
nearly impossible... unless the interface between linux device
drivers and the rest of the linux kernel consisted of a well
defined API (perhaps it does, I don't know). Basically, a driver
can access ANY data structure of the kernel, and that's why it's
not trivial to combine a Linux driver with the FreeBSD kernel.

Thanks,
-cpghost.

-- 
Cordula's Web. http://www.cordula.ws/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: [WISH] Linux kernel as drop-in replacement in FreeBSD?

2006-02-07 Thread cpghost
On Tue, Feb 07, 2006 at 07:59:27PM -0500, Michael P. Soulier wrote:
 On 07/02/06 cpghost said:
  since Linux' support for some hardware is better than FreeBSD's,
  it would be nice to have an *optional* way of running a FreeBSD
  system (userland, including all third party programs) on top
  of the Linux kernel.
 
 Then run Gentoo Linux. It's the closest you'll get to FreeBSD in Linux land.
 Their portage system is basically a ports ripoff.

That's exactly what I'm doing right now. For example when I need
to use my Pinnacle DC10+ (Zoran) card, I simply reboot into Gentoo,
do the capture, and then reboot into FreeBSD to run the rest of
mjpegtools. Same for MIDI recording etc... or other stuff that's
currently unavailable within FreeBSD.

The problem with this is that there are two systems to care for:
my primary FreeBSD environment, and a minimal Gentoo environment
just for a few programs. This is not really such a big deal, just
an idea for future improvements; and perhaps an interesting new
sub-project. :)

 Mike
 
 -- 
 Michael P. Soulier [EMAIL PROTECTED]
 Any intelligent fool can make things bigger and more complex... It takes a
 touch of genius - and a lot of courage to move in the opposite direction.
 --Albert Einstein

Thanks,
-cpghost.

-- 
Cordula's Web. http://www.cordula.ws/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]