[19. April 2013] A-400 Advanced Network Setup now available | [11 Jan. 2013] Customize your A-400 Home Screen

Firmware: A-400 [13 May 2013] | C-300 [30 Nov. 2012] | A-300 [30 Nov. 2012] | C-200 [21 Jan. 2013] | A-200/A-210 [10 Aug. 2012]

Just got your NMT | WIKI has the answers | Search the forum | Forum Rules/Policy | Firmware & Official NMT News | Popcornhour manuals



User(s) browsing this thread:
Thread Closed 
A110 Toolchain versions
07-16-2010, 06:53 AM
Post: #1
A110 Toolchain versions
Hello all,

in the past, I used Lundmans toolchain to compile apps for the a110 and everything works fine.

Yesterday I started to compile an application , using some syabas libs on the a110, and during linking and i got strange unresolved externals (like "__divdi3@GCC_3.0"

Lundmans toolchain is using gcc 4.2.2, while the syabas official toolchain contains gcc 4.0.4 with a lot a patches. Did anybody experienced similar problems or is anybody using the syabas toolchain with success? (I try to avoid to setup a scnd development environment, befor I know, that it will work).

-

-
Panasonic TH50PZ70E -Denon AVS1909
Sony PS 3 40GB-Octagon 1018-Logitech Harmony 885
Popcorn Hour A110+A200
Focal Suspense-JBL SUB 175 - T&A Pulsar TAV 500 - T&A Pulsar TAR 400 E
2 x NAS Intel SS4200 6TB each
Find all posts by this user
07-16-2010, 08:02 AM
Post: #2
RE: A110 Toolchain versions
Hi,

I'm a happy user of the official syabas toolchain with gcc 4.0.4 and have not experienced any problems using it on an A100. It needed some additional patching to build out of the box, but after that it just works. I'm using it already more than a year now for all kinds of different C/C++ libraries/projects.

SoloHan.

(07-16-2010 06:53 AM)thica Wrote:  Hello all,

in the past, I used Lundmans toolchain to compile apps for the a110 and everything works fine.

Yesterday I started to compile an application , using some syabas libs on the a110, and during linking and i got strange unresolved externals (like "__divdi3@GCC_3.0"

Lundmans toolchain is using gcc 4.2.2, while the syabas official toolchain contains gcc 4.0.4 with a lot a patches. Did anybody experienced similar problems or is anybody using the syabas toolchain with success? (I try to avoid to setup a scnd development environment, befor I know, that it will work).
Find all posts by this user
07-16-2010, 08:13 AM
Post: #3
RE: A110 Toolchain versions
Thx for your reply, than I will need to setup the officical toolchain. If I face problems with he patching , I will come back to you... :-)

-

-
Panasonic TH50PZ70E -Denon AVS1909
Sony PS 3 40GB-Octagon 1018-Logitech Harmony 885
Popcorn Hour A110+A200
Focal Suspense-JBL SUB 175 - T&A Pulsar TAV 500 - T&A Pulsar TAR 400 E
2 x NAS Intel SS4200 6TB each
Find all posts by this user
07-16-2010, 04:29 PM
Post: #4
RE: A110 Toolchain versions
Let me know if you run into any problems...

I'll be back after the weekend, so be a little patient for a reply from me Tongue

SoloHan.

(07-16-2010 08:13 AM)thica Wrote:  Thx for your reply, than I will need to setup the officical toolchain. If I face problems with he patching , I will come back to you... :-)
Find all posts by this user
07-18-2010, 09:20 PM
Post: #5
RE: A110 Toolchain versions
Hello, made some tries with preconfigured vware images for nmt development, but all of them are based on Lundmans toolchain. (which does not work if you link against some special sigma libs on the nmt)
So I did setup my own vmware image with the the sigma toolchain , using the following directions

http://www.geordy.nl/?p=26

After trying several Ubuntu Images , I succeeded with Ubuntu 7.xx to compile the toolchain, with the default settings from menuconfig. With this toolchain I am able to compile/link my app without strange unresolved externals.
Unfortunately , if I try to execute a binary (even Hello world) on the a110 , I get an error

./hello: can't resolve symbol '__uClibc_start_main'

So some help would be great.

-

