Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: BeagleBoard

  1. #1

    BeagleBoard

    Today i got the opengles2 demos working on my beagleboard. And i am a bit impressed .

    What is the beagleboard. It is a small 3 by 3 inch mainboard. Runs on linux. Has an arm cpu, and an 3d accelerator that is opengles 2.0 compatible. More info can be found on http://www.beagleboard.org

    Next is install freepascal on it and test my opengles unit and demo application on real hardware ...
    http://3das.noeska.com - create adventure games without programming

  2. #2

    Re: BeagleBoard

    The BeagleBoard seems excellent, especially the Pico projector to go with it

    cheers,
    Paul
    Games:
    Seafox


    Pages:
    Syntax Error Software itch.io page

    Online Chess
    http://gameknot.com/#paul_nicholls

  3. #3

    Re: BeagleBoard

    Got the freepascal crosscompiler (win32-armlinux) to output working binaries today

    Here is the shopping list:
    CodeSourcery G++ Lite (2009q1-203) : http://www.codesourcery.com/sgpp/lit...tal/release858
    FreePascal 2.2.4 : http://www.freepascal.org/download.var
    (Tortoise) SVN to get the latest FPC sources : http://tortoisesvn.net/
    Latest SVN source (revision 1390

    The recipie:
    Install G++ Lite
    Install FPC 2.2.4 into D:\FPC\2.2.4
    Make an arm-linux subdir under the fpc bin directory and copy the following files from the g++ bin to it (also rename arm-none-linux-gnueabi-* to arm-linux-* )
    ar, as, ld, objdump and strip.
    Place the latest FPC sourcen in the FPC main dir. (something like d:\fpc\2.2.4)
    Make a compilearm.bat file with the following content:
    Code:
    make distclean
    make crossall install CPU_TARGET=arm OS_TARGET=linux OPT="-Aas -dFPC_ARMEL -O- -gl" CROSSPORT="-Aas -CpARMV7M -CfVFP -O-" CROSSBINDIR="D:\FPC\2.2.4\bin\arm-linux" BINUTILSPREFIX=arm-linux- INSTALL_PREFIX=D:\FPC\2.2.4
    pause
    Execute that bat file. After a (long) time it is complaining about a ppcarm file that cannot be copied.

    From the compiler directory we need to copy the ppc.exe and ppcrossarm.exe to the i386-win32 folder for fpc. Be sure to rename ppc.exe to pccarm.exe.

    next we need co copy the arm-linux form the rtl\units folder to the fpc units folder.

    From that moment on you can compile with the following bat file:
    Code:
    ppcrossarm -TLINUX hello.pp
    pause
    That should be all ...
    http://3das.noeska.com - create adventure games without programming

  4. #4

    Re: BeagleBoard

    Nice

    cheers,
    Paul
    Games:
    Seafox


    Pages:
    Syntax Error Software itch.io page

    Online Chess
    http://gameknot.com/#paul_nicholls

  5. #5

    Re: BeagleBoard

    Why do you use no optimizations?

    And good to see you got the thumb2 cg working on the beagleboard I plan to buy one myself once
    Peregrinus, expectavi pedes meos in cymbalis
    Nullus norvegicorum sole urinat

  6. #6

    Re: BeagleBoard

    My intial attempts led me to getting illegal instruction instead of hello world. So on searching the freepascal site and beagleboard irc channel i came to settings i used.

    According to the people on the beagleboard irc the ARMV7M is not a good setting as thumb on the beagleboard is suposedly not a good thing. The setting worked for so far though. (hello world worked, adding of intergers worked, adding of floats worked and a basic object with properties worked, but i should probeably stress it harder or turn optimisations on again).

    I did not change any fpc sources as it was hard enough to set up the crosscompile environment with the right arm gnu binutils and compile settings. But i believe others have made changes.

    Do get a board but do not be offended that you have to connect a null modem cable to it to get it working (but the real challenge is getting something to connect the null modem cable to the beagleboard connector :-) ).
    http://3das.noeska.com - create adventure games without programming

  7. #7

    Re: BeagleBoard

    Have you tried armv5 instead? I wrote the thumb-2 cg for fpc, mainly for use in thumb-2 only devices(like cortex-m3), so don't be surprised if there are a few missing things still. If you find out anything crashes it, then be sure to tell me(missing opcodes, etc)
    Peregrinus, expectavi pedes meos in cymbalis
    Nullus norvegicorum sole urinat

  8. #8

    Re: BeagleBoard

    I have not yet tried ARMV5 .

    For the moment i puzzled on how to cross compile an application that needs to be linked against X11 (not to mention libgles later on).
    http://3das.noeska.com - create adventure games without programming

  9. #9

    Re: BeagleBoard

    Ok got it working for compiling an application that uses .so files to the bb.

    With codesourcery a lib and /usr/lib are suplied (from what i got the bin utils). Copying them (lib and usr/lib) in the root of the drive where fpc is makes it autodetect them.
    But in /usr/lib are some .o files that do not agree with fpc so they must be removed.
    Next you get the _fini and _init error again. But that can be solved by copying prt0.o over cprt0.o . And next compiling works.

    With using dynlibs it is now possible to use sqlite3 dynamicaly e.g. only calling the libsqlite3.so.0 library at runtime so no more copying over lots of libs.

    With that working i can now focus on getting an hello world opengles example working ...

    PS CrossCompiling and using dynlibs still does not work for compiling to i386-linux on windows xp. Even my fastcgi application that worked before refuses to compile.
    What is the 'standard' crosscompile tool for compiling with gcc on windows for linux? Maybe that comes with some distro independend base .so and .a files.
    http://3das.noeska.com - create adventure games without programming

  10. #10

    Re: BeagleBoard

    I got freepascal cross compiler working for IGEPv2 board, a beagle clone with wifi and ethernet. At this time only with SDL framebuffer device, x11 output doesn't working yet, but this is a step forward.

    Thanks for your hint, noeska.

    Thomas




Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •