BootToGP - minimal Linux to run a GP project as embeded app?

Post your nifty GP projects here!

Moderator: MSandro

Post Reply
MSandro
Posts: 137
Joined: Jul 26th, '17, 21:12

BootToGP - minimal Linux to run a GP project as embeded app?

Post by MSandro » Jul 12th, '18, 22:32

Hello everyone!
I have a very curious idea. Here is the history summarized:
A friend asked me if he could make a graphical user interface in GP for his Python written home control. I said yes, GP could communicate via serial ports with the Python program. I asked more closely how he imagines it. He meant a minimalist system for a RaspberryPi to run GP projects as embedded application.

This situation made me realize that this could perhaps be used for much more. Such a system could be useful for many purposes:
> (Interactive) presentations
> simple graphical interfaces to control something
> OS simulations (this might encourage a variety of kids and teenagers to deal with Linux - many scratchers seem to like OS simulations - so this system might be useful for educational purposes)


Since I am a well-versed Linux user, it would certainly be feasible for me.

I've already thought about the system:
> Debian 9 (in its minimalist design as a substructure)
> A version for Rasperrys based on Raspbian
> Fluxbox as a window manager with Xorg as a display server
> An SFTP Server (or maybe other alternatives) where the GP projects can be exchanged over the network
> It should not be a live system for saving changes
Bildschirmfoto_2018-07-13_23-16-03.png
I have already roughly realized the whole situation for my friend's situation. The system requires less than 1.5 GB of storage and needs than 512 MB of RAM.



I hope this post has aroused the interest of one or the other. Of course, I'm also open to suggestions.
Not sure where I should place this post, but it is a kind of project :D

User avatar
Calloway
Posts: 42
Joined: Apr 30th, '18, 00:28
Location: Eastern United States

Re: BootToGP - minimal Linux to run a GP project as embeded app?

Post by Calloway » Jul 20th, '18, 17:48

I'm not really sure I understand the implications of this :/
What would be the difference for this if someone can just download linux and run GP later on...

User avatar
Picochilla
Posts: 27
Joined: Sep 23rd, '17, 17:44

Re: BootToGP - minimal Linux to run a GP project as embeded app?

Post by Picochilla » Jul 20th, '18, 19:32

Calloway wrote:
Jul 20th, '18, 17:48
I'm not really sure I understand the implications of this :/
What would be the difference for this if someone can just download linux and run GP later on...
If I understand right correctly, MSandro tries to build a linux installer to install a minimalistic system with buildin GP support to run GP projects very easy as a kind of embedded application.

I think this sounds nice. When will the first version be finished? I'm interested in a 32bit version for my Intel-HDMI-Stick. I would also be pleased about native support for the GPIO touchscreen displays of the Raspberry Pi.

MSandro
Posts: 137
Joined: Jul 26th, '17, 21:12

Re: BootToGP - minimal Linux to run a GP project as embeded app?

Post by MSandro » Jul 21st, '18, 09:33

Picochilla wrote:
Jul 20th, '18, 19:32
If I understand right correctly, MSandro tries to build a linux installer to install a minimalistic system with buildin GP support to run GP projects very easy as a kind of embedded application.

I think this sounds nice. When will the first version be finished? I'm interested in a 32bit version for my Intel-HDMI-Stick. I would also be pleased about native support for the GPIO touchscreen displays of the Raspberry Pi.
Right. Here is how it should work in v0.1:
1. System starts (about 3 seconds in my VM)
2. GP project is loaded from the SFTP folder
3. GP project appears in fullscreen on the screen

The system allows you to boot to your GP project in a maximum of 10 seconds.

What I want to implement until I'll release v0.1:
> some keyboard shortcuts for debugging
° reload project
° enter console
> some shell commands / scripts for debugging via SSH:
° reload project
° ...

What would be better - loading the porjects from the gpp file or execute a compiled/exported project? I think gpp files would be better because to export linux-executibles the user needs to export his project on a linux syste, The advantage of executable files would be that you could use any modified versions of GP. To use gpp and allow modified gp libraries I have to share the lib folder too.


I think I would be able to release v0.1 32bit in the next two weeks. Raspberry Pi touchscreen displays: not sure if this is posible but I'll try.

Post Reply