注:crosstool-ng要求不能在root模式下操作
$
sudo
apt-get
install
gawk
$
sudo
apt-get
install
libtool
$
sudo
apt-get
install
texinfo
$
tar
jxfv crosstool-ng-1.19.0.
tar
.bz2
$
mkdir
-p ~
/cross/src
$
cd
crosstool-ng-1.19.0
$ .
/configure
--prefix=
/home/(user name)/cross
$
make
$
make
install
$
cd
~
/cross/bin
$ wget http:
//archlinuxarm
.org
/mirror/development/ct-ng/xtools-dotconfig-v5
-O .config
$ .
/ct-ng
build
|
失败
自己下载isl-0.12.1.tar.gz、cloog-0.18.1.tar.gz、gcc-4.8.2.tar.bz2放在~/cross/src下,并把系统下的删掉并删掉.build
下载网址:
http:
//isl.gforge.inria.fr/isl-0.12.1.tar.gz
http:
//ftp.gnu.org/gnu/gcc/gcc-4.8.2/gcc-4.8.2.tar.bz2
http:
//www.bastoul.net/cloog/pages/download/cloog-0.18.1.tar.gz
|
$ ./ct-ng build即可
What we need:
- A Debian system like Ubuntu, Best choice will be Ubuntu.
- Crosstool NG to make your own toolchain to build mipsel binary’s – http://crosstool-ng.org/
- The boblight for enigma2 source (we will download this later)
1. Prepare the directory’s
Open your terminal in Ubuntu and type:
- To switch to root user: sudo su
- mkdir $HOME/src
- mkdir $HOME/compiled_boblight
2. Install all needed essentials to build our toolchain.
- apt-get update
- apt-get install autoconf automake libtool libexpat1-dev libncurses5-dev bison flex patch curl cvs texinfo build-essential git gawk python-dev gperf mercurial
3. Build the toolchain
- sudo hg clone http://crosstool-ng.org/hg/crosstool-ng
- cd crosstool-ng
- ./bootstrap
- ./configure --enable-local make
- make
- make install
- ./ct-ng mipsel-unknown-linux-gnu
If all went ok then we can set some other options in this build.
Open the menuconfig with:
- ./ct-ng menuconfig
Open first option ->Paths and misc options
Set this 3 options to build as root user.
[*] Try features marked as EXPERIMENTAL
[*] Allow building as root user (READ HELP!)
[*] Are you sure?
Now exit this option and go to ->Debug facilities
Turn off this debuggers. not needed.
[ ] dmalloc
[ ] duma
[ ] gdb
[ ] ltrace
[ ] strace
Now exit this option and go to ->Companion tools
Set this options
[*] Build some companion tools
[*] make│
[*] m4
[*] autoconf
[*] automake
[*] libtool
Now exit this option and and again exit, then a messagebox will appear, select Y to save the configfile.
OK Now lets build the toolchain.
- ./ct-ng build
Take a beer or coffee becouse we need to wait +/- 30/45min on a fast computer.
After a while we will see this if all went ok.
- [INFO ] Cleaning-up the toolchain's directory
- [INFO ] Stripping all toolchain executables
- [EXTRA] Installing the populate helper
- [EXTRA] Installing a cross-ldd helper
- [EXTRA] Creating toolchain aliases
- [EXTRA] Removing access to the build system tools
- [EXTRA] Removing installed documentation
- [INFO ] Cleaning-up the toolchain's directory: done in 2.25s (at 23:04)
- [INFO ] (elapsed: 33:04.20)
- [INFO ] Finishing installation (may take a few seconds)...
Install libusb headers for lichtpack and ibelight support
- cd $HOME/x-tools/
- wget http://www.boblightenigma2.net/libusb.tar.gz
- tar xvf libusb.tar.gz
5. Set path and get boblightforenigma2 source from github page
We need to set the path where our compilers are located.
- export PATH=$HOME/x-tools/mipsel-unknown-linux-gnu/bin/:$PATH
Ok now get the boblight source.
- cd $HOME
- sudo git clone https://github.com/Speedy1985/boblight-for-enigma2.git
- cd boblight-for-enigma2
6. Build boblightd and boblight-enigma2
Notice: for most receivers we use -mhard-float but for dm800 we need use -msoft-float
- ./configure CC=mipsql-unknown-linux-gnu-gcc CXX=mipsel-unknown-linux-gnu-g++ --host=mipsel-unknown-linux-gnu --prefix=$HOME/compiled_boblight CPPFLAGS=-mhard-float
- make
- make install
Ok now if all went ok, you can find your compiled files in $HOME/compiled_boblight
All files in USR/LIB must be placed in /usr/lib on your receiver.
All files in USR/BIN must be placed in /usr/bin on your receiver.