diff options
author | Chander Kashyap <chander.kashyap@linaro.org> | 2011-10-03 12:38:00 +0530 |
---|---|---|
committer | John Rigby <john.rigby@linaro.org> | 2012-12-06 13:51:41 -0700 |
commit | 5777e12667d2d7ee15aaf74cd3a2f7800f2c847d (patch) | |
tree | cea18fc633cc43d18b7e04cfdd2aaefaaab1d33a | |
parent | e3bf878423951965d7238c89eeb84b5754c0417d (diff) |
Flashing and build script
Signed-off-by: Chander Kashyap <chander.kashyap@linaro.org>
-rw-r--r-- | build_flash/FWL1 | bin | 0 -> 8192 bytes | |||
-rw-r--r-- | build_flash/README | 14 | ||||
-rwxr-xr-x | build_flash/build.sh | 55 | ||||
-rw-r--r-- | build_flash/export.sh | 2 |
4 files changed, 71 insertions, 0 deletions
diff --git a/build_flash/FWL1 b/build_flash/FWL1 Binary files differnew file mode 100644 index 000000000..f4f2ddcd5 --- /dev/null +++ b/build_flash/FWL1 diff --git a/build_flash/README b/build_flash/README new file mode 100644 index 000000000..62bc856b5 --- /dev/null +++ b/build_flash/README @@ -0,0 +1,14 @@ +This Directory contains the following files: + +build.sh: Utility to build and flash the boar specific u-boot images + +export.sh: Utility to export the build environment. Please update the + correct tool-chain path in this file. + +FWL1: First 8K firmware for the needed for the emdkv310 EVT1 boards. + +NOTE****** +Please keep this directory in the TOPDIR(U-Boot-source). +e.g. if u-boot source lies in a/u-boot-samsung + place this directory at a/u-boot-samsung + diff --git a/build_flash/build.sh b/build_flash/build.sh new file mode 100755 index 000000000..353dc5a11 --- /dev/null +++ b/build_flash/build.sh @@ -0,0 +1,55 @@ +#!/bin/sh + +. ./export.sh; +cd ..; +case $1 in + -h) clear; + echo "This is a automated tool to build and flash" + echo "ORIGEN and SMDKV310(EVT0|EVT1) boards" + echo""; + echo "-b: Build Image"; + echo "-f: Flash Image"; + echo "-h: Show Help"; + echo "-v: Show Version"; + echo""; + echo "examples:" + echo "Build image: \$ build.sh -b origen|smdkv310"; + echo""; + echo "Flash image: \$ build.sh -f origen|smdkv310|smdkv310_evt1"; + echo""; + echo"";; + + -v) clear; + echo "Version 1.0"; + echo ""; + echo "Written By: Chander kashyap"; + echo "";; + + -b) make distclean; + + case $2 in + smdkv310 | smdkv310_evt1) + make smdkv310_config;; + + origen) + make origen_config;; + esac + make -j8;; + + -f) umount /media/*; + + case $2 in + smdkv310) + sudo dd if=spl/smdkv310-spl.bin of=/dev/sdc bs=512 count=32 seek=1; + sudo dd if=u-boot.bin of=/dev/sdc bs=512 count=1024 seek=65;; + + origen) + sudo dd if=spl/origen-spl.bin of=/dev/sdc bs=512 count=32 seek=1; + sudo dd if=u-boot.bin of=/dev/sdc bs=512 count=1024 seek=65 ;; + smdkv310_evt1) + cd -;sudo dd if=FWL1 of=/dev/sdc bs=512 count=16 seek=1;cd -; + sudo dd if=spl/smdkv310-spl.bin of=/dev/sdc bs=512 count=32 seek=17; + sudo dd if=u-boot.bin of=/dev/sdc bs=512 count=1024 seek=49;; + esac +esac +cd -; diff --git a/build_flash/export.sh b/build_flash/export.sh new file mode 100644 index 000000000..afe5af35e --- /dev/null +++ b/build_flash/export.sh @@ -0,0 +1,2 @@ +export ARCH=arm +export CROSS_COMPILE=/opt/linaro-gcc-4.5-arm-linux-gnueabi-32bit/bin/arm-linux-gnueabi- |