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

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
midiman
n00b
n00b


Joined: 18 Mar 2009
Posts: 8

PostPosted: Wed Mar 18, 2009 6:49 am    Post subject: Kernel version problem Reply with quote

Hello everyone. I have got Gentoo on my PS3. I want to upgrade my kernel because of framebuffer resolution problem (fbset does not work properly with old kernels). But here is the thing:
When I try to emerge -s gentoo-sources, system shows that the latest kernel version is 2.6.27-r3 and installed kernel fully matches with it. But when I type uname -a there would appear linux-2.6.23-ps3 in the console.
Because of problems with fbset, I think that I still have an old kernel (if fbset works with gentoo at all.. this I don't know exactly too).

So if you have any ideas, please help me understand all this thing=)
Back to top
View user's profile Send private message
doctork
Guru
Guru


Joined: 25 Apr 2004
Posts: 370
Location: Cleveland, OH

PostPosted: Wed Mar 18, 2009 7:00 am    Post subject: Reply with quote

do an "emerge --sync" first.
--
doc
Back to top
View user's profile Send private message
massimo
Veteran
Veteran


Joined: 22 Jun 2003
Posts: 1226

PostPosted: Wed Mar 18, 2009 7:20 am    Post subject: Reply with quote

The sources may be installed but not compiled and copied to /boot/. If you find 2.6.27-r3 in /usr/src/ then you need to compile and install the new kernel. See [1].


[1] http://www.gentoo.org/doc/en/kernel-upgrade.xml
_________________
Hello 911? How are you?
Back to top
View user's profile Send private message
coolsnowmen
Veteran
Veteran


Joined: 30 Jun 2004
Posts: 1479
Location: No.VA

PostPosted: Wed Mar 18, 2009 7:23 am    Post subject: Reply with quote

emerge --sync has nothing to do with this.

Did you actually rebuild the kernel using the newer sources? by hand(make)? more automatically such as genkernel?
Did you then install it? update the boot loader?

ls -l /usr/src/ ?
grub.conf ?
_________________
emerge: there are no ebuilds to satisfy "moo"
Back to top
View user's profile Send private message
midiman
n00b
n00b


Joined: 18 Mar 2009
Posts: 8

PostPosted: Thu Mar 19, 2009 6:20 am    Post subject: Reply with quote

The new kernel had to emerge automatically when I tried to get wifi drivers. But I remember there was a bunch of errors with that emerge.

Now there is linux-2.6.27-gentoo-r7 in my /usr/src directory. I tried to config it and install manually, but there had to appear some errors too.

And when I try to "genkernel all" it says that no .config file found. And if I run manually "make menuconfig" and then "make", there would show up some errors like
/usr/src/linux-2.6.27-gentoo-r7/scripts/gcc-version.sh : line 29 : printf #: unallowed number
kernel/bounds.c:1: error: -m64 is not supported in this configuration
make[1]: *** [kernel/bounds.s] Error 1
make: *** [prepare0] Error 1

Would like so much to make it all automatically ..
Back to top
View user's profile Send private message
antonlacon
Apprentice
Apprentice


Joined: 27 Jun 2004
Posts: 253

PostPosted: Thu Mar 19, 2009 7:33 am    Post subject: Reply with quote

You're cross compiling. It's a 64bit kernel using 32 bit tools.

use
Code:
make ARCH=powerpc CROSS_COMPILE=powerpc64-unknown-linux-gnu-

instead of only make.

You can get a decent config with the make target of ps3_defconfig. You can use it as a start and then use menuconfig after.
Back to top
View user's profile Send private message
midiman
n00b
n00b


Joined: 18 Mar 2009
Posts: 8

PostPosted: Fri Mar 20, 2009 2:01 pm    Post subject: Reply with quote

Yep, new problem=]

At the end of "make ARCH=powerpc CROSS_COMPILE=powerpc64-unknown-linux-gnu-" procedure there is something new appearing:

make[1]: *** No rule to make target `/usr/src/linux-2.6.27-gentoo-r7/arch/powerpc/boot/zImage.lds.S', needed by `arch/powerpc/boot/zImage.lds'. Stop.

I'm totally noobious (right form? I'm just no English)) ) to linux kernels, so please explain me this as well =)
Back to top
View user's profile Send private message
antonlacon
Apprentice
Apprentice


Joined: 27 Jun 2004
Posts: 253

PostPosted: Sat Mar 21, 2009 6:44 am    Post subject: Reply with quote

What's the full command being entered?
Back to top
View user's profile Send private message
midiman
n00b
n00b


Joined: 18 Mar 2009
Posts: 8

PostPosted: Sat Mar 21, 2009 8:23 am    Post subject: Reply with quote

Feeling kinda weird now.. That phrase in quotes, it was exactly the command had been entered.
Back to top
View user's profile Send private message
antonlacon
Apprentice
Apprentice


Joined: 27 Jun 2004
Posts: 253

PostPosted: Sun Mar 22, 2009 2:35 am    Post subject: Reply with quote

Try 2.6.28 or using the ps3_defconfig.
Back to top
View user's profile Send private message
trigggl
Apprentice
Apprentice


Joined: 26 Aug 2007
Posts: 234
Location: Arkansas

PostPosted: Tue Mar 24, 2009 4:30 pm    Post subject: Re: Kernel version problem Reply with quote

midiman wrote:
Hello everyone. I have got Gentoo on my PS3. I want to upgrade my kernel because of framebuffer resolution problem (fbset does not work properly with old kernels). But here is the thing:
When I try to emerge -s gentoo-sources, system shows that the latest kernel version is 2.6.27-r7 and installed kernel fully matches with it. But when I type uname -a there would appear linux-2.6.23-ps3 in the console.
Because of problems with fbset, I think that I still have an old kernel (if fbset works with gentoo at all.. this I don't know exactly too).

So if you have any ideas, please help me understand all this thing=)

I'm surprised nobody asked for this yet. Can you post the 'emerge --info' information?

At the risk of being Captain Obvious, you emerged the gentoo-sources? Since I have an IBM power, I always just compile using the normal methods. Copy your previous working kernel's .config file to /usr/src/2.6.27-gentoo-r7/ (assuming you emerged 'gentoo'-sources). cd to /usr/src/2.6.27-gentoo-r7 and
Code:
sudo make oldconfig
. You may want to
Code:
sudo make menuconfig
after that to go in and make sure the proper video drivers are enabled. I don't know if you are running 32-bit or 64-bit or what compiler you have, so I have no idea how you should be trying to compile it, but all I have to do is
Code:
sudo make
sudo make modules_install

Then I copy my kernel and System.map into the /boot directory and update my /etc/yaboot.conf to load the new kernel, or at least offer it at the next boot.

I have no experience with PS3, but it shouldn't be much different than that. I don't know what boot mechanism that the PS3 uses, but I doubt it's grub.
_________________
Greg
Back to top
View user's profile Send private message
midiman
n00b
n00b


Joined: 18 Mar 2009
Posts: 8

PostPosted: Thu Mar 26, 2009 4:12 pm    Post subject: Reply with quote

Thanks for your help gentlemen!=) But i've got to have a break. One time I was not so careful that while recovering my GameOS from a usb I formatted HDD totally. Once I reinstall Gentoo, we would continue=)
Back to top
View user's profile Send private message
muhsinzubeir
l33t
l33t


Joined: 29 Sep 2007
Posts: 948
Location: /home/muhsin

PostPosted: Sat Apr 04, 2009 7:52 pm    Post subject: Reply with quote

midiman wrote:
Thanks for your help gentlemen!=) But i've got to have a break. One time I was not so careful that while recovering my GameOS from a usb I formatted HDD totally. Once I reinstall Gentoo, we would continue=)


good luck...shit happens
_________________
~x86
p5k-se
Intel Core 2 Duo
Nvidia GT200
http://www.zanbytes.com
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC 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