debian n00b – new kernel compile [3com nic] [debian woody]

Q: Ive long been a weak man, and I am now trying my hand at Debian.
I has a base install of -30rc2, and now Im going down as where
to. I have an asus board and need to nForce2 works before
i enjoy the apt-get system. I can compile a 2.6.4 kernel with the necessary
drivers or am I now have to jump through some hoops. 2.6.4 will compile with gcc-2.95 .*
anyway Ill give that a go and report back. In the meantime, any help would be
appreciated.

bulls ~


Crash Course Beginners Guitar Lessons
Re:He can download it and the dependencies in windows ;)

Personal Investors Hour
Re:Originally posted by: guy
You could just install one. 'apt-get install kernel-image-2.6-k7' will take care of everything.

Not if he has no network connectivity. :)


Linux For Desktop PC And Notebook Computers
Re:You could just install one. 'apt-get install kernel-image-2.6-k7' will take care of everything.

Living Free from your addictions
Re:Originally posted by: guy
i'm giving up for the evening, statistics test tomorrow that I need to study for.
i'll let you know how it goes. thanks for the pointers.

~bulls

Good luck with your test. I'm sure most of us will be around tomorrow to help out if you need it ;)


Upgrade Your Car Stereo The Cheapest Way
Re:i'm giving up for the evening, statistics test tomorrow that I need to study for.
i'll let you know how it goes. thanks for the pointers.

~bulls


Vending Business Ebook Course
Re:Originally posted by: guy

Originally posted by: guy
Maybe the documentation is out of date (Ha!), but the kernel install docs still recommend 2.95.3(?) for kernel compiles.

Oh well, then the best way is to do everything from a chroot'd enviroment from a "rescue" cd.

I'm sure gcc 3 works fine. gcc 2.95 is pretty much dead at this point, it wouldn't make sense to continue using it for kernel compiles.


Crash Course Beginners Guitar Lessons
Re:Originally posted by: guy
Maybe the documentation is out of date (Ha!), but the kernel install docs still recommend 2.95.3(?) for kernel compiles.

Oh well, then the best way is to do everything from a chroot'd enviroment from a "rescue" cd.


The History of Men’s Tennis: Stats. Stories. Scorelines.
Re:Maybe the documentation is out of date (Ha!), but the kernel install docs still recommend 2.95.3(?) for kernel compiles.

10+ Vintage Christmas Display Patterns – Woodworking – Yard Art
Re:I've always just compiled with the current gcc, no matter what it is. Never thought about it before, but if it's a issue it's easy to compile twice. Here's what I've learned to do for debian kernel compiles.

untar the sources, manually apply patches and whatever. With the debian tools you can automate the addition of patches, so that when your finished the sources revert back to vanilla. But that is a pain, if I want clean sources I just delete the old tree and untar a new one in it's place.

Go to the source tree, then run this command:

make-kpkg –configure=menuconfig kernel_image

(see here for details) (http://newbiedoc.sourceforge.net/tutorials/kernel-pkg/index-kernel-pkg.html)

It will make a debian package that holds the kernel image and all the associate modules from the source tree (it can compile modules from seperate sources like if you want Alsa with 2.4 series kernel)

Then once you get that done, you "cd .." and use dpkg –install kernel-blahblah.deb and it will install the kernel and probably do a decent job of setting up the bootloader to use it (although I always edit and check out the grub/lilo config because usually it screws up something).

If you like that then reboot logon and then once you get everything updated with a new gcc then do the make-kpkg kernel_image and it should regenerate. Then you reinstall the new deb with same file name and it will install over the old kernel you just made.

HOWEVER, the sucky part is that I don't know if make-kpkg is even aviable PLUS you need to install module-init-tools package to support 2.6 kernel module handling. Slackware installs the extra module tools by default.

THE BETTER WAY:

What I do in this situation is fairly easy. If you have a knoppix or knoppix-like (gentoo install, Suse eval or whatever) CD that can operate the nic card.

So I boot up with the normal debian stable install, and get the initial setup up out of the way. (there is a nasty thing that happens with the init scripts if you don't boot up at least once with a debian install after you get the default install done, there is one script that runs the taskel initial setup on boot-up and it disables itself when it's done.)

Then I boot up with the CD to get network connectivity.

Then I mount the root debian partition (In this example to a /debmount/ directory), mount the proc partition (something like "mount -t proc proc /debmount/proc"), chroot into the debian root partition, mount all the extra partitions (/home /boot whatever).

Then I set up the /etc/apt/source.list so that when I do apt-get dist-update it will pull the packages from the "unstable" or "testing" source tree. You can do all this from the dselect front end, it's a bit easier. Also you probably need a browser to find the repositories you need.

Here a simple /etc/apt/source.list, but later you probably want to change it to a faster local mirror:

deb http://http.us.debian.org/debian unstable main contrib non-free
deb http://ftp.de.debian.org/debian-non-US unstable non-US/main non-US/contrib non-US/non-free

I don't remember if the default apt-get source lists work well if you just change the entries from "stable" to "unstable" or "testing".

Then I do:
apt-get dist-upgrade
apt-get install module-init-tools
apt-get install kernel-package

Then once I get the new 2.6 kernel compiled and install using make-kpkg command then I umount everything, exit out of chroot, umount the proc and root stuff and then reboot and then I am done.


Curso en Video de Creacion y Validacion de Instrumentos
Re:Originally posted by: guy
i think the onboard isn't supported till 2.4.24 so i'm out of luck. man this is
frustrating, can't mount fat32 with su. says fat32 isn't supported by the kernel!!

Try -t vfat if you were previously trying -t fat32.


Re:i think the onboard isn't supported till 2.4.24 so i'm out of luck. man this is
frustrating, can't mount fat32 with su. says fat32 isn't supported by the kernel!!

Re:Is your card not supported in 2.4? If it is, just modprobe or whatever the correct module, apt-get update to testing or unstable or something, and work from there. It would probably be a lot easier.

Re:i dont have a net connection in debian yet so i'm in windows
grabbing everything i need for the kernel compile.

i take it i can just go ahead with the 2.6.4 kernel, i'll
compile everything i need in so i dont have to deal with
modutils just yet, had that trouble earlier today while messing
with the ati drivers.

thanks guy,
~bulls


Re:I believe all you need is module-init-tools for the 2.6 module system, but I havn't used a straight woody system in a long time so I can't vouch for 2.6 working with no problems.

Re:You'll need to update module-init utilities or something to get 2.6 working. If that is updated, you should be good to go. I recommend downloading the kernel sources through apt-get and building from those, since I don't think Debian uses vanilla kernels.

Related posts

Leave a comment

0 Comments.

Leave a Reply


click to changeSecurity Code

[ Ctrl + Enter ]