Part Number: AM5728
Hello,
I am porting an app from x86 to AM57xx. The app depends on guile-2.0 libs. So I need to add guile-2.0-libs to the TI Processor SDK Linux image. The beagleboard X15 is used for this experiment. The SD card is created using the create-sdcard.sh from ti-processor-sdk-linux-am57xx-evm-05.02.00.10 based on the image tisdk-rootfs-image-am57xx-evm.
First approach - Get a prebuilt guile libs package to install it on the SD card
I downloaded the following deb for guile lib and the necessary dependent lib from Debian:
guile-2.0-libs_2.0.11+1-9+deb8u1_armhf.deb, libgc1c2_7.2d-6.4_armhf.deb, libunistring0_0.9.3-5.2+b1_armhf.deb
Extract the deb content and copy them to the SD card, the guile lib has its own command-line app guile, so I just run it and got the following error:
root@am57xx-evm:~# /usr/lib/arm-linux-gnueabihf/guile-2.0/bin/guile
Throw without catch before boot:
Throw to key
Error while printing exception:
Key:
Failed to print exception.
Aborting.
Aborted (core dumped)
I actually tried the same guile lib deb on another SD card created from the Debian's 9.5 2018-10-07 4GB SD LXQT image for beagleboard X15 https://beagleboard.org/latest-images
The guile command-line app works fine on this SD card. So it looks like the guile lib from Debian may have some dependency and/or installation issue on the TI Arago image, but I can’t pinpoint the cause.
It may be necessary to use the TI SDK to build to guile lib from the source code.
Second Approach – build guile lib from source using TI SDK.
I try to find any existing recipe to build guile-2.0. I searched arago, yoctor and openembedded repositories, but couldn’t find a recipe for building guile for arm target. The closest one is the following guile_2.0.11.bb in Yocto index: https://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?h=dizzy&id=894df445fa71a170397c6e0b4960a89ef20a4230
However this recipe is to build a “native” guile for host, not for target.
I am new to AM57xx and Arago/Yocto, any insight and direction will be appreciated.
Regards,
Steve