  CONFIG_BCM2708_GPIO=y
  # CONFIG_BCM2708_NOL2CACHE is not set
  CONFIG_BCM2708_VCHIQ=y
-@@ -41,6 +39,7 @@
+@@ -41,8 +39,10 @@
  CONFIG_BLK_DEV_SD=y
  # CONFIG_CACHE_L2X0 is not set
  CONFIG_CLKDEV_LOOKUP=y
 +CONFIG_CLKSRC_MMIO=y
  CONFIG_CMDLINE="dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 root=/dev/mmcblk0p2 rootfstype=ext3 rootwait"
  CONFIG_CMDLINE_FROM_BOOTLOADER=y
++CONFIG_COMPACTION=y
  CONFIG_CONFIGFS_FS=y
-@@ -54,12 +53,22 @@
+ CONFIG_CONSOLE_TRANSLATIONS=y
+ CONFIG_CORE_DUMP_DEFAULT_ELF_HEADERS=y
+@@ -54,12 +54,22 @@
  CONFIG_CPU_COPY_V6=y
  CONFIG_CPU_CP15=y
  CONFIG_CPU_CP15_MMU=y

 CONFIG_MACH_BCM2708=y
 CONFIG_MAC_PARTITION=y
 CONFIG_MAGIC_SYSRQ=y
@@ -199,6 +202,7 @@
 CONFIG_PM=y
 CONFIG_PM_CLK=y
 # CONFIG_PM_DEBUG is not set

 CONFIG_TMPFS_POSIX_ACL=y
 CONFIG_UEVENT_HELPER_PATH=""
 # CONFIG_UID16 is not set
Index: target/linux/brcm2708/base-files/lib/upgrade/platform.sh
===================================================================
--- target/linux/brcm2708/base-files/lib/upgrade/platform.sh	(revision 0)
+++ target/linux/brcm2708/base-files/lib/upgrade/platform.sh	(working copy)
@@ -0,0 +1,51 @@
+USE_REFRESH=1
+RAMFS_COPY_BIN=/usr/sbin/partprobe
+
+platform_check_image() {
+	[ "$ARGC" -gt 1 ] && return 1
+
+	case "$(get_magic_word "$1")" in
+		0000) return 0;;
+		*)
+			echo "Invalid image type"
+			return 1
+		;;
+	esac
+}
+
+platform_refresh_partitions() {
+	partprobe /dev/mmcblk0
+}
+
+platform_copy_config() {
+	# remounting corrupts the filesystem, rely on config_restore
+	return 0
+	mount -t ext4 -o ro,noatime /dev/mmcblk0p2 /mnt && \
+	  mount -t ext4 -o remount,rw,noatime /dev/mmcblk0p2 /mnt && \
+	  cp -af "$CONF_TAR" /mnt/ && \
+	  umount /mnt
+}
+
+platform_do_upgrade() {
+	sync
+	# If not saving the configuration, wipe the config partition
+	[ $SAVE_CONFIG -eq 0 -a -b /dev/mmcblk0p4 ] && {
+  	  # Should do mkfs.ext4 here but isn't on ramdisk
+  	  dd if=/dev/zero of=/dev/mmcblk0p4 bs=1M count=1 conv=fsync
+	}
+	dd if=/dev/zero of=/dev/mmcblk0 bs=4M count=10 conv=fsync
+	get_image "$@" | dd of=/dev/mmcblk0 bs=4M conv=fsync
+	sleep 1
+}
+
+bcm2708_umount_all() {
+	cd /tmp
+	echo powersave > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
+	lmclient LMDC,0
+	umount /dev/mmcblk0p1
+	umount /dev/mmcblk0p4
+	umount /sys/kernel/debug
+}
+
+append sysupgrade_pre_upgrade bcm2708_umount_all
+
Index: target/linux/brcm2708/base-files/etc/inittab
===================================================================
--- target/linux/brcm2708/base-files/etc/inittab	(revision 36720)
