| 112 | == Dreambox 800/8000/7025 (MIPSEL) == #dm800_mipsel |
| 113 | - Download: [http://www.streamboard.de.vu/wbb2/tut-pics/toolchains/Toolchain_mipsel-tuxbox-linux.Dreambox.tar.bz2] |
| 114 | - Download (SSL support): [http://www.streamboard.de.vu/wbb2/tut-pics/toolchains/Toolchain_mipsel-tuxbox-linux.Dreambox.SSL.tar.bz2] |
| 115 | - Architecture: mipsel |
| 116 | - SSL installed: no / yes |
| 117 | - libusb installed: no (see how to install libusb in toolchain) |
| 118 | |
| 119 | ==== How to install the toolchain ==== |
| 120 | Run the following commands as '''NORMAL''' (non-root user). |
| 121 | {{{ |
| 122 | #!sh |
| 123 | cd /tmp |
| 124 | sudo mkdir -p /opt/cross |
| 125 | wget http://www.streamboard.de.vu/wbb2/tut-pics/toolchains/Toolchain_mipsel-tuxbox-linux.Dreambox.SSL.tar.bz2 |
| 126 | sudo tar -xf Toolchain_mipsel-tuxbox-linux.Dreambox.SSL.tar.bz2 -C /opt/cross |
| 127 | }}} |
| 128 | ==== How to install libusb ==== |
| 129 | Run the following commands as '''NORMAL''' (non-root user). |
| 130 | {{{ |
| 131 | #!sh |
| 132 | cd /tmp |
| 133 | wget http://downloads.sourceforge.net/project/libusb/libusb-1.0/libusb-1.0.9/libusb-1.0.9.tar.bz2 |
| 134 | tar -xf libusb-1.0.9.tar.bz2 |
| 135 | cd libusb-1.0.9 |
| 136 | export TOOLCHAIN=/opt/cross/mipsel-unknown-linux-gnu |
| 137 | export PATH="$TOOLCHAIN/bin:$PATH" |
| 138 | ./configure --prefix=$TOOLCHAIN/mipsel-unknown-linux-gnu/sys-root/usr/ --host=mipsel-unknown-linux-gnu --enable-shared=no |
| 139 | make |
| 140 | sudo make install |
| 141 | }}} |
| 142 | ==== How to install pcsc ==== |
| 143 | Run the following commands as '''NORMAL''' (non-root user). |
| 144 | {{{ |
| 145 | #!sh |
| 146 | cd /tmp |
| 147 | wget http://downloads.sourceforge.net/project/libusb/libusb-1.0/libusb-1.0.9/libusb-1.0.9.tar.bz2 |
| 148 | tar -xf libusb-1.0.9.tar.bz2 |
| 149 | cd libusb-1.0.9 |
| 150 | export TOOLCHAIN=/opt/cross/mipsel-unknown-linux-gnu |
| 151 | export PATH="$TOOLCHAIN/bin:$PATH" |
| 152 | make |
| 153 | sudo make install |
| 154 | cd /tmp |
| 155 | wget https://alioth.debian.org/frs/download.php/3757/pcsc-lite-1.8.6.tar.bz2 |
| 156 | tar -xf pcsc-lite-1.8.6.tar.bz2 |
| 157 | cd pcsc-lite-1.8.6 |
| 158 | ./configure CC=$TOOLCHAIN/bin/mipsel-unknown-linux-gnu-gcc-4.3.2 --disable-libudev --host=mipsel-unknown-linux-gnu --prefix=$TOOLCHAIN/mipsel-unknown-linux-gnu/sys-root/usr --exec-prefix=$TOOLCHAIN/mipsel-unknown-linux-gnu/sys-root/usr --disable-shared LIBUSB_LIBS="-L$TOOLCHAIN/mipsel-unknown-linux-gnu/sys-root/usr/lib -lusb-1.0" LIBUSB_CFLAGS="-I$TOOLCHAIN/mipsel-unknown-linux-gnu/sys-root/usr/include/libusb-1.0" |
| 159 | make |
| 160 | sudo make install |
| 161 | }}} |
| 162 | ==== How to use cross compile OSCAM ==== |
| 163 | Run the following commands as your regular user in the directory where OSCAM source is. |
| 164 | See GettingOscam. |
| 165 | {{{ |
| 166 | #!sh |
| 167 | # Set this variable to the root directory of your toolchain |
| 168 | export TOOLCHAIN=/opt/cross/mipsel-unknown-linux-gnu |
| 169 | # Default compilation |
| 170 | make CROSS=$TOOLCHAIN/bin/mipsel-unknown-linux-gnu- |
| 171 | |
| 172 | # Cross compile with SSL (and libcrypto) support |
| 173 | make CROSS=$TOOLCHAIN/bin/mipsel-unknown-linux-gnu- USE_SSL=1 |
| 174 | |
| 175 | # Cross compile libusb (smartreader) support |
| 176 | make CROSS=$TOOLCHAIN/bin/mipsel-unknown-linux-gnu- USE_LIBUSB=1 |
| 177 | |
| 178 | # Cross compile with static libusb (smartreader) support |
| 179 | make CROSS=$TOOLCHAIN/bin/mipsel-unknown-linux-gnu- USE_LIBUSB=1 LIBUSB_LIB="$TOOLCHAIN/mipsel-unknown-linux-gnu/sys-root/usr/lib/libusb-1.0.a -lrt" |
| 180 | |
| 181 | # Cross compile with pcsc support |
| 182 | make CROSS=$TOOLCHAIN/bin/mipsel-unknown-linux-gnu- USE_PCSC=1 EXTRA_CFLAGS="-I$TOOLCHAIN/mipsel-unknown-linux-gnu/sys-root/usr/include/PCSC" |
| 183 | |
| 184 | # Cross compile with static libusb, pcsc, SSL support |
| 185 | make CROSS=$TOOLCHAIN/bin/mipsel-unknown-linux-gnu- CONF_DIR=/etc/tuxbox/config/ USE_LIBUSB=1 LIBUSB_LIB="$TOOLCHAIN/mipsel-unknown-linux-gnu/sys-root/usr/lib/libusb-1.0.a -lrt" USE_PCSC=1 USE_SSL=1 EXTRA_CFLAGS="-I$TOOLCHAIN/mipsel-unknown-linux-gnu/sys-root/usr/include/PCSC" |
| 186 | }}} |
| 187 | |