Kernel 2.6.17 Files

Ask questions regarding Gentoox, Gentoo and Linux in general in these forums and we'll do our best to help you!
fs
Newbie
Posts: 7
Joined: Thu Jan 19, 2006 9:04 pm

Kernel 2.6.17 Files

Post by fs » Sat Jul 22, 2006 11:36 am

Hello everyone,

is there a chance to see any 2.6.17 patched for the XBOX anymore ? I've looked on the SourceForge site for many weeks now, but nothing happens.
Is it planned to get the 2.6.17 XBOX Patched against the Kernel up in anytime ?

Wishes

Florian Strankowski
http://xbox.coresec.de

orochi
Gentoox Guru!
Posts: 606
Joined: Sun Oct 24, 2004 8:11 am

Post by orochi » Fri Jul 28, 2006 6:36 pm

I would reccomend searching the forum as this has been asked before. The FatX driver is bugged in 2.6 (maybe even 2.4) so it is not recommended to run 2.6 on non native xboxes.


files might be found (site was down when i posted this)
http://cvs.xbox-linux.org/cgi-bin/viewc ... box-linux/


im sure you can run natively just fine with 2.6, but rootfs loopback is basically out of the question

User avatar
ShALLaX
Site Admin
Posts: 1973
Joined: Sun Aug 10, 2003 9:25 pm
Location: England
Contact:

Post by ShALLaX » Fri Jul 28, 2006 9:23 pm

a 2.6.17 patch has not yet been made.
The original Xbox adaptation of Gentoo

User avatar
ShALLaX
Site Admin
Posts: 1973
Joined: Sun Aug 10, 2003 9:25 pm
Location: England
Contact:

Post by ShALLaX » Fri Jul 28, 2006 10:07 pm

There, made one for you. Its on the SF page.
The original Xbox adaptation of Gentoo

fs
Newbie
Posts: 7
Joined: Thu Jan 19, 2006 9:04 pm

Post by fs » Sat Jul 29, 2006 2:07 am

awesome, huge thanks.

by the way, i am running native xbox linux on my box, so i really need it.
as many ppl. said "you dont need the 2.6 kernel at all", i can say that i have many users on my xbox, because its for development usage in my university and i dont want to run a vulnerable kernel (see latest kernel vulnerables at securityfocus or milw0rm).

many thanks and a good evening

florian

fs
Newbie
Posts: 7
Joined: Thu Jan 19, 2006 9:04 pm

Post by fs » Sat Jul 29, 2006 2:56 pm

Hey Shallax, i just tested out the new Kernelpatch and it does not work.

Code: Select all

extract kernel.tar.bz
[...]
patch -p1 < linux-2.6.17.7-xbox.patch
cp kernel.config .config
make oldconfig
make clean
make
make modules
make modules_install
make install

[editing linuxboot.cfg etc pp...]


Afterwards restarting the box makes it hang and the first screen where it says "starting linux". Even nothing is logged in dmesg or messages log.
Any suggestions ?

Florian

my linuxboot.cfg

Code: Select all

devnode:/boot# cat linuxboot.cfg
title v2_6_16
kernel /boot/vmlinuz
append root=/dev/hda2 devfs=mount kbd-reset xbox=hdd
xboxfb y

title v2_6_17
kernel /boot/vmlinuz.new
append root=/dev/hda2 devfs=mount kbd-reset xbox=hdd
xboxfb y

default v2_6_16

User avatar
ShALLaX
Site Admin
Posts: 1973
Joined: Sun Aug 10, 2003 9:25 pm
Location: England
Contact:

Post by ShALLaX » Sat Jul 29, 2006 2:59 pm

Eeep, then I guess my patches don't work. I only compile-tested, didnt run-test, sorry :(
The original Xbox adaptation of Gentoo

fs
Newbie
Posts: 7
Joined: Thu Jan 19, 2006 9:04 pm

Post by fs » Sun Jul 30, 2006 2:19 am

Maybe you can figure out what makes the Kernel stop loading at the really beginning, i would be very happy if you publish a stable and working one ;)

wishes

florian

gnif
Novice
Posts: 42
Joined: Wed Sep 13, 2006 2:07 pm

Post by gnif » Wed Sep 13, 2006 2:34 pm

Hi,

I have been playing with the 2.6 series kernel on the xbox and I have encountered the same problem...

I have spent 2 days now crawilng around in the kernel compressed/head.S and related sources trying to track down the boot issue (lots of printk and strput messages)... but I dont even get the "decompile" message...

I have dug through the cromwell source trying to see if its a problem there, but I can not spot it if it exists.

If someone could attach a debugger to the kernel(cromwell?) during a 2.6.17 boot to see where it is halting it would be much appreciated (I dont have a serial output on my xbox).

User avatar
ShALLaX
Site Admin
Posts: 1973
Joined: Sun Aug 10, 2003 9:25 pm
Location: England
Contact:

Post by ShALLaX » Wed Sep 13, 2006 2:39 pm

The problem is definitely with the kernel... there were some big changes between 2.6.16 and 2.6.17 that I didnt take into account.
The original Xbox adaptation of Gentoo

gnif
Novice
Posts: 42
Joined: Wed Sep 13, 2006 2:07 pm

Post by gnif » Wed Sep 13, 2006 11:28 pm

I cant even get 2.6.16 to boot on my xbox... but 2.4 series work fine... is there somthing obvious I am missing?

If it helps any I can paste my .config here...

I have built countless kernel's in the past and I have never had this much trouble before. I have a development background, so fixing the problem if I can find it shouldn't be too hard.

Any assistance you can offer would be much appreciated

User avatar
ShALLaX
Site Admin
Posts: 1973
Joined: Sun Aug 10, 2003 9:25 pm
Location: England
Contact:

Post by ShALLaX » Thu Sep 14, 2006 12:12 am

100% certain its your config. Try the kernel.config file provided.
The original Xbox adaptation of Gentoo

gnif
Novice
Posts: 42
Joined: Wed Sep 13, 2006 2:07 pm

Post by gnif » Thu Sep 14, 2006 1:03 am

I used that as a reference, even tried one verbatim... still no go.

After that I enabled the kernel hacking debug stuff hoping to get atleast a bit of output before the crash... but its not even decompressing the image!

The kernel config should not be causing a problem at this stage... the kernel should still decompress.

There is a documented case of the "misc.c" crashing on the xbox when compiled with "-O2", the patch makes it compile with "-O0", i have double, even triple checked that it is getting compiled properly.

Could it be a problem with the version of gcc i am using? (4.1)
I have tried to compile with 3.4 and 3.3, but it doesnt seem to make any difference.

I also moved from cromwell to gentoox (nice job on keeping it updated, might be an idea to post to the xbox-linux wiki that it exists, it took me a good 6-8 hours to find it).

Also, I am building the kernel on my main PC, not on the xbox, I dont see how this could cause a problem unless gcc is trying to optomise for an amd processor, but since its set for "Microsoft XBOX" in the kernel config, i wouldn't think this was the problem (i could be mistaken).

I have also used diff on the "arch/i386/boot/compressed/head.S" and "arch/i386/boot/compressed/misc.c" files between 2.6.8, 2.6.16 and 2.6.17. The differences are only minor, and when I revert to a previous version it does not help, so I think the 2.6.17 kernel not working properly for the user in this thread is how he compiled it.

Has there been any 3rd party confirmation that the 2.6.17 kernel doesnt work other then from "fs"?

gnif
Novice
Posts: 42
Joined: Wed Sep 13, 2006 2:07 pm

Post by gnif » Thu Sep 14, 2006 1:19 am

By the way, this hasnt been time wasted :D

I have learnt how cromwell/gentoox bootstraps the system, exploits the overflow bug, loads the kernel and jumps to the start_32() method.

Also, then how the kernel proceeds to decompress itself, then jump to the 2nd decompressed start_32() method.

All very interesting... and I think I have learnt enough to fix this 2.6.17 bug should I be able to even get a 2.6.16 kernel booting.

Also, about the FatX support... I am happy to work on it and try and get it working in 2.6... but no promises. I am running it in native mode (loopback is so sloooow), so its not a high priority for me.

Oh.. and in GentooX... what happend to etherboot?? I use it on one of my xbox's since it has no HDD (got it off ebay for $30AUD with a faulty IDE controller), I cant upgrade it to gentoox :(.

orochi
Gentoox Guru!
Posts: 606
Joined: Sun Oct 24, 2004 8:11 am

Post by orochi » Thu Sep 14, 2006 3:30 am

[Edit]
Rereading my post, if the ide is bad my solution would not work
Last edited by orochi on Thu Sep 14, 2006 9:13 am, edited 1 time in total.

Post Reply

Who is online

Users browsing this forum: No registered users and 14 guests