[HowTo] Working complilation toolchain for D series

Here is information about customize your D series firmware..:!:This forum is NOT FOR USER questions or problems but DEVELOPER.
Post Reply

User avatar
juusso
SamyGO Moderator
Posts: 9666
Joined: Sun Mar 07, 2010 6:20 pm

[HowTo] Working complilation toolchain for D series

Post by juusso » Fri Nov 09, 2012 2:58 pm

Yes, i know we need some more detailed how to set-up compilation toolchain, but briefly, C-D-E series toolchains are available on http://opensource.samsung.com.

Here is working D series toolchain for ubuntu (i use vmware and ubuntu image)

How to prepare complilation toolchain for D series

A. Long way:
SpoilerShow
1. download VDLinux-armv7a8-toolchain-lite_20100630.tgz
2. copy file to /opt directory
3. Extract:

Code: Select all

sudo su
cd /opt
tar -xzvf ./VDLinux-armv7a8-toolchain-lite_20100630.tgz
4. Rename it to simplicify usage in future:
mv ./VDLinux-armv7a8-toolchain-lite_20100630 ./VDLinux-armv7a8
5. Export path to your toolchain`s bin directory:

Code: Select all

export PATH=$PATH:/opt/VDLinux-armv7a8/bin
Done. You have compilation toolchain for C/D series. But to compile rtmpgw we need compile openssl and zlib and place it to right places.
6. Navigate to

Code: Select all

cd /opt/VDLinux-armv7a8/arm-v7a8-linux-gnueabi/libc/usr/
7. download compiled libs:

Code: Select all

wget http://tinyurl.com/sgodown/firmwares/Toolchain/openssl_libs_v7a8.tgz
8. Extract:

Code: Select all

tar -xzvf ./openssl_libs_v7a8.tgz
9. Download, compile and install zlib...

Code: Select all

cd /opt
wget http://tinyurl.com/sgodown/firmwares/Toolchain/zlib-1.2.7.tar.gz
tar -xzvf ./zlib-1.2.7.tar.gz
cd ./zlib-1.2.7
10. configure and make using attached script:

Code: Select all

./configure
sh +x ./zlib_build_ECHOP.sh
If no errors, you`re ready to compile.
B. Short way (recomended)
1. Go to /opt dir and download toolchain

Code: Select all

sudo su
cd /opt
svn checkout svn://svn.code.sf.net/p/samygo/code/develop/toolchains/T-GAS_GAP VDLinux-armv7a8
2. Export path to your toolchain`s bin directory:

Code: Select all

export PATH=$PATH:/opt/VDLinux-armv7a8/bin
How to compile?

Example: Compiling rtmpdump:
1. go to your project dir, (for example /projects)

Code: Select all

cd /projects
git clone git://github.com/aajanki/rtmpdump.git
cd ./rtmpdump
2. replace Makefiles with attached ones:

Code: Select all

wget http://forum.samygo.tv/download/file.php?id=1498 -O Makefiles.zip
unzip -o ./Makefiles.zip
3. start compilation

Code: Select all

make clean
make all
If no errors, you get all binaries compiled. Hope this helps :)
You do not have the required permissions to view the files attached to this post.
LE40B653T5W,UE40D6750
Have questions? Read SamyGO Wiki, Search on forum first!
FFB (v0.8), FFB for CI+ . Get root on: C series, D series, E series, F series, H series, exeDSP/exeTV patches[C/D/E/F/H]

DO NOT EVER INSTALL FIRMWARE UPGRADE

Mkò
Posts: 196
Joined: Fri Jul 29, 2011 2:34 pm

Re: [HowTo] Working complilation toolchain for D series

Post by Mkò » Fri May 24, 2013 8:29 pm

this toolchain works for arm c series to?
this info shoted and longest way are only for d series?
could you provide the info for get the tollchain for c series? in the forum there are info for b series d series es series but for c series is missing...
thx
mk?

Denny
Official SamyGO Developer
Posts: 350
Joined: Thu Sep 30, 2010 12:18 pm
Location: Croatia

Re: [HowTo] Working complilation toolchain for D series

Post by Denny » Fri May 24, 2013 9:06 pm

Mk? wrote:this toolchain works for arm c series to?
this info shoted and longest way are only for d series?
could you provide the info for get the tollchain for c series?
thx
mk?
basicly toolchain is also okey for C serie except some special asm stuff or you want to rebuild kernel where you need to modify makefiles etc...,

but C serie is aswell very easy to install :

download some C Serie Opensource package like "UE40C8000.zip" form Samsung OS Server, inside of almost each file you have such one : arm_v7_vfp_le_20091117.tgz

extract this file to "/opt" directory , you should have it then in /opt/arm_v7_vfp_le, to do not set on each compile the PATH , add PATH variable it in root?s directory "/root/.bashrc" or in user?s directory "/home/user/.bashrc".

an example of my export :

Code: Select all

export PATH=$PATH:/opt/arm_v7_vfp_le/bin:/opt/VDLinux-armv7a8/bin:/opt/VDLinux-mips34kc/bin:/opt/STM/STLinux-2.2/devkit/sh4/bin:/opt/codesourcery/bin:/opt/mipsel-unknown-linux-gnu/bin/:/opt/VDLinux-armv7a8v2r2/bin:/opt/toolchains/uclibc-crosstools-gcc-4.2.3-3/usr/bin:/opt/android_test/toolchain/arm-linux-androideabi-4.4.x/bin/:/opt/VDLinux-arm-v7a15v3r1/bin:/opt/VDLinux-arm-v7a8v3r1/bin:/opt/VDLinux-arm-v7a9v3r1/bin
Denny - 데니 - 丹尼 (card2000)
UE55C8000 UE55D8000 UE32D6510 BD-C9600 3xDM8000
Reversing HW Demux Drivers and API from Samsung´s TV

User avatar
juusso
SamyGO Moderator
Posts: 9666
Joined: Sun Mar 07, 2010 6:20 pm

Re: [HowTo] Working complilation toolchain for D series

Post by juusso » Tue Aug 13, 2013 8:25 am

You can catch working toolchain from our svn as well:
  • For GAS* and GAP* firmwares:

    Code: Select all

    svn checkout svn://svn.code.sf.net/p/samygo/code/develop/toolchains/T-GAS_GAP VDLinux-armv7a8
  • For MST*

    Code: Select all

    svn checkout svn://svn.code.sf.net/p/samygo/code/develop/toolchains/T-MST10 VDLinux-mips34kc-toolchain-lite-20100223
LE40B653T5W,UE40D6750
Have questions? Read SamyGO Wiki, Search on forum first!
FFB (v0.8), FFB for CI+ . Get root on: C series, D series, E series, F series, H series, exeDSP/exeTV patches[C/D/E/F/H]

DO NOT EVER INSTALL FIRMWARE UPGRADE

blueScholar
Posts: 5
Joined: Mon Dec 01, 2014 3:21 pm

Re: [HowTo] Working complilation toolchain for D series

Post by blueScholar » Fri Dec 12, 2014 3:54 pm

Hello

Was anyone able to successfully attach GDB-Server to Process 61 (exeDSP)?
All the librarys appear to be stripped and im definitly not in the mood for compiling all the libraries again...

Are there any known solutions? (or does anyone have parts of the sourcecode of exeDSP =) =) =) )

Thanks!
BlueScholar

** PS **
Toolchain worked great, GDB-Server is running on the TV... but as described it crashes when i attach to prozess 61.... :*(

Post Reply

Return to “[D] Firmware”