• [^] # Re: Ils sont droles sur OS News

    Posté par (site web personnel) . En réponse au journal Ils sont droles sur OS News. Évalué à 2.

    ben tiens. Quelques exemples:
    . Docs powerpc chez ibm:
    http://www-3.ibm.com/chips/techlib/techlib.nsf/productfamilies/Powe(...)
    . Documentation darwin (coding in the kernel, device drivers, kernel extensions, ...):
    http://developer.apple.com/documentation/Darwin/Darwin.html(...)
    . Documentation "darwin device drivers" writing an i/o kit device driver, accessing hardware from applications", ...)
    http://developer.apple.com/documentation/Darwin/Darwin.html(...)
    . Source de darwin (trésor d'informations sur le matériel)
    http://developer.apple.com/documentation/Darwin/Darwin.html(...)
    . Documentations sur le matériel, à l'usage des développeurs (trop vagues à mon goût, cependant), comme
    http://developer.apple.com/documentation/Darwin/Darwin.html(...)
    . Documentations sur le standard openfirmware
    http://developer.apple.com/documentation/Darwin/Darwin.html(...)

    Ensuite quelques précisions sur l'architecture openfirmware. Une fois démarré sous linux, on a un /proc/device-tree ainsi fait:

    $ ls -l /proc/device-tree/
    [...]
    dr-xr-xr-x 23 root root 0 2004年01月10日 17:12 packages
    lrwxrwxrwx 1 root root 12 2004年01月10日 17:12 pci -> pci@f0000000
    dr-xr-xr-x 4 root root 0 2004年01月10日 17:12 pci@f0000000
    dr-xr-xr-x 7 root root 0 2004年01月10日 17:12 pci@f2000000
    dr-xr-xr-x 5 root root 0 2004年01月10日 17:12 pci@f4000000
    -r--r--r-- 1 root root 256 2004年01月10日 17:12 pci-OF-bus-map
    -r--r--r-- 1 root root 4 2004年01月10日 17:12 pid#
    dr-xr-xr-x 5 root root 0 2004年01月10日 17:12 pseudo-hid
    dr-xr-xr-x 2 root root 0 2004年01月10日 17:12 pseudo-sound
    lrwxrwxrwx 1 root root 12 2004年01月10日 17:12 rom -> rom@ff800000
    [...]

    On peut détailler, pour trouver quel matériel est où :
    $ find /proc/device-tree/ -name "ethernet*"
    /proc/device-tree/pci@f4000000/ethernet
    /proc/device-tree/pci@f4000000/ethernet@f

    Trouver les propriétés de ce matériel:
    [colin@jack ~]$ ls -l /proc/device-tree/pci@f4000000/ethernet@f
    total 22
    -r--r--r-- 1 root root 4 2004年01月10日 17:14 address-bits
    -r--r--r-- 1 root root 40 2004年01月10日 17:14 assigned-addresses
    -r--r--r-- 1 root root 0 2004年01月10日 17:14 built-in
    -r--r--r-- 1 root root 4 2004年01月10日 17:14 cache-line-size
    -r--r--r-- 1 root root 4 2004年01月10日 17:14 category
    -r--r--r-- 1 root root 4 2004年01月10日 17:14 class-code
    [...]

    $ cat /proc/device-tree/pci@f4000000/ethernet@f/compatible
    gmac

    etc. Si tu as envie d'en savoir plus, tu peux toujours télécharger un tarball de mon /proc/device-info et fouiller dedans: http://colino.net/tmp/devtree.tar.gz(...)

    Pour information, les G5s ont été supportés en moins de deux mois (iirc). les nouveaux portables sont déjà presque entièrement supportés. Devine ce qui empêche, actuellement, l'implémentation de la mise en veille sur mon ibook G4 ? Le manque d'infos sur la façon de rebooter le chipset graphique au réveil. Ce manque d'infos est dû à ... ATI.

    Enfin, juste comme ça, Apple prête et envoie des machines à Benjamin H, le principal développeur PPC de linux. On a vu pire, comme mentalité, IMHO.