From d1ed4a2982fc37fbd69e71cdc408dfa174f66b84 Mon Sep 17 00:00:00 2001 From: Serge Schneider Date: Wed, 18 Sep 2019 14:53:35 +0100 Subject: [PATCH 1/6] Include rpi-eeprom --- export-noobs/00-release/files/release_notes.txt | 1 + stage2/01-sys-tweaks/00-packages | 1 + 2 files changed, 2 insertions(+) diff --git a/export-noobs/00-release/files/release_notes.txt b/export-noobs/00-release/files/release_notes.txt index b507576..b167c77 100644 --- a/export-noobs/00-release/files/release_notes.txt +++ b/export-noobs/00-release/files/release_notes.txt @@ -1,4 +1,5 @@ UNRELEASED: + * rpi-eeprom included * Epiphany/Web removed * ntfs-3g included * Scratch 3 added to full image diff --git a/stage2/01-sys-tweaks/00-packages b/stage2/01-sys-tweaks/00-packages index f370556..16b9350 100644 --- a/stage2/01-sys-tweaks/00-packages +++ b/stage2/01-sys-tweaks/00-packages @@ -27,3 +27,4 @@ ethtool vl805fw ntfs-3g pciutils +rpi-eeprom From 652780757be196ac7292a9e1d3a8182a2b6c0de2 Mon Sep 17 00:00:00 2001 From: fpicalausa Date: Mon, 23 Sep 2019 18:11:58 +0900 Subject: [PATCH 2/6] Update config.txt to replace lirc-rpi with gpio-ir (#328) The example for enabling IR transmission in `/boot/config.txt` is still using the deprecated `lirc-rpi` overlay. The documentation in `/boot/overlays/README` indicates that this overlay has been deprecated in favor of `gpio-ir` / `gpio-ir-tx`. This updates the actual config.txt to suggest `gpio-ir` instead of `lirc-rpi`. --- stage1/00-boot-files/files/config.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/stage1/00-boot-files/files/config.txt b/stage1/00-boot-files/files/config.txt index 578d736..548f4ac 100644 --- a/stage1/00-boot-files/files/config.txt +++ b/stage1/00-boot-files/files/config.txt @@ -47,8 +47,9 @@ #dtparam=i2s=on #dtparam=spi=on -# Uncomment this to enable the lirc-rpi module -#dtoverlay=lirc-rpi +# Uncomment this to enable infrared communication. +#dtoverlay=gpio-ir,gpio_pin=17 +#dtoverlay=gpio-ir-tx,gpio_pin=18 # Additional overlays and parameters are documented /boot/overlays/README From 6538d5babff4e684e986eaee723cce107b5c37c3 Mon Sep 17 00:00:00 2001 From: Serge Schneider Date: Mon, 23 Sep 2019 09:52:35 +0100 Subject: [PATCH 3/6] Update release notes --- .../00-release/files/release_notes.txt | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/export-noobs/00-release/files/release_notes.txt b/export-noobs/00-release/files/release_notes.txt index b167c77..ba260bc 100644 --- a/export-noobs/00-release/files/release_notes.txt +++ b/export-noobs/00-release/files/release_notes.txt @@ -1,9 +1,44 @@ UNRELEASED: + * New icon theme for file manager icons + * Appearance Settings - option for identical desktop on both monitors + * Appearance Settings - option to show different desktop icons on both monitors + * Taskbar automatically moved to monitor 0 if monitor 1 not found at boot + * Switching of audio output between two HDMI devices added to volume plugin + * Switching of audio input devices added to volume plugin + * .asoundrc (ALSA config file) now uses 'plug' values to support more devices + * Audio Settings tool modified to integrate more closely with volume plugin to reduce duplicated code + * Screen Configuration tool now shows separate menus for resolution and refresh rate + * Primary and active monitor settings removed from Screen Configuration tool + * Overscan support added for FKMS driver + * New keyboard shortcuts added - Ctrl-Alt-End brings up shutdown menu; Ctrl-Alt-M moves taskbar between monitors + * Latest changes to Bluez ALSA interface integrated to improve connection to Bluetooth audio devices + * Version 3.2 of Thonny added + * Version 74 of Chromium added + * Version 3.0.8 of VLC added + * Version 32.0.0.255 of Flash player added + * Version 6.5.0 of RealVNC Server added + * Version 6.19.715 of RealVNC Viewer added (full image only) + * Version 12.0.1 of Mathematica added (full image only) + * Version 0.20.8 of NodeRED added (full image only) + * Version 3.1.0 of Sonic Pi added (full image only) + * Scratch 3 added (full image only) + * Bug fix - URL handling in Terminal + * Bug fix - octal values in SSIDs in network plugin + * Bug fix - remaining value in progress bar when transferring files + * Bug fix - integration of xarchiver tool with file manager + * Bug fix - start menu opening on incorrect monitor + * Bug fix - minimised applications wrongly displayed on taskbar on second monitor + * Bug fix - Bluetooth icon disappearing on x86 platforms when Bluetooth turned off + * Bug fix - Screen Configuration tool not shown on x86 platforms and settings not being saved + * Various translation updates + * Various minor bug fixes * rpi-eeprom included * Epiphany/Web removed * ntfs-3g included * Scratch 3 added to full image * pciutils added + * Linux kernel 4.19.71 + * Raspberry Pi firmware 04ddd4957d470528d7b26ea00a37d8fe2f1e2db7 2019-07-10: * Clearer options for switching of Pi 4 video output in Raspberry Pi Configuration * Option added to Appearance Settings to move taskbar to second monitor From 946f164006148648cc6195f4cae7a7f2d6da6f88 Mon Sep 17 00:00:00 2001 From: Serge Schneider Date: Tue, 24 Sep 2019 15:57:09 +0100 Subject: [PATCH 4/6] stage3: Mousepad used as simple text editor instead of leafpad --- export-noobs/00-release/files/release_notes.txt | 1 + stage3/00-install-packages/00-packages-nr | 1 + 2 files changed, 2 insertions(+) diff --git a/export-noobs/00-release/files/release_notes.txt b/export-noobs/00-release/files/release_notes.txt index ba260bc..c0899f7 100644 --- a/export-noobs/00-release/files/release_notes.txt +++ b/export-noobs/00-release/files/release_notes.txt @@ -12,6 +12,7 @@ UNRELEASED: * Overscan support added for FKMS driver * New keyboard shortcuts added - Ctrl-Alt-End brings up shutdown menu; Ctrl-Alt-M moves taskbar between monitors * Latest changes to Bluez ALSA interface integrated to improve connection to Bluetooth audio devices + * Mousepad used as simple text editor instead of leafpad * Version 3.2 of Thonny added * Version 74 of Chromium added * Version 3.0.8 of VLC added diff --git a/stage3/00-install-packages/00-packages-nr b/stage3/00-install-packages/00-packages-nr index ebbbd16..ffc324b 100644 --- a/stage3/00-install-packages/00-packages-nr +++ b/stage3/00-install-packages/00-packages-nr @@ -1,4 +1,5 @@ xserver-xorg-video-fbdev xserver-xorg xinit xserver-xorg-video-fbturbo +mousepad lxde lxtask menu-xdg zenity xdg-utils gvfs-backends gvfs-fuse From 99f702f0ffc3461bd5ace466ba69de08307799bb Mon Sep 17 00:00:00 2001 From: Matthijs Kooijman Date: Wed, 25 Sep 2019 14:46:38 +0200 Subject: [PATCH 5/6] Use parted for partitioning (#285) Previously, fdisk was used by sending commands into its stdin, which is not very robust (since it heavily relies on the interactive prompts offered by fdisk as well as the default values it offers, which seem prone to changing in future version). It seems likely that in the past, fdisk was easier than parted since it provides default values that make it easier to create adjacent partitions, without precalculating all positions in the script. However now that partitions are manually being aligned, all data must be calculated anyway. This commit changes the partition generation to use parted rather than fdisk. For this, it rewrites various calculations and renames variables to be easier to read as well. All values are now in number of bytes, rather than mixing bytes and sectors. This commit also makes makes sure that the boot partition and root partition are always adjacent (previously the root partition was aligned without also rounding the boot partition size, leaving some empty space in between). As a side effect of using parted, this also causes the "bootcode" part of the MBR to be filled with some default x86 bootcode. This is totally irrelevant for booting the Raspberry Pi, but it does prevent triggering a bug in parted. When using parted to change the partition table (e.g. when resizing the root partition on first boot by raspi-config's init_resize.sh), the disk identifier would be changed due to this bug, which would change the PARTUUID of all partitions. The init_resize.sh script would work around this by updating the PARTUUID in e.g. fstab, but that's fragile at best. This commit prevents the bug from triggering and keeps the disk identifier the same. See https://debbugs.gnu.org/35714 for details about this parted bug. This commit fixes #284. --- export-image/prerun.sh | 39 +++++++++++++++++---------------------- 1 file changed, 17 insertions(+), 22 deletions(-) diff --git a/export-image/prerun.sh b/export-image/prerun.sh index ea1e2d6..cecde32 100755 --- a/export-image/prerun.sh +++ b/export-image/prerun.sh @@ -10,32 +10,27 @@ rm -rf "${ROOTFS_DIR}" mkdir -p "${ROOTFS_DIR}" BOOT_SIZE="$((256 * 1024 * 1024))" -TOTAL_SIZE=$(du --apparent-size -s "${EXPORT_ROOTFS_DIR}" --exclude var/cache/apt/archives --block-size=1 | cut -f 1) +ROOT_SIZE=$(du --apparent-size -s "${EXPORT_ROOTFS_DIR}" --exclude var/cache/apt/archives --exclude boot --block-size=1 | cut -f 1) -ROUND_SIZE="$((4 * 1024 * 1024))" -ROUNDED_ROOT_SECTOR=$(((BOOT_SIZE + ROUND_SIZE) / ROUND_SIZE * ROUND_SIZE / 512 + 8192)) -IMG_SIZE=$(((BOOT_SIZE + TOTAL_SIZE + (800 * 1024 * 1024) + ROUND_SIZE - 1) / ROUND_SIZE * ROUND_SIZE)) +# All partition sizes and starts will be aligned to this size +ALIGN="$((4 * 1024 * 1024))" +# Add this much space to the calculated file size. This allows for +# some overhead (since actual space usage is usually rounded up to the +# filesystem block size) and gives some free space on the resulting +# image. +ROOT_MARGIN=$((800*1024*1024)) + +BOOT_PART_START=$((ALIGN)) +BOOT_PART_SIZE=$(((BOOT_SIZE + ALIGN - 1) / ALIGN * ALIGN)) +ROOT_PART_START=$((BOOT_PART_START + BOOT_PART_SIZE)) +ROOT_PART_SIZE=$(((ROOT_SIZE + ROOT_MARGIN + ALIGN - 1) / ALIGN * ALIGN)) +IMG_SIZE=$((BOOT_PART_START + BOOT_PART_SIZE + ROOT_PART_SIZE)) truncate -s "${IMG_SIZE}" "${IMG_FILE}" -fdisk -H 255 -S 63 "${IMG_FILE}" < Date: Wed, 25 Sep 2019 15:06:49 +0100 Subject: [PATCH 6/6] Update release notes --- export-noobs/00-release/files/release_notes.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/export-noobs/00-release/files/release_notes.txt b/export-noobs/00-release/files/release_notes.txt index c0899f7..7441d4a 100644 --- a/export-noobs/00-release/files/release_notes.txt +++ b/export-noobs/00-release/files/release_notes.txt @@ -1,4 +1,7 @@ UNRELEASED: + * rpi-eeprom included + - This will automatically update the SPI EEPROM on the Raspberry Pi 4 to the latest stable version. + See https://rpf.io/eeprom for more information. * New icon theme for file manager icons * Appearance Settings - option for identical desktop on both monitors * Appearance Settings - option to show different desktop icons on both monitors @@ -33,10 +36,8 @@ UNRELEASED: * Bug fix - Screen Configuration tool not shown on x86 platforms and settings not being saved * Various translation updates * Various minor bug fixes - * rpi-eeprom included * Epiphany/Web removed * ntfs-3g included - * Scratch 3 added to full image * pciutils added * Linux kernel 4.19.71 * Raspberry Pi firmware 04ddd4957d470528d7b26ea00a37d8fe2f1e2db7