This is how-to start using Live-builder-ps2dev: briefly and quickly:
To test it works:
- Download the ISO image.
- 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). - Create the new virtual machine. Configure it:
- You don't need to add any virtual harddrive,
- only add the LiveCD image as the CD.
- Make the CD bootable.
- 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.
- Start the virtual machine.
- In console login as altlinux without a password.
To test it works:
$ cp -a /usr/ps2dev/ps2sdk/samples .You can see the teapot.elf is built. You can now put it on a USB stick and run on your precious PS2!
$ 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'
Комментариев нет:
Отправить комментарий