Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Kernel Update
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
Nonsense
n00b
n00b


Joined: 03 Dec 2009
Posts: 74

PostPosted: Fri Dec 11, 2009 9:38 am    Post subject: Kernel Update Reply with quote

Can someone assist me in patching from linux-2.6.30-gentoo-r6 to linux-2.6.32?

i downloaded linux-2.6.32.bz2 and unzip it to/usr/src

It does not run linux-2.6.32 but linux-2.6.30-gentoo-r6

Code:

emerge gentoo-source
                  ... ...

>> Emerging ( 1 of 1 ) sys-kernel/gentoo-sources-2.6.30-r6
Back to top
View user's profile Send private message
anello
Guru
Guru


Joined: 17 Jul 2005
Posts: 557
Location: EU -> DE -> Stuttgart

PostPosted: Fri Dec 11, 2009 10:08 am    Post subject: Reply with quote

Just try ~x86 or whatever arch you're runnging of gentoo-sources ... 2.6.32 is available there.
_________________
Antonino Catinello | http://catinello.eu
Back to top
View user's profile Send private message
cach0rr0
Bodhisattva
Bodhisattva


Joined: 13 Nov 2008
Posts: 4123
Location: Houston, Republic of Texas

PostPosted: Fri Dec 11, 2009 10:51 am    Post subject: Reply with quote

do this

Code:

ACCEPT_KEYWORDS="~x86" emerge -pv gentoo-sources


if that shows the kernel sources you want, then do

Code:

ACCEPT_KEYWORDS="~x86" emerge -av gentoo-sources


Note that if you're certain you always want to trust ~x86 for the kernel sources, you should look at adding it to /etc/portage/package.keywords (it doesn't exist by default. You should also emerge --sync to see the latest stuff available.

More info here - http://www.gentoo.org/doc/en/handbook/handbook-amd64.xml?part=3&chap=3#doc_chap3
_________________
Lost configuring your system?
dump lspci -n here | see Pappy's guide | Link Stash
Back to top
View user's profile Send private message
DaggyStyle
Watchman
Watchman


Joined: 22 Mar 2006
Posts: 5387

PostPosted: Fri Dec 11, 2009 11:03 am    Post subject: Re: Kernel Update Reply with quote

Nonsense wrote:
Can someone assist me in patching from linux-2.6.30-gentoo-r6 to linux-2.6.32?

i downloaded linux-2.6.32.bz2 and unzip it to/usr/src

It does not run linux-2.6.32 but linux-2.6.30-gentoo-r6

Code:

emerge gentoo-source
                  ... ...

>> Emerging ( 1 of 1 ) sys-kernel/gentoo-sources-2.6.30-r6

dude, welcome to linux, in order to use your linux right, you must use the package manager, this isn't windows, you do not go to sites and download files, the package manager does that for you.
now before you'll mess your system, read the documentation please.
also, you might need to delete that folder you've created (/usr/src/linux-2.6.32) before you emerge gentoo-sources.
good luck.
_________________
Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein
Back to top
View user's profile Send private message
Ahenobarbi
Retired Dev
Retired Dev


Joined: 02 Apr 2009
Posts: 345
Location: Warsaw, PL

PostPosted: Fri Dec 11, 2009 12:14 pm    Post subject: Reply with quote

cach0rr0 wrote:

Note that if you're certain you always want to trust ~x86 for the kernel sources, you should look at adding it to /etc/portage/package.keywords (it doesn't exist by default. You should also emerge --sync to see the latest stuff available.

More info here - http://www.gentoo.org/doc/en/handbook/handbook-amd64.xml?part=3&chap=3#doc_chap3

DaggyStyle even if you want just 2.6.32 consider adding it to /etc/portage/package.keywords. You'll have less trouble this way ( you won't downgrade you kernel by mistake).
Back to top
View user's profile Send private message
DaggyStyle
Watchman
Watchman


Joined: 22 Mar 2006
Posts: 5387

PostPosted: Fri Dec 11, 2009 12:41 pm    Post subject: Reply with quote

Ahenobarbi wrote:
cach0rr0 wrote:

Note that if you're certain you always want to trust ~x86 for the kernel sources, you should look at adding it to /etc/portage/package.keywords (it doesn't exist by default. You should also emerge --sync to see the latest stuff available.

More info here - http://www.gentoo.org/doc/en/handbook/handbook-amd64.xml?part=3&chap=3#doc_chap3

DaggyStyle even if you want just 2.6.32 consider adding it to /etc/portage/package.keywords. You'll have less trouble this way ( you won't downgrade you kernel by mistake).


what? I'm not the op...
_________________
Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein
Back to top
View user's profile Send private message
Ahenobarbi
Retired Dev
Retired Dev


Joined: 02 Apr 2009
Posts: 345
Location: Warsaw, PL

PostPosted: Fri Dec 11, 2009 1:08 pm    Post subject: Reply with quote

DaggyStyle wrote:
Ahenobarbi wrote:
cach0rr0 wrote:

Note that if you're certain you always want to trust ~x86 for the kernel sources, you should look at adding it to /etc/portage/package.keywords (it doesn't exist by default. You should also emerge --sync to see the latest stuff available.

More info here - http://www.gentoo.org/doc/en/handbook/handbook-amd64.xml?part=3&chap=3#doc_chap3

DaggyStyle even if you want just 2.6.32 consider adding it to /etc/portage/package.keywords. You'll have less trouble this way ( you won't downgrade you kernel by mistake).


what? I'm not the op...

:oops: I'm sorry I addressed wrong person. I should have written

Nonsense, even if you want just 2.6.32 consider adding it to /etc/portage/package.keywords. You'll have less trouble this way ( you won't downgrade you kernel by mistake).
Back to top
View user's profile Send private message
cach0rr0
Bodhisattva
Bodhisattva


Joined: 13 Nov 2008
Posts: 4123
Location: Houston, Republic of Texas

PostPosted: Fri Dec 11, 2009 10:23 pm    Post subject: Reply with quote

Ahenobarbi wrote:

:oops: I'm sorry I addressed wrong person. I should have written

Nonsense, even if you want just 2.6.32 consider adding it to /etc/portage/package.keywords. You'll have less trouble this way ( you won't downgrade you kernel by mistake).


This is how I personally do it. I am aware the pitfalls of specifying keywords on the command line.
I had assumed for the user it would be easier to do it on the command line, was worried if I said how to add it to package.keywords something would get lost in translation.

btw, you don't downgrade your kernel just by emerging older sources. It should cause no harm whatsoever - in fact it shouldn't even cause confusion unless you have USE="symlink". It does nothing more than waste disk space by pulling in an older set of sources.
_________________
Lost configuring your system?
dump lspci -n here | see Pappy's guide | Link Stash
Back to top
View user's profile Send private message
d2_racing
Bodhisattva
Bodhisattva


Joined: 25 Apr 2005
Posts: 13047
Location: Ste-Foy,Canada

PostPosted: Fri Dec 11, 2009 10:29 pm    Post subject: Reply with quote

Hi, can you post this :

Code:

# cd /usr/src
# ls -la
Back to top
View user's profile Send private message
Nonsense
n00b
n00b


Joined: 03 Dec 2009
Posts: 74

PostPosted: Mon Dec 14, 2009 1:08 am    Post subject: Reply with quote

d2_racing
Quote:


Code:

# cd /usr/src
# ls -la





drwxr-xr-x 5 root root 408 Dec 11 10:44 .
drwxr-xr-x 12 root root 376 Sep 18 10:35 ..
-rw-r--r-- 1 root root 0 Sep 18 10:35 .keep_sys-apps_baselayout-0
-rw-r--r-- 1 root root 18693 Dec 11 10:28 COPYING
-rw-r--r-- 1 root root 94031 Dec 11 10:28 CREDITS
-rw-r--r-- 1 root root 2430 Dec 11 10:28 Kbuild
-rw-r--r-- 1 root root 159885 Dec 11 10:28 MAINTAINERS
-rw-r--r-- 1 root root 55203 Dec 11 10:28 Makefile
-rw-r--r-- 1 root root 17459 Dec 11 10:28 README
-rw-r--r-- 1 root root 3371 Dec 11 10:28 REPORTING-BUGS
drwxr-xr-x 10 root root 264 Oct 24 21:50 initramfs
lrwxrwxrwx 1 root root 22 Dec 11 10:44 linux -> linux-2.6.30-gentoo-r6
drwxr-xr-x 23 root root 960 Dec 11 10:43 linux-2.6.30-gentoo-r6
drwxr-xr-x 23 root root 800 Dec 11 10:33 linux-2.6.32
Back to top
View user's profile Send private message
d2_racing
Bodhisattva
Bodhisattva


