I am currently running on Knopixx linux, and was able to get the autobuild install, but i dont know where to go from there. i know in gcc to compile code its
Code: Select all
gcc file.c -o name
Code: Select all
gcc file.c -o name
buddy, read my post i said i already built it. what do i do next. i'm not a linux user, so i dont know what to do next. btw it saysblackdroid wrote:use the toolchain.sh script on ooPo's site and run it.
yeah it said in the end, ERROR INSTALLING BINUT or something like that.ooPo wrote:When you run toolchain.sh properly, it installs ps2sdk into /usr/local/ps2dev/ps2sdk. If that directory doesn't exist, something probably went wrong with the install.
Did you notice any error messages?
Code: Select all
as: unrecognized option `-G'
make[2]: *** [libgcc/./_muldi3.o] Error 1
make[2]: Leaving directory `/ramdisk/home/knoppix/ps2toolchain-old/gcc-3.2.2/gcc'
make[1]: *** [libgcc.a] Error 2
make[1]: Leaving directory `/ramdisk/home/knoppix/ps2toolchain-old/gcc-3.2.2/gcc'
make: *** [all-gcc] Error 2
/bin/sh ./mkinstalldirs /usr/local/ps2dev/ee /usr/local/ps2dev/ee
mkdir /usr/local/ps2dev
mkdir /usr/local/ps2dev/ee
mkdir /usr/local/ps2dev
mkdir /usr/local/ps2dev/ee
make: *** [installdirs] Error 1
cp: cannot stat `/usr/local/ps2dev/ps2lib/ee/startup/crt0.o': No such file or directory
Code: Select all
CVS binutils-2.9.1-IOP.patch newlib-1.10.0.patch
README.TXT gcc-2.8.1-IOP.patch toolchain-oldiop.sh
binutils-2.14.patch gcc-3.2.2.patch toolchain.sh
knoppix@ttyp0[ps2toolchain]$ ./toolchain.sh
cat: /home/knoppix/.cvspass: No such file or directory
THE SECRET PASSWORD IS: anonymous
Logging in to :pserver:[email protected]:2401/home/ps2cvs
CVS password:
cvs login: warning: failed to open /home/knoppix/.cvspass for reading: No such file or directory
./toolchain.sh: line 35: gmake: command not found
Code: Select all
make[3]: *** [tc-mips.o] Error 1
make[3]: Leaving directory `/ramdisk/var/tmp/ps2dev/binutils-2.14/build-ee/gas'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/ramdisk/var/tmp/ps2dev/binutils-2.14/build-ee/gas'
make[1]: *** [all-recursive-am] Error 2
make[1]: Leaving directory `/ramdisk/var/tmp/ps2dev/binutils-2.14/build-ee/gas'
make: *** [all-gas] Error 2
ERROR BUILDING BINUTILS (binutils-2.14 ee)
I thought you could use sudo to get a root shell.... sudo bashcheriff wrote:with Knoppix, there is an icon in the "start menu" which opens a terminal as superuser. The reason you can't use su is because there is no root password set. If you can set the root password yourself, su will work as normal.
I was thinking exactly the same thing.But my serious advice would to be to do all this under cygwin in windows, or even install a linux partition...
Code: Select all
ee-gcc -D_EE -O2 -G0 -Wall -I/ee/include -I/common/include -I. -c hello.c -o hello.o
make: ee-gcc: Command not found
make: *** [hello.o] Error 127
Code: Select all
[root@localhost bin]# ./ee-gcc -D_EE -O2 -G0 -Wall -I/ee/include -I/common/include -I. -c hello.c -o hello.o
hello.c:14:22: tamtypes.h: No such file or directory
hello.c:15:20: sifcmd.h: No such file or directory
hello.c:16:20: kernel.h: No such file or directory
hello.c:17:20: sifrpc.h: No such file or directory
hello.c:18:17: sio.h: No such file or directory
hello.c: In function `main':
hello.c:22: warning: implicit declaration of function `SifInitRpc'
hello.c:27: warning: implicit declaration of function `printf'
hello.c:28: warning: implicit declaration of function `nprintf'
hello.c:30: warning: implicit declaration of function `sio_init'
hello.c:31: warning: implicit declaration of function `sio_printf'
blackdroid wrote:You dont seem to have the PS2* specific env variables defined.
read the top of toolchain.sh
Code: Select all
#!/bin/sh
# toolchain.sh - Dan Peori <[email protected]>
# Copy all you want. Please give me some credit.
########################
## MAIN CONFIGURATION ##
########################
## Main ps2dev settings.
export PS2DEV="/usr/local/ps2dev"
export PS2SDK="$PS2DEV/ps2sdk"
export CVSROOT=":pserver:[email protected]:2401/home/ps2cvs"
export PAT
You can view the latest version in cvs yourself at:==================
HOW DO I USE IT?
==================
Basically, you run the toolchain script:
## Make the script executable.
chmod a+x ./toolchain.sh
## Run the script.
./toolchain.sh
First, this script will attempt to make sure you have all the programs
you need to build the toolchain. Then it will download the source from
various places on the internet. Finally, it will compile and build the
source. This may take a long time.
Once finished, you need to add the following to your login settings:
## PS2DEV SETTINGS
export PS2DEV="/usr/local/ps2dev"
export PS2SDK="$PS2DEV/ps2sdk"
export CVSROOT=":pserver:[email protected]:/home/ps2cvs"
export PATH="$PATH:$PS2DEV/bin:$PS2DEV/ee/bin:$PS2DEV/iop/bin:$PS2DEV/dvp/bin:$PS2SDK/bin"
Then you're done!
thanks man, got it to compile. works good now. but one small question, how do i place this in my login. i can get this to work when i switch to root and type the command lines in. but how do i get it to stay that way without having to do it everytime i boot up. besides creating a bat file.ooPo wrote:From the included README.TXT:
You can view the latest version in cvs yourself at:
http://cvs.ps2dev.org/ps2toolchain/READ ... cvs-markup
there isnt such a file in the home dir. only see folder.carlosn wrote:Type all the export lines at the end of your ".bash_profile" file. This file contains your login settings. The file is located in your home directory.
it is good, i just dont know how to set this up. plus the setup of getting it on linux is SOOOOO much easier then windows. i have already manage to program a small demo for the ps2 and get it to compile. and i have yet to get it even to compile or install the toolchain on windows through cygwin. i've spend a good month trying to get it working on windows. and less then a day to set it up on linux. hmm whats better.blackdroid wrote:You banter about the good of linux, yet you cant use the system, please read up on basic unix/bash shell usage. This is afterall not a unix support forum.