Yvraine
04-13-2001, 12:46 PM
Some background:
I got a network card for my Debian box (FA311, if anyone cares) and discovered that out of all the umpteen dozen drivers available to me, I don't have the one I need. Okay, no problem, go out and download (http://www.scyld.com/network/ethercard.html) it.
How do I install it? Well, I'm told (http://www.scyld.com/expert/modules.html) that I need to compile it, and I'm given instructions. But the first thing I'm told is "Verify that the source code for your current kernel version is installed."
Apparently that should be in /usr/src/linux/. But I find that my /usr/src/ directory contains exactly two things: ./ and ../ !
So how do I get the source there? All mention of this that I can find talks about downloading tarballs. My computer doesn't have a modem, and I don't have a CD burner on the W98 machine which IS online, and I'm fairly certain the kernel is too big to fit on a floppy! And naturally there is no network connection yet....
I do, however, have the source CDs that came with my copy of Debian, so I look on there, and find subdirectories of subdirectories of subdirectories.... I find a couple of targzipped files labeled:
kernel-(something)-compact-2.2.17pre6-1.tar.gz
kernel-(something)-idepci-2.2.17pre6-1.tar.gz
(I forget the exact names.)
So I copy those to /usr/src and ungzip them, and find two sets of files, similar but not identical, and I DON'T think those are the source code because the largest file in each is the Debian swirl-logo graphic.
So now I'm not sure where to look. That directory on my CD also contained gzipped files for all the basic Unix commands, like grep and sed, and it also had grub and lilo, but from what I understand, these are NOT considered part of the actual kernel.
Perhaps I need to explore more branches of the directory tree? It could be hiding somewhere I haven't looked.
Would there be an entire subdirectory structure under /usr/src/linux if it were there? Maybe I need to recursively copy a directory and its contents to /usr/src? And if I do, at which point do I copy it from? Its root? At */i386/?
Okay, enough rambling. I hope I described the situation clearly. I'd rather not take the easy way out (i.e. go by a network card that I DO have the driver for!) Dammit, I want my source!
[ 13 April 2001: Message edited by: Yvraine ]
I got a network card for my Debian box (FA311, if anyone cares) and discovered that out of all the umpteen dozen drivers available to me, I don't have the one I need. Okay, no problem, go out and download (http://www.scyld.com/network/ethercard.html) it.
How do I install it? Well, I'm told (http://www.scyld.com/expert/modules.html) that I need to compile it, and I'm given instructions. But the first thing I'm told is "Verify that the source code for your current kernel version is installed."
Apparently that should be in /usr/src/linux/. But I find that my /usr/src/ directory contains exactly two things: ./ and ../ !
So how do I get the source there? All mention of this that I can find talks about downloading tarballs. My computer doesn't have a modem, and I don't have a CD burner on the W98 machine which IS online, and I'm fairly certain the kernel is too big to fit on a floppy! And naturally there is no network connection yet....
I do, however, have the source CDs that came with my copy of Debian, so I look on there, and find subdirectories of subdirectories of subdirectories.... I find a couple of targzipped files labeled:
kernel-(something)-compact-2.2.17pre6-1.tar.gz
kernel-(something)-idepci-2.2.17pre6-1.tar.gz
(I forget the exact names.)
So I copy those to /usr/src and ungzip them, and find two sets of files, similar but not identical, and I DON'T think those are the source code because the largest file in each is the Debian swirl-logo graphic.
So now I'm not sure where to look. That directory on my CD also contained gzipped files for all the basic Unix commands, like grep and sed, and it also had grub and lilo, but from what I understand, these are NOT considered part of the actual kernel.
Perhaps I need to explore more branches of the directory tree? It could be hiding somewhere I haven't looked.
Would there be an entire subdirectory structure under /usr/src/linux if it were there? Maybe I need to recursively copy a directory and its contents to /usr/src? And if I do, at which point do I copy it from? Its root? At */i386/?
Okay, enough rambling. I hope I described the situation clearly. I'd rather not take the easy way out (i.e. go by a network card that I DO have the driver for!) Dammit, I want my source!
[ 13 April 2001: Message edited by: Yvraine ]