Joined: 25 Apr 2005
Posts: 13047
Location: Ste-Foy,Canada

PostPosted: Mon Dec 14, 2009 2:13 am    Post subject: Reply with quote

Ok, now :

Code:

# cd /usr/src/linux
# cp .config /usr/src/linux-2.6.32/.config
# cd /usr/src
# ln -sfn linux-2.6.32 linux
# cd /usr/src/linux
# make oldconfig
# make && make modules_install
Back to top
View user's profile Send private message
Nonsense
n00b
n00b


Joined: 03 Dec 2009
Posts: 74

PostPosted: Mon Dec 14, 2009 6:12 am    Post subject: Reply with quote

d2_racing
Quote:
Code:


# cd /usr/src/linux
# cp .config /usr/src/linux-2.6.32/.config
# cd /usr/src
# ln -sfn linux-2.6.32 linux
# cd /usr/src/linux
# make oldconfig
# make && make modules_install 

I followed the command but the version is still the same


Code:
gentoolight linux# uname -r
2.6.30-gentoo-r6


Is the update successful?
Back to top
View user's profile Send private message
AaronPPC
Guru
Guru


Joined: 29 May 2005
Posts: 522
Location: Tucson, AZ

PostPosted: Mon Dec 14, 2009 6:40 am    Post subject: Reply with quote

If the compile was successful, you next need to do:
Code:
# cp arch/x86/boot/bzImage /boot/kernel-2.6.32

Then, open /boot/grub/grub.conf in your favorite text editor. You will see something like:
    title Gentoo 2.6.30-gentoo-r6
    root (hd0,0)
    kernel /boot/kernel-2.6.30-gentoo-r6 root=/dev/sda3 video=uvesafb:1280x1024-32,mtrr:3,ywrap

Copy and paste the whole entry below the first entry. You will need to change the highlighted portions. The red one can say anything you want. It is entry you see in grub when you boot your computer. Change the blue part to kernel-2.6.32. Save and exit. If you use the proprietary ATI or nVidia drivers you need to re-emerge them. Re-emerging klibc is also a good idea, but isn't as critical. Now you can reboot, select your kernel and see if it works.
_________________
--Aaron
Back to top
View user's profile Send private message
DaggyStyle
Watchman
Watchman


Joined: 22 Mar 2006
Posts: 5387

PostPosted: Mon Dec 14, 2009 10:55 am    Post subject: Reply with quote

d2_racing wrote:
Ok, now :

Code:

# cd /usr/src/linux
# cp .config /usr/src/linux-2.6.32/.config
# cd /usr/src
# ln -sfn linux-2.6.32 linux
# cd /usr/src/linux
# make oldconfig
# make && make modules_install


your missing the problem here, he didn't emerged 2.6.32 from portage.
he needs to emerge it from portage. or else, his system will start being like windows, junk everywhere.

to the op, first delete the kernel-2.6.32 folder, then run
Code:
emerge gentoo-sources
for gentoo patched kernel or
Code:
emerge vanilla-sources
for the original kernel tree.
then go with the steps that d2_racing and AaronPPC said.
also, please read the handbook, you've could have solved this issue long ago by simply reading the manual.
_________________
Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein
Back to top
View user's profile Send private message
d2_racing
Bodhisattva
Bodhisattva


Joined: 25 Apr 2005
Posts: 13047
Location: Ste-Foy,Canada

PostPosted: Mon Dec 14, 2009 1:23 pm    Post subject: Reply with quote

I tought that he emerged the gentoo-sources at least :P

That's why he had a weird directory inside the /usr/src.
Back to top
View user's profile Send private message
pilla
Administrator
Administrator


Joined: 07 Aug 2002
Posts: 7694
Location: Pelotas, BR

PostPosted: Mon Dec 14, 2009 6:56 pm    Post subject: Reply with quote

Moved from Kernel & Hardware to Unsupported Software.
_________________
"I'm just very selective about the reality I choose to accept." -- Calvin
Back to top
View user's profile Send private message
Nonsense
n00b
n00b


Joined: 03 Dec 2009
Posts: 74

PostPosted: Tue Dec 15, 2009 8:37 am    Post subject: Reply with quote

Thank you for voicing out my error. i followed the handbook and i managed to reboot.
However, it stopped while rebooting

