From 503c4704a6a68edc2d841905299a17278a43973b Mon Sep 17 00:00:00 2001 From: Andy Green Date: Wed, 19 Nov 2008 17:11:23 +0000 Subject: build-introduce-device-specific-named-kernel-binary.patch This patch changes the ./build script to generate a uImage.bin file with the build device appended, eg, uImage-GTA02.bin. The reason for this change is that it is possible to generate rootfs images now that can target multiple (and probably increasing numbers of) devices with the one image. Therefore qi or other bootloader running on the device is going to have to pick out the right kernel from the rootfs filesystem for the device it finds it is running on from a set provided down /boot by the rootfs generator. /lib/modules for the kernels doesn't get in the way of each other because the version-specific path is also extended to have the device name as part of it. 2.6.28-GTA02_stable-tracking_c77dda03a7c11666-mokodev For legacy U-Boot support on GTA01 or GTA02, a symlink to uImage-GTA01.bin or uImage-GTA02.bin will be needed. The dfu utility script is updated to take an argument, eg, GTA02 Signed-off-by: Andy Green --- dfu-kern | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'dfu-kern') diff --git a/dfu-kern b/dfu-kern index b7ed2c36c57..023d13b0941 100755 --- a/dfu-kern +++ b/dfu-kern @@ -1,9 +1,14 @@ #!/bin/bash -../../dfu-util/src/dfu-util -a 3 -d 0x1d50:0x5119 -D uImage.bin -if [ $? -eq 1 ] ; then -../../dfu-util/src/dfu-util -a 3 -d 0x1d50:0x5120 -D uImage.bin -../../dfu-util/src/dfu-util -a 3 -d 0x1d50:0x5119 -D uImage.bin +if [ -z "$1" ] ; then + echo "Usage: $0 eg, $0 GTA02" + exit 1 +fi + +../../dfu-util/src/dfu-util -a 3 -d 0x1d50:0x5119 -D uImage-$1.bin +if [ $? -eq 1 ] ; then +../../dfu-util/src/dfu-util -a 3 -d 0x1d50:0x5120 -D uImage-$1.bin +../../dfu-util/src/dfu-util -a 3 -d 0x1d50:0x5119 -D uImage-$1.bin fi -- cgit v1.2.3