From 26998ac83178f7ed9fc8c1f4aec742e0e6c81169 Mon Sep 17 00:00:00 2001 From: Robert Nelson Date: Mon, 14 May 2012 12:50:01 -0500 Subject: [PATCH] distro: add early alpha support for quantal-armhf Signed-off-by: Robert Nelson --- README | 2 ++ mk_mmc.sh | 34 ++++++++++++++++++++++++++-------- scripts/quantal-preseed.cfg | 36 ++++++++++++++++++++++++++++++++++++ 3 files changed, 64 insertions(+), 8 deletions(-) create mode 100644 scripts/quantal-preseed.cfg diff --git a/README b/README index 33cabbe..49b5427 100644 --- a/README +++ b/README @@ -24,12 +24,14 @@ Optional: Debian: squeeze wheezy-armel + wheezy-armhf Ubuntu maverick (10.10 - End Of Life: April 2012) natty (11.04 - End Of Life: October 2012) oneiric (11.10 - End Of Life: April 2013) precise-armel (12.04) precise-armhf (12.04) + quantal-armhf (12.10 ) --addon pico diff --git a/mk_mmc.sh b/mk_mmc.sh index 2b90042..a526e19 100755 --- a/mk_mmc.sh +++ b/mk_mmc.sh @@ -75,6 +75,11 @@ PRECISE_ARMEL_MD5SUM="8e1f3d4a0df6bcf816f516e2226ba7f3" PRECISE_ARMHF_NETIMAGE="20101020ubuntu136" PRECISE_ARMHF_MD5SUM="2b8a00ada904f3b2b72f3d92ccbaa830" +#04-May-2012 +#http://ports.ubuntu.com/dists/quantal/main/installer-armhf/ +QUANTAL_ARMHF_NETIMAGE="20101020ubuntu139" +QUANTAL_ARMHF_MD5SUM="5d09d588701063792d31e901175c8c4e" + #22-Jan-2012: 6.0.4 #http://ftp.us.debian.org/debian/dists/squeeze/main/installer-armel/ SQUEEZE_NETIMAGE="20110106+squeeze4" @@ -341,6 +346,14 @@ function dl_netinstall_image { UBOOTWRAPPER=1 NETINSTALL="uInitrd" ;; + quantal-armhf) + TEST_MD5SUM="${QUANTAL_ARMHF_MD5SUM}" + NETIMAGE="${QUANTAL_ARMHF_NETIMAGE}" + HTTP_IMAGE="http://ports.ubuntu.com/ubuntu-ports/dists" + BASE_IMAGE="omap/netboot" + UBOOTWRAPPER=1 + NETINSTALL="uInitrd" + ;; squeeze-armel) TEST_MD5SUM=$SQUEEZE_MD5SUM NETIMAGE=$SQUEEZE_NETIMAGE @@ -861,7 +874,7 @@ function initrd_preseed_settings { oneiric) patch -p1 < "${DIR}/scripts/ubuntu-tweaks.diff" ;; - precise) + precise|quantal) patch -p1 < "${DIR}/scripts/ubuntu-tweaks.diff" ;; squeeze|wheezy) @@ -892,13 +905,13 @@ function initrd_preseed_settings { cp -v "${DIR}/scripts/${DIST}-preseed.cfg" ${TEMPDIR}/initrd-tree/preseed.cfg cp -v "${DIR}/scripts/ubuntu-finish.sh" ${TEMPDIR}/initrd-tree/etc/finish-install.sh ;; - precise) - cp -v "${DIR}/scripts/flash-kernel.conf" ${TEMPDIR}/initrd-tree/etc/flash-kernel.conf - cp -v "${DIR}/scripts/serial.conf" ${TEMPDIR}/initrd-tree/etc/${SERIAL}.conf - chmod a+x ${TEMPDIR}/initrd-tree/usr/lib/finish-install.d/08rcn-ee-finish-installing-device - cp -v "${DIR}/scripts/${DIST}-preseed.cfg" ${TEMPDIR}/initrd-tree/preseed.cfg - cp -v "${DIR}/scripts/ubuntu-finish.sh" ${TEMPDIR}/initrd-tree/etc/finish-install.sh - ;; + precise|quantal) + cp -v "${DIR}/scripts/flash-kernel.conf" ${TEMPDIR}/initrd-tree/etc/flash-kernel.conf + cp -v "${DIR}/scripts/serial.conf" ${TEMPDIR}/initrd-tree/etc/${SERIAL}.conf + chmod a+x ${TEMPDIR}/initrd-tree/usr/lib/finish-install.d/08rcn-ee-finish-installing-device + cp -v "${DIR}/scripts/${DIST}-preseed.cfg" ${TEMPDIR}/initrd-tree/preseed.cfg + cp -v "${DIR}/scripts/ubuntu-finish.sh" ${TEMPDIR}/initrd-tree/etc/finish-install.sh + ;; squeeze) cp -v "${DIR}/scripts/e2fsck.conf" ${TEMPDIR}/initrd-tree/etc/e2fsck.conf chmod a+x ${TEMPDIR}/initrd-tree/usr/lib/finish-install.d/08rcn-ee-finish-installing-device @@ -1654,6 +1667,10 @@ function check_distro { DIST=precise ARCH=armhf ;; + quantal-armhf) + DIST="quantal" + ARCH="armhf" + ;; squeeze) DIST=squeeze ARCH=armel @@ -1716,6 +1733,7 @@ Optional: oneiric (11.10 - End Of Life: April 2013) precise-armel (12.04) precise-armhf (12.04) + quantal-armhf (12.10 ) --addon pico diff --git a/scripts/quantal-preseed.cfg b/scripts/quantal-preseed.cfg new file mode 100644 index 0000000..473ef09 --- /dev/null +++ b/scripts/quantal-preseed.cfg @@ -0,0 +1,36 @@ +### Apt setup +# You can choose to install non-free and contrib software. +#d-i apt-setup/non-free boolean true +#d-i apt-setup/contrib boolean true + +# If you select ftp, the mirror/country string does not need to be set. +#d-i mirror/protocol string ftp +d-i mirror/country string manual +d-i mirror/http/hostname string ports.ubuntu.com +d-i mirror/http/directory string /ubuntu-ports + +# Individual additional packages to install +d-i pkgsel/include string u-boot-tools pastebinit initramfs-tools wget linux-firmware linux-firmware-nonfree ntpdate bash devmem2 fbset + +# Whether to upgrade packages after debootstrap. +# Allowed values: none, safe-upgrade, full-upgrade +d-i pkgsel/upgrade select safe-upgrade + +# Controls whether to use NTP to set the clock during the install +d-i clock-setup/ntp boolean true + +# During installations from serial console, the regular virtual consoles +# (VT1-VT6) are normally disabled in /etc/inittab. Uncomment the next +# line to prevent this. +d-i finish-install/keep-consoles boolean true + +# Avoid that last message about the install being complete. +d-i finish-install/reboot_in_progress note + +# This command is run just before the install finishes, but when there is +# still a usable /target directory. You can chroot to /target and use it +# directly, or use the apt-install and in-target commands to easily install +# packages and run commands in the target system. +d-i preseed/late_command \ +string apt-install parted; in-target /sbin/parted /dev/mmcblk0 set 1 boot on ; +