Short-bus / pilomar

RaspberryPi based miniature observatory
https://shortbus.blog/
GNU General Public License v3.0
63 stars 14 forks source link

Can pilomar run on RPi4B with Bookworm o/s? #58

Closed Short-bus closed 5 months ago

Short-bus commented 5 months ago

Pilomar currently (Jan.2024) runs on Buster O/S 32bit. The Bullseye release caused too many dependencies to break, so is not used. Tests show that pi-lomar can be run on RPi5 with Bookworm 64bit. Can the same be done on an RPi4? I think that libcamera will be an issue, but hopefully it's relatively straightforward to upgrade to that because the libcamera-jpeg command seems to be backwards compatible with the older raspistill command.

Short-bus commented 5 months ago

Converted the hardcoded raspistill commands into templates. These are held in the parameter file. When the file is initialised the templates are populated with either raspistill or libcamera-still command templates. The decision is made currently based upon the operating system. The astrocamera() class uses the templates and populates runtime values as needed. On Bookworm O/S the separate pidng extract of the raw bayer data is nolonger needed, it's available now as a command line option on libcamera-still.

This is probably the main barrier to running pi-lomar on Bookworm 64bit on the RPi4B, initial tests suggest this gets everything working OK.

This does NOT clear the software to run on a RPi5 yet because that has additional GPIO changes to handle.

The initial build script is much simpler too.

Short-bus commented 5 months ago

Initial support for Bookworm 64bit on RPi4B has been running now for a couple of weeks on a test build. Have added features into the 2024-01-Issues branch ready for merging back to the main branch.

Short-bus commented 5 months ago

Done.