Lazarus

Miscellaneous => Other => Topic started by: avra on November 28, 2011, 04:15:36 pm

Title: Raspberry Pi - 25$ ARM Linux HDMI board
Post by: avra on November 28, 2011, 04:15:36 pm
This will be a nice target for Lazarus:
http://www.theregister.co.uk/2011/11/28/raspberry_pi
http://www.raspberrypi.org
Title: Re: Raspberry Pi - 25$ ARM Linux HDMI board
Post by: avra on November 29, 2011, 08:58:56 am
They have not yet standardized main development tool that will be included in distribution. Maybe we can do something about it...
Title: Re: Raspberry Pi - 25$ ARM Linux HDMI board
Post by: jwdietrich on November 29, 2011, 07:01:52 pm
Is there any option to buy an evaluation board? Currently, the shop lists only merchandise...
Title: Re: Raspberry Pi - 25$ ARM Linux HDMI board
Post by: herux on November 30, 2011, 07:48:13 am
No VGA output ?
Title: Re: Raspberry Pi - 25$ ARM Linux HDMI board
Post by: jwdietrich on November 30, 2011, 12:42:38 pm
Obviously not. Video output is implemented with an RCA jack and HDMI output.

BTW, the unit is expected to go on sale in December 2011.
Title: Re: Raspberry Pi - 25$ ARM Linux HDMI board
Post by: avra on December 01, 2011, 01:53:00 pm
No VGA output ?
You can use some HDMI to VGA adapter.
Title: Re: Raspberry Pi - 25$ ARM Linux HDMI board
Post by: jwdietrich on December 02, 2011, 11:02:24 pm
Raspberry Pi is certainly a very attractive device, and I am sure that I will order two or three of them. This is certainly an ideal platform for home automation, robotics and control purposes, and it may even be a basis for special-purpose servers and MP3 players.

However, the question remains: Is the device a good basis for teaching programming?

There is a very interesting review in this context at http://www.i-programmer.info/professional-programmer/i-programmer/3419-raspberry-pi-or-programming.html.

To cite the author: The point is that we don't really need more hardware to get kids interested in computers - we need the right software.

This supports my idea I have for several days now (motivated by avra): To develop a special Linux distribution for Raspberry Pi with well integrated Lazarus / Free Pascal. I certainly don't have enough free time to do this, but I would like to suggest it to the community. I hope that somebody will have enough time and enthusiasm to do this.

Even if Harry Fairhead states that modern programming languages have a steep learning curve because they are object-oriented we are in the lucky situation that, unlike some other languages, ObjectPascal has a mature object-oriented philosophy, however it isn't agressively object-oriented. Therefore it would be the ideal basis for implementing the original goal of the Raspberry Pi project, education in programing.
Title: Re: Raspberry Pi - 25$ ARM Linux HDMI board
Post by: eny on December 03, 2011, 09:40:06 am
Even if Harry Fairhead states that modern programming languages have a steep learning curve because they are object-oriented
Yeah, this is not necessarily true; it was hard for 'older'  people, coming from a 3GL background to make the paradigm shift.
OO programming at is basics is not that difficult; the difficulty lies in mastering the platform that comes with the programming environment or OS.

Interesting platform though; might bridge the gap between MCU programming (PIC/AVR) and the already exising mini-computer platform mini-itx (http://www.mini-itx.com/).
But not a platform to merely start learning programming.
Title: Re: Raspberry Pi - 25$ ARM Linux HDMI board
Post by: jwdietrich on December 03, 2011, 09:48:12 am
I think what Harry Fairhead has in mind are languages like Java with its complex class and domain structure. With respect to class libraries there is not much to miss in Free Pascal and Lazarus, and in general Pascal seems to be more appropriate for teaching and learning programming than Java. (And at least in my opinion it is also an excellent language for professional development, in order to address a common misconception).
Title: Re: Raspberry Pi - 25$ ARM Linux HDMI board
Post by: avra on December 05, 2011, 09:15:45 am
Interesting platform though; might bridge the gap between MCU programming (PIC/AVR) and the already existing mini-computer platform mini-itx
Although PI has SPI, I2C, 232 and some GPIO, it is still missing the full hardware control, real time processing, variety of IO pins (ADC, DAC, PWM...). You might use SPI/I2C chips to compensate this, but it adds complexity. Also you will have much longer battery life with some MCU then with PI. Therefore I agree it is not a replacement but a very useful bridge between microcontrollers and PCs. There are situations where you must use microcontrollers, but there are also situations where using a Linux device helps you to abstract complexity and use high level programming instead. Just imagine that for example you have to build a custom device with a lot of GPS/GPRS/TCPIP/HTTP/FTP functionality, and using existing functionality already available in Linux can save you months of work. So far you had to use something like this http://www.friendlyarm.net/products/mini2440 (http://www.friendlyarm.net/products/mini2440), but PI might be a better and cheaper option in many places. I just wonder if it will be possible at all to order something like 100 pcs and ship them internationally.
Title: Re: Raspberry Pi - 25$ ARM Linux HDMI board
Post by: avra on December 05, 2011, 09:18:40 am
Is there any option to buy an evaluation board? Currently, the shop lists only merchandise...
First 100 test batch boards will be put on auction. I expect them to reach much higher price. Next batch should be available in shop.
Title: Re: Raspberry Pi - 25$ ARM Linux HDMI board
Post by: avra on December 05, 2011, 09:30:37 am
This supports my idea I have for several days now: To develop a special Linux distribution for Raspberry Pi with well integrated Lazarus / Free Pascal.
This is exactly what I am hoping for. I would even go one step further. PI authors have not yet decided about their standard development environment, so if there are enough voices of Pascal community heard on PI website then they might even consider to put Lazarus at least as an alternative if not the main development tool. I think that the time has finally come to fully exploit the wrong myth about Pascal as just an education language and push it to the limits as our advantage. You want an easy development tool for learning kids programming? We have the best thing ever! If we are lucky, then PI might even become a new Arduino like phenomena and Lazarus gains tens of thousands of new developers. Imagine that!
Title: Re: Raspberry Pi - 25$ ARM Linux HDMI board
Post by: jwdietrich on December 05, 2011, 07:23:00 pm
You want an easy development tool for learning kids programming? We have the best thing ever! If we are lucky, then PI might even become a new Arduino like phenomena and Lazarus gains tens of thousands of new developers. Imagine that!

I fully agree with you.

We will be successful if we help others to be successful. In other words: if we create an environment that makes software development rapid, easy and reliable then we don't have much trouble to convince potential users.

My vision would be to offer an SD card containing a working Linux distribution for PI with pre-installed Lazarus/FPC. This might either be sold for a modest price or offered as an image file for free download.

Then for users the way to success would have four steps:

1. Buy a Raspberry PI
2. Buy or download the Linux/Lazarus distribution for PI
3. Insert the SD card
4. Start programming.
Title: Re: Raspberry Pi - 25$ ARM Linux HDMI board
Post by: jwdietrich on December 15, 2011, 07:20:20 pm
As just noted on the Raspberry PI homepage, an IO extension, the Gertboard, will be available in order to control motors, run sensors and do other stuff that is essential for control purposes.

See http://www.raspberrypi.org/archives/411 for details.
Title: Re: Raspberry Pi - 25$ ARM Linux HDMI board
Post by: jwdietrich on December 19, 2011, 01:04:11 am
There are discussions on the PI forum on the programming language of choice:

http://www.raspberrypi.org/forum?mingleforumaction=viewtopic&t=1108 is a thread about the best first language

http://www.raspberrypi.org/forum?mingleforumaction=viewtopic&t=974 is a dedicated discussion on Free Pascal and partly Lazarus.
Title: Re: Raspberry Pi - 25$ ARM Linux HDMI board
Post by: jwdietrich on January 09, 2012, 12:17:12 am
A new forum system has been installed on the PI website.

The two threads mentioned above are now available at the following locations:

Title: Re: Raspberry Pi - 25$ ARM Linux HDMI board
Post by: avra on January 09, 2012, 03:41:36 pm
Thanks for the links. I hope to see more people participate there...
Title: Re: Raspberry Pi - 25$ ARM Linux HDMI board
Post by: jwdietrich on February 10, 2012, 12:01:59 am
There are two good news:

The first series of boards is in production, it is expected to be finished on February 20th, see http://www.raspberrypi.org/archives/615.

At http://dmkenr5gtnd8f.cloudfront.net/wp-content/uploads/2012/02/BCM2835-ARM-Peripherals.pdf Broadcom has published an abbreviated datasheet of the SoC, this could ease the development of software, including a Lazarus port.
Title: Re: Raspberry Pi - 25$ ARM Linux HDMI board
Post by: xinyiman on March 02, 2012, 10:26:25 am
Someone managed to get one!? If you managed to turn us over some software written in Lazarus?!
Title: Re: Raspberry Pi - 25$ ARM Linux HDMI board
Post by: avra on March 02, 2012, 11:16:11 am
10k units sold in just few hours, with limit of just 1 unit per person! Farnel had web site access problems when openings started. RaspberryPi will indeed be bigger then Arduino.
Quote
Following the launch of Raspberry Pi Board B this morning, we've seen incredible levels of interest. Our initial stock has—amazingly—already sold out!
http://www.element14.com/community/groups/raspberry-pi

XBMC media center has already been ported and we can watch full 1080p on HDMI:
http://hackaday.com/2012/01/24/raspberry-pi-runs-xbmc-reliably-decodes-1080p
Title: Re: Raspberry Pi - 25$ ARM Linux HDMI board
Post by: marcov on March 02, 2012, 12:31:20 pm
It was already sold out. I'm now waiting till Farnell gets new stock (and see the value of their bundled offerings (with wifi dongles, flash cards etc)). Then I'll get my boss to order one :-)
Title: Re: Raspberry Pi - 25$ ARM Linux HDMI board
Post by: BioHazard on March 07, 2012, 05:13:13 pm
It was already sold out. I'm now waiting till Farnell gets new stock (and see the value of their bundled offerings (with wifi dongles, flash cards etc)). Then I'll get my boss to order one :-)

Cant wait till Raspberry Pi runs Free Pascal compiled code

 :-[
Title: Re: Raspberry Pi - 25$ ARM Linux HDMI board
Post by: felipemdc on March 07, 2012, 05:32:42 pm
What software does it come with?
Title: Re: Raspberry Pi - 25$ ARM Linux HDMI board
Post by: DirkS on March 07, 2012, 06:22:11 pm
What software does it come with?
Euh... none!

But you can download different SD card images: http://www.raspberrypi.org/downloads
See also http://elinux.org/RaspberryPiBoard

Gr.
Dirk.
Title: Re: Raspberry Pi - 25$ ARM Linux HDMI board
Post by: BioHazard on March 07, 2012, 08:51:40 pm
What software does it come with?
In this days they were finishing work on fedora distro named "fedora remix" for raspberry pi
Title: Re: Raspberry Pi - 25$ ARM Linux HDMI board
Post by: IndianaJones on March 08, 2012, 12:10:45 am

I prefer Debian distribution for arm. I ordered a B model and vey  curious to install a Debian image and ofcourse to install FreePascal/Lazarus onto this platform.
Here is the link for Debian arm distribution.
http://www.debian.org/ports/arm/ (http://www.debian.org/ports/arm/)
Title: Re: Raspberry Pi - 25$ ARM Linux HDMI board
Post by: avra on March 09, 2012, 04:07:32 am

I prefer Debian distribution for arm. I ordered a B model and vey  curious to install a Debian image and ofcourse to install FreePascal/Lazarus onto this platform.
Here is the link for Debian arm distribution.
http://www.debian.org/ports/arm/ (http://www.debian.org/ports/arm/)

This is from Wiki:
Ubuntu was initially planned to be the default distribution, but due to issues with newer releases of Ubuntu and the ARM processor used in the Raspberry Pi, Ubuntu cannot commit to support Raspberry Pi at this time.
Eben says (regarding default distribution): "Either Ubuntu or Fedora; the main point in Fedora’s favour is their ongoing support for ARMv6 architectures."

http://elinux.org/RPi_Distributions
Title: Re: Raspberry Pi - 25$ ARM Linux HDMI board
Post by: Paul Breneman on May 25, 2012, 08:11:18 am
I just updated the minimal Free Pascal and fpGUI ARM distro on this page:
  http://www.turbocontrol.com/easyfpgui.htm

That might just be the easiest way to try Free Pascal and a GUI program on the Raspberry Pi, which I hope to do as soon as a friend gets delivery on one.
Title: Re: Raspberry Pi - 25$ ARM Linux HDMI board
Post by: avra on October 17, 2012, 10:36:03 am
For those who missed it, here are all dependencies needed to make your first Raspberry PI gui application (including info about Raspberry PI emulator for Windows if you don't have real hardware yet):
http://www.pilotlogic.com/sitejoom/index.php/forum/other-cross-build-targets/2238-my-first-raspbian-app#2420
Title: Re: Raspberry Pi - 25$ ARM Linux HDMI board
Post by: mariuz on November 09, 2012, 12:28:22 pm
Got my raspberry with 512 m of ram  :o , it feels like an pentium3 @ 500
I will start LXDe and lazarus today :)
For the moment i have installed the Firebird 2.5.2 super server
http://mapopa.blogspot.ro/2012/11/debian-and-raspberry-pi-love-small-arm.html

Title: Re: Raspberry Pi - 25$ ARM Linux HDMI board
Post by: BigChimp on November 09, 2012, 12:40:18 pm
@mariuz: nice. You're probably also the one who got Firebird examples updated? Thanks for that!
Title: Re: Raspberry Pi - 25$ ARM Linux HDMI board
Post by: mariuz on November 11, 2012, 05:39:40 pm
Yes i do the examples updates

Here are some screenshots with lazarus ide on pi but with ssh -x
http://mapopa.blogspot.ro/2012/11/lazarus-ide-on-raspberry-pi.html

I don't have monitor for the moment attached to the pi

The ide doesn't eat too much ram :)
VIRT | RES | SHR
127m  42m  18m
Title: Re: Raspberry Pi - 25$ ARM Linux HDMI board
Post by: jwdietrich on December 07, 2012, 07:01:55 pm
As it is quite easy now to install Lazarus on the Raspberry Pi I have written a short article in the Lazarus wiki at http://wiki.freepascal.org/Lazarus_on_Raspberry_Pi.

Please edit and extend as required.
Title: Re: Raspberry Pi - 25$ ARM Linux HDMI board
Post by: Bfrost on January 08, 2013, 09:25:21 pm
Thanks for your wiki on installing Lazarus on the Pi. I've been using Delphi since it was born and this is my first venture into Lazarus and Linux. I have a couple of questions as a complete beginner with Lazarus and the Pi...

1. I made a simple one button form "hello world" program. It works fine but takes around 60s to compile. Is this typical? Can I improve this somehow? If not, are there instructions for cross compiling and debugging from Windows to the Pi?

2. I've located the output of the above program in the TMP folder and using file manager it runs when I open it (outside of Lazarus). I will eventually want to start my (GUI) program up at boot and I get 'gtk-warning cannot open display' if I run it from the root prompt. I've tried the various suggestions for this error on the net but without success. How would I run my GUI program at boot time please?

Many thanks for any replies.
Brian
Title: Re: Raspberry Pi - 25$ ARM Linux HDMI board
Post by: geno on January 09, 2013, 12:34:19 am
Welcome to the forum, Bfrost!

Quote
works fine but takes around 60s to compile. Is this typical? Can I improve this somehow?

1.  Unfortunately, the compile times on the Raspberry Pi are a little long, after all, it is not near as fast as your desktop.  You might try removing the debug info before compiling [Projects -> Project Options -> Linking] uncheck 'Generate Debugging Info' .

Quote
are there instructions for cross compiling and debugging from Windows to the Pi?

  Cross compiling has been batted around on this forum many times - do a search for - 'arm cross compile' -- also search the wiki; I know there is at least one tutorial in there.

Quote
I've located the output of the above program in the TMP folder

2.  The output is in the /tmp folder because you probably did not save your project before compiling - /tmp is the default location, move your project under /home/pi/project_name; especially since you want to run it on startup, which leads to your last question.

Quote
I've tried the various suggestions for this error on the net but without success. How would I run my GUI program at boot time please?

  Once again, do a little searching - on the raspberrypi.org forums.  A quick search lead me to
http://www.raspberrypi.org/phpBB3/viewtopic.php?t=28200&p=254387 (http://www.raspberrypi.org/phpBB3/viewtopic.php?t=28200&p=254387)..  This discussion was centred around raspbian-wheezy and LXDE; since you did not mention your linux flavor or xwindow desktop manager, this is as good a starting place as any.

  I know I haven't given you any explicit answers to your questions, but you will find here that you will be encouraged to do a little research, as well as share your sources of information (or lack of).  Feel free to post back here if you still cannot find what you are looking for - there are a lot of of smart people here who are willing to help.  [btw - I'm not in the smart people group - I just like trolling  :D ]

  Also, please include your operating system and Lazarus/FPC version information in your posts so others may be able to find a more targeted solution for you.  I hope this helps you.

  regards,
     geno
Title: Re: Raspberry Pi - 25$ ARM Linux HDMI board
Post by: Bfrost on January 09, 2013, 11:41:24 am
Thanks for your kind help gino. Regards, Brian.
Title: Re: Raspberry Pi - 25$ ARM Linux HDMI board
Post by: croc on November 14, 2014, 12:20:43 pm
Hello,

I have question. I have raspberry pi version with 256mb and 16gb sd kaart. I installed lazarus and it boots up correctly in GUI. When I compile a simple example I get the following error: lazarus error can't call the assembler, error -1 switching to external assembling.

I already change the memory split to 16mb with
sudo raspi-config option 8 memory split to 16mb.

what is missing or went wrong ?
Title: Re: Raspberry Pi - 25$ ARM Linux HDMI board
Post by: marcov on November 14, 2014, 01:01:06 pm
what is missing or went wrong ?

My guess is that you didn't set up your distribution for development. At least binutils and make, and maybe some other development packages (glibc-devel) might be missing.

Most distributions have some meta package to load them all at once, I think debian and derivatives uses "build-esssentials" or so.
Title: Re: Raspberry Pi - 25$ ARM Linux HDMI board
Post by: croc on November 15, 2014, 12:03:18 am
That will be fine with glibc-dev but that should in debian I think libc6-dev but my systems already has the newest version installed, so I don't think that will be the problem. What should it be than?
Title: Re: Raspberry Pi - 25$ ARM Linux HDMI board
Post by: Leledumbo on November 15, 2014, 05:35:33 pm
That will be fine with glibc-dev but that should in debian I think libc6-dev but my systems already has the newest version installed, so I don't think that will be the problem. What should it be than?
The assembler is not included there. You should try compiling a hello world program first to ensure the compiler, assembler and linker are all found.
Title: Re: Raspberry Pi - 25$ ARM Linux HDMI board
Post by: marcov on November 15, 2014, 05:40:54 pm
That will be fine with glibc-dev but that should in debian I think libc6-dev but my systems already has the newest version installed, so I don't think that will be the problem. What should it be than?

That's only one of three packages that I named. I said make, binutils and (g)libc-devel. (name distro dependent). Probably add GDB for good measure, if only to get a traceback.

Title: Re: Raspberry Pi - 25$ ARM Linux HDMI board
Post by: croc on November 15, 2014, 09:10:56 pm
@ Marcov,

I checked all 3 and I get the following answer: newest is already installed. I installed GDB and this wasn't installed yet. What should I do now ?
TinyPortal © 2005-2018