Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
xbox: gentoo doesn't boot
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
ahorn
Guru
Guru


Joined: 01 Nov 2004
Posts: 366
Location: Ol' europe

PostPosted: Tue May 29, 2007 4:53 pm    Post subject: xbox: gentoo doesn't boot Reply with quote

hi all,
i setuped a fresh gentoo install at the xbox with kernel 2.6.16.26 xbox-sources.
i used http://gentoo-wiki.com/HOWTO_Gentoo_for_Xbox as a reference.
i configured the kernel manually. there's no devfs in it anymore (like the wiki uses), so i try to boot with udev without luck. is there someone who can help me?
_________________
Too many connections. Please try again later.
Back to top
View user's profile Send private message
Anubious
n00b
n00b


Joined: 17 Aug 2006
Posts: 46

PostPosted: Thu May 31, 2007 11:39 pm    Post subject: Reply with quote

of course, emerge udev

add this to fstab:

udev /dev tmpfs remount,rw,exec,nosuid,mode=0755 0 0

then removes devfs=mount from your linuxboot.cfg

your going to go crazy with 2.6 kernel. its ass on an xbox. Just use 2.4.34.2

\\EDIT: xbox REQUIRES an initramfs to load some modules before it loads gentoo. emerge genkernel, then do:

genkernel --debugfile=/usr/src/linux/genkernel.out --no-bootsplash --no-gensplash --kerneldir=/usr/src/linux/ --oldconfig kernel initrd

make sure /boot is mounted*
Back to top
View user's profile Send private message
ahorn
Guru
Guru


Joined: 01 Nov 2004
Posts: 366
Location: Ol' europe

PostPosted: Sat Jun 09, 2007 6:49 am    Post subject: Reply with quote

yeah i did what you told me, but still hanging in cromwell after loading the kernel/initrd.
how you did it with 2.4 kernel?
_________________
Too many connections. Please try again later.
Back to top
View user's profile Send private message
Anubious
n00b
n00b


Joined: 17 Aug 2006
Posts: 46

PostPosted: Sat Jun 09, 2007 9:47 am    Post subject: Reply with quote

I had to download gentoox, i mounted there loop file system, stole there kernel sources, there xorg config file and xbox drivers, and there make.conf and made a perfect gentoo install. did u make sure that when you emerge xbox-sources it actually went? did you copy the kernel.config to .config? it only hangs when it cant find it or when its not xbox patched
Back to top
View user's profile Send private message
ahorn
Guru
Guru


Joined: 01 Nov 2004
Posts: 366
Location: Ol' europe

PostPosted: Sat Jun 09, 2007 8:43 pm    Post subject: Reply with quote

i'm now at kernel 2.4.34.4 with xbox patches, i recompiled the gentoosystem the day to get sure that the system is 2.4 compatible (gcc-3 etc.). i will post my result...

edit: hang again, going over to rip the gentoox stuff and try with this...

please tell me why i need a initramfs? should a compiled-in driver work also? i looked into the initrd linuxrc by gentoox, nothing special in it.
_________________
Too many connections. Please try again later.
Back to top
View user's profile Send private message
Anubious
n00b
n00b


Joined: 17 Aug 2006
Posts: 46

PostPosted: Sun Jun 10, 2007 4:32 am    Post subject: Reply with quote

you need a initramfs only for 2.6 to load the usb drivers so you can type! for 2.4 you do not.

oh yes, it use to hang when i did

kernel (kernel name)
initrd (initrd name)

___ in linuxnoot.cfg. THen i realized i wasn't typing where to look, so i did

kernel boot/(kernel name)
initrd boot/(kernel name)

i dont know why its hanging for you. Even though i have had problems (i have a solid system now), it never hung when loading the kernel. All i can say is check your linuxboot.cfg and make sure you copied kernel.config to .config and if should work indefinately.
Back to top
View user's profile Send private message
ahorn
Guru
Guru


Joined: 01 Nov 2004
Posts: 366
Location: Ol' europe

PostPosted: Sun Jun 10, 2007 5:25 am    Post subject: Reply with quote

i used to boot with a cromwell-2.41-dev, just copied the linuxboot.cfg and kernel from the gentoo-xbox-livecd to harddisk. i get the following: can't load kernel grub error 26.
so i guess something is wrong with the harddisk, it's a 160gb drive. i'm going to replace it with a smaller one.
or is there something that missunderstood? i set the bootable flag to hda1 were the kernel resists, do i need mbr-stuff?
_________________
Too many connections. Please try again later.
Back to top
View user's profile Send private message
ahorn
Guru
Guru


Joined: 01 Nov 2004
Posts: 366
Location: Ol' europe

PostPosted: Sun Jun 10, 2007 6:40 pm    Post subject: Reply with quote

i have no idea anymore...

can you please give me some files or hints that i can go on?
_________________
Too many connections. Please try again later.
Back to top
View user's profile Send private message
Anubious
n00b
n00b


Joined: 17 Aug 2006
Posts: 46

PostPosted: Sun Jun 10, 2007 9:23 pm    Post subject: Reply with quote

