593 Commits

Author SHA1 Message Date
Richard Oliver 2e5d13e1b9 export-image: generate bmap file if bmaptool is available 2025-03-14 14:33:23 +00:00
Jonathan Bell f621f9e279 Align partition start boundaries to 8M
Higher-capacity cards (particularly Raspberry Pi 128GB A2) have an 8MB
preferred erase size, which is a good indication of the flash block size.

Other large cards may also benefit.

Signed-off-by: Jonathan Bell <jonathan@raspberrypi.com>
2025-03-13 15:58:40 +00:00
Stefan Becker e071d0de36 Switch docker build to Debian Bookworm 2025-01-22 13:55:04 +00:00
Stefan Becker fb5180d3de Dockerfile: fix ENV warning (#791)
Newer versions of docker generate the following warning

   - LegacyKeyValueFormat: "ENV key=value" should be used instead of
     legacy "ENV key value" format (line 4)
2025-01-02 13:26:42 +00:00
Serge Schneider fc280356b1 Escape the ? expression in sed
Fixes #817, fixes #820
2025-01-02 09:27:21 +00:00
marcone ca08900c66 README.md: Fix typo (#813) 2024-11-28 11:05:29 +00:00
Serge Schneider 8e30e79434 stage5: install code-the-classics-2 2024-11-22 14:38:27 +00:00
Serge Schneider f2d397f3ba stage2: set publish-workstation to yes in avahi-daemon.conf 2024-11-21 15:57:13 +00:00
Serge Schneider 13c185cb79 Switch default journald storage to volatile 2024-11-21 12:43:31 +00:00
Serge Schneider b15527e15b Fix bluetooth rfkill unblock - 0 is unblocked 2024-11-19 12:45:26 +00:00
Serge Schneider c8d0e0b0bb Remove rc.local
raspberrypi-sys-mods adds /etc/issue.d/IP.issue instead
2024-11-11 13:32:41 +00:00
Serge Schneider 449d43e182 Exclude ifupdown as it slows down boot 2024-11-11 10:59:20 +00:00
Matt Liggett 8fd4886e10 Minor spelling and formatting tweaks. (#807) 2024-11-11 08:02:33 +00:00
Serge Schneider d7c4d3078c Bump default swap to 512M 2024-11-01 11:43:15 +00:00
Serge Schneider fba95332df Build initial initramfs with 'most' modules, then change the setting to 'dep' 2024-10-31 16:20:18 +00:00
Serge Schneider c6d303831b Remove wpa_supplicant tweaks 2024-10-31 13:21:58 +00:00
Serge Schneider e86b901e25 Rework wlan blocking 2024-10-31 13:21:00 +00:00
Serge Schneider b91ab524b0 README.md: Remove obsolete warning 2024-10-30 12:46:21 +00:00
Serge Schneider 9dbd88221c README.md: Fix TIMEZONE_DEFAULT description 2024-10-30 11:33:11 +00:00
Serge Schneider 536dd583b4 README.md: Clarify early on that armhf and arm64 images should be build from different branches. 2024-10-30 11:32:47 +00:00
Serge Schneider 1baee51b8c Improve PAGESIZE check and recommendation
Setting kernel=kernel8.img while auto_initramfs=1 currently still loads initamfs_2712.
This can cause issues on systems which require drivers compiled as modules to boot.
Until this is fixed in the bootloader, users should specify initramfs options as well.

Also, move the PAGESIZE check before the arch-test checks to make the output clearer.
2024-10-30 10:12:21 +00:00
Serge Schneider df6d0e2a25 Add kernel page size check 2024-10-29 15:32:19 +00:00
Serge Schneider 2aa7133eea Create WORK_DIR earlier
The exit trap uses the log function which writes to a log file in WORK_DIR.
2024-10-29 15:30:58 +00:00
Matthew Lear b8e497cf21 Allow export image customisation (#801)
* Allow export image customisation

Add new variable EXPORT_CONFIG_DIR to set the location of the scripts
pigen will run when exporting an image. Setting this is optional. If
not specified, the current location is retained.

By utilising STAGE_LIST AND EXPORT_CONFIG_DIR, a user can construct
custom images out-of-tree without modification to any defaults.

(cherry picked from commit e5e6ceeaf46f52f77b759d3d35aef8bbd0a69c8b)

* Shellcheck and style fixes

Fixed shellcheck warnings and made the changes more consistent with the surrounding code

---------

Co-authored-by: Serge Schneider <serge@raspberrypi.com>
2024-10-29 10:15:10 +00:00
Serge Schneider 9dfbb1546d Update release notes 2024-10-28 14:58:23 +00:00
Serge Schneider f165f8a3a8 Update release notes 2024-10-28 14:58:23 +00:00
Serge Schneider 9e65ea75d8 Update release notes 2024-10-28 14:58:23 +00:00
Serge Schneider 8f88b83a9a stage4: install squeekboard 2024-10-28 14:58:23 +00:00
Serge Schneider 674c30e864 Replace python3-rpi.gpio with python3-rpi-lgpio 2024-10-28 14:58:23 +00:00
Serge Schneider a766e71ff1 stage3: switch from arandr to raindrop 2024-10-28 14:58:23 +00:00
Serge Schneider 40a5c1ceed stage3: switch to labwc by default 2024-10-28 14:58:23 +00:00
Serge Schneider 7fe9ae553c stage3: Switch chromium package and remove unnecessary steps 2024-10-28 14:58:23 +00:00
Serge Schneider 21e8e54d22 export-image: generate sbom file if syft is available 2024-10-28 14:58:23 +00:00
Sébastien Le Ray dca93d24c7 README: add specific stage build for Docker (#777) 2024-07-09 10:08:38 +01:00
Serge Schneider 0b115f302a stage4: Pre-install rpi-connect 2024-06-24 14:01:25 +01:00
Serge Schneider ca5eb625d8 Enable DWC2 host mode support for CM5 by default 2024-06-24 10:43:37 +01:00
Serge Schneider 9b17be9621 Update release notes 2024-06-19 12:22:39 +01:00
Serge Schneider 07ab464853 stage4: Pre-install labwc 2024-06-19 12:22:22 +01:00
Serge Schneider 75fe47c757 Increase default swap size to 200 2024-05-27 13:48:11 +01:00
Tom Dewey fb48183f0d Expand trap cleanup function (#773)
* build.sh: Unmount intermediates on trap

Iterate through image files which might be in use and detach them

Avoid silent failures - let the user know whether the build failed

* common: update unmount_image

Use udevadm settle instead of sleep if possible

Use losetup's -j option to find the loop device associated with a give image file

* build.sh: update clean-up trap term

---------

Co-authored-by: Serge Schneider <serge@raspberrypi.com>
2024-05-15 15:50:40 +01:00
Pev d790fed832 Compare mount output using base of dirname (#771)
* Compare mount output using base of dirname

If you're building from a bind-mounted directory, the build will
fail as it will find two entries to unmount, but a single unmount
will remove them both causing an error. Adding a space means that
the mountpoint will only match with a single mount entry ; the
expected path, rather than the pre bind-mount.

* Switch to awk instead of mount, grep, cut pipes

Retry unmount 5 times and give up, letting the user know that they need to resolve the issue manually

---------

Co-authored-by: David Peverley <pev@analogue-micro.com>
Co-authored-by: Serge Schneider <serge@raspberrypi.com>
2024-05-15 15:45:43 +01:00
Serge Schneider 9917c869a7 README.md: Consistent formatting of 'Default' values 2024-05-13 16:41:17 +01:00
Serge Schneider d87f764fcb build.sh: Warn user of unsupported build environment architecture and fail early if binfmt_misc isn't working as expected 2024-05-13 16:10:11 +01:00
Serge Schneider e95e00f879 Set a default IMG_NAME
This also adds the 'ARCH' environment variable, which will help reduce the delta between master and arm64 branches.
2024-05-13 16:10:11 +01:00
Serge Schneider f1c166a283 export-image: run du with -x to avoid crossing filesystem boundaries
Fixes #537
2024-04-29 14:37:36 +01:00
Kristof Nachtergaele 5780b1ff64 export stage list 2024-04-29 10:52:50 +01:00
Serge Schneider 165e960237 Fix keyboard configuration
keyboard-configuration scripts ignores debconf settings if it doesn't
detect an attached keyboard. Instead, it sets XKBOPTIONS to
lv3:ralt_switch, which is not a desired option. It also considers an
empty XKBOPTIONS string to be unset. This workaround sets it to a
placeholder value which is removed later. dpkg-reconfigure is run
so that debconf-get-selections prints the correct values.
2024-04-18 11:29:40 +01:00
Serge Schneider c70f96f146 stage5: smartsim has been removed from recommended apps 2024-04-09 15:51:44 +01:00
Serge Schneider 7ce2538bca Revert "Added docker-compose.yml for easy apt-cacher-ng startup"
This reverts commit fe45b73987.

It's probably a bad idea to reference docker containers from unofficial sources
2024-04-09 15:27:24 +01:00
Serge Schneider 1109642814 Update release notes 2024-03-15 14:54:55 +00:00