Welcome, Guest
Username: Password: Remember me
CodeTyphon Cross-Build Development, discussions and problems
  • Page:
  • 1

TOPIC:

CrossARM on PENGPOG is done! Wiki Tut, Don't work 10 years 8 months ago #4352

  • trazanet
  • trazanet's Avatar Topic Author
  • Visitor
  • Visitor
Finally i done, i can run graphical pascal binaries in a TAblet PengPod 1.2ghz Cortex A8 ARM Core.

this is the hardware:
www.androidpit.com/pengpod-the-true-linux-tablet

the result is awesome, litteraly fly's:
1.- in fact in can comunication with serial port reseeving serial data at 38400 bps, without problems, using spdo
2.- i can graphs in real time
3.- i can use mysql connection without problems
pd: the only problem, is you need to set up fontsize to 0 (label, button's, panels), otherwise dissapears

let'me advices to other people that the wiki tutorial 'CRoss-compile for ARM', wasn't work, only work if you want simple text application's, and why don't work?, i ' m not cross compile expert , but don't work because:
BEFORE you have FPC working

1.-Is necessary rebuild gcc
2.-Is necessary rebuild gdb
3.- Is necesary Newlib (rebuild too)
4.- rebuild binutils
5.- you need import lib's from the tablet, (/lib/ & /usr/lib/), in a directory on the host like 'licross125'
6.- you need to change some file names like: pango-1.2.so.000.1 -> pango-1.2.so (the compiler tell you the names)

the used parameter is differnt is=arm-elf

thank's to a german wiki tutorial, i can create the correct ToolChain:
the tutorial is:

(you need fpc running good before)

wiki.ubuntuusers.de/GNU_ARM-Toolchain

the results are truly nice :lol:

regards

Please Log in or Create an account to join the conversation.

Last edit: by trazanet.

CrossARM on PENGPOG is done! Wiki Tut, Don't work 10 years 8 months ago #4353

  • kenlee
  • kenlee's Avatar
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 25
  • Thank you received: 4
Congratulations, Trazanet!

I think many of us also want to get a GUI app running on ARM-Linux but haven't be successful yet. Currently, I also got stuck at "arm-linux-ld.exe: cannot find -ldl".

I'm new to this cross-compiling so I'd appreciate it if you can give us more details. Can you confirm if the necessary steps are:
1. Have CT installed on a host PC running Linux. Choose to build the cross-compile toolchain with ARM and LIUNX.
2. Follow the German page you pointed us to build the "GNU ARM toolchain" i.e. the steps 1-4 listed in your last message (install GCC, GDB, Newlib and Binutils).
3. Do the final steps 5 and 6 in your last message.

And then going back to CT, we would then be able to cross-compile to ARM-Linux (with Target OS=Linux and Target CPU=ARM, and "Generate debugging info..." unchecked, like said in the wiki)?

Thank you!

Please Log in or Create an account to join the conversation.

CrossARM on PENGPOG is done! Wiki Tut, Don't work 10 years 8 months ago #4354

  • trazanet
  • trazanet's Avatar Topic Author
  • Visitor
  • Visitor
hi.

Yes!, you need rebuild many thing's. I do it with Lazarus.
is necessary rebuild newlibs, gcc, binutils, gdb (is neccesary rebuild a toolchain). is better use a virtual machine with ubuntu.
my enviorment:
ubuntu 12.04 (all updates ok)
fpc-2.6.2
fpc-source-2.6.2
lazarus 1.0.8

1.- follow the german wiki, one is done do it this (prev. lines is from other post):

"After all it creates a structure in /opt/gnuarm which can be used to compile Hello-World. I was missing at least libgl and did not find a way to build it. So one can access different precompiled toolchains as well (www.gnuarm.com/, www.yagarto.de/, www.codesourcery.com/). I downloaded this file decompressed it to /opt (arm-2009q3) and applied that path to all further steps.

5. fpc

make distclean
make crosszipinstall CPU_TARGET=arm OS_TARGET=linux OPT="-dFPC_ARMEL" CROSSOPT="-XR/opt/arm-2009q3/arm-none-linux-gnueabi -dFPC_ARMEL -CfSOFT -Cparmv5" FPC=/usr/local/lib/fpc/2.5.1/ppcx64


- crosszipinstall to create but not install
- -XR<> root dir where as and ld can be found
- ppcx64 is the compiler on 64bit systems, for 32bit it is called ppc386

It results in a packed file like fpc-2.5.1.arm-linux.tar.gz just where the makefile resides. Unpack the content to /usr/local/lib/fpc... and create a link for ppcrossarm into /usr/local/bin. Now ppcrossarm can be used to compile sources
6. Compilation
ppcrossarm -Xd -Fl/opt/arm-2009q3/arm-none-linux-gnueabi/libc/usr/lib -CaEABI -Parm -CfSOFT -CpARMV5 Example.pas


-Xd don't use standard lib path
-Fl use directory to search for libs
I don't know if it works without -C options.
"

pd: if you find the way to rebuild the toolchain with codetyphon, let me know


and that's it!!.

Please Log in or Create an account to join the conversation.

Last edit: by trazanet.

CrossARM on PENGPOG is done! Wiki Tut, Don't work 10 years 8 months ago #4369

  • trazanet
  • trazanet's Avatar Topic Author
  • Visitor
  • Visitor
Hello all.

This is a little demostration of succesfulll cross-compile SCADA Software Running on a TableT PENGPOD.

Properties
1.- Receiving data al 38400 bps
2.- Graphs in real time
3.- And all advantages of a GNU/Linux Platform



:woohoo:

Please Log in or Create an account to join the conversation.

CrossARM on PENGPOG is done! Wiki Tut, Don't work 10 years 8 months ago #4370

  • kenlee
  • kenlee's Avatar
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 25
  • Thank you received: 4
This is really encouraging!

Please Log in or Create an account to join the conversation.

  • Page:
  • 1