среда, 19 декабря 2012 г.

Live-builder-ps2dev QUICKSTART

This is how-to start using Live-builder-ps2dev: briefly and quickly:


  1. Download the ISO image.
  2. If you still don't have one, install any of the System (hardware) virtual machine software (look at the right column). Most popular these days are: VirtualBox, VMWare workstation/server, KVM (on Linux).
    Alternatively you can use a spare x86 computer (no harddrive required).
  3. Create the new virtual machine. Configure it:
    1. You don't need to add any virtual harddrive,
    2. only add the LiveCD image as the CD.
    3. Make the CD bootable.
    4. Configure minimum one CPU and 128 Mb of RAM.
      The actual procedures are your-virtualization-software-specific, but are typical and described in great details in your-virtualization-software documentation.
  4. Start the virtual machine.
  5. In console login as altlinux without a password.
Now you got a Linux box with Playstation2 cross-compilers and SDK installed.
To test it works:
$ cp -a /usr/ps2dev/ps2sdk/samples .
$ make -C samples/draw/teapot/
make: Entering directory `/usr/src/samples/draw/teapot'
ee-gcc -D_EE -O2 -G0 -Wall  -I/usr/ps2dev/ps2sdk/ee/include -I/usr/ps2dev/ps2sdk/common/include -I.  -c teapot.c -o teapot.o
ee-gcc -mno-crt0 -T/usr/ps2dev/ps2sdk/ee/startup/linkfile -D_EE -O2 -G0 -Wall  \
    -o teapot.elf /usr/ps2dev/ps2sdk/ee/startup/crt0.o teapot.o -L/usr/ps2dev/ps2sdk/ee/lib  -ldraw -lgraph -lmath3d -lmf -lpacket -ldma -lc -lkernel
ee-strip --strip-all teapot.elf
make: Leaving directory `/usr/src/samples/draw/teapot'
You can see the teapot.elf is built. You can now put it on a USB stick and run on your precious PS2!

Комментариев нет:

Отправить комментарий