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..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 @@ -98,15 +99,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..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 @@ -112,6 +113,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 +123,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/README.md b/README.md index 909146f..e14d89f 100644 --- a/README.md +++ b/README.md @@ -25,6 +25,10 @@ Full guide for AlmaLinux on Raspberry Pi is available here: https://wiki.almalin ## Changelog +## 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 - Support Raspberry Pi 5