mainsail-crew / crowsnest

Webcam Service for multiple Cams
GNU General Public License v3.0
302 stars 71 forks source link

do_memory_split not found in raspi-config #219

Closed jedahan closed 5 months ago

jedahan commented 6 months ago

What happened

raspi-config removed do_memory_split (not sure exactly when, but likely when bookworm was released).

During the install, it failed with the following error

Build 'camera-streamer' ... [SUCCESS]
/usr/bin/raspi-config: 3069: do_memory_split: not found
Trying to set minimum GPU Memory to 160 MB ... [SKIPPED]
    ==> Tool 'raspi-config' not found ...

I am worried the install is now only partially working.

What did you expect to happen

To only run raspi-config do_memory_split when on older versions of raspberry pi OS

How to reproduce

On a fresh version of the latest raspberry pi os:

git clone https://github.com/mainsail-crew/crowsnest
cd crowsnest
sudo make install BASE_USER=$USER

Additional information

No response

jedahan commented 6 months ago

Also the Tool 'raspi-config' not found is a little bit of a misleading error - raspi-config was found, and ran, but errors out.

jedahan commented 6 months ago

https://github.com/mainsail-crew/crowsnest/blob/f7ac6aa298143f0019eae9b2b2be8039196ebeda/tools/libs/set_gpumem.sh#L37

Adding another check for lsb_release or something else might be best. Or just making it a non-fatal error if it isn't already.

mryel00 commented 6 months ago

You are right and I always forget to fix this line of code.... The error is non-lethal as you can see on the yellow [SKIPPED] message. So don't worry, everything should work without problems.