#tyndur · 2010-02-25
66 Nachrichten · Seite 1 von 1 · Original-CSV herunterladen
- kwolfMoin
- pcmattmanHello kwolf
- kwolfHi pcmattman
- kwolfHow's it going with the X server? :-P
- pcmattmanWell, I found out there's actually alternatives to sysvinit, so I'm investigating those routes at the moment
- pcmattmanOS X uses a thing called "launchd" which sounds nice, and isn't a GNU program
- pcmattmanThe goal is to have some form of script or something which runs at startup and loads all the drivers necessary for the system (ie, a bunch of modload invocations) to function
- pcmattmanThat way the initrd can just contain a tiny subset of modules and drivers and those people want can be loaded later
- pcmattmanFor example, the network stack and network drivers should probably be loaded outside of kernel startup, and only if the user says "Yes, enable networking"
- kwolfHm, are you going to integrate it with the CDI driver loading stuff that you'll send to the list soon? ;-)
- pcmattmanMost likely
- kwolfWould be difficult with sysvinit, no?
- pcmattmanThe CDI driver loading stuff is an example of loading drivers on-demand (or rather, on device plugin)
- kwolfI don't know launchd though, what kind of approach does it use?
- pcmattmanlaunchd is basically a mix of cron, inetd, and init
- pcmattmanMix of functionality, not code
- pcmattmanSo I might have a startup script which runs "modload cdi", and the CDI module is loaded, executed, and a bunch of other drivers are loaded automatically by the loading system I've yet to implement
- kwolfSo it's runlevel based like init?
- pcmattmanI believe so. I haven't researched it enough yet to be sure
- pcmattmanhttp://developer.apple.com/macosx/launchd.html
- pcmattmanThe basic idea is to try and really reduce the size of our kernel+initrd and put off loading necessary drivers as late as possible
- pcmattman(as well as support running daemon processes such as Apache, if you want to use Pedigree as a web server OS or something ;) )
- kwolfWe need a new HTTP status code for Segmentation Fault first ;-)
- pcmattman:(
- pcmattmanMind you, apache doesn't actually work on Pedigree at the moment because we need to implement writable mmap files
- kwolfI thought it was fairly platform independent?
- pcmattmanIt is, but we built it with mmap support
- kwolfWell, that's your problem then ;-)
- pcmattmanHowever, our mmap does not yet support writing to the memory region and having those regions written back to the file
- kwolfIf you don't have a working mmap, don't tell Apache to use it
- pcmattmanAll we need to do is implement that and it'll work fine
- pcmattmanWell, it was mmap or shm
- pcmattmanI like keeping my sanity, so I chose mmap ;)
- kwolfFair enough ;-)
- pcmattmanI might look at lighthttpd though, try and do some stress testing of the TCP code
- pcmattmanAnd/or the CDI rtl8139 driver
- kwolfThen you need performance, so you need more clever cdi_mem_areas ;-)
- pcmattmanHeh, no more quick and easy solution :)
- kwolfQuick and easy never works. Except for Hello World.
- pcmattmanOr works and then scales terribly
- pcmattmanBoth aren't good
- pcmattman"server.c:(.text+0x979): undefined reference to `setgroups'" :)
- pcmattmanOut of interest, how do you go with tyndur and porting software?
- kwolfYou mean just the basic approach?
- pcmattmanPretty much
- kwolfMaybe you have already seen http://git.tyndur.org/?p=lbuilds.git;a=summary
- kwolfIt's basically our build/packaging system for external software
- pcmattmanOh, cool
- pcmattmanYou put it in a repository
- pcmattmanWe put already-built packages in a repository, but not patches, source trees, or any of the tools needed to create ports
- kwolfFor each package, we have a download URL, a build script and some patches
- kwolfWe only carry patches in our own repo
- kwolflbuilds is actually pretty nice to work with
- pcmattmanIt looks like it
- kwolfI just need to learn not to forget quilt add all the time ;-)
- pcmattmanI've been meaning to put together such a thing, so someone without a properly configured environment can change that and port something
- pcmattmanIt's just a *lot* of work
- kwolfHm, lbuilds is pretty simple. It's just a couple of short shell scripts.
- kwolfMost of it should even be independent of tyndur
- kwolfBut if you're going to copy it, we'll lose about the only thing where we are ahead :-(
- kwolf;-)
- pcmattmanNah, not gonna copy it
- pcmattmanNice idea though, might copy the concept
- pcmattman;)
- kwolfI guess it's even more useful with a working POSIX layer ;-)
- pcmattmanThat helps