# Build a minimal Fedora ARM (OMAP) install using livemedia-creator lang en_US.UTF-8 keyboard us timezone --utc US/Eastern auth --useshadow --enablemd5 selinux --permissive firewall --enabled --service=mdns,ssh network --bootproto=dhcp --device=eth0 --onboot=on --activate --hostname=panda-f18-v7hl services --enabled=NetworkManager,sshd,ntpd --disabled=network skipx # Set a default root password for Fedora rootpw --plaintext fedora # Repositories # apparently we must use 'url' for the install repo for livemedia-creator url --url="http://archive.kernel.org/fedora-secondary/development/18/armhfp/os/" # include a local repo to get modified grubby, etc. repo --name=xpfa --baseurl="http://dmarlin.fedorapeople.org/yum/f18/armhfp/os/Packages/" # # Define how large you want your rootfs to be # # NOTE: /boot and swap MUST use --asprimary to ensure '/' is # the last partition in order for rootfs-resize to work. # bootloader --location=none zerombr clearpart --all part /boot/uboot --size 200 --fstype vfat --asprimary --label=uboot part swap --size 500 --asprimary --label=swap part / --size 2000 --fstype ext4 --label=rootfs # # Add all the packages after the base packages # %packages --nobase @standard @core @online-docs # apparently none of the groups sets the clock. ntp ntpdate # and ifconfig would be nice. net-tools # we'll want to resize the rootfs on first boot rootfs-resize # get the uboot tools uboot-tools # get MLO and uboot.bin uboot-panda %end # more configuration %post --erroronfail # set up the U-Boot config for Panda cat << EOF >> /etc/sysconfig/uboot UBOOT_DEVICE=mmcblk0p1 UBOOT_DIR=/boot/uboot EOF # Set up the bootloader bits on the U-Boot partition pushd /boot # MLO _must_ be the first thing copied to the partition cp -p /usr/share/uboot-panda/MLO /boot/uboot/. sleep 3 sync # try to make sure that MLO is written first! sleep 3 sync; sync; sync; # now copy the bootloader cp -p /usr/share/uboot-panda/u-boot.* /boot/uboot/. # and move the U-Boot kernel and initrd images mv boot.cmd uImage* uInitrd* uEnv* /boot/uboot/. # Install U-Boot boot script and environment pushd uboot # get the root device from fstab, typically UUID= ROOTDEV=`grep -w / /etc/fstab | cut -d ' ' -f1` KERNEL_ADDR=0x80300000 INITRD_ADDR=0x81600000 # setup uEnv.txt cat < uEnv.txt mmcargs=setenv bootargs console=\${console} vram=\${vram} root=$ROOTDEV ro rootwait quiet rhgb mmcload=fatload mmc 0:1 $INITRD_ADDR uInitrd; fatload mmc 0:1 $KERNEL_ADDR uImage; loaduimage=run mmcload; run mmcargs; bootm $KERNEL_ADDR $INITRD_ADDR EOL # and boot.scr cat < boot.cmd setenv bootargs console=\${console} vram=\${vram} root=$ROOTDEV ro rootwait quiet rhgb fatload mmc 0:1 $INITRD_ADDR uInitrd fatload mmc 0:1 $KERNEL_ADDR uImage bootm $KERNEL_ADDR $INITRD_ADDR EOL /usr/bin/mkimage -A arm -O linux -T script -C none -a 0 -e 0 -n "Panda F18" -d boot.cmd boot.scr popd popd # datestamp this release date +F18-%Y%m%d-test > /etc/RELEASE # force resize of the rootfs touch /.rootfs-repartition %end