Mind if I suggest another, quite different approach ?
I have just had a quick play with building my tomboy-ng on a Pi. I installed FPC from a tar then downloaded Lazarus source and built just lazbuild and lcl. That way, i could build an existing project quite easily, from the command line (as computer are meant to be used) without building Lazarus the IDE at all.
Davo
Your suggestion might work. However, I did my share of command line stuff on PDP-10s and Unix. I detest (with a passion) doing anything from the command line. There wouldn't be a need for Delphi or Lazarus if we were back in the 70's with punch cards writing ALOGOL-W programs on IBM-370s. (Been there, done that). So although the socketCAN (
https://github.com/linux-can/can-utils) library is useful at the command line for dumping and sending CAN messages it's not really all that useful at the command line.
As shown in the second photo the second tab, and there are a few more to come, for interacting and simulating a CANopen Master or Slave are much better done with a graphical user interface. And that philosophy is probably best supported by probably 99.99999...% of PCs, laptops, tablets and even now phones not using a command line interface. One can use one for a lifetime and never have to use a command line interface. My two cents.
I'll have to check what OS is available on the Beaglebone Black. My goal for this project, and the reason for using Lazarus rather than RAD Studio is to make the code available to everyone. RAD Studio with either C++ or Delphi can compile for Microsoft, Apple and now Linux but not for ARMs like Pi and Beagle. Not only that Delphi can do multi-platform user interface design so the components on the desktop or tablet surface have the look and feel of that particular environment. iPad and iPhone buttons look like what you get from Apple. Android buttons are different as are the ones for PCs and MACs. All on one development environment.
Different from Lazarus with Write once, Compile many times, Distribute executable. In C++ or Delphi or a mix. But next year when my RAD Studio support license expires I'm not sure I'll have the funds to renew. And for this project I want to reach a hobby small business market with source code.
John