[Fedora-spins] [spin-kickstarts/arm] ARM: initial test snippet for pandaboard xfce image

Dennis Gilmore ausil at fedoraproject.org
Thu Jun 14 23:45:17 UTC 2012


commit 732a7b36ab791ff4a0bd4e1bb223e46b9c2a4bbc
Author: Dennis Gilmore <dennis at ausil.us>
Date:   Thu Jun 14 18:44:29 2012 -0500

    ARM: initial test snippet for pandaboard xfce image

 fedora-arm-panda-xfce.ks |   59 ++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 59 insertions(+), 0 deletions(-)
---
diff --git a/fedora-arm-panda-xfce.ks b/fedora-arm-panda-xfce.ks
new file mode 100644
index 0000000..a7d0798
--- /dev/null
+++ b/fedora-arm-panda-xfce.ks
@@ -0,0 +1,59 @@
+
+part /boot/efi --fstype=efi --grow --maxsize=50 --size=20
+part /boot --fstype=ext3  --size=256
+%include fedora-livecd-xfce.ks
+
+
+
+%packages
+#for panda we only want to have the omap kernel installed
+-kernel
+-kernel-highbank
+-kernel-imx
+-kernel-tegra
+kernel-omap
+uboot-panda
+
+#remove packages we dont need
+-anaconda
+
+#remove packages not available or anaconda is unhappy
+-grub2
+-efibootmgr
+-grub-efi
+
+%end
+
+%post
+# install the moodloader bits into the vfat partition at the start of the disk
+# MLO file must be the first thing written to the partition
+cp /usr/share/uboot-panda/MLO /boot/efi/MLO
+sync
+cp /usr/share/uboot-panda/u-boot.img /boot/efi/u-boot.img
+
+# setup uEnv.txt on efi  partition to load uEnv.txt on /boot
+cat >> /boot/efi/uEnv.txt << EOF
+bootenv=/uEnv.txt
+loaduimage=ext2load mmc 0:2 ${loadaddr} ${bootenv}
+mmcboot=echo Running script from mmc ...; source ${loadaddr}
+EOF
+
+# setup uEnv.txt on /boot to load kernel
+echo >> /boot/uEnv.txt << EOF
+bootfile=/uImage
+bootinitrd=/uInitrd
+boot=bootm
+console=ttyO2,115200n8
+address_image=0x80300000
+address_initrd=0x81600000
+mmcroot=LABEL=%ROOTFSID% ro
+mmcargs=setenv bootargs console=${console} root=${mmcroot} quiet rootwait rhgb
+loaduimage=run xyz_mmcboot; run mmcargs; ${boot} ${address_image} ${address_initrd}
+xyz_load_image=ext2load mmc 0:2 ${address_image} ${bootfile}
+xyz_load_initrd=ext2load mmc 0:2 ${address_initrd} ${bootinitrd}
+xyz_mmcboot=run xyz_load_image; run xyz_load_initrd; echo Booting from mmc ...
+EOF
+
+sed -i -e "|%ROOTFSID%|$(grep ' / ' /etc/fstab |sed -e 's| .*$||g')|g" /boot/uEnv.txt
+
+%end


More information about the spins mailing list