-
Panasonic TH50PZ70E -Denon AVS1909
Sony PS 3 40GB-Octagon 1018-Logitech Harmony 885
Popcorn Hour A110+A200
Focal Suspense-JBL SUB 175 - T&A Pulsar TAV 500 - T&A Pulsar TAR 400 E
2 x NAS Intel SS4200 6TB each
Find all posts by this user
07-20-2010, 07:56 PM
Post: #6
RE: A110 Toolchain versions
@SoloHan: Weekend is over.. :-) Any Ideas?

-

-
Panasonic TH50PZ70E -Denon AVS1909
Sony PS 3 40GB-Octagon 1018-Logitech Harmony 885
Popcorn Hour A110+A200
Focal Suspense-JBL SUB 175 - T&A Pulsar TAV 500 - T&A Pulsar TAR 400 E
2 x NAS Intel SS4200 6TB each
Find all posts by this user
07-21-2010, 04:56 AM
Post: #7
RE: A110 Toolchain versions
After seeing this I tried to do a quick toolchain setup, I have working toolchains for the 200 and some arm based units but never made one up for the 100.. unfortunately I haven't had time to get a drive into a 100 series so I could test my hello. I had used a non-gui install of debian and the reason i'm replying is I noticed a couple things but without being able to test I couldn't verify if it was a problem. first I noticed the warning about compiling the toolchain with gcc 4.x and the second thing I noticed was it appeared uClibc didn't compile and errored out but it didn't stop the build from finishing up.. and last there was an issue on the link about static linking pointing to lundmans page..

not sure it will help but might be somethign to look into.
Find all posts by this user
07-22-2010, 11:03 AM (This post was last modified: 07-25-2010 10:13 AM by SoloHan.)
Post: #8
RE: A110 Toolchain versions [UPDATE]
Hi thica,

Weekend is indeed over Big Grin I had a small holiday appended to the weekend, so I had a loooong weekend Tongue

Get the toolchain sources from here:
http://www.networkedmediatank.com/downlo...05.tar.bz2

On Ubuntu 9.10 you have to install the following packages:
  • flex
  • bison
  • gettext
  • genromfs
  • ncurses-dev
  • patch
  • texinfo (for makeinfo)

  1. Install the packages:
    Code:
    sudo aptitude install flex bison gettext genromfs ncurses-dev patch texinfo
  2. Extract the toolchain:
    Code:
    tar xvf <path>/smp86xx_toolchain.20080505.tar.bz2
    cd smp86xx_toolchain.20080505
  3. Extract the smp86xx_toolchain.20080505-patches.tar.gz file in the toolchain directory:
    Code:
    tar xvf <path>/smp86xx_toolchain.20080505-patches.tar.gz
  4. Now run the following command to configure the toolchain:
    Code:
    make menuconfig

    Use the following toolchain options or load them from the file: "pch-a100.config".

    Select the "Load an Alternate Configuration File" option to load the "pch-a100.config" file.

    Toolchain options:
    Code:
    kernel headers: 2.6.11.0
    uclibc: 0.9.28.3
    binutils: 2.17
    gcc: 4.0.4
    gdb: 6.3

    Common options:
    Enable multilib: yes
    Enable largefile: yes
    Use soft FP: yes

    Target optimizations: "-o2 -pipe"

    After you have loaded or set the toolchain options, select <exit> and save the new configuration.
  5. Now build the toolchain:
    Code:
    make


This will take some time, so take a cup of coffee and enjoy the sunny weather Cool

SoloHan.
Find all posts by this user
[+] 1 user says Thank You to SoloHan for this post
07-22-2010, 11:40 AM
Post: #9
RE: A110 Toolchain versions
Great, awaiting your patches, then I will give it a try...

-

-
Panasonic TH50PZ70E -Denon AVS1909
Sony PS 3 40GB-Octagon 1018-Logitech Harmony 885
Popcorn Hour A110+A200
Focal Suspense-JBL SUB 175 - T&A Pulsar TAV 500 - T&A Pulsar TAR 400 E
2 x NAS Intel SS4200 6TB each
Find all posts by this user
07-22-2010, 12:11 PM
Post: #10
RE: A110 Toolchain versions
@SoloHan, please could you share the patches? I was thinking of adding them to the NMT wiki, together with your instructions above.

