News: 0176794037

  ARM Give a man a fire and he's warm for a day, but set fire to him and he's warm for the rest of his life (Terry Pratchett, Jingo)

Raspberry Pi Announces New Tool for Customized Software Images (raspberrypi.com)

(Sunday March 23, 2025 @12:34PM (EditorDavid) from the easy-as-Pi dept.)


"For developers and organisations that require a custom software image, a flexible and transparent build system is essential," according to [1]an announcement Friday at Raspberry Pi.com .

"[T]o support these customers, we have created [2]rpi-image-gen , a powerful new tool designed to put you in complete control of your Raspberry Pi images."

> If you're building an embedded system or an industrial controller, you'll need complete control over the software resident on the device, and home users may wish to build their own OS and have it pre-configured exactly the way they want... rpi-image-gen is an alternative to [3]pi-gen , which is the tool we use to create and deploy the Raspberry Pi OS distribution. rpi-image-gen... offers a very granular level of control over file system construction and software image creation... [B]eing able to help reduce software build time, provide guaranteed ownership of support, and reuse standard methodologies to ensure authenticity of software were all of paramount importance, and among the reasons why we created a new home-grown build tool for Raspberry Pi devices...

>

> There is a small number of [4]examples in the tree which demonstrate different use cases of rpi-image-gen [including the lightweight image [5] slim and [6] webkiosk for booting into browser kiosk mode]. All create bootable disk images and serve to illustrate how one might use rpi-image-gen to create a bespoke image for a particular purpose. The number of examples will grow over time and we welcome suggestions for new ones... Visit the [7]rpi-image-gen GitHub repository to get started. There, you'll find documentation and examples to guide you through creating custom Raspberry Pi images.

Some technical details from the announcement.

"Similar to pi-gen, rpi-image-gen leverages the power, reliability, and trust of installing a Debian Linux system for the device. However, unlike pi-gen, rpi-image-gen introduces some new concepts [profiles, image layouts, and config] which serve to dictate the build footprint and installation."

The tool also lets you exclude from your package "things that would otherwise be installed as part of the profile."

The tool's [8]GitHub repository notes that it also allows you output your software bill of materials (SBOM) "to list the exact set of packages that were used to create the image." And it can even generate a list of CVEs identified from the SBOM to "give consumers of your image confidence that your image does not contain any known vulnerabilities."



[1] https://www.raspberrypi.com/news/introducing-rpi-image-gen-build-highly-customised-raspberry-pi-software-images/

[2] https://github.com/raspberrypi/rpi-image-gen

[3] https://github.com/RPi-Distro/pi-gen

[4] https://github.com/raspberrypi/rpi-image-gen/tree/master/examples

[5] https://github.com/raspberrypi/rpi-image-gen/tree/master/examples/slim

[6] https://github.com/raspberrypi/rpi-image-gen/tree/master/examples/webkiosk

[7] https://github.com/raspberrypi/rpi-image-gen

[8] https://github.com/raspberrypi/rpi-image-gen



Buildroot (Score:1)

by MarginallyStable ( 4729547 )

Buildroot

Too Late (Score:2)

by darkain ( 749283 )

This feels too little, too late.

The RPi4 and RPi5 are normal UEFI devices now where you can walk through a normal installer process by booting off USB, just like a normal desktop. And from this point, it is fairly trivial to use a -standard- method of generating a disk image just like you would any other PC. Do the install on a single machine, configure it to your liking, and image that disk. You don't need device-dependent proprietary tooling to do this, it has been the norm for literally decades, and work

"For a couple o' pins," says Troll, and grins,
"I'll eat thee too, and gnaw thy shins.
A bit o' fresh meat will go down sweet!
I'll try my teeth on thee now.
Hee now! See now!
I'm tired o' gnawing old bones and skins;
I've a mind to dine on thee now."

But just as he thought his dinner was caught,
He found his hands had hold of naught.
Before he could mind, Tom slipped behing
And gave him the boot to larn him.
Warn him! Darn him!
A bump o' the boot on the seat, Tom thoguht,
Would be the way to larn him.

But harder than stone is the flesh and bone
Of a troll that sits in the hills alone.
As well set your boot to the mountain's root,
For the seat of a troll don't feel it.
Peel it! Heal it!
Old Troll laughed, when he heard Tom groan,
And he knew his toes could feel it.

Tom's leg is game, since home he came,
And his bootless foot is lasting lame;
But Troll don't care, and he's still there
With the bone he boned from its owner.
Doner! Boner!
Troll's old seat is still the same,
And the bone he boned from its owner!
-- J. R. R. Tolkien