Quote:
...
...
...
...
...
...
No filesystem could mount root, tried: ext3 vfat msdos iso9660
kernel panic - not syncing: VFS: unable to mount root fs on unknown-block(8,2)
pid: 1, comm: swapper Not tainted 2.6.32-rc5 #1
Call Trace:
? printk+0xf/0x11
panic+0x39/0xdb
mount_block_root+0x163/0x172
? sys_sigsuspend+0x7f/0x8d
mount_root+0x66/0x84
prepare_namespace+0x145/0x16c
kernel_init+0x16a/0x179
? kernel_init+0x0/0x179
kernel_thread_helper+0x7/0x10 <-- it stops here


Did i do something wrong somewhere?
Back to top
View user's profile Send private message
DaggyStyle
Watchman
Watchman


Joined: 22 Mar 2006
Posts: 5387

PostPosted: Tue Dec 15, 2009 9:53 am    Post subject: Reply with quote

https://forums.gentoo.org/viewtopic-t-729188-highlight-kernel+panic+syncing.html
_________________
Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein
Back to top
View user's profile Send private message
Nonsense
n00b
n00b


Joined: 03 Dec 2009
Posts: 74

PostPosted: Sun Feb 14, 2010 1:12 pm    Post subject: Reply with quote

hi all, lets say i want to use existing config file.

is it by selecting load alternative file under
Code:
make menuconfig
?
please advice
Thanks
Back to top
View user's profile Send private message
ufoman
Tux's lil' helper
Tux's lil' helper


Joined: 02 Apr 2006
Posts: 80

PostPosted: Sun Feb 14, 2010 1:42 pm    Post subject: Reply with quote

Just copy your existing .config to the current kernel directory and run
Code:
make menuconfig

as usual...
_________________
Registered Linux User #417638
amd64 no-multilib
desktop: Gigabyte GA-MA770-UD3 v2.0, Athlon II X2 250 @3,6GHz, 4GB DDR2 800, Radeon HD 4850, Seagate Barracuda 7200.11 320GB
Back to top
View user's profile Send private message
loftwyr
l33t
l33t


Joined: 29 Dec 2004
Posts: 970
Location: 43°38'23.62"N 79°27'8.60"W

PostPosted: Sun Feb 14, 2010 2:40 pm    Post subject: Reply with quote

actually, you should run make oldconfig first. That will prompt you for each new option (if any). If it's a -r update, make silentoldconfig will do it without scrolling every option. If you simply go into menuconfig, you may not find out about things that you need to keep your system running after the next reboot.
_________________
My emerge --info
Have you run revdep-rebuild lately? It's in gentoolkit and it's worth a shot if things don't work well.
Celebrating 5 years of Gentoo-ing.
Back to top
View user's profile Send private message
Nonsense
n00b
n00b


Joined: 03 Dec 2009
Posts: 74

PostPosted: Tue Feb 16, 2010 11:53 am    Post subject: Reply with quote

eh, what i meant was if i want to use outside source(downloaded from site) but i want to use the kernel configuration. How do i use it?
Back to top
View user's profile Send private message
ufoman
Tux's lil' helper
Tux's lil' helper


Joined: 02 Apr 2006
Posts: 80

PostPosted: Wed Feb 17, 2010 12:34 am    Post subject: Reply with quote

Loftwyr, many thanks for the silentoldconfig option :D
_________________
Registered Linux User #417638
amd64 no-multilib
desktop: Gigabyte GA-MA770-UD3 v2.0, Athlon II X2 250 @3,6GHz, 4GB DDR2 800, Radeon HD 4850, Seagate Barracuda 7200.11 320GB
Back to top
View user's profile Send private message
Nonsense
n00b
n00b


Joined: 03 Dec 2009
Posts: 74

PostPosted: Thu Feb 18, 2010 2:04 am    Post subject: Reply with quote

maybe i rephrased my question.

lets says i wan to use a configuration file available online, how do i apply the configuration after downloading it?
Please advice
Back to top
View user's profile Send private message
loftwyr
l33t
l33t


Joined: 29 Dec 2004
Posts: 970
Location: 43°38'23.62"N 79°27'8.60"W

PostPosted: Thu Feb 18, 2010 1:56 pm    Post subject: Reply with quote

You copy it to the kernel source directory and name it .config. Then you run "make oldconfig" and go from there.
_________________
My emerge --info
Have you run revdep-rebuild lately? It's in gentoolkit and it's worth a shot if things don't work well.
Celebrating 5 years of Gentoo-ing.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum