On Tuesday, February 4, 2003, at 05:26 PM, Mr. Wong wrote: Hello everyone, I recently compiled the Darwin (XNU portion v.6.0) kernel with the help from the users of this newsgroup (thanks!). I would like to take this a step further and actually do some kernel customizations similar to the ones I've done in Linux. For example, I've recompiled the Linux kernel to specifically allow or disallow cd burning capabilities via SCSI emulation support. Another thing I've done in linux is allow IP packet forwarding. The Redhat (7.3) Linux kernel appears to be much easier to handle than the Darwin kernel because there exists GUI and command line utilities built specifically for the purpose of custization. Anyway, my question is this: How does one go about modifying the XNU kernel to achieve such customizations? Is there a GUI or command line utility? What suggestions do you have or what should I watch out for? Any help will be appreciated. Thanks in advance, Matthew K. Wong As a newbie to Darwin myself, the first thing you have to do is come to the realization that Darwin != Linux (the kernel). So, what you did through xconfig/menuconfig, etc, does not hold for Darwin. The Linux kernel and Darwin kernel are, ...one might say, a tad different! : ) (...incoming HUGE over-simplification/description...) Darwin doesn't have the Linux concept of linking all sorts of device modules into the kernel. Darwin has kexts and other similar concepts, but their interaction with the raw kernel is different than what Linux does. This comes down to the monolithic vs. modular OS designs. People can argue the merits of one architecture vs. another, but this isn't really the place for such discussions. Bottom line: you just might have to get down and dirty with Darwin to learn how it works. Or in other words: "...use the source Luke..." : ) There are several good PDF files that ship with the Dev Tools that describe the kernel env as well as discuss the core modules of the kernel (Mach/BSD). -- jrj _______________________________________________ darwin-kernel mailing list | darwin-kernel@lists.apple.com Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/darwin-kernel Do not post admin requests to the list. They will be ignored.
participants (1)
-
Jeff Jenkins