Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2013-06

Beagle Bone

19 messages · 7 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Michael Schnell

Hi ARM experts,

Did anybody yet use Lazarus to do a project to be run on a BeagleBone ( http://beagleboard.org/Products/BeagleBone%20Black ) ?

Either "native", or "cross" ?

I would like to do this. The project I have in mind does not need to have a GUI (nor any Android binding).

Regarding development tools, I think I would prefer a complete Cross development (fpc cross compiler and Lazarus remote debugging), But a native Lazarus (usable via native hardware or vie VNC or similar) might also have some nice aspects.

( In fact, regarding ARM, the utmost level I yet got working, was a native fpc compiler that in fact was able to compile a "command-line" project, that now nicely runs as a daemon on my QNAP home server. I (and an Austrian friend I worked together with) never got a cross-compiler decently (i.e. without the need to install the greatly oversized - and supposedly license-restricted - ARM cross tools by "Code Sourcery") going, and we did give up on trying to make Lazarus work as a remote debugging IDE. )

-Michael

Reply by email

Michael Van Canneyt
to Michael Schnell
Michael Schnell wrote 22 lines
Hi ARM experts, Did anybody yet use Lazarus to do a project to be run on a BeagleBone ( http://beagleboard.org/Products/BeagleBone%20Black ) ? Either "native", or "cross" ? I would like to do this. The project I have in mind does not need to have a GUI (nor any Android binding). Regarding development tools, I think I would prefer a complete Cross development (fpc cross compiler and Lazarus remote debugging), But a native Lazarus (usable via native hardware or vie VNC or similar) might also have some nice aspects. ( In fact, regarding ARM, the utmost level I yet got working, was a native fpc compiler that in fact was able to compile a "command-line" project, that now nicely runs as a daemon on my QNAP home server. I (and an Austrian friend I worked together with) never got a cross-compiler decently (i.e. without the need to install the greatly oversized - and supposedly license-restricted - ARM cross tools by "Code Sourcery") going, and we did give up on trying to make Lazarus work as a remote debugging IDE. )

Well, lazarus runs without problems on a Raspberry Pi. The next issues of Blaise Pascal will feature a series about it.

The beagleboard is similar. I see no reason why it would not run.

Michael.

Reply by email

Michael Schnell
to Michael Van Canneyt
Michael Van Canneyt wrote
Well, lazarus runs without problems on a Raspberry Pi.

What do you mean by "runs on". As a native IDE with it's own local GUI ? That would be very slow (vs cross compiling) but supposedly usable.

The next issues of Blaise Pascal will feature a series about it.

Nice !

The beagleboard is similar.

Hmm it has a very different ARM chip (though both have Cortex A8 cores) ans AFAIK different Linux distributions.

I see no reason why it would not run.

At least the same means to create a working Lazarus should be applicable.

-Michael

Reply by email

Marc Santhoff
to Michael Van Canneyt: Well, lazarus runs without problems on a Raspberry Pi. The next issues of Blaise Pascal…
Michael Van Canneyt wrote 10 lines
On Mon, 17 Jun 2013, Michael Schnell wrote: > Hi ARM experts, > > Did anybody yet use Lazarus to do a project to be run on a BeagleBone ( > http://beagleboard.org/Products/BeagleBone%20Black ) ? > > Either "native", or "cross" ? >

Me too, wanna test, did nothing up to now. ;)

What I'd like to ask is:

Is there a full blown recipe for building a cross compiler anywhere (wiki or the like)?

Well, lazarus runs without problems on a Raspberry Pi. The next issues of Blaise Pascal will feature a series about it.

That is a magazine? Cn you please post a link where to get it?

Show quoted text 9 lines
The beagleboard is similar. I see no reason why it would not run. Michael. -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Thanks,
Marc

Marc Santhoff

Reply by email

Michael Van Canneyt
to Michael Schnell: What do you mean by "runs on". As a native IDE with it's own local GUI ? That would be…
Michael Schnell wrote 5 lines
On 06/17/2013 12:33 PM, Michael Van Canneyt wrote: > > Well, lazarus runs without problems on a Raspberry Pi. What do you mean by "runs on". As a native IDE with it's own local GUI ? That would be very slow (vs cross compiling) but supposedly usable.

The IDE works natively. It is included in raspbian.

Show quoted text 8 lines
> The next issues of Blaise Pascal will feature a series about it. Nice ! > > The beagleboard is similar. Hmm it has a very different ARM chip (though both have Cortex A8 cores) ans AFAIK different Linux distributions.

I said 'similar'; not 'identical' :)

Michael.

Reply by email

Michael Van Canneyt
to Marc Santhoff: Me too, wanna test, did nothing up to now. ;) What I'd like to ask is: Is there a full…
Marc Santhoff wrote 24 lines
Am Montag, den 17.06.2013, 12:33 +0200 schrieb Michael Van Canneyt: > > On Mon, 17 Jun 2013, Michael Schnell wrote: > >> Hi ARM experts, >> >> Did anybody yet use Lazarus to do a project to be run on a BeagleBone ( >> http://beagleboard.org/Products/BeagleBone%20Black ) ? >> >> Either "native", or "cross" ? >> Me too, wanna test, did nothing up to now. ;) What I'd like to ask is: Is there a full blown recipe for building a cross compiler anywhere (wiki or the like)? > > Well, lazarus runs without problems on a Raspberry Pi. > The next issues of Blaise Pascal will feature a series about it. That is a magazine? Cn you please post a link where to get it?

www.blaisepascal.eu

Michael.

Reply by email

Paul Breneman
to Michael Schnell: Did anybody yet use Lazarus to do a project to be run on a BeagleBone (…
Michael Schnell wrote 25 lines
Hi ARM experts, Did anybody yet use Lazarus to do a project to be run on a BeagleBone ( http://beagleboard.org/Products/BeagleBone%20Black ) ? Either "native", or "cross" ? I would like to do this. The project I have in mind does not need to have a GUI (nor any Android binding). Regarding development tools, I think I would prefer a complete Cross development (fpc cross compiler and Lazarus remote debugging), But a native Lazarus (usable via native hardware or vie VNC or similar) might also have some nice aspects. ( In fact, regarding ARM, the utmost level I yet got working, was a native fpc compiler that in fact was able to compile a "command-line" project, that now nicely runs as a daemon on my QNAP home server. I (and an Austrian friend I worked together with) never got a cross-compiler decently (i.e. without the need to install the greatly oversized - and supposedly license-restricted - ARM cross tools by "Code Sourcery") going, and we did give up on trying to make Lazarus work as a remote debugging IDE. ) -Michael

If you want to test something I've tested the arm-linux native stuff here on the RPi so it should work on the BB:
http://www.turbocontrol.com/easyfpgui.htm

Reply by email

Michael Schnell
to Paul Breneman
Paul Breneman wrote 5 lines
If you want to test something I've tested the arm-linux native stuff here on the RPi so it should work on the BB: http://www.turbocontrol.com/easyfpgui.htm

Thanks for this link.

I understand that EasyfpGUI-fpc-2.6.2.arm-linux-050413.zip <http://www.turbocontrol.com/EasyfpGUI-fpc-2.6.2.arm-linux-050413.zip> will provide a native fpc compiler and a library that should work on the BB.

This seems not to be related to Lazarus ?

(BTW: On this site, you mention AyncPro. Did you get this running under Linux ? )

Thanks,
-Michael
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20130617/2de555a9/attachment.html>

Reply by email

Lukasz Sokol
to Michael Schnell
Michael Schnell wrote 22 lines
On 06/17/2013 02:33 PM, Paul Breneman wrote: > > If you want to test something I've tested the arm-linux native > stuff here on the RPi so it should work on the BB: > http://www.turbocontrol.com/easyfpgui.htm > Thanks for this link. I understand that EasyfpGUI-fpc-2.6.2.arm-linux-050413.zip <http://www.turbocontrol.com/EasyfpGUI-fpc-2.6.2.arm-linux-050413.zip> will provide a native fpc compiler and a library that should work on the BB. This seems not to be related to Lazarus ? (BTW: On this site, you mention AyncPro. Did you get this running under Linux ? ) Thanks, -Michael

I was able to download and install Lazarus&FPC onto Raspberry PI and compile & build & run a GUI project ported from Windows [ only steps needed were disabling generation of Windows executable and selecting a GTK2 interface IIRC in project options] which then ran without any problem.

Last time I did that was about 2 months ago, haven't tried since but Lazarus definitively did work native and same did FPC.

Hope this helps,
L.

Reply by email

Lukasz Sokol
to Michael Schnell: Thanks for this link. I understand that EasyfpGUI-fpc-2.6.2.arm-linux-050413.zip…
Michael Schnell wrote 22 lines
On 06/17/2013 02:33 PM, Paul Breneman wrote: > > If you want to test something I've tested the arm-linux native > stuff here on the RPi so it should work on the BB: > http://www.turbocontrol.com/easyfpgui.htm > Thanks for this link. I understand that EasyfpGUI-fpc-2.6.2.arm-linux-050413.zip <http://www.turbocontrol.com/EasyfpGUI-fpc-2.6.2.arm-linux-050413.zip> will provide a native fpc compiler and a library that should work on the BB. This seems not to be related to Lazarus ? (BTW: On this site, you mention AyncPro. Did you get this running under Linux ? ) Thanks, -Michael

I was able to download and install Lazarus&FPC onto Raspberry PI and compile & build & run a GUI project ported from Windows [ only steps needed were disabling generation of Windows executable and selecting a GTK2 interface IIRC in project options] which then ran without any problem.

Last time I did that was about 2 months ago, haven't tried since but Lazarus definitively did work native and same did FPC.

[edit]
and it was from Raspbian packages (apt-get install lazarus etc.)

Hope this helps,
L.

Reply by email

Paul Breneman
to Michael Schnell: Thanks for this link. I understand that EasyfpGUI-fpc-2.6.2.arm-linux-050413.zip…
Michael Schnell wrote 23 lines
On 06/17/2013 02:33 PM, Paul Breneman wrote: > > If you want to test something I've tested the arm-linux native stuff > here on the RPi so it should work on the BB: > http://www.turbocontrol.com/easyfpgui.htm > Thanks for this link. I understand that EasyfpGUI-fpc-2.6.2.arm-linux-050413.zip <http://www.turbocontrol.com/EasyfpGUI-fpc-2.6.2.arm-linux-050413.zip> will provide a native fpc compiler and a library that should work on the BB. This seems not to be related to Lazarus ? (BTW: On this site, you mention AyncPro. Did you get this running under Linux ? ) Thanks, -Michael

The 5.7 MB arm-linux zip is just an easy way to see FPC 2.6.2 work on the RPi or BB. I just wanted to add a link for others that might encounter this message thread in the future. I think most full-time programmers will end up wanting to install a full development environment like Lazarus, but the "easy" zips let you avoid that until later.

In your original message you wrote: "The project I have in mind does not need to have a GUI (nor any Android binding)." The easyfpgui page has FPC 2.6.2 but I need to update the 2.6.0 arm-linux release here: http://www.turbocontrol.com/helloworld.htm

I was the (main) TurboPower TPX person for AsyncPro for the last 5 years TurboPower was in business (1998 - 2003), some engineers I work with like RealTerm a lot, and I still use AsyncPro in many Delphi projects - so I felt like I should mention/promote it a little. But, no, I haven't ported it to Linux. I'm using Synapse for that: www.CtrlTerm.com

Reply by email

Den Jean
to Michael Schnell: Did anybody yet use Lazarus to do a project to be run on a BeagleBone (…
AM Michael Schnell wrote
Did anybody yet use Lazarus to do a project to be run on a BeagleBone ( http://beagleboard.org/Products/BeagleBone%20Black ) ?

Here is a demo of a LCL/Qt program running on the BeagleBone ( = predecessor of BeagleBone Black).

http://users.telenet.be/Jan.Van.hijfte/qtforfpc/BeagleBone/beagle_bone.png

To get LCL/Qt fully working you need hardfloat fpc, so fpc 2.7.X and not 2.6.X.

Regards,

Jan

Reply by email

Marc Santhoff
to Den Jean
Den Jean wrote 10 lines
On Monday, June 17, 2013 11:16:19 AM Michael Schnell wrote: > Did anybody yet use Lazarus to do a project to be run on a BeagleBone ( > http://beagleboard.org/Products/BeagleBone%20Black ) ? Here is a demo of a LCL/Qt program running on the BeagleBone ( = predecessor of BeagleBone Black). http://users.telenet.be/Jan.Van.hijfte/qtforfpc/BeagleBone/beagle_bone.png To get LCL/Qt fully working you need hardfloat fpc, so fpc 2.7.X and not 2.6.X.

The release notes for 2.6.0 say it has VFP2 and 3 support. Are there any problems with that so 2.6.0 or .2 cannot be used?

Marc Santhoff

Reply by email

Michael Schnell
to Paul Breneman: The 5.7 MB arm-linux zip is just an easy way to see FPC 2.6.2 work on the RPi or BB. I…
Paul Breneman wrote
The 5.7 MB arm-linux zip is just an easy way to see FPC 2.6.2 work on the RPi or BB.

That of course is a great starter.

I just wanted to add a link for others that might encounter this message thread in the future. I think most full-time programmers will end up wanting to install a full development environment like Lazarus, but the "easy" zips let you avoid that until later.

Yep. Of course, the Lazarus IDE is the tool of choice for fpc programmers.

In your original message you wrote: "The project I have in mind does not need to have a GUI (nor any Android binding)."

Yep. I would use Lazarus just as an IDE. Preferably running it on the PC as a cross development tool. But regarding the rather high versatility of the BBB (Beagle Bone "black", greatly advanced vs the white thingy), it might be a good idea to run Lazarus on the target, too.

I was the (main) TurboPower TPX person for AsyncPro for the last 5 years TurboPower was in business (1998 - 2003),

GREAT! We (company) bought an AsyncPro license many years ago, and very happily use it since then. I would be _delighted_to be able to using it on Linux with Lazarus fpc. Especially with non-GUI Projects, which is not that easy because of the reduced Thread communication support in the LCL when no GUI binding is not selected.

In this and many other forums I found lots of requests for a decent serial- and Socket- communication unit, that frees the application programmer from the low level thread handling.

But, no, I haven't ported it to Linux. I'm using Synapse for that: www.CtrlTerm.com

I also use Synapse for this right now. But AsyncPro is a lot more advanced, especially because of the automatic background threads it uses and because of the unified API for serial and socket handling.

Thus porting APO to Lazarus/Linux/noGUI would be a GGRREEAATT advantage :-) .

Thanks,
-Michael

Reply by email

Michael Schnell
to Den Jean: Here is a demo of a LCL/Qt program running on the BeagleBone ( = predecessor of…
Den Jean wrote 6 lines
Here is a demo of a LCL/Qt program running on the BeagleBone ( = predecessor of BeagleBone Black). http://users.telenet.be/Jan.Van.hijfte/qtforfpc/BeagleBone/beagle_bone.png

Super !

Did you get decent performance with QT on BB ? (Of course BBB will outperform BB by far.)

Did you try to build and run the Lazarus IDE on BB/QT ?

-Michael

Reply by email

Paul Breneman
to Michael Schnell: That of course is a great starter. Yep. Of course, the Lazarus IDE is the tool of choice…

Michael Schnell wrote:
...

Show quoted text 9 lines
> But, no, I haven't ported it to Linux. I'm using Synapse for that: > www.CtrlTerm.com I also use Synapse for this right now. But AsyncPro is a lot more advanced, especially because of the automatic background threads it uses and because of the unified API for serial and socket handling. Thus porting APO to Lazarus/Linux/noGUI would be a GGRREEAATT advantage :-) .

CtrlTerm supports both serial (using SynaSer) and socket (Synapse) and the code is almost the same.

Reply by email

Michael Schnell
to Paul Breneman
Paul Breneman wrote
CtrlTerm supports both serial (using SynaSer) and socket (Synapse) and the code is almost the same.

Does it automatically use background threads and fires events in the main thread (as AsyncPro does) ?

-Michael

Reply by email

Paul Breneman
to Michael Schnell
Michael Schnell wrote 7 lines
On 06/18/2013 01:22 PM, Paul Breneman wrote: > > CtrlTerm supports both serial (using SynaSer) and socket (Synapse) and > the code is almost the same. Does it automatically use background threads and fires events in the main thread (as AsyncPro does) ?

No, but I might be interested in working on that if anyone wants to hire me. :)

Reply by email