Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8093

Raspberry Pi OS • Re: how to create my own raspios-bookworm-arm64-full.img.xz

$
0
0
can anyone tell me how to get this?
The official way to do this is to use rpi-image-gen

https://github.com/raspberrypi/rpi-image-gen

To run it just do:

Code:

sudo ./install_deps.sh./build.sh -D example/slim
This will build an image (it takes about two minutes on a Pi 5) and will put it into work/deb12-arm64-min/artefacts/deb12-arm64-min.img

To modify it, look at the profile that that references in examples/slim/profile/v8-svelte

What you now want to do is add a new "layer" (meta) to that profile, mine is called motion.yaml

Code:

---name: motionmmdebstrap:  packages:    - rpicam-apps-lite    - libbrotli1    - libcurl4    - libldap-2.5-0    - libnghttp2-14    - librtmp1    - libsasl2-2    - libsasl2-modules-db    - libssh2-1    - python3-pip    - git  customize-hooks:    - git clone https://github.com/Motion-Project/motion; cd motion; autoreconf -fiv; ./configure --prefix=$1/usr; make; make install
This does the equivalent of apt installing the packages, followed by locally cloning the motion repo and building it on the host (you will need to run this on a Pi to make that work). The $1 in the configure line is actually the path to the filesystem as it is being created, so this is telling configure to install the application into the /usr/bin directories on the destination.

Hopefully that should get you far enough along to do something relatively simple, there are lots of other examples (web kiosk for example) which can be used...

Statistics: Posted by gsh — Fri Jul 18, 2025 12:02 pm



Viewing all articles
Browse latest Browse all 8093

Trending Articles