Ok. First off, dont use the livecd in these forums, use the old one (the one located in the gentoo mirros). Its to much trouble upgrading it when all you have to do is use the old one and update it later. And by "it" i mean the LiveCD that is basic gentoo.

Always start from a stage 3 tarball thats i686.

This is all you have to do (and its simple, kind of).
1) Downlod the latest gentoox
2) Keep extracting and extracting till you gett to DISTRO.gz or something similar
3) Get it onto your xbox somehow (download xampp and turn your computer into a webserver real fast and wget it)
4) Mount it via mount -t reiserfs -o loop (dir of image) (dir of mount folder)
5) Go to where you mounted the gentoo loop file system then go to usr/src/2.4.xx.x (i forgot you get the point)
6) copy it to YOUR /usr/src and you dont even have to menuconfig it or anything just make dep && make clean bzImage modules modules_install
(genkernel is only for 2.6 kernel which i wont recommend for an xbox)
7) copy the resulting files to /boot (WHICH SHOULD BE A COMPLETELY DIFFERENT PARTITION AND MOUNTED on /boot! IF ITS NOT ON A SEPERATE PARTITION IT WILL GIVE YOU AND ERROR)

cp arch/i386/boot/bzImage /boot; cp System.map /boot

8) make your linuxboot.cfg (in /boot WHICH SHOULD BE A SEPARATE PARTITION)

kernel boot/bzImage
append root=/dev/(root here) kbd-reset video=xbox:640x480,nohwcursor devfs=mount

and if you did your fstab it should boot. There is really nothing i can tell you that can help you. It just boots.

*YOU MUST HAVE 3 or MORE SEPARATE PARTITIONS!

1)ROOT
2)BOOT
3)SWAP

*AS LONG AS BOOT HAS ITS OWN SEPARATE SECTION!
Back to top
View user's profile Send private message
Anubious
n00b
n00b


Joined: 17 Aug 2006
Posts: 46

PostPosted: Sun Jun 10, 2007 9:24 pm    Post subject: Reply with quote

once you get pas t this part the only other hurdle is X and gentoox saved me on that one (just take his modules for xorg 7.2 which reside in /usr/lib/xorg or something similar)
Back to top
View user's profile Send private message
ahorn
Guru
Guru


Joined: 01 Nov 2004
Posts: 366
Location: Ol' europe

PostPosted: Sun Jun 10, 2007 9:27 pm    Post subject: Reply with quote

damn, i did that all, don't know why the kernel (sadly i can say all kernels) isnt (arent) booting at all!

lately i've to thank you for your help, i'm off for some days, i'm going to think about the problem...
_________________
Too many connections. Please try again later.
Back to top
View user's profile Send private message
Anubious
n00b
n00b


Joined: 17 Aug 2006
Posts: 46

PostPosted: Sun Jun 10, 2007 9:28 pm    Post subject: Reply with quote

ahorn wrote:
i used to boot with a cromwell-2.41-dev, just copied the linuxboot.cfg and kernel from the gentoo-xbox-livecd to harddisk. i get the following: can't load kernel grub error 26.
so i guess something is wrong with the harddisk, it's a 160gb drive. i'm going to replace it with a smaller one.
or is there something that missunderstood? i set the bootable flag to hda1 were the kernel resists, do i need mbr-stuff?


sorry to tripple post but i honestly think thats your problem

you put the kernel and other info in hda1 instead of its own separate partition.

go cfdisk /hda and make a 150MB partition and mark it bootable and make it ext3 then copy your kernel info in there. dont forget to update your fstab. im using a 160 gig maxtor also.

dont forget to mount your sperate partition to /boot before copying those files over. the root partition isnt marked bootable, but the partion you copied the kernel info to is. as i said, if you copy you kernel info to /boot as a FOLDER in hda1 and mark hda1 bootable it wont work, but if you mount a PARTITION to /boot, then copy your kernel files to /boot where A SEPARATE PARTITION is mounted, the n it should work.


LoL i used to get an error when i did my first install andi this was why. i dont mean to keep repeating myself but this really sounds like your issue.
Back to top
View user's profile Send private message
ahorn
Guru
Guru


Joined: 01 Nov 2004
Posts: 366
Location: Ol' europe

PostPosted: Sun Jun 10, 2007 9:36 pm    Post subject: Reply with quote

sorry, but i got a fine hdd-layout,
hda1 ext2 (50mb) /boot
hda2 swap (512mb) none
hda3 ext3 (~whatever) /

so this shoudnt be the point, but hopefully the failure is similar easy like this.
_________________
Too many connections. Please try again later.
Back to top
View user's profile Send private message
ahorn
Guru
Guru


Joined: 01 Nov 2004
Posts: 366
Location: Ol' europe

PostPosted: Fri Jun 22, 2007 5:32 pm    Post subject: Reply with quote

i did it. but don't know how.

i guess the bios chip was little bit broken. after a reflash of cromwell all is going.

i run now a kernel 2.6.21 without initrd and with udev very fine.

if someone like to test my patch, look to http://forums.gentoo.org/viewtopic-t-566672.html

thanks for your help Anubious
_________________
Too many connections. Please try again later.
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