Audio, video, disco - I hear, I see, I learn.
Wiki. Wiki? Wiki!
Find all posts by this user
07-23-2010, 02:29 PM
Post: #11
RE: A110 Toolchain versions
btw: is menuconfig not required?

-

-
Panasonic TH50PZ70E -Denon AVS1909
Sony PS 3 40GB-Octagon 1018-Logitech Harmony 885
Popcorn Hour A110+A200
Focal Suspense-JBL SUB 175 - T&A Pulsar TAV 500 - T&A Pulsar TAR 400 E
2 x NAS Intel SS4200 6TB each
Find all posts by this user
07-24-2010, 08:05 AM
Post: #12
RE: A110 Toolchain versions
@thica: Yes, menuconfig is required. I was thinking of supplying an external config file, so you can load it instead of typing over all settings. Cool

@dc11ab: I'm currently verifying the patches in a clean environment. When the toolchain is successfully build, I'll send/post the patches. Should I send you the patch file, because I cannot post it here Big Grin

SoloHan
Find all posts by this user
07-24-2010, 11:32 AM
Post: #13
RE: A110 Toolchain versions
Sure, you can send the patch to me, or if you're in the mood you can upload it yourself to the wiki Wink
http://www.networkedmediatank.com/wiki/i...ial:Upload
Maximum file size: 64 MB
Permitted file types: (png, gif, jpg, jpeg), tar, tgz, zip, gz.

I think the NMT wiki needs a serious overhaul when it comes to the 'building toolchain' part. I have managed to make one for the A100, but somehow not managed to get the SMP8643 toolchain working yet. It's frustrating being a *nix amateur...

Audio, video, disco - I hear, I see, I learn.
Wiki. Wiki? Wiki!
Find all posts by this user
07-24-2010, 12:02 PM
Post: #14
RE: A110 Toolchain versions
I would also like to see the patches Smile
Find all posts by this user
07-24-2010, 05:20 PM
Post: #15
RE: A110 Toolchain versions
OK, I'll upload the patches using your link. Thanks. I'll make the final tar ball tomorrow and upload it.

I will let you know when it is done.

SoloHan.

(07-24-2010 11:32 AM)dc11ab Wrote:  Sure, you can send the patch to me, or if you're in the mood you can upload it yourself to the wiki Wink
http://www.networkedmediatank.com/wiki/i...ial:Upload
Maximum file size: 64 MB
Permitted file types: (png, gif, jpg, jpeg), tar, tgz, zip, gz.

I think the NMT wiki needs a serious overhaul when it comes to the 'building toolchain' part. I have managed to make one for the A100, but somehow not managed to get the SMP8643 toolchain working yet. It's frustrating being a *nix amateur...
Find all posts by this user
Thread Closed 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  [Apps] opkg A100/A110 - Updated 21st Sep vaidyasr 405 83,675 05-15-2013 06:04 PM
Last Post: ricardojrm
  Did someone compile ath9k_htc module for pch-a110? kay 1 1,102 04-17-2013 02:27 AM
Last Post: dony71
  A110 - Permanent fix for opkg and local binaries path vaidyasr 3 401 03-16-2013 06:40 AM
Last Post: vaidyasr
  mochad or heyu for A110 anybody? dony71 3 407 03-12-2013 05:24 AM
Last Post: dony71
  HTTP streaming server on A110 ? dony71 0 1,352 01-26-2012 02:48 AM
Last Post: dony71
  Lan access to A110 Budgie 2 1,639 09-11-2011 08:56 AM
Last Post: gkreidl
  [Apps] Qt4 WebKit - Web Browser - A110/100 - Updated 28th June vaidyasr 168 63,053 07-05-2011 10:31 AM
Last Post: gkreidl
  youtube on a110 dw_bobby 1 2,745 06-11-2011 07:07 PM
Last Post: mishmash
  is there an android remote control for the A110? jadeddog 2 2,739 06-04-2011 11:27 PM
Last Post: dw_bobby
  Windows 7 NFS client to pch A110 - Working!! johnpoz 5 4,439 02-26-2011 06:59 AM
Last Post: zytham

Forum Jump: