summaryrefslogtreecommitdiff
path: root/tam3517-build-everything.sh
diff options
context:
space:
mode:
authorLudovic Pouzenc <ludovic@pouzenc.fr>2011-08-11 15:16:00 +0000
committerLudovic Pouzenc <ludovic@pouzenc.fr>2011-08-11 15:16:00 +0000
commit226ddbdccd9d41f813cac1bfe2eda93437f059f8 (patch)
tree2104f4799de6c5a79f11f87eab178079449e0a4b /tam3517-build-everything.sh
parent25f3a498d2f44c18aeadbec36be60abd7de69e1d (diff)
download2011-tam3517-226ddbdccd9d41f813cac1bfe2eda93437f059f8.tar.gz
2011-tam3517-226ddbdccd9d41f813cac1bfe2eda93437f059f8.tar.bz2
2011-tam3517-226ddbdccd9d41f813cac1bfe2eda93437f059f8.zip
Correction de fautes dans les commentaires et README
git-svn-id: file:///var/svn/2011-tam3517/trunk@4 e2e0d7dd-b64d-407c-a7ae-d180efd4e19e
Diffstat (limited to 'tam3517-build-everything.sh')
-rwxr-xr-xtam3517-build-everything.sh11
1 files changed, 5 insertions, 6 deletions
diff --git a/tam3517-build-everything.sh b/tam3517-build-everything.sh
index d073d3f..2b04ac0 100755
--- a/tam3517-build-everything.sh
+++ b/tam3517-build-everything.sh
@@ -31,7 +31,7 @@ BASEPATH=/root/tam3517
# Big problems if you pickup a size bigger that your real card.
SD_SECTOR_COUNT=$((240*1024*2))
-# End of teakable parameters
+# End of tweakable parameters
# Some helpers for code factoring
function install_once() {
@@ -73,16 +73,14 @@ fi
# Install all necessary stuff for cross compiling and making up everything
install_once coreutils build-essential tar rsync gcc-4.3-arm-linux-gnueabi
-# Envrionnement creation for target-system compilation
-mkdir_once "$BASEPATH/dl"
-
# Downloading of everything that is necessary
+mkdir_once "$BASEPATH/dl"
wget_once "http://technexion.com/index.php/support-center/downloads/ti-cpu-modules/tam-3517/546-xuk-src-tar/download" "$BASEPATH/dl/xuk-src.tar.bz2"
wget_once "http://technexion.com/index.php/support-center/downloads/ti-cpu-modules/tam-3517/543-tam3517-sd-angstrom-img/download" "$BASEPATH/dl/tam3517-sd-angstrom.img.bz2"
wget_once "http://www.pouzenc.fr/misc/bin/tam3517-rootfs-image-am3517-evm.tar.gz" "$BASEPATH/dl/tam3517-rootfs-image-am3517-evm.tar.gz"
+# Envrionnement creation for target-system compilation
mkdir_once "$BASEPATH/crosscompil/xuk"
-
# x-loader, u-boot and kernel source extraction
[ -d "$BASEPATH/crosscompil/xuk/tam3517" ] || tar -xf "$BASEPATH/dl/xuk-src.tar.bz2" -C "$BASEPATH/crosscompil/xuk/"
@@ -93,7 +91,7 @@ mkdir_once "$BASEPATH/crosscompil/xuk"
CROSS_COMPILE=arm-linux-gnueabi-
export ARCH CROSS_COMPILE
- # u-bot building (mainly for mkimage bin, used for uImage generation)
+ # u-boot building (mainly for mkimage bin, used for uImage generation)
if [ ! -x "$BASEPATH/crosscompil/xuk/tam3517/u-boot/tools/mkimage" ]
then cd "$BASEPATH/crosscompil/xuk/tam3517/u-boot"
make tam3517_twister_config
@@ -120,6 +118,7 @@ mkdir_once "$BASEPATH/system/from-narcissius/mount-loop/p2"
# Reuse of some part of the demo SD image from Technexion (boot partition with x-loader installed + technexion_tools folder)
[ -f "$BASEPATH/system/technexion/tam3517-sd-angstrom.img" ] || bzip2 -d -c "$BASEPATH/dl/tam3517-sd-angstrom.img.bz2" > "$BASEPATH/system/technexion/tam3517-sd-angstrom.img"
+# Some offset computation for finding start of partitions in the Technexion demo image file
tech_p1_offset=$(fdisk -ul "$BASEPATH/system/technexion/tam3517-sd-angstrom.img" 2>/dev/null | sed -n 's/.*img1[^0-9]*\([0-9]\+\).*/\1/p')
tech_p2_offset=$(fdisk -ul "$BASEPATH/system/technexion/tam3517-sd-angstrom.img" 2>/dev/null | sed -n 's/.*img2[^0-9]*\([0-9]\+\).*/\1/p')