diff options
Diffstat (limited to 'tam3517-build-everything.sh')
-rwxr-xr-x | tam3517-build-everything.sh | 11 |
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') |