Linux Device Drivers, 2nd ed. Released Under GNU FDL 77
Rosco P. Coltrane writes: "I don't know if this is old news, but I've just noticed that the "Linux Device Drivers, 2nd Edition" book by Alessandro Rubini & Jonathan Corbet has been published under the GNU Free Documentation License v1.1 by O'Reilly." Making the entire book available is a nice gesture by O'Reilly. And anything that helps get more device drivers written is a plus in my book... We reviewed the first edition, but obviously there have been one or two tiny changes since then.
GNU FDL violation? (Score:1)
source is available here: (Score:1)
It's written in DocBook XML 2.1, and the source is available at
ftp://ftp.oreilly.com/pub/examples/linux/drivers2
There was actually a link to it somewhere on the book's site.
-grendel drago
Re: Other nice free books (Score:1)
--
Linksys doesn't support Linux? (Score:2)
Next time you contact them, remind them that they were shipping Linux in the box with a lot of their products (TurboLinux) and that they have Linux support stamped on the boxes of their 10/100 NICs.
You forgot "C"... (Score:2)
C) The company is so paranoid that the technical information needed to develop drivers will either allow a competitor to come up with a cheap knock-off product (Which was M-Systems excuse...) or allow enough knowlege of the internal workings of the device in question to allow an opening for a patent infringement suit.
These companies are so sold on "intellectual" property and they're afraid that any piece of what they consider is their intellectual propery is guarded like the crown jewels. SiS, while they gave away technical data for the 6328 3D chip, has chosen to require an NDA to get ANYTHING about the 300, 305, or 315 chips- even though they gave out an open source driver, without that information, you can't fix it. Thankfully, I'm going to be able to work on it because my employer's working with something that uses a 603 chipset that contains the 300- so I'm going to be able to fix the drivers for a while at least.
This presumes you can even GET data on it... (Score:2)
Broadcom's not giving out stuff- even though they HAVE a closed source driver for their HomePNA stuff. It's no different than CyberLink or InterVideo with their PowerDVD for Linux and LinDVD- you have to be an OEM or an embedded systems vendor to even get a copy of the software. This means that I could concievably get a copy of any of this stuff, but the general public can't- which is WRONG.
It's a Good choice... (Score:2)
Fair warning, while the coding is not hard, making drivers work the hardware and do it well is the actual hard part of making drivers for the kernel. Depending on the device it could be easy (The industrial I/O interface for 2.2.X kernels for the Versalogic VSBC-6 is simple- and was the first device driver that I successfully implemented...) or it could be rather complex (DRM modules for DRI support come immediately to mind...). It all depends on the device and what you want to do with it.
Re:Losing money -- OT resp... (Score:2)
Love the quote.
Excellent movie. Unbelievable plot twist at the end- if you've not seen it, you probably ought to go see it; it's got one of those mind-bomb endings not unlike the one they did in Sixth Sense.
Sure, and spend more than the book on it... (Score:2)
Put it in those terms and you'll "get it".
Free Document License... (Score:2)
Re:A Great Book (the 1st edition) (Score:2)
Anyone disagree - are there any alternative books covering this topic?
Re:Huh? (Score:1)
It's called irony. More or less like a joke, you know. Try looking it up in a dictonary!
Szo
Re:Huh? (Score:1)
TIA
Szo
Re:Huh? (Score:1)
sarcasm [dictionary.com]
irony [dictionary.com]
Szo
Re:Huh? (Score:1)
Re:Huh? (Score:1)
Anyway, I have to admit that my confidence came from that I know the Hitchhiker's Guide by heart, and I remembered that Adams uses it in a situation similar to this. It turns out that in the original, it is sarcasm... So, either the translator made a mistake, or the two expression grew to become interchangable. You vote the former, I would like to know why?
br
Szo
ps. Sorry about the troll.
Hans-Peter Messmer Indispensible PC Hardware (Score:2)
I own but haven't read the first one :) (Score:1)
To the Author go the Kudos more than to O'Reilly (Score:3)
This wasn't a "gesture" by O'Reilly so much as a gesture by the Book's author. O'Reilly will agree to publish authors who insist on it to release their work under the FDL, but the authors must explicity request this (O'Reilly doesn't volunteer the information that they allow it, and to all appearances would prefer authors not do so. At least, that has been their stance in the past according to several people I spoke with
The Free Software Foundation is really pushing for all documentation about Free Software to be released under the FDL, which they crafted with the help of some very big publishers (I want to say Random House but I don't think that is correct
O'Reilly does deserve some credit for allowing authors to do this (and some criticism for being relatively mum about the option when signing authors), but the Author is clearly the one who deserves our highest praise, the best form of which would be purchasing his book and supporting his decision as well as underscoring O'Reilly's wisdom in allowing it.
--
Didn't lose a sale here (Score:3)
Really. My shelves are already loaded up pretty heavily with O'Reilly books, and this gesture just makes me want to add more to my collection.
--
Re:Drivers for newbies? (Score:3)
The first edition of the book was quite good for this; it had many examples of simple drivers scattered within to illustrate what it was talking about, which was very helpful.
My best advice would be to a) write a couple of toy drivers to get a feel for things, and b) take apart an existing driver and see how it works. I wrote an I/O space interface driver that I used to play with parallel ports, and a PCI-scanning driver; both purposes are already served by other parts of Linux, but it was still fun. I also had the dubious joy of wading throught the LML-33 video capture card's driver. I learned a lot by doing both, though, and the book was an invaluable reference.
Re:Huh? (Score:1)
Re:Losing money (Score:2)
For one thing, as another poster has pointed ot, O'Reilly does tend to produce high quality books which do last, whereas a ring binder printout soon turns into a mass of out of sequence torn pages.
For another thing, depending on what I'm doing, I find that dead tree documentation is at times more readable for some strange reason than viewing it onscreen. For example, when you're computer is totally screwed up, reading an online form of 'Unix System Administration' is not going to happen!
For the reasons above I have only regretted buying one of the 15 O'Reilly books I have in my possession [The one on SQL and Oracle is the crap one IMO].
Maybe this is already achievable (Score:2)
The Linux 2.4.7 Universal Serial Bus pegasus driver claims to support a bunch of Home Phone Networking Alliance [homepna.org] devices. If the Linksys device is a version of these devices, you may be able to get support by just adding the appropriate vendor and product ID's to linux-2.4.7/drivers/usb/pegasus.h (and doing "cd /usr/src/linux && make modules && make modules_install && depmod && rmmod pegasus ; modprobe pegasus"). At the very least, reading pegasus.h will give you a list of USB HomePNA devices that should work with Linux.
Otherwise, you might want to dump the USB device and interface descriptors (by activating some debug option in the core Linux USB driver or by the lsusb program) and see if your device exports an interface compatible with the USB Communications Class [usb.org] (wish I had a pointer to it in non-PDF form), which I believe includes an ethernet subclass. In that case, it still might be a lot of work and a lot of learning for someone not familiar with Linux device drivers and USB, but you would at least have some documentation (see http://www.usb.org [usb.org] for tons of free-as-in-beer USB documents).
They can convert all books to FDL (Score:1)
Other nice free books (Score:4)
--
Re:frustration (Score:1)
This is REALLY frustrating... I'm waiting to get this book since the beginning of the year...
Please someone, open a mirror !!!
Re:Drivers for newbies? (Score:1)
The first one really did cover (almost) everything you need to know. At the very least, after reading it newbies can ask much more intelligent questions. And having the kernel source to crib ideas from helps immensely, too.
I'd say this book, the kernel source, and a net connection to ask a few questions are all you need to write drivers for Linux. I'll get the second edition now, too. I've got a USB joystick and maybe a webcam that I'd like to add support for...
LDP and O'Reilly (Score:2)
(I believe that the LDP's efforts are not nearly inclusive enough -- there's a lot of quality documentation out there; why not bring it all under one roof?) <-- Anyone who sees a conspiracy here: the maintainer has final say over the control of a document, unless it's left unmaintained for several years, in which case an overhaul crew may be needed.
It's just that it would be nice if there was a huge, huge source for Linux documentation. The LDP is a good start, but it could be so much more...
Eh, just a thought.
-grendel drago
Location of the XML source (DocBook 2.1) (Score:2)
They released the source, but I still say they should harness the power of the LDP and include a bunch of their books with every distribution. (The relevant ones, y'know. I suppose I'd be uninterested in this book if I hadn't installed the kernel sources, for instance...)
It's just rather frustrating to see all these fragmented documentation efforts. It can be so much more effective if we work together... [insert patriotic chord here]
-grendel drago
uses of the FDL (Score:2)
And you neglected that, while the FDL may or may not be good business, it's definitely good documentation -- remember, not all [linuxdoc.org] documentation comes from O'Reilly...
(Okay, the really good stuff does. But the HOWTOs have been indispensible at my job, cutting learn-this and learn-that times in half, at least.)
Remember, publically created documentation has a place, too.
-grendel drago
Re:Drivers for newbies? (Score:2)
"Death of books" highly overrated... (Score:2)
I dunno; there' something to be said about a portable device which requires no batteries which permits me to view a single document file, fits comfortably in my hands, and has a sufficiently high enough resolution and uses a lighting technology which doesn't give me headaches like staring at a LCD or a cathode ray tube.
Now as soon as LCD technologies allow the construction of a 300dpi LCD display about 5"x8" or so, and has a sufficiently fast enough refresh rate that it does't screw with my eyes, perhaps I'll rethink books. But I think we're more than one or two years away from having a device like this for under a hundred bucks...
This is excellent. (Score:5)
The online availability of this edition solves this for me. I spent 10 minutes reading the html version before I realised its exactly the book I need, and the next five minutes ordering it online.
Well done the authors and may you sell many more copies for having the insight to make it freely available online.
Re:Worst that can happen? (Score:2)
------
Re:how long can FDL licensing last? (Score:2)
------
Re:"Death of books" highly overrated... (Score:2)
------
Arrrg ... (Score:1)
Arrrrg, I pre-ordered this book from my regular book store a few months ago, and it has not arrived yet, and now I can downlod it for free ......
(But this is after all excellent news, I just feel a little stupid)
Windows drivers. (Score:1)
USB + HomePNA2.0 (Score:1)
Re:how long can FDL licensing last? (Score:1)
Re:USB + HomePNA2.0 (Score:1)
a) paranoid enough to think that giving out specifications for the hardware they sold you is a bad idea since it might in some way lead you to, um, not having to use Windows. I don't understand the behavior of companies that refuse to document the hardware they sell for any reason but...
b) they might be one of those companies that actually don't know what their own hardware does. Which is another reason, incidentally, why they don't want to move to embedded Linux in many cases - they actually can't write drivers for the hardware they bought without reverse engineering the drivers they were given. Daft. But very funny - their suppliers do to them just what they would do to us, ie. sell them a piece of black-box hardware and refuse to answer any questions about it.
It'd be nice to be able to persuade hardware suppliers to follow O'Reilly and FDL [gnu.org] their specifications...
I *thought* I'd heard about this (Score:2)
It's quite a relief that they are actually publishing it for free online, since I bought the first edition a little while back, before realizing that, duh, it'll be totally useless because I'll have to figure out how to update a 2.0.x driver to 2.4.x, since 2.0.x probably won't support my computer even if I did want to use it.
Anyway, kudos to Tim, and kudos to the author. I might have to fork over the green for a first to second edition "upgrade" (20% off, I believe) if this really turns out to be a useful book.
The only "intuitive" interface is the nipple. After that, it's all learned.
Baen Free Library (Score:1)
Good stuff.. (Score:1)
Re:how long can FDL licensing last? (Score:1)
And even a Ferengi might see that a website which provides free access to some information will capture eyeballs, some of whom will buy other materials on that site.
Re:Losing money (Score:1)
Re:Windows drivers. (Score:1)
Losing money (Score:1)
Re:Uh... (Score:1)
(Obscure Scientology joke -- www.xenu.net should have explanations)
/Brian
Re:how long can FDL licensing last? (Score:2)
Hell, I don't even like 'em very much -- the only reason I would use an ebook is for my guitar tab files (which are over an inch thick in dead tree form) and even then it's a pain in the ass to be playing, playing, playing, then having to stop to scroll down on my laptop to get to the next verse.
Ebooks: delicate, ephemeral by nature, can be locked up by greedy publishers.
Physical books: durable, portable, and you don't have to worry about lighting or screen quality half as much.
/Brian
Re:uses of the FDL (Score:2)
(Look it up -- it's in the Jargon File.)
/Brian
Re:Huh? (Score:1)
Actually, you might take your own advice there szo! Irony is when the outcome of a set of events is the opposite of what you were expecting. For instance that fact that you pompously posted a derisive correction to the poster resulted not in the poster looking foolsish, but rather in you looking foolish. That's irony 8^}
Cheers!
Zero__Kelvin
Re:Huh? (Score:1)
I bet you weren't expecting that your post would be even more ironic in exactly the sense that you accused Szo's post of being.
Nope
Congratulations to tzo though, for recognizing that people can be sarcastic, but not ironic, while events can be ironic, but never scarcastic. Don't worry, you'll figure it out some day, but hint one is stop looking for the clause in the FM (Friendly Manual
Re:Huh? (Score:1)
That's a fine way to treat someone who, though quite accidently spelling your name incorrectly, was offering you accolades!
Talk about your irony. I am by no means a troll. What I am is a person who got 'A' grades in English throughout High School and College. What I am is a person who knows the difference between sarcasm and irony. It's really not that hard to understand, though quite ironically, the person who I congratulated for figuring it out called me a troll!
Re:Huh? (Score:1)
Actually, talking about the metallic taste it gives you in your mouth is quite appropriate. I am using metaphor to convey the idea that there is a subjective component to irony. In other words detecting irony is part art and part science. As for the science part, I did come up with a quick and dirty way to differentiate between them. Irony is usually unintentional, and need not have a sentient component (i.e. need not involve thinking beings), while Sarcasm is always intentional and always involves sentient beings. If you need more proof than that, I suggest you attend an English class - in America, where the language was finally proven viable and extended and embraced correctly, of course 8^} - and tell the professor you think they are the same. Then just sit back and watch the show as he flips out on you in ways you've never dreamed 8^}
Cheers,
Zero__Kelvin
P.S. The 'in America' comment was a joke for anyone who can't tell from context. Some might even say I'm being scarcastic ! Now wouldn't it be ironic if a bunch of lads from across the pond chimed in to agree that America is the best place to learn English? (that was a Rhetorical question - FYI)
Re:Drivers for newbies? (Score:2)
Re:Drivers for newbies? (Score:1)
For the most part, coding is coding. Everything you do you have to learn. This book is a good resource for learning how to write device drivers for linux, though, the concepts apply to virtually all operating systems.
If you have a need to write a device driver for some reason, get the book and go for it. What's the worst than can happen?
Re:Worst that can happen? (Score:1)
Huh?
Re:A Great Book (the 1st edition) (Score:1)
The online edition is extremely good for browsing before you buy, and also acts as a wonderful reference (can't do regexp searches in printed books, too bad
how long can FDL licensing last? (Score:3)
The GPL works because it creates a potential service market by allowing complex software to be made freely available, and creating the need for consultation and support of the product. The FDL, on the other hand, has no such potential. Providing documentation under the FDL with software under the GPL makes sense, however providing documentation under the FDL alone does not create a post-provision market for services. It doesn't allow for any sort of value-add, except to make the material freely available online in some thuroughly indexed and referenced form (which the publisher is doing anyway). It does get the author and the publisher some name recognition, but O'Reilly was already recognised as the leader in such documentation, and service to the OSS comunity by a publisher.
The only value-add I can see is the provision of the document in printed form, for which customers are asked to pay. This works so long as printed books are the dominant form of knowlege distribution. This is rapidly changing. At some point in the vary near future, such printed and bound documents will become secondary to the online publication of the same works - for me it' just a matter of getting a better monitor so I don't go bug eyed after reading 10 pages online.
So, at some point the FDL will not serve a purpose or act as a market driving force as the GPL does - where the GPL creates through the potential for massive large scale peer review, an enviroment of cut-throat competition among developers, driving the creation of the highest quality software available. There is no similar force that the FDL creates. Does it really serve a valuable purpose, other than to allow the software to get his name ot there in a positive light?
--CTH
Re:Windows drivers. (Score:1)
Huh? (Score:2)
I'll buy this book, and even if I owned the first edition I'd still buy it.
A great idea, but.... (Score:3)
But honestly, I own dozens of O;Reilley books and have happily spent what I have on them because they are excellent reference materials. I know if I managed to get interested in linux driver coding, this freebie would be great to get me hooked, but once I was, I'd surely buy the book just to have it readily handy to flip through, mark up, etc :)
O'Reilly has done wonders for Unix as a whole even before the Linux revolution took off - I still have my 1st edition Perl bible and will never part with it - It helped through too many projects at work.
So I say congrats to Oreilly and they have NOTHING to worry about - even if they give their books away for free online - they're good enough to pay for, even if just to support the efforts of OReilly as a whole. Keep up the great work!
Re:A Great Book (the 1st edition) (Score:1)
O'reilly also has another book "Understanding The Linux Kernel" that is fairly up to date. They have links to the website to show the changes in going to 2.4 as well.
Re:Hans-Peter Messmer Indispensible PC Hardware (Score:1)
Another good series along these lines is the Mindshare PC System Architecture, though their binding is crap and the book binding tends to break with a lot of use.
frustration (Score:1)
another very good FDL'ed book for programmers. (Score:4)
Another very good FDL'ed book is the "GNU automake, autoconf and libtool" [redhat.com] book written by Gary V. Vaughan, Ben Elliston, Tom Tromey and Ian Lance Taylor.
This book has helped me a lot in understanding the interaction between automake, autoconf, and libtool. The GNU manual for these tools are excellent, but the book does a great job in showing how the three interaction. I'd say this is a must read for beginning outsource programmers.
The hardcopy's ISBN is 1578701902 and can be found at bn.com [barnesandnoble.com]
O'Reilly rules (Score:1)
something else (Score:1)
something else to shoot myself in the foot [vicksburg.com] with !
First Edition (Score:1)
A Great Book (the 1st edition) (Score:1)
I will see the book online, but as soon I got the money I will buy it.
Re:A Great Book (the 1st edition) (Score:2)
Re:USB + HomePNA2.0 (Score:2)
The chipset used by most of these is made by Broadcom (it's the 4400 series (or was it 4200?)), and after getting frustrated by Linksys and Diamond MM (I have a PNA device from them in my desktop) about the lack of Linux drivers, I contacted Broadcom about Linux support for this chipset. Believe it or not, Broadcom has a Linux driver for this chipset but will only release it to the OEMs, and only at their request! After getting back to Diamond MM about this, they were oddly silent. Linksys gave me a single sentence response: "We don't support Linux sir.".
Very very frustrating to know that a driver exists but will probably never be released. *sigh*
This is great (Score:1)
Very Nice (Score:1)
This is excellent. I bought the original edition of this book and it did a great job of explaining device driver development for the Linux kernel.
I have written device drivers for Windows NT and Windows 2000, and have learned device driver techniques on those OS's. It is much easier to implement a driver on Linux than in Windows. The simple design of the Linux device driver compared to the Windows driver makes design and implementation go much quicker.
For example, the device driver I wrote for the hardware I am working on for Sonic in Windows NT took about 2 months before it was basically working in our software framework. I wrote the same driver in about 2 weeks for Linux.
I could recommend some good books for Windows NT device drivers, but this O'Reilly book is the best I've seen for Linux drivers.
I found that the link on this page was incorrect. The actual link is http://www.xml.com/ldd/chapter/book/bookindexpdf.h tml [xml.com]
Michael A. Uman
Sr Software Engineer
softwaremagic.net
Drivers for newbies? (Score:4)