From b2f97b7d22cd82c37e985bda340778140a11ec37 Mon Sep 17 00:00:00 2001 From: Peter Robinson Date: Sep 22 2016 13:33:42 +0000 Subject: Initial support for Raspberry Pi. We continue to support existing ARM images without any change to the process (except they have a small 30Mb partition at the begining of the image) but all exisiting documented processe work for image writing. The RPi is auto configured and a pure dd to the card, plug and boot. --- diff --git a/fedora-arm-base.ks b/fedora-arm-base.ks index 55f61f4..70c603d 100644 --- a/fedora-arm-base.ks +++ b/fedora-arm-base.ks @@ -7,9 +7,10 @@ firewall --enabled --service=mdns,ssh # configure extlinux bootloader bootloader extlinux -part /boot --size=512 --fstype ext3 -part swap --size=512 --fstype swap -part / --size=3584 --fstype ext4 +part /boot/fw --size=30 --fstype vfat --asprimary +part /boot --size=512 --fstype ext3 --asprimary +part swap --size=512 --fstype swap --asprimary +part / --size=3584 --fstype ext4 --asprimary # make sure that initial-setup runs and lets us do all the configuration bits firstboot --reconfig @@ -31,6 +32,7 @@ dracut-config-generic rng-tools chrony extlinux-bootloader +bcm283x-firmware initial-setup initial-setup-gui #lets resize / on first boot @@ -53,6 +55,12 @@ libcrypt-nss %post +# Setup Raspberry Pi firmware +cp -Pr /usr/share/bcm283x-firmware/* /boot/fw/ +cp -P /usr/share/uboot/rpi_2/u-boot.bin /boot/fw/rpi2-u-boot.bin +cp -P /usr/share/uboot/rpi_3_32b/u-boot.bin /boot/fw/rpi3-u-boot.bin +sed -i '/vfat/ d' /etc/fstab + # work around for poor key import UI in PackageKit rm -f /var/lib/rpm/__db* releasever=$(rpm -q --qf '%{version}\n' fedora-release)