From 8bb944e00d9811755face45985425af24ec6a742 Mon Sep 17 00:00:00 2001 From: Koichiro Iwao Date: Thu, 13 Jun 2024 08:03:36 +0000 Subject: [PATCH 1/3] Adjust configuration to get serial console working properly --- AlmaLinux-8-RaspberryPi-console.aarch64.ks | 10 ++++++---- AlmaLinux-8-RaspberryPi-gnome.aarch64.ks | 6 ++++-- AlmaLinux-9-RaspberryPi-console.aarch64.ks | 10 ++++++---- AlmaLinux-9-RaspberryPi-gnome.aarch64.ks | 6 ++++-- 4 files changed, 20 insertions(+), 12 deletions(-) diff --git a/AlmaLinux-8-RaspberryPi-console.aarch64.ks b/AlmaLinux-8-RaspberryPi-console.aarch64.ks index 37c963c..0a2fdc1 100644 --- a/AlmaLinux-8-RaspberryPi-console.aarch64.ks +++ b/AlmaLinux-8-RaspberryPi-console.aarch64.ks @@ -114,15 +114,17 @@ users: EOF cat > /boot/config.txt << EOF -# AlmaLinux doesn't use any default config options to work, -# this file is provided as a placeholder for user options +# This file is provided as a placeholder for user options +# AlmaLinux - few default config options [all] +# enable serial console +enable_uart=1 EOF -# Specific cmdline.txt files needed for raspberrypi2/3 +# Kernel command line string cat > /boot/cmdline.txt << EOF -console=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 rootwait +console=ttyS0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 rootwait EOF # Create and initialize swapfile diff --git a/AlmaLinux-8-RaspberryPi-gnome.aarch64.ks b/AlmaLinux-8-RaspberryPi-gnome.aarch64.ks index ee2eb95..f65a1ef 100644 --- a/AlmaLinux-8-RaspberryPi-gnome.aarch64.ks +++ b/AlmaLinux-8-RaspberryPi-gnome.aarch64.ks @@ -128,6 +128,8 @@ disable_overscan=1 dtoverlay=vc4-kms-v3d camera_auto_detect=0 gpu_mem=128 +# enable serial console +enable_uart=1 ## AlmaLinux - can enable this for Pi 4 #[pi4] @@ -136,9 +138,9 @@ gpu_mem=128 [all] EOF -# Specific cmdline.txt files needed for raspberrypi2/3 +# Kernel command line string cat > /boot/cmdline.txt << EOF -console=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 rootwait +console=ttyS0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 rootwait EOF # Create and initialize swapfile diff --git a/AlmaLinux-9-RaspberryPi-console.aarch64.ks b/AlmaLinux-9-RaspberryPi-console.aarch64.ks index 5a6b24a..5e9d16e 100644 --- a/AlmaLinux-9-RaspberryPi-console.aarch64.ks +++ b/AlmaLinux-9-RaspberryPi-console.aarch64.ks @@ -98,15 +98,17 @@ users: EOF cat > /boot/config.txt << EOF -# AlmaLinux doesn't use any default config options to work, -# this file is provided as a placeholder for user options +# This file is provided as a placeholder for user options +# AlmaLinux - few default config options [all] +# enable serial console +enable_uart=1 EOF -# Specific cmdline.txt files needed for raspberrypi2/3 +# Kernel command line string cat > /boot/cmdline.txt << EOF -console=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 rootwait +console=ttyS0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 rootwait EOF # Create and initialize swapfile diff --git a/AlmaLinux-9-RaspberryPi-gnome.aarch64.ks b/AlmaLinux-9-RaspberryPi-gnome.aarch64.ks index bc93743..98932fb 100644 --- a/AlmaLinux-9-RaspberryPi-gnome.aarch64.ks +++ b/AlmaLinux-9-RaspberryPi-gnome.aarch64.ks @@ -112,6 +112,8 @@ disable_overscan=1 dtoverlay=vc4-kms-v3d camera_auto_detect=0 gpu_mem=128 +# enable serial console +enable_uart=1 ## AlmaLinux - can enable this for Pi 4 #[pi4] @@ -120,9 +122,9 @@ gpu_mem=128 [all] EOF -# Specific cmdline.txt files needed for raspberrypi2/3 +# Kernel command line string cat > /boot/cmdline.txt << EOF -console=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 rootwait +console=ttyS0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 rootwait EOF # Create and initialize swapfile From bac053573cc48503b43dd28de6e6000e2527d48b Mon Sep 17 00:00:00 2001 From: Koichiro Iwao Date: Thu, 13 Jun 2024 09:21:44 +0000 Subject: [PATCH 2/3] Update README --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 909146f..4bf9164 100644 --- a/README.md +++ b/README.md @@ -25,6 +25,9 @@ Full guide for AlmaLinux on Raspberry Pi is available here: https://wiki.almalin ## Changelog +## 2024-06-13 +- Enable serial console [#47](https://github.com/AlmaLinux/raspberry-pi/pull/47) + ### 2024-06-05 - Update for AlmaLinux 8.10 and 9.4 - Support Raspberry Pi 5 From f9ff84ba90460da9978b5e4aa6afeace9a70761f Mon Sep 17 00:00:00 2001 From: Koichiro Iwao Date: Fri, 14 Jun 2024 05:46:22 +0000 Subject: [PATCH 3/3] AL9: install utilities for GPIO by default --- AlmaLinux-9-RaspberryPi-console.aarch64.ks | 1 + AlmaLinux-9-RaspberryPi-gnome.aarch64.ks | 1 + README.md | 3 ++- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/AlmaLinux-9-RaspberryPi-console.aarch64.ks b/AlmaLinux-9-RaspberryPi-console.aarch64.ks index 5e9d16e..e26ed47 100644 --- a/AlmaLinux-9-RaspberryPi-console.aarch64.ks +++ b/AlmaLinux-9-RaspberryPi-console.aarch64.ks @@ -53,6 +53,7 @@ raspberrypi-userland raspberrypi2-firmware raspberrypi2-kernel4 nano +libgpiod-utils %end %post diff --git a/AlmaLinux-9-RaspberryPi-gnome.aarch64.ks b/AlmaLinux-9-RaspberryPi-gnome.aarch64.ks index 98932fb..9561760 100644 --- a/AlmaLinux-9-RaspberryPi-gnome.aarch64.ks +++ b/AlmaLinux-9-RaspberryPi-gnome.aarch64.ks @@ -60,6 +60,7 @@ raspberrypi-userland raspberrypi2-firmware raspberrypi2-kernel4 nano +libgpiod-utils %end %post diff --git a/README.md b/README.md index 4bf9164..e14d89f 100644 --- a/README.md +++ b/README.md @@ -25,8 +25,9 @@ Full guide for AlmaLinux on Raspberry Pi is available here: https://wiki.almalin ## Changelog -## 2024-06-13 +## 2024-06-14 - Enable serial console [#47](https://github.com/AlmaLinux/raspberry-pi/pull/47) +- Install utilities for GPIO by default (AL9) ### 2024-06-05 - Update for AlmaLinux 8.10 and 9.4