View previous topic :: View next topic |
Author |
Message |
tsinghoi n00b
Joined: 28 Sep 2005 Posts: 15
|
Posted: Fri Mar 16, 2007 8:35 pm Post subject: where do I get a kernel from? |
|
|
Im trying to install gentoo on my laptop and the ethernet card isnt recognized (realtek rtl8111b) so I want to do a networkless install and then fix it later.
Well my largest problem right now is... where do I get a kernel from? I have the amd64 livecd and I cant find the source for the kernel. I think Im supposed to move the package to /usr/portage/distfiles and then emerge it, but I cant even find the package in the first place and I dont know where to look. Ive looked at some of the mirrors in the distfiles folder and I dont see any gentoo-sources 2.6. can anyone shed some light on as to where to obtain the kernel package?
Also this is from commandline. I dont want to use the gui installer, I tried it earlier and things didnt go too well. |
|
Back to top |
|
|
bjlockie Veteran
Joined: 18 Oct 2002 Posts: 1186 Location: Canada
|
Posted: Fri Mar 16, 2007 8:44 pm Post subject: |
|
|
# emerge -p vanilla-sources
These are the packages that would be merged, in order:
Calculating dependencies... done!
[ebuild N ] sys-kernel/vanilla-sources-2.6.20.2 USE="-build -symlink" |
|
Back to top |
|
|
bjlockie Veteran
Joined: 18 Oct 2002 Posts: 1186 Location: Canada
|
Posted: Fri Mar 16, 2007 8:45 pm Post subject: |
|
|
# emerge -p gentoo-sources
These are the packages that would be merged, in order:
Calculating dependencies... done!
[ebuild R ] sys-kernel/gentoo-sources-2.6.20-r2 |
|
Back to top |
|
|
erik258 Advocate
Joined: 12 Apr 2005 Posts: 2650 Location: Twin Cities, Minnesota, USA
|
Posted: Fri Mar 16, 2007 8:48 pm Post subject: |
|
|
one liner to generate commands for the files you need (in this case for kernel, it's already run, but you may find it useful for other thiings, namely dhcpcd) Code: |
dan@pascal ~ $ emerge -f -p gentoo-sources | awk '/^http/ {print "wget",$1;}'
wget http://distfiles.gentoo.org/distfiles/genpatches-2.6.19-6.extras.tar.bz2
wget http://distfiles.gentoo.org/distfiles/genpatches-2.6.19-6.base.tar.bz2
wget http://distfiles.gentoo.org/distfiles/linux-2.6.19.tar.bz2 |
_________________ Configuring a Firewall? Try my iptables configuration
LinuxCommando.com is my blog for linux-related scraps and tidbits. Stop by for a visit! |
|
Back to top |
|
|
tsinghoi n00b
Joined: 28 Sep 2005 Posts: 15
|
Posted: Fri Mar 16, 2007 8:58 pm Post subject: |
|
|
Ill try that, thanks! |
|
Back to top |
|
|
deno Guru
Joined: 13 Sep 2006 Posts: 411
|
Posted: Fri Mar 16, 2007 9:02 pm Post subject: |
|
|
If you want gentoo-sources you need (i.e. for version 2.6.19) genpatches-2.6.19-6.extras.tar.bz2, genpatches-2.6.19-6.base.tar.bz2, linux-2.6.19.tar.bz2. I belive that you can start your search here:
http://www.gentoo.org/main/en/mirrors.xml
and for linux-2.6.19.tar.bz2 link at the bottom.
Maybe you can emerge sources somewhere else and then just copy /usr/src/linux-yourVersion on your laprop? Or if you want vanilla why dno't you simply get it from
http://www.kernel.org/pub/linux/kernel/v2.6/
EDIT
Well, erik258 was faster... |
|
Back to top |
|
|
|