This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Documentation for building OpenPlotter images?
#1
Hi,

I (as in Hat Labs) have been planning on starting to sell pre-configured Raspberry Pi computers for a plug-and-play OpenPlotter experience. I would prefer to use OpenPlotter as is but in practice would want to create a new image with a few additions and/or modifications required for the out-of-the-box operation. In particular, I'd need to install the SH-RPi daemon, make a few /boot/firmware/config.txt modifications and possibly add Hat Labs branding to the desktop wallpaper. And probably some other similar things as well.

Is there any documentation for building images yourself? I found the pi-gen repo and the openplotter64 branch which looks like the right thing to poke. Is there any practical advice, though? :-)
Reply
#2
You can just apply your customizations to any existing image.
CircleCi supports armhf and arm64 natively and it’s very fast for builds.

For how to do that you can take a look at code in
https://github.com/bareboat-necessities/lysmarine_gen

The instructions for customizing images are on that page under
“Steps to create your own BBN Marine OS image”

The starting point is .circleci folder of that GitHub repository.
Download BBN Marine OS for raspberry pi 

https://bareboat-necessities.github.io/m...at-os.html

Video of actual installation:

https://www.youtube.com/watch?v=3zMjUs2X3qU


Reply
#3
(2024-03-09, 06:38 PM)mgrouch Wrote: You can just apply your customizations to any existing image.
CircleCi supports armhf and arm64 natively and it’s very fast for builds.

Thanks, but I was asking specifically about OpenPlotter and pi-gen.
Reply
#4
hi @mairas

it's not difficult
1. you clone a pi-gen repository of openplotter https://github.com/openplotter/pi-gen ( there are many branches. eg openplotter64 -> OP4, bullseye-arm64 -> OP3)
2. You install required packages. You find info in README
3. It is best to define stage7, for example
4. Create you build.conf file ( env variables you can find in README)
5 If you are ready
Code:
sudo ./build.sh -c yourbuild.conf

Have a lot of fun

P.S. If you would like to bring SH-RPi also to AvNav Headless please contact me via PM
Reply
#5
Monitors. OpenPlotter is designed to be used on monitors with a minimum resolution of 800x480 and 7” in size.
Reply
#6
(2024-03-11, 07:03 PM)BlackSea Wrote: hi @mairas

it's not difficult
1. you clone a pi-gen repository of openplotter https://github.com/openplotter/pi-gen ( there are many branches. eg openplotter64 -> OP4, bullseye-arm64 -> OP3)
2. You install required packages. You find info in README
3. It is best to define stage7, for example
[...]

P.S. If you would like to bring SH-RPi also to AvNav Headless please contact me via PM

Thanks! I actually figured that much already when looking at the openplotter64 branch contents. You're right, it's not difficult. Big Grin I'll just be using Docker/Podman for building to maintain a consistent build environment (and also for building on a Mac...). That would also allow moving the builds to a CI pipeline.

I wasn't aware of the AvNav images. Cool stuff!

Regarding the SH-RPi daemon, its installer script is messy and not suited for this kind of use. The script not only installs the Python package but also interactively sets up I2C settings, CAN interfaces etc. I'm thinking of publishing the Python package to PyPi and pulling the package from there to the installer. Any other settings should probably be done separately in pi-gen scripts. Does this sound like a sensible plan to you?
Reply
#7
Are the configuration files used for building the different OP variants available?
Reply
#8
Next question: Why is the wolfram-engine (mathematica) package license acceptance disabled in the openplotter64 branch? Builds failed until I reverted that change.
Reply
#9
Because we ignore stage5 and wolfram-engine is there
Reply
#10
We are still working on OpenPlotter v4.x.x and openplotter/pi-gen will still change a lot. Do not release your image to production until OP4 is stable.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)