openSUSE 11.2 manual guide
Requirements
You will need a few linux packages, install them with your distribution package management tool (use either zypper from commandline, or the gui tool in yast):
gcc (GNU C compiler, version 3 or 4 are ok)
make (GNU makefile)
patch (GNU patch)
wget (used by the ps2toolchain to get some sources)
subversion (source management tool for svn/subversion repositories)
mercurial (source management tool for hg/mercurial repositories)
And last but not least, to pack the OpenPS2Loader ELF, you need to have the ps2-packer. This one can be downloaded from ps2dev. The author of this tool (Nicolas 'Pixel' Noble) did use static libraries to be able to redistribute the binary. Now, on openSUSE, there seems to be no repository providing the required static package, so we will use shared libraries instead (that will require to change the original Makefile, it will be explained in the compile steps at the bottom):
Code:
> sudo zypper install zlib zlib-devel libucl1 libucl1-devel
Compilation
1. Setup your shell environment. You need to define these variables:
Code:
export PS2DEV=/some_path/ps2dev
export PATH=$PATH:$PS2DEV/bin
export PATH=$PATH:$PS2DEV/ee/bin
export PATH=$PATH:$PS2DEV/iop/bin
export PATH=$PATH:$PS2DEV/dvp/bin
export PS2SDK=$PS2DEV/ps2sdk
export PATH=$PATH:$PS2SDK/bin
export PS2ETH=$PS2DEV/ps2eth
export GSKIT=$PS2DEV/gsKit
export LANG=C
export LC_ALL=C
You can put your sources (and set accordingly your PS2DEV) where you want, usually in some user directory, as we will modify the ps2-packer makefile (and it is the only part that is dependent of the location of the sources).
To setup the var I recommend (as it doesn't change definitely your environment) is to put theses lines inside a text file, let's say "setup_ps2dev" in your PS2DEV directory, and after you created this file, you have to give him execute rights:
Code:
> mkdir /some_path/ps2dev
> cd /some_path/ps2dev
> gedit setup_ps2dev
copy/paste the lines, and edit your ps2dev path accordingly, quit your editor
> chmod 755 setup_ps2dev
That has to be done once for all. And now, every time you want to compile ps2dev stuff you first "execute it" ("source it", is the real definition):
Code:
> cd /some_path/ps2dev
> . setup_ps2dev
The second command is "dot" "space" "setup_ps2dev".
Before going to step 2, check your env is correctly set (or the first "cd $PSDEV" will fail):
Code:
> echo $PS2DEV
It should output what you manually set above, and not be empty
2. Retrieve PS2Toolchain, and compile it
Code:
> cd $PS2DEV
> svn co [Tens de ter uma conta e sessão iniciada para poderes visualizar este link]
> cd ps2toolchain
> ./toolchain.sh
It will retrieve and compile some external sources also, so you should now have theses directories under $PS2DEV:
bin, dvp, ee, iop, ps2sdk and ps2toolchain
3. Retrieve and compile needed libraries for OpenPS2Loader (ps2eth is no longer needed by OPL, but you should install it as it's needed by other projects)
Code:
> cd $PS2DEV
> svn co [Tens de ter uma conta e sessão iniciada para poderes visualizar este link]
> cd ps2eth
> make
> cd $PS2DEV
> svn co [Tens de ter uma conta e sessão iniciada para poderes visualizar este link]
> cd gsKit
> make
> cd $PS2DEV
> svn co [Tens de ter uma conta e sessão iniciada para poderes visualizar este link]
> cd zlib
> make
> make install
4. Compile and install PS2-packer
Code:
> cd $PS2DEV
> mkdir ps2-packer
> cd ps2-packer
> wget [Tens de ter uma conta e sessão iniciada para poderes visualizar este link]
> tar xvf PS2-Packer_0.4.4_source_package.download
Overwrite the original Makefile with the one in attachment
> make
> make install
5. Download OpenPS2Loader and compile it
Code:
> cd $PS2DEV
> hg clone [Tens de ter uma conta e sessão iniciada para poderes visualizar este link]
> cd open-ps2-loader
> make
If all went ok, you can find the OPNPS2LD.ELF under $PS2DEV/open-ps2-loader/ directory (and main.elf which is the uncompressed version).
Finally, you can also compile iso2usbld tool:
Code:
> cd $PS2DEV/open-ps2-loader/pc/iso2usbld
> make
Install and configure Samba for use with OPL's SMB core
1. Install Samba
Code:
> sudo zypper install samba samba-client
Please now refer to Ubuntu Samba install guide, and continue at step 2 (Edit Samba configuration).
Requirements
You will need a few linux packages, install them with your distribution package management tool (use either zypper from commandline, or the gui tool in yast):
gcc (GNU C compiler, version 3 or 4 are ok)
make (GNU makefile)
patch (GNU patch)
wget (used by the ps2toolchain to get some sources)
subversion (source management tool for svn/subversion repositories)
mercurial (source management tool for hg/mercurial repositories)
And last but not least, to pack the OpenPS2Loader ELF, you need to have the ps2-packer. This one can be downloaded from ps2dev. The author of this tool (Nicolas 'Pixel' Noble) did use static libraries to be able to redistribute the binary. Now, on openSUSE, there seems to be no repository providing the required static package, so we will use shared libraries instead (that will require to change the original Makefile, it will be explained in the compile steps at the bottom):
Code:
> sudo zypper install zlib zlib-devel libucl1 libucl1-devel
Compilation
1. Setup your shell environment. You need to define these variables:
Code:
export PS2DEV=/some_path/ps2dev
export PATH=$PATH:$PS2DEV/bin
export PATH=$PATH:$PS2DEV/ee/bin
export PATH=$PATH:$PS2DEV/iop/bin
export PATH=$PATH:$PS2DEV/dvp/bin
export PS2SDK=$PS2DEV/ps2sdk
export PATH=$PATH:$PS2SDK/bin
export PS2ETH=$PS2DEV/ps2eth
export GSKIT=$PS2DEV/gsKit
export LANG=C
export LC_ALL=C
You can put your sources (and set accordingly your PS2DEV) where you want, usually in some user directory, as we will modify the ps2-packer makefile (and it is the only part that is dependent of the location of the sources).
To setup the var I recommend (as it doesn't change definitely your environment) is to put theses lines inside a text file, let's say "setup_ps2dev" in your PS2DEV directory, and after you created this file, you have to give him execute rights:
Code:
> mkdir /some_path/ps2dev
> cd /some_path/ps2dev
> gedit setup_ps2dev
copy/paste the lines, and edit your ps2dev path accordingly, quit your editor
> chmod 755 setup_ps2dev
That has to be done once for all. And now, every time you want to compile ps2dev stuff you first "execute it" ("source it", is the real definition):
Code:
> cd /some_path/ps2dev
> . setup_ps2dev
The second command is "dot" "space" "setup_ps2dev".
Before going to step 2, check your env is correctly set (or the first "cd $PSDEV" will fail):
Code:
> echo $PS2DEV
It should output what you manually set above, and not be empty
2. Retrieve PS2Toolchain, and compile it
Code:
> cd $PS2DEV
> svn co [Tens de ter uma conta e sessão iniciada para poderes visualizar este link]
> cd ps2toolchain
> ./toolchain.sh
It will retrieve and compile some external sources also, so you should now have theses directories under $PS2DEV:
bin, dvp, ee, iop, ps2sdk and ps2toolchain
3. Retrieve and compile needed libraries for OpenPS2Loader (ps2eth is no longer needed by OPL, but you should install it as it's needed by other projects)
Code:
> cd $PS2DEV
> svn co [Tens de ter uma conta e sessão iniciada para poderes visualizar este link]
> cd ps2eth
> make
> cd $PS2DEV
> svn co [Tens de ter uma conta e sessão iniciada para poderes visualizar este link]
> cd gsKit
> make
> cd $PS2DEV
> svn co [Tens de ter uma conta e sessão iniciada para poderes visualizar este link]
> cd zlib
> make
> make install
4. Compile and install PS2-packer
Code:
> cd $PS2DEV
> mkdir ps2-packer
> cd ps2-packer
> wget [Tens de ter uma conta e sessão iniciada para poderes visualizar este link]
> tar xvf PS2-Packer_0.4.4_source_package.download
Overwrite the original Makefile with the one in attachment
> make
> make install
5. Download OpenPS2Loader and compile it
Code:
> cd $PS2DEV
> hg clone [Tens de ter uma conta e sessão iniciada para poderes visualizar este link]
> cd open-ps2-loader
> make
If all went ok, you can find the OPNPS2LD.ELF under $PS2DEV/open-ps2-loader/ directory (and main.elf which is the uncompressed version).
Finally, you can also compile iso2usbld tool:
Code:
> cd $PS2DEV/open-ps2-loader/pc/iso2usbld
> make
Install and configure Samba for use with OPL's SMB core
1. Install Samba
Code:
> sudo zypper install samba samba-client
Please now refer to Ubuntu Samba install guide, and continue at step 2 (Edit Samba configuration).
- Spoiler:
- openSUSE 11.2 guia manual
Requisitos
Você vai precisar de alguns pacotes linux, instale-os com a sua ferramenta de gestão de distribuição de pacotes (usar zypper de linha de comando, ou a ferramenta gui no yast):
gcc (compilador GNU C, versão 3 ou 4 são ok)
fazer (GNU makefile)
patch (remendo GNU)
wget (usada pelo ps2toolchain para obter algumas fontes)
subversão (ferramenta de código de gestão para svn / subversão repositórios)
mercurial (ferramenta de código de gestão para hg / mercurial repositórios)
E por último mas não menos importante, para embalar o ELF OpenPS2Loader, você precisa ter a ps2-packer. Este pode ser descarregado a partir ps2dev. O autor desta ferramenta (Noble 'Pixel' Nicolas) usou bibliotecas estáticas para poder redistribuir o binário. Agora, no openSUSE, não parece haver nenhum repositório oferecendo o pacote exigido estática, por isso vamos usar bibliotecas compartilhadas em vez (de que vai precisar para mudar o Makefile original, será explicado nos passos de compilação na parte inferior):
Código:
> Sudo zypper instalar zlib zlib-devel libucl1 libucl1-devel
Compilação
1. Configure o seu ambiente shell. Você precisa definir essas variáveis:
Código:
exportação PS2DEV = / some_path/ps2dev
export PATH PATH = $: $ PS2DEV/bin
export PATH PATH = $: $ PS2DEV/ee/bin
export PATH PATH = $: $ PS2DEV/iop/bin
export PATH PATH = $: $ PS2DEV/dvp/bin
exportação PS2SDK = $ PS2DEV/ps2sdk
export PATH PATH = $: $ PS2SDK/bin
exportação PS2ETH = $ PS2DEV/ps2eth
exportação GSKIT = $ PS2DEV/gsKit
export LANG = C
exportar LC_ALL = C
Você pode colocar as suas fontes (e consequentemente definir seu PS2DEV) onde você quer, geralmente em algum diretório do usuário, como vamos modificar o makefile ps2-packer (e é a única parte que é dependente da localização das fontes).
Para configurar o var Eu recomendo (como ele não muda definitivamente seu ambiente) é colocar linhas de teses dentro de um arquivo de texto, vamos dizer "setup_ps2dev" em seu diretório PS2DEV, e depois que você criou este arquivo, você tem que dar-lhe executar direitos:
Código:
> Mkdir / some_path/ps2dev
> Cd / some_path/ps2dev
> Gedit setup_ps2dev
copiar / colar as linhas, e editar o seu caminho ps2dev consequentemente, sair do seu editor
> Chmod 755 setup_ps2dev
Isso tem que ser feito uma vez por todas. E agora, cada vez que você quer compilar material ps2dev você primeiro "executá-lo" ("fonte-lo", é a definição real):
Código:
> Cd / some_path/ps2dev
>. setup_ps2dev
O segundo comando é "ponto" espaço "" "setup_ps2dev".
Antes de ir para a etapa 2, verifique o env está corretamente definido (ou o primeiro "cd $ PSDEV" falhará):
Código:
> Echo $ PS2DEV
Deve produzir o que você definir manualmente acima, e não estar vazio
2. Recuperar PS2Toolchain, e compilá-lo
Código:
> Cd $ PS2DEV
> Svn co svn :/ / svn.ps2dev.org/ps2/trunk/ps2toolchain
> Cd ps2toolchain
>. / Toolchain.sh
Ele irá recuperar e compilar algumas fontes externas também, então você já deve ter diretórios teses menos de US $ PS2DEV:
bin, dvp, ee, iop, ps2sdk e ps2toolchain
3. Recuperar e bibliotecas necessárias para compilar OpenPS2Loader (ps2eth não é mais necessário por OPL, mas você deve instalá-lo como ele é necessário por outros projetos)
Código:
> Cd $ PS2DEV
> Svn co svn :/ / svn.ps2dev.org/ps2/trunk/ps2eth
> Cd ps2eth
> Fazer
> Cd $ PS2DEV
> Svn co svn :/ / svn.ps2dev.org/ps2/trunk/gsKit
> Cd GSKIT
> Fazer
> Cd $ PS2DEV
> Svn co svn :/ / svn.ps2dev.org/ps2/trunk/ps2sdk-ports/zlib
> Cd zlib
> Fazer
> Make install
4. Compilar e instalar o PS2-packer
Código:
> Cd $ PS2DEV
> Mkdir ps2-packer
> Cd ps2-packer
> Wget
> Tar xvf PS2-Packer_0.4.4_source_package.download
Substituir o Makefile original com a do apego
> Fazer
> Make install
5. Baixe OpenPS2Loader e compilá-lo
Código:
> Cd $ PS2DEV
> Hg clone [Tens de ter uma conta e sessão iniciada para poderes visualizar este link]
> Cd open-ps2-carregadeira
> Fazer
Se tudo correu bem, você pode encontrar a menos de US $ OPNPS2LD.ELF PS2DEV/open-ps2-loader / diretório (e main.elf que é a versão sem compressão).
Finalmente, você também pode compilar ferramenta iso2usbld:
Código:
> Cd $ PS2DEV/open-ps2-loader/pc/iso2usbld
> Fazer
Instalar e configurar o Samba para uso com SMB OPL do núcleo
1. Instalar Samba
Código:
> Sudo zypper install samba samba-client
Por favor, agora se referem a Ubuntu Samba guia de instalação, e continue na etapa 2 (Editar configuração do Samba).