#tyndur · 2010-02-04
409 Nachrichten · Seite 1 von 3 · Original-CSV herunterladen
- taljethgn8
- pcmattmanHmm, taljeth isn't around yet
- FreakyPenguinMoin
- kwolfGood morning everyone
- pcmattmanHello kwolf, FreakyPenguin
- pcmattmankwolf: is there any way to access the PCI configuration space in CDI?
- kwolfYes, there are optional functions for it, guarded by some define. I don't think anyone implements them yet. ;-)
- kwolfOr Paloxena probably does
- kwolfcdi/pci.h, the part after #define CDI_PCI_DIRECT_ACCESS
- pcmattmanOkay
- pcmattmanJust wondering, because I'm looking at writing my AHCI/SATA driver soon and I'll need access to that space
- pcmattman(CDI, naturally)
- FreakyPenguinHm how bad is SATA? ;-)
- pcmattmanDepends on how you define "bad" ;)
- kwolfpcmattman: So you decided to do it in CDI right from the beginning now?
- pcmattmankwolf: sure did
- pcmattmanIt'll be a bit harder as I'm actually learning a lot about how to write CDI drivers as I go
- pcmattmanI know the interface, just not how to write drivers for it ;)
- XanClicYes, Paloxena does
- kwolfI think nobody has written a new driver for the current interface yet ;-)
- pcmattmanThe hardest thing conceptually at the moment that I'm finding is that I'm unsure how to handle the AHCI -> disk link
- pcmattmanIn Pedigree I would be able to have drivers use functions in other drivers and therefore be able to link them that way
- pcmattmanCDI is different, should be fun
- kwolfHm, is this the same kind of problem as USB has?
- pcmattmanWell, you have AHCI as the controller interface
- pcmattmanIt tells you about the SATA devices, but you still need a driver to talk to the SATA devices *through* AHCI
- pcmattmanSo AHCI provides an MMIO area that is used to access the controller and also the disks themselves
- kwolfAnd you have multiple different SATA drivers and/or AHCI drivers?
- pcmattmanWell, AHCI is standardised by Intel
- pcmattmanI know for a fact though that there's six or seven sata-xyz.c files in Linux's tree
- pcmattmanI still need to read the specification further, but it seems so far that the SATA drives end up acting like conventional SCSI drivers, accessed through the AHCI interface
- pcmattmanerr, SCSI *drives*, not drivers
- kwolfLooks like we need to get IDC up and running first, then
- pcmattmanFor example, on Windows XP you merely install an AHCI driver and it can use SATA disks
- pcmattman(in fact I did that yesterday)
- kwolfHm, so AHCI is actually enough if you already have a SCSI driver?
- pcmattmanIt could well be
- kwolfWhich you probably have to some extent because of ATAPI
- pcmattmanThe AHCI specification is 100 pages, and the SATA 3.0 specification is almost 600
- pcmattmanI own but am ignoring pre-3.0 specifications for now
- pcmattmanWith a quick glance of the specification I see DEVICE RESET, PACKET, READ/WRITE DMA QUEUED
- pcmattmanIDENTIFY PACKET DEVICE... "implemented by _native_ Serial ATA devices"
- pcmattmanSo yeah, looks like SCSI to me
- pcmattmanHmm, maybe rapid prototyping using Pedigree's native interface then porting will be more efficient
- kwolfHm, we should get a scsi-disk driver some time. In tyndur, that code is in the CDI lib currentlyv to avoid the need for IDC.
- kwolfpcmattman: If it is, we need to improve CDI. It shouldn't be tedious to write drivers for it.
- pcmattmanIt's not so much that it's tediou
- pcmattmans
- pcmattmanIt's more that it's much easier for me to add hacks to Pedigree to get my way than it is to do the same to CDI for testing ;)
- kwolfIn the end you need to get the CDI part right anyway
- kwolfUnless you want to keep using your native version
- pcmattmanYup
- pcmattmanThe idea is that it's easier to get native right first because I don't need to wait for IDC (or hack around it) or anything like that
- kwolfAnd your motivation might be higher to do it if it doesn't work otherwise ;-)
- pcmattmanI can get it written first and then find out what's missing in CDI
- kwolfWell, yes, you could do it in CDI plus some Pedigree specific calls. I think this is an entirely reasonable way to start out.
- kwolfHm, does AHCI even access the SCSI disk or is it only the other way round?
- pcmattmanThe AHCI controller provides the port ranges through which you access the SCSI disk
- pcmattman*SATA disk
- kwolfSo AHCI never needs to access the SATA disk driver, right?
- pcmattmanTechnically no
- kwolfYou could AHCI in CDI then and a native SATA disk driver
- pcmattmanHm, defeats the purpose in my opinion
- kwolfIf I understand right, AHCI should be the greatest part of the whole thing anyway
- pcmattmanIf there was an scsi driver, the AHCI driver could tell the scsi driver (via IDC) information about each detected drive
- kwolfpcmattman: More than doing both native?
- pcmattmanWell, I'm thinking AHCI might be the only driver necessary if this is done correctly
- kwolfSure, that SCSI driver and IDC is the next step
- pcmattmanAnd of course, if I have interpreted the spec properly so far... otherwise none of this is right :)
- kwolfI'm just saying that there's no point in doing a native AHCI driver
- pcmattmanI think I'm beginning to agree
- pcmattmanAs long as someone else does the SCSI driver ;)
- FreakyPenguin*g*
- kwolfFreakyPenguin volunteers? ;-)
- pcmattmanSounds like it!
- pcmattmanBasically, the AHCI driver would set up the interface and pick up all the drives on the bus (up to 30, iirc)
- Homixi thought, ahci would use ata commands?
- pcmattmanThen it tells the SCSI driver "Here's a new disk device at this port, go talk to it"
- kwolfTo be precise, AHCI would call some cdi_provide_device() for SCSI interface and CDI would go tell the SCSI driver about it
- pcmattmanRight
- kwolfI'm feeling like starting to hack on it ;-)
- kwolfUnfortunately it will have to wait until the evening at least
- pcmattmanHeh
- pcmattmanWell, if an OS with a CDI implementation can run and use SATA disk drives, that's an instant selling point of CDI
- pcmattmanUDI can't do that yet ;)
- kwolfI still haven't seen the hobby OS with UDI support yet ;-)
- pcmattmanHeh, true
- kwolfCombuster claimed to have it, but when I kept asking for the code and he posted the URL of his repo eventually, I saw that it's all empty stubs
- pcmattmanRight
- pcmattmanAnd that aside, everyone likes SATA support ;)
- pcmattmanHomix: by the looks of it it uses a small subset of ATA commands
- pcmattmanIDENTIFY PACKET DEVICE, PACKET, etc...
- pcmattmanIt's certainly not going to happen tonight though, I'm still reading the specification and trying to make sense of what I need to do
- kwolfIt surely doesn't need to be done tomorrow. I'm happy as long as I see things moving.
- pcmattmanGive me a couple of weeks
- pcmattmanIn the meantime I'll probably be looking at the automated driver loading patches
- kwolfYup, they would be nice to have, too
- pcmattmanAs for now, sleep time. Too much spec reading for one night ;)
- pcmattmanNight all
- FreakyPenguinn8 pc[away]
- eddyb'night
- eddybheh, sometimes spec reading is driving me crazy :)
- Homixahci uses ata task files, so i think all ata commands schould be available ;)
- quokmoin
- eddybyou mean "morn" ?
- eddyb:P
- quokno, I mean moin
- eddybmoin as in ... ?
- FreakyPenguinMoin quok ;-)
- eddybit's a short form of morgen?
- FreakyPenguinYes indeed ;-)
- eddybit didn't sound like it :P...
- eddybanyway, moin quok :P
- eddybhmm
- eddybi like how it asks for keyboard...
- eddybi'm looking at tyndur :)
- eddybpc[away]: for releases it could be useful, like something in login :)
- eddybi choose EN at grub, why is the help in german :(
- FreakyPenguinNoone volonteered yet to translate it ;-)
- eddybany kind of i18n layer?
- kwolfMoin quok
- FreakyPenguinquok: Would be a nice exercise for you *g*
- eddybfor me, too :P
- FreakyPenguinFeel free ;-)
- eddybif you gimme some files, i can translate, but just if i don't have to learn the source tree of tyndur :)
- eddybit took me some while with pedigree, but now i can find a file with no problems :)
- kwolfActually I think help doesn't suport any kind of i18n yet
- eddybyou would really get more people to test tyndur if it would have some sort of localisation
- eddybkwolf: it's a xml file, right?
- stultusuhm
- stultushelp is somewhat similar to docbook
- stultusat least i've tried to use that format. although the parsing probably really couldn't be considered "conforming"
- eddybwhat about <lang:de>stuff</lang><lang:en>english stuff</lang> ?
- eddyb:)
- kwolfI would use different files for each language
- eddybor that
- kwolfSo you can choose which languages to install
- eddybfile:/system/lpt-doc/en/tyndur.xml :)
- stultuswould be the best, actually. Hacking language support into the program would be tedious.
- kwolfIt could simply check $PAGENAME_$LANG.xml first and failing that it could fall back to the current $PAGENAME.xml
- eddybor that :)
- kwolfI like eddyb's suggestion more for its cleanness but it's a bit more effort to implement, iirc
- eddybthat reminds of my dream of having pedigree in romanian :P
- eddybi can get maghyar translations, too
- eddybactually, i think matt tried to get gettext working on pedigree
- kwolfeddyb: But who would use Hungarian?
- eddybmy friend who would translate it, LOL :P
- kwolfgettext is easy to port. I think on tyndur it just worked without hacking anything.
- eddybi think on pedigree it was something like not compiled it into the ports....
- eddybwhere can i browse the source?
- kwolfFor the ports?
- kwolfAnyway, start at http://git.tyndur.org/
- eddybs/ports/ported apps/
- kwolfhttp://git.tyndur.org/?p=lbuilds.git;a=tree;f=lbuilds;h=ee6770ff138e648a51440fd18fd606b4e8742dee;hb=HEAD
- eddybah, and, kwolf: what do you think about german keymaps for pedigree :P ?
- kwolfOh, right, I think I promised at some point to do them
- eddybheh
- eddybi can give you instructions and it's really simple...
- kwolfPing me later this evening and I'll do it
- eddybwe already have Us and Uk sets, so it'd be easy to do it, just looking at current ones :)
- eddybokey
- kwolfYup, and it will improve usability for me a lot ;-)
- eddybkwolf: those links almost forkbombed my system
- kwolfwtf?
- kwolfThis is a normal gitweb frontend
- eddybi left it loading and after 5 min, the system was slowed down really bad
- FreakyPenguin:-/
- eddybafter closing the tab, it's almost okey
- kwolfSomething is wrong with your system...
- kwolfI was already thinking that when you said that building an image takes three minutes, but even more so now
- eddybnow i see a chome zombie was eating HALF A GYGABYTE
- eddybmuch better now after i killed it
- eddybwell, that page wasn't even loading, so i was thinking it's because of it
- eddyb130MB when i stopped it
- eddybit was tyndur git
- eddyband i have sandbox enabled....
- eddybkwolf: does it load for you?
- kwolfYes, without any problem
- eddybin what browser?
- kwolfEh, no, it doesn't work any more
- kwolfFreakyPenguin: "403 Forbidden - No projects found" - what are you doing?
- eddybtold'ya :P
- eddybit's insane for a chrome process to use more than 32MB
- eddybwell, except flash and youtube
- eddyb42 and 34
- FreakyPenguinkwolf: Now it should work again
- kwolfWhat was it?
- FreakyPenguinI installed the debian gitweb-Package to have a look at the diff, and it installed a config-File ;-)
- FreakyPenguinIn our gitweb I just changed the default settings in the source ;-)
- eddybit's still doing something like while(1);
- eddybanyway, its process eats all the memory fast
- FreakyPenguineddyb: The diff to the original debian script is almost empty
- kwolfeddyb: Have you tried with a different browser?
- eddybi still think chrome can't be the problem :P
- eddybthe simple link seems to load
- kwolfHm, need to restart the X server...
- FreakyPenguinHas qemu eaten your cursor? ;-)
- eddybcan qemu even do that?
- eddybhi, XanClic
- XanClicUh, hi, eddyb *g*