Tiny Core Linux

Tiny Core Base => Raspberry Pi => Topic started by: raysan on August 03, 2018, 04:41:44 AM

Title: Using piCore on RaspberryPi Zero with custom UI
Post by: raysan on August 03, 2018, 04:41:44 AM
Hello all,

I've developed a small self-contained games-dev library raylib (www.raylib.com). One of the key features of this library is the comlete avoidance of external dependencies (beside OS strictly required ones), actually, on Raspberry Pi platform it doesn't even require X11 libraries, only Broadcomm VC4 lib and EGL/OpenGLES libs. Library itself is also very fast.

Now, I'm working on a new project, it's a small retro-videogames console based on the RaspberryPi Zero. I'm implementing all the UI using raylib but I need a lightweight and fast kernel to run my UI over it... and I thought about piCore. I'm not an expert on Linux distributions and customization, just a user, so I have some questions:

1) Does piCore support VC4 drivers and OpenGL libraries like Raspbian?

2) Does minimal piCore installation include dev libraries (libc, pthreads, ld...)?

3) How long could it take to start the minimum required system?

4) Could I initialize a program automatically after start? I imagine yes...

Well, thanks for your answers! If anyone is interested to help with that project, it's welcomed! :)

Regards,

Ray

Title: Re: Using piCore on RaspberryPi Zero with custom UI
Post by: Rich on August 03, 2018, 05:35:30 AM
Hi raysan
In regards to 1 and 2, available packages are listed here:
http://tinycorelinux.net/9.x/armv6/tcz/
Title: Re: Using piCore on RaspberryPi Zero with custom UI
Post by: polikuo on August 03, 2018, 07:23:17 AM
Hi raysan

To keep the answers short

1) Yes for opengl (glu-dev.tcz)
    Not sure for VC4

2) No, you'll need compiletc.tcz which is equivalent to build-essential on debian
Code: [Select]
tce-load -w compiletc # to wget (download) the extnsions, only needed once if you have setup properly
tce-load -i compiletc # whenever you need it

3) Follow the instructions HERE (http://tinycorelinux.net/9.x/armv6/releases/RPi/README) to expand your partition and you're good to go
    For an experienced user, it only takes a few minutes

4) Yes, edit /opt/bootlocal.sh if you need super user privilege,
    otherwise try putting scripts in ~/.X.d/
    Read the book (http://tinycorelinux.net/book.html) to find out more
Title: Re: Using piCore on RaspberryPi Zero with custom UI
Post by: raysan on September 10, 2018, 04:21:35 AM
Rich, polikuo, many thanks for your answers! :)