View previous topic :: View next topic |
Author |
Message |
jeokeefx n00b
Joined: 23 Mar 2005 Posts: 24
|
Posted: Mon Nov 06, 2006 10:16 pm Post subject: Cannot chroot on Xbox ? |
|
|
Get error "Kernel too old"
Following the guide on the below site , i downloaded and extracted the 2006.1 stage 3 file ..
Code: | http://gentoo-wiki.com/HOWTO_Gentoo_for_Xbox |
Anyone got any ideas why this is not working ? |
|
Back to top |
|
|
edk4971 n00b
Joined: 19 May 2005 Posts: 24
|
Posted: Tue Nov 07, 2006 12:31 am Post subject: |
|
|
I got the same thing, downloaded 2006.0 and it worked
but then it failed on gcc, you need to get rid of -o2 from your make.conf
then it fails on glibc... still working this one :-p says kernel too old
might need to roll back farther than 2006.0, someone needs to roll a new xbox livecd with a 2.6 kernel (livecd i have is 2.4.31-xbox) |
|
Back to top |
|
|
edk4971 n00b
Joined: 19 May 2005 Posts: 24
|
Posted: Tue Nov 07, 2006 12:38 am Post subject: |
|
|
does anyone happen to know what 200x.x build i'll need to support a kernel this old? |
|
Back to top |
|
|
blu3bird Retired Dev
Joined: 04 Oct 2003 Posts: 614 Location: Munich, Germany
|
Posted: Tue Nov 07, 2006 12:54 am Post subject: |
|
|
2006.1 x86er Stage3 uses a glibc with nptl. To make nptl work you need a kernel >= 2.6.11... no chance to chroot with a livecd running a 2.4 kernel.
solution: use an 2006.0 stage. compile a basic system without ntpl, reboot to your newly installed 2.6 kernel and recompile system with nptl support.
You may also stick to your old non-nptl system but linuxthreads is allready dead in newest glibcs.
edit: try using /usr/portage/profiles/default-linux/x86/no-nptl/2.4 as profile during install and change it to the xbox-profile later. _________________ Black Holes are created when God divides by zero! |
|
Back to top |
|
|
edk4971 n00b
Joined: 19 May 2005 Posts: 24
|
Posted: Tue Nov 07, 2006 12:58 am Post subject: |
|
|
hmm ok, how do i emerge system w/o nptl? simple as -nptl use flag?
and to change the profile?
ln -s /usr/portage/profiles/default-linux/x86/xbox /etc/make.profile |
|
Back to top |
|
|
blu3bird Retired Dev
Joined: 04 Oct 2003 Posts: 614 Location: Munich, Germany
|
Posted: Tue Nov 07, 2006 1:01 am Post subject: |
|
|
-nptl -nptlonly
But that non-nptl profile should take off, since it blocks sys-libs/glibc-2.4(requires nptl) _________________ Black Holes are created when God divides by zero! |
|
Back to top |
|
|
edk4971 n00b
Joined: 19 May 2005 Posts: 24
|
Posted: Tue Nov 07, 2006 1:04 am Post subject: |
|
|
ok, i'll try emerge system on the other profile first, check back in about 12 hours :-p (really need to get distcc up and running one of these days)
forgot one more thing, jeokeefx make sure you have at least a 256mb swap, that broke my first attempt to compile gcc (apparently 64mb ram and 128 of swap isn't enough to compile gcc 4.1... who woulda thunk it) |
|
Back to top |
|
|
edk4971 n00b
Joined: 19 May 2005 Posts: 24
|
Posted: Tue Nov 07, 2006 4:40 am Post subject: |
|
|
gcc emerged successfully with the new profile, which was the first big problem I had, only big problem remaining is glibc, hopefully will be done by morning
assuming this does work, a) should i change my profile back (this is going to be a carputer xbox, just want speed and basic apps like fluxbox/xmms/firefox/vlc, if 2.4 supports all xbox hardware is it even worth installing 2.6?, is 2.6 going to be any faster? etc) I guess what advantages does 2.6 have over 2.4 in the speed department is the base of the question since 2.4 supports xbox hardware just fine, and or does nptl make things faster?
and if so, b) after relinking make.profile back to the xbox profile, how do i tell emerge to rebuild the system under the new profile? |
|
Back to top |
|
|
jeokeefx n00b
Joined: 23 Mar 2005 Posts: 24
|
Posted: Tue Nov 07, 2006 11:34 am Post subject: |
|
|
Thanks for the reply folks , i will try again when i get home this evening . |
|
Back to top |
|
|
edk4971 n00b
Joined: 19 May 2005 Posts: 24
|
Posted: Tue Nov 07, 2006 10:01 pm Post subject: |
|
|
emerge system successful linked to the 2.4 profile
the 2.4 kernel and the 2.6 kernel were masked fix:
Code: | echo "=sys-kernel/xbox-sources-2.4.32-r1" >> /etc/portage/package.unmask |
emerge xbox-sources
cd /usr/src/linux
cp kernel.config .config
make oldconfig
make dep && make clean bzImage modules modules_install
that's where i am atm, so far so good
when i'm done i'll post a full writeup of what has to be done to install a recent gentoo on an xbox...
once i get a 2.6 kernel compiled, how can i get it to the devs to replace the livecd with one that actually works? |
|
Back to top |
|
|
edk4971 n00b
Joined: 19 May 2005 Posts: 24
|
Posted: Tue Nov 07, 2006 11:29 pm Post subject: |
|
|
everything compiled! so happy.
it was however, short lived.
after exiting the chroot and rebooting, i got the following:
* Calculating module dependencies ...
* Warning: the current /etc/modules.devfs has not been automatically generated
* Use "modules-update force" to force (re)generation
* Failed to calculate module dependencies [!!]
* Using /etc/modules.autoload.d/kernel-2.4 as config:
* Loading module forcedeth ...
forcedeth.c: Reverse Engineered nForce ethernet driver. Version 0.30.
eth0: forcedeth.c : subsystem: 00000:0000 bound to 00:04.0 [ok]
Autoloaded 1 module(s)
* Failed to start /etc/init.d/modules
* One or more critical startup scripts failed to start!
* Please correct this, and reboot ...
Give root password for maintenance
(Or press Control-D to continue):
unfortunately since I have a usb keyboard (no ps2 ports on an xbox) neither is possible
so I rebooted, re chrooted, and ran modules-update force which reported no errors and rebooted again, with the same result.
ideas? |
|
Back to top |
|
|
edk4971 n00b
Joined: 19 May 2005 Posts: 24
|
Posted: Wed Nov 08, 2006 10:00 pm Post subject: |
|
|
if i add usbcore to modules.autoload (like i did with forcedeth) will my usb keyboard work at this point? |
|
Back to top |
|
|
kevintshaver n00b
Joined: 14 Feb 2006 Posts: 49
|
Posted: Sat Dec 09, 2006 4:56 pm Post subject: |
|
|
Did you ever figure this out? I'd love to see a short how-to or a new livecd with the 2.6 kernel in it.
Thanks. |
|
Back to top |
|
|
SHAZcat07 n00b
Joined: 09 Dec 2006 Posts: 3
|
Posted: Sun Dec 10, 2006 6:41 pm Post subject: |
|
|
Yes a 2.6 setup would be greatly appreciated by anybody who has compiled one. |
|
Back to top |
|
|
|