Hitnrun
Member
- Joined
- Mar 1, 2008
- Messages
- 427
This installer is totally based on the tutorial created by Cpasjuste (http://www.gp32x.de/board/index.php?/topic/52343-pandora-sdk-installer/), but I wanted to use opkg to automatically install and upgrade the packages from angstrom, so this is what I did:
It uses 3 files:
toolchain.sh : will download and install codesourcery arm toolchain ( arm-2009q3-67 ) and set the PNDSDK path variable ( /usr/local/pandora/arm-2009q3 ). It can be used alone to install the basic toolchain. (THIS FILE IS MADE BY CPASJUSTE)
pnd_opkg_base.sh : will call opkg to install the basic packages
pnd_lib_fix.sh : will fix the paths from the download packages, this is based on Cpasjuste's pnd_lib.sh, with some of my own changes. This is designed to be run everytime you install a new package, it should not mess with packages already "fixed".
Instructions:
- Run toolchain.sh to install the basic toolchain and environment variables
# sudo ./toolchain.sh
- Download and install opkg:
# apt-get install libcurl4-openssl-dev libgpgme11-dev
# wget http://opkg.googlecode.com/files/opkg-0.1.8.tar.gz
# tar xzvf opkg-0.1.8.tar.gz
# cd opkg-0.1.8
# ./configure --prefix=$PNDSDK
# make
# sudo make install
- Copy the opkg config files from your Pandora:
# sudo mkdir /etc/opkg
# sudo scp <your-pandora-user-name>@<your-pandora-ip>:/etc/opkg/* /etc/opkg
- Edit the file /etc/opkg/opkg.conf and change the line:
* dest root /usr/local/pandora/arm-2009q3
- run the pnd_opkg_base.sh script to fetch the base packages from angstrom (since you got the opkg files from your pandora, it will already fetch the correct architecture).
# sudo ./pnd_opkg_base.sh
- run pnd_lib_fix.sh, it will fix the paths of the installed packages, and install a custom pkg-config with the correct pack (the same as in cpasjuste's script).
# sudo ./pnd_lib_fix.sh
That's it, now you should be able to install any package using "opkg-cl install <package>", and upgrade using "opkg-cl update; opkg-cl upgrade". The command is "opkg-cl" instead of "opkg", I don't know why.
Remember to always run "pnd_lib_fix.sh" after installing a package, as it may contain paths to the root filesystem instead of $PNDSDK.
One problem I noticed is that compiling some programs I got a strange error, that looks like is a bug on the gcc used on angstrom, I solved it by setting this CXXFLAGS before compiling:
CFLAGS="-g -O"
there seems to be a problem with -O2 with some C++ constructs.
Feedback is always welcome, use this at your own risk, this has worked for me, but if it ruins your system, I don't have anything to do with it!
toolchain.sh
pnd_opkg_base.sh
pnd_lib_fix.sh
It uses 3 files:
toolchain.sh : will download and install codesourcery arm toolchain ( arm-2009q3-67 ) and set the PNDSDK path variable ( /usr/local/pandora/arm-2009q3 ). It can be used alone to install the basic toolchain. (THIS FILE IS MADE BY CPASJUSTE)
pnd_opkg_base.sh : will call opkg to install the basic packages
pnd_lib_fix.sh : will fix the paths from the download packages, this is based on Cpasjuste's pnd_lib.sh, with some of my own changes. This is designed to be run everytime you install a new package, it should not mess with packages already "fixed".
Instructions:
- Run toolchain.sh to install the basic toolchain and environment variables
# sudo ./toolchain.sh
- Download and install opkg:
# apt-get install libcurl4-openssl-dev libgpgme11-dev
# wget http://opkg.googlecode.com/files/opkg-0.1.8.tar.gz
# tar xzvf opkg-0.1.8.tar.gz
# cd opkg-0.1.8
# ./configure --prefix=$PNDSDK
# make
# sudo make install
- Copy the opkg config files from your Pandora:
# sudo mkdir /etc/opkg
# sudo scp <your-pandora-user-name>@<your-pandora-ip>:/etc/opkg/* /etc/opkg
- Edit the file /etc/opkg/opkg.conf and change the line:
* dest root /usr/local/pandora/arm-2009q3
- run the pnd_opkg_base.sh script to fetch the base packages from angstrom (since you got the opkg files from your pandora, it will already fetch the correct architecture).
# sudo ./pnd_opkg_base.sh
- run pnd_lib_fix.sh, it will fix the paths of the installed packages, and install a custom pkg-config with the correct pack (the same as in cpasjuste's script).
# sudo ./pnd_lib_fix.sh
That's it, now you should be able to install any package using "opkg-cl install <package>", and upgrade using "opkg-cl update; opkg-cl upgrade". The command is "opkg-cl" instead of "opkg", I don't know why.
Remember to always run "pnd_lib_fix.sh" after installing a package, as it may contain paths to the root filesystem instead of $PNDSDK.
One problem I noticed is that compiling some programs I got a strange error, that looks like is a bug on the gcc used on angstrom, I solved it by setting this CXXFLAGS before compiling:
CFLAGS="-g -O"
there seems to be a problem with -O2 with some C++ constructs.
Feedback is always welcome, use this at your own risk, this has worked for me, but if it ruins your system, I don't have anything to do with it!
toolchain.sh
pnd_opkg_base.sh
pnd_lib_fix.sh
Last edited by a moderator: