diff options
author | Andy Green <andy@openmoko.com> | 2008-11-19 17:11:23 +0000 |
---|---|---|
committer | Andy Green <andy@openmoko.com> | 2008-11-19 17:11:23 +0000 |
commit | 503c4704a6a68edc2d841905299a17278a43973b (patch) | |
tree | 884cde6aaa20e87c4d3ce05f4a535d164e78837c /dfu-kern | |
parent | 4fc826402f239210e6ff40d49843d6ed58d86e36 (diff) |
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 <andy@openmoko.com>
Diffstat (limited to 'dfu-kern')
-rwxr-xr-x | dfu-kern | 13 |
1 files changed, 9 insertions, 4 deletions
@@ -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 <DEVICE> 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 |