Jump to content


Photo

"diskless" Style Linux Boot?


  • Please log in to reply
9 replies to this topic

#1 noisebox

noisebox

    X-S Enthusiast

  • Members
  • 27 posts

Posted 27 January 2004 - 11:22 PM

I was wondering if anyone has had practice/luck with getting a XBOX to boot across a network using either root over NFS or something similar to etherboot. Basically, i want my xbox to boot from my linux server (nfsroot hosted) and use little, or no hard drive space.. Tho i've heard because of the 64mb ram limit i'll be stuck with a very vanila distro.. If anyone knows a way to build a 256kb (or 512kb) linux bios that will boot over the network, or knof if it is possible let me know...*shrug* just some thoughts.

#2 luther349

luther349

    X-S Hacker

  • Members
  • PipPipPipPipPipPip
  • 2,360 posts
  • Location:irvine ky
  • Xbox Version:v1.0
  • 360 version:v1 (xenon)

Posted 28 January 2004 - 01:30 AM

the bios have knothing to do with it. you would need to build a linux kernel that supports net booting. if you know what your doing you could do it very easly. just a xbox linux kernel recompiled for net boot would do.

Edited by luther349, 28 January 2004 - 01:31 AM.


#3 weemansdad

weemansdad

    X-S Enthusiast

  • Members
  • 10 posts

Posted 29 January 2004 - 02:03 AM

I'm going to try to boot a kernel using the MA exploit, I have ed's latest kernel and a modified initrd ready to try, with ed's in a nsf share.. Need the memory card, I'll pick one up this weekend (payday), and give it a spin.. Want to be a test pilot?? I can crack open the initrd and modify it for your network needs. PM me if your interested...

edit:
rom-o-matic zrom images come in small 10-20K, that would fit, but I don't see one listed for the NVIDIA nForce.... Netboot, that might work, haven't played with it yet... Getting it to work in the bios is over my head, at the moment...

Edited by weemansdad, 29 January 2004 - 03:28 AM.


#4 luther349

luther349

    X-S Hacker

  • Members
  • PipPipPipPipPipPip
  • 2,360 posts
  • Location:irvine ky
  • Xbox Version:v1.0
  • 360 version:v1 (xenon)

Posted 29 January 2004 - 03:17 AM

when you compile a new kernel you get a new intrid lol.

#5 weemansdad

weemansdad

    X-S Enthusiast

  • Members
  • 10 posts

Posted 29 January 2004 - 03:51 AM

Didn't want to reinvent the wheel... just added the nfs.o to the /lib/modules in the initrd from ed's and edited the linuxrc to mount the the nfs share... The linuxrc seems to be the key... has the all the options fatx_e, fatx_f, fatx_loop, hdd, cdrom, upload. I just want to give it a couple more... NFS mounts the share and mounts the livefs in a loop, just copy the cd to the share... NFSRT mounts a full system, I loaded up cloop and copied the contents of the livefs to the share... The linuxboot.cfg file set the options that get fed to /proc/cmdline

NFSRT=`grep xbox=nfsrt /proc/cmdline`
NFS=`grep xbox=nfs /proc/cmdline`

if [ "$NFS" != "" ]; then
mknod /dev/tty c 5 0
ln -s /dev/vc/0 /dev/tty0
ln -s /dev/vc/1 /dev/tty1
ln -s /dev/vc/2 /dev/tty2
ln -s /dev/vc/3 /dev/tty3
ln -s /dev/vc/4 /dev/tty4
ln -s /dev/vc/5 /dev/tty5

insmod nvnet.o
insmod nfs.o
ifconfig eth0 10.3.0.75

NFS_IP=10.3.0.10
NFS_DIR=/mnt/iso/xbox-cd

echo "Mounting root filesystem: ${NFS_DIR} from: ${NFS_IP}"
mount -n -o nolock,ro ${NFS_IP}:${NFS_DIR} /cdrom

insmod /lib/modules/`uname -r`/cloop.o file=/cdrom/livefs
mount -o ro,suid -t iso9660 /dev/cloop /ram
mount -t tmpfs none /ram/XBOXLocal
cd /ram/XBOXLocal
tar -xzpf /cdrom/xbox.tgz > /dev/null 2>&1
cd /
fi


if [ "$NFSRT" != "" ]; then

mknod /dev/tty c 5 0
ln -s /dev/vc/0 /dev/tty0
ln -s /dev/vc/1 /dev/tty1
ln -s /dev/vc/2 /dev/tty2
ln -s /dev/vc/3 /dev/tty3
ln -s /dev/vc/4 /dev/tty4
ln -s /dev/vc/5 /dev/tty5

insmod nvnet.o
insmod nfs.o
ifconfig eth0 10.3.0.75

NFS_IP=10.3.0.10
NFS_DIR=/mnt/iso/xbox-linux

echo "Mounting root filesystem: ${NFS_DIR} from: ${NFS_IP}"
mount -n -o rw ${NFS_IP}:${NFS_DIR} /ram
cd /

I'm have some ideas for a dhcp version, to get the nsf path from the server, but I want to try this first...
Any thoughts??

Edited by weemansdad, 29 January 2004 - 03:57 AM.


#6 noisebox

noisebox

    X-S Enthusiast

  • Members
  • 27 posts

Posted 01 March 2004 - 09:37 PM

Wow guys thanx for all the research and help. Gonna be trying some things with ed's debian sometime this week. I'll let you know how the boot goes.

#7 luther349

luther349

    X-S Hacker

  • Members
  • PipPipPipPipPipPip
  • 2,360 posts
  • Location:irvine ky
  • Xbox Version:v1.0
  • 360 version:v1 (xenon)

Posted 02 March 2004 - 09:19 AM

that looks good. but when it comes to a net boot both sides will need fatx support to see the fs.

#8 noisebox

noisebox

    X-S Enthusiast

  • Members
  • 27 posts

Posted 02 March 2004 - 03:51 PM

I'm not interested in using the xbox hard disk for any of the fs system tho, it should be possible with the linux supplied tools to use nfs.

#9 weemansdad

weemansdad

    X-S Enthusiast

  • Members
  • 10 posts

Posted 09 April 2004 - 05:57 PM

I don't think the host sever needs fatx, its just holding the LIVEFS file, just like it is on a cd. I had to put this on hold for a while, I'll get back to soon

#10 noisebox

noisebox

    X-S Enthusiast

  • Members
  • 27 posts

Posted 10 April 2004 - 04:15 AM

Awesome work mate! I dont have the means right now to take on any more projects but i will look into it again very soon. And of course will be checking back for your progress.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users