How to rebuild a RR4/RR64 kernel

Discussion in general that pertains to Sabayon Linux - Must Pertain to Sabayon Linux

Moderator: Moderators

How to rebuild a RR4/RR64 kernel

Postby lxnay » Mon Mar 20, 2006 0:42

Very easy if you've already done this:

Just do:

Code: Select all
USE="symlink" emerge gentoo-sources
zcat /proc/config.gz > /usr/src/config
genkernel --kernel-config=/usr/src/config --menuconfig --bootloader=grub --gensplash=default all


Kernel menuconfig will show up and let you make changes... then you only need to exit and wait ;)
lxnay
Land Owner
 
Posts: 3415
Joined: Thu Oct 13, 2005 23:16
Location: Italy

Postby wolfchri » Wed Mar 29, 2006 11:24

And how do I get the kernel sources?

At least on the latest XGL edition of RR64, I can not find them in /usr/src/, and I can not emerge them because I have no network because of missing modules (rt2500, uli625x) - that is why I would like to recompile the kernel :shock:

Kind of a chicken - egg problem, I guess :D
wolfchri
Baby Hen
 
Posts: 3
Joined: Mon Mar 20, 2006 10:59

here's an option

Postby barcode_linux » Fri Apr 21, 2006 12:48

Hmmm, I did a DVD2HDD install on my lappy and the sources where installed. But anyways...

You could get on another machine that has an internet connection and using a thumb drive, (or even burn to a cd) the matching vanilla kernel sources from kernel.org and then transfer them over to your machine. Then untar the archive to /usr/src/ and rebuild the kernel to get you up and running. Granted, this would not be a gentoo-ized kernel but it would give you a starting point to work with. Then after you get up on the net, you could emerge everything else.

Hope this helps

cheers
barc
User avatar
barcode_linux
Sharecropper
 
Posts: 113
Joined: Fri Feb 24, 2006 7:10
Location: Alabama, USA

Postby HXC » Mon May 08, 2006 23:56

wolfchri wrote:And how do I get the kernel sources?

At least on the latest XGL edition of RR64, I can not find them in /usr/src/, and I can not emerge them because I have no network because of missing modules (rt2500, uli625x) - that is why I would like to recompile the kernel :shock:

Kind of a chicken - egg problem, I guess :D


Same thing here; the kernel sources are nowhere to be found :?:

Code: Select all
eselect kernel list
Available kernel symlink targets:
  (none found)


Code: Select all
genkernel --kernel-config=/usr/src/config --menuconfig --bootloader=grub --gensplash=default all
* Gentoo Linux Genkernel; Version 3.3.10
* Running with options: --kernel-config=/usr/src/config --menuconfig --bootloader=grub --gensplash=default all

* ERROR: kernel source directory "/usr/src/linux" was not found!

* -- Grepping log... --

* Gentoo Linux Genkernel; Version 3.3.10
* Running with options: --kernel-config=/usr/src/config --menuconfig --bootloader=grub --gensplash=default all

* ERROR: kernel source directory "/usr/src/linux" was not found!

* -- End log... --

* Please consult /var/log/genkernel.log for more information and any
* errors that were reported above.

* Report any genkernel bugs to bugs.gentoo.org and
* assign your bug to genkernel@gentoo.org. Please include
* as much information as you can in your bug report; attaching
* /var/log/genkernel.log so that your issue can be dealt with effectively.
*
* Please do *not* report compilation failures as genkernel bugs!
*


You can try downloading the ebuild from here:
http://www.gentoo-portage.com/sys-kernel/gentoo-sources
HXC
Simple Hen
 
Posts: 44
Joined: Sat Feb 04, 2006 19:16

Use the source

Postby barcode_linux » Tue May 09, 2006 0:08

HXC:
is there anything in /usr/src ?
Code: Select all
ls -l /usr/src

you could have the sources installed but not symlinked to anything, hence /usr/src/linux wouldn't exist.

cheers
barc
User avatar
barcode_linux
Sharecropper
 
Posts: 113
Joined: Fri Feb 24, 2006 7:10
Location: Alabama, USA

Re: Use the source

Postby HXC » Tue May 09, 2006 0:13

barcode_linux wrote:HXC:
is there anything in /usr/src ?
Code: Select all
ls -l /usr/src

you could have the sources installed but not symlinked to anything, hence /usr/src/linux wouldn't exist.

cheers
barc


I checked that. /usr/src was totally empty...
HXC
Simple Hen
 
Posts: 44
Joined: Sat Feb 04, 2006 19:16

weird!

Postby barcode_linux » Tue May 09, 2006 0:20

HXC:
Well, as I said, I did a DVD2HDD install and got the sources installed
Code: Select all
barcode@desktop ~ $ ls -l /usr/src/
total 2800
lrwxrwxrwx  1 root root      23 2006-02-25 15:24 linux -> linux-2.6.15-reiser4-r1
drwxr-xr-x 20 root root    4096 2006-04-19 21:32 linux-2.6.15-reiser4-r1
drwxr-xr-x 19 root root    4096 2006-04-08 21:35 linux-2.6.16-rc5-xen
drwxr-xr-x 19 root root    4096 2006-04-17 03:59 linux-2.6.16-xen-r1


I guess I could tar up the sources and post them here if anyone needs them, but let me know. But I would suggest emerging the sources (if you can) and running
Code: Select all
zcat /proc/config.gz > current-config

to get the current running kernel config to work with.

cheers
barc
User avatar
barcode_linux
Sharecropper
 
Posts: 113
Joined: Fri Feb 24, 2006 7:10
Location: Alabama, USA

Re: weird!

Postby HXC » Tue May 09, 2006 0:34

barcode_linux wrote:HXC:
Well, as I said, I did a DVD2HDD install and got the sources installed
Code: Select all
barcode@desktop ~ $ ls -l /usr/src/
total 2800
lrwxrwxrwx  1 root root      23 2006-02-25 15:24 linux -> linux-2.6.15-reiser4-r1
drwxr-xr-x 20 root root    4096 2006-04-19 21:32 linux-2.6.15-reiser4-r1
drwxr-xr-x 19 root root    4096 2006-04-08 21:35 linux-2.6.16-rc5-xen
drwxr-xr-x 19 root root    4096 2006-04-17 03:59 linux-2.6.16-xen-r1


I guess I could tar up the sources and post them here if anyone needs them, but let me know. But I would suggest emerging the sources (if you can) and running
Code: Select all
zcat /proc/config.gz > current-config

to get the current running kernel config to work with.

cheers
barc


Thanks for the offer :). However I solved this problem by doing a "emerge -u gentoo-sources". And issued these commands afterwards:

zcat /proc/config.gz > /usr/src/config
genkernel --kernel-config=/usr/src/config --menuconfig --bootloader=grub --gensplash=default all
HXC
Simple Hen
 
Posts: 44
Joined: Sat Feb 04, 2006 19:16

Postby lxnay » Tue May 09, 2006 7:47

!!!
Code: Select all
emerge reiser4-gentoo-sources

!!!

To update external drivers you can emerge "module-rebuild" application
lxnay
Land Owner
 
Posts: 3415
Joined: Thu Oct 13, 2005 23:16
Location: Italy

Postby HXC » Thu May 11, 2006 16:51

Strangly enough /usr/src is also empty in the latest rr64...

@lxnay, what is the correct procedure to fix this?
HXC
Simple Hen
 
Posts: 44
Joined: Sat Feb 04, 2006 19:16

Next

Return to Sabayon Linux General Discussion

Who is online

Users browsing this forum: No registered users and 1 guest