summaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authorGraeme Gregory <dp@xora.org.uk>2008-01-08 13:39:58 +0000
committerGraeme Gregory <dp@xora.org.uk>2008-01-08 13:39:58 +0000
commitcb5565aee93dcc66e259aa7a030acee1074197cc (patch)
tree9585120e4091df7e12bda54c2358d3fa648932fd /packages
parent1aa268bf3250849b2db9ce7c162fbf25dfb46842 (diff)
linux-openmoko.inc : gta01/02 wont use the same partition map going into
the future so use /proc/mtd to find the kernel partition.
Diffstat (limited to 'packages')
-rw-r--r--packages/linux/linux-openmoko.inc7
1 files changed, 5 insertions, 2 deletions
diff --git a/packages/linux/linux-openmoko.inc b/packages/linux/linux-openmoko.inc
index b659153733..2016acdb63 100644
--- a/packages/linux/linux-openmoko.inc
+++ b/packages/linux/linux-openmoko.inc
@@ -15,8 +15,11 @@ else
echo "Upgrading Kernel in Flash"
echo "DO NOT stop this process"
- ${bindir}/flash_eraseall ${MTD_KERNEL_PARTITION}
- ${bindir}/nandwrite -p ${MTD_KERNEL_PARTITION} /${KERNEL_IMAGEDEST}/${KERNEL_IMAGETYPE}-${KERNEL_VERSION}
+ MTD_KERNEL_PARTITION=`cat /proc/mtd | grep kernel | cut -d':' -f1`
+ MTD_KERNEL_PARTITION=/dev/$MTD_KERNEL_PARTITION
+
+ ${bindir}/flash_eraseall $MTD_KERNEL_PARTITION
+ ${bindir}/nandwrite -p $MTD_KERNEL_PARTITION /${KERNEL_IMAGEDEST}/${KERNEL_IMAGETYPE}-${KERNEL_VERSION}
fi
}