Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Cannot chroot on Xbox ?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures
View previous topic :: View next topic  
Author Message
jeokeefx
n00b
n00b


Joined: 23 Mar 2005
Posts: 24

PostPosted: Mon Nov 06, 2006 10:16 pm    Post subject: Cannot chroot on Xbox ? Reply with quote

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
View user's profile Send private message
edk4971
n00b
n00b


Joined: 19 May 2005
Posts: 24

PostPosted: Tue Nov 07, 2006 12:31 am    Post subject: Reply with quote

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
View user's profile Send private message
edk4971
n00b
n00b


Joined: 19 May 2005
Posts: 24

PostPosted: Tue Nov 07, 2006 12:38 am    Post subject: Reply with quote

does anyone happen to know what 200x.x build i'll need to support a kernel this old?
Back to top
View user's profile Send private message
blu3bird
Retired Dev
Retired Dev


Joined: 04 Oct 2003
Posts: 613
Location: Munich, Germany

PostPosted: Tue Nov 07, 2006 12:54 am    Post subject: Reply with quote

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
View user's profile Send private message
edk4971
n00b
n00b


Joined: 19 May 2005
Posts: 24

PostPosted: Tue Nov 07, 2006 12:58 am    Post subject: Reply with quote

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
View user's profile Send private message
blu3bird
Retired Dev
Retired Dev


Joined: 04 Oct 2003
Posts: 613
Location: Munich, Germany

PostPosted: Tue Nov 07, 2006 1:01 am    Post subject: Reply with quote

-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
View user's profile Send private message
edk4971
n00b
n00b


Joined: 19 May 2005
Posts: 24

PostPosted: Tue Nov 07, 2006 1:04 am    Post subject: Reply with quote

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
View user's profile Send private message
edk4971
n00b
n00b


Joined: 19 May 2005
Posts: 24

PostPosted: Tue Nov 07, 2006 4:40 am    Post subject: Reply with quote

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
View user's profile Send private message
jeokeefx
n00b
n00b


Joined: 23 Mar 2005
Posts: 24

PostPosted: Tue Nov 07, 2006 11:34 am    Post subject: Reply with quote

Thanks for the reply folks , i will try again when i get home this evening .
Back to top
View user's profile Send private message
edk4971
n00b
n00b


Joined: 19 May 2005
Posts: 24

PostPosted: Tue Nov 07, 2006 10:01 pm    Post subject: Reply with quote

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
View user's profile Send private message
edk4971
n00b
n00b


Joined: 19 May 2005
Posts: 24

PostPosted: Tue Nov 07, 2006 11:29 pm    Post subject: Reply with quote

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
View user's profile Send private message
edk4971
n00b
n00b


Joined: 19 May 2005
Posts: 24

PostPosted: Wed Nov 08, 2006 10:00 pm    Post subject: Reply with quote

if i add usbcore to modules.autoload (like i did with forcedeth) will my usb keyboard work at this point?
Back to top
View user's profile Send private message
kevintshaver
n00b
n00b


Joined: 14 Feb 2006
Posts: 49

PostPosted: Sat Dec 09, 2006 4:56 pm    Post subject: Reply with quote

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
View user's profile Send private message
SHAZcat07
n00b
n00b


Joined: 09 Dec 2006
Posts: 3

PostPosted: Sun Dec 10, 2006 6:41 pm    Post subject: Reply with quote

Yes a 2.6 setup would be greatly appreciated by anybody who has compiled one.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures 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