WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Using piCore on RaspberryPi Zero with custom UI  (Read 2808 times)

Offline raysan

  • Newbie
  • *
  • Posts: 2
Using piCore on RaspberryPi Zero with custom UI
« 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


Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11178
Re: Using piCore on RaspberryPi Zero with custom UI
« Reply #1 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/

Offline polikuo

  • Hero Member
  • *****
  • Posts: 714
Re: Using piCore on RaspberryPi Zero with custom UI
« Reply #2 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 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 to find out more

Offline raysan

  • Newbie
  • *
  • Posts: 2
Re: Using piCore on RaspberryPi Zero with custom UI
« Reply #3 on: September 10, 2018, 04:21:35 AM »
Rich, polikuo, many thanks for your answers! :)