ARM GPL Sources =============== This file contains recipes how to compile the ARM GPL sources provided by snom and flash the U-Boot/Kernel images from U-Boot. All recipes are tested by snom, but they might fail or need adjustments in different build environments. Downloads ========= - Download the ARM GPL source packages to build and tools.tgz from http://www.snom.com and save them into /tmp/gplarchives/ - Download "Sourcery G++ Lite 2007q1-21 for ARM GNU/Linux" as "IA32 GNU/LINUX TAR" from http://www.mentor.com and save it into /tmp/gplarchives/ Preparation =========== - cd /tmp - mkdir gplbuild - cd /tmp/gplbuild - mkdir images - tar xzvf /tmp/gplarchives/tools.tar.gz Toolchain ========= - cd /tmp/gplbuild - tar xjvf /tmp/gplarchives/arm-2007q1-21-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2 - export PATH=`pwd`/arm-2007q1/bin:`pwd`/tools:$PATH - export CROSS_COMPILE=arm-none-linux-gnueabi- - export ARCH=arm snom720/760 =========== 720/760 U-Boot Preparation -------------------------- - cd /tmp/gplbuild - tar xzvf /tmp/gplarchives/u-boot_720_760.tar.gz 720 U-Boot Compile ------------------ - cd /tmp/gplbuild/u-boot_720_760 - make tnetv107x_snom720_config - make - python ../tools/mkimage.py u-boot.bin - cp u-boot.bin.ublimg ../images/u-boot720.bin.ublimg 760 U-Boot Compile ------------------ - cd /tmp/gplbuild/u-boot_720_760 - make tnetv107x_snom760_config - make - python ../tools/mkimage.py u-boot.bin - cp u-boot.bin.ublimg ../images/u-boot760.bin.ublimg 720/760 Kernel Preparation -------------------------- - cd /tmp/gplbuild - tar xzvf /tmp/gplarchives/kernel_720_760.tar.gz 720 Kernel Compile ------------------ - cd /tmp/gplbuild/kernel_720_760 - make tnetv107x_snom_720_defconfig - make clean uImage - cp arch/arm/boot/uImage ../images/uImage-720 760 Kernel Compile ------------------ - cd /tmp/gplbuild/kernel_720_760 - make tnetv107x_snom_760_defconfig - make clean uImage - cp arch/arm/boot/uImage ../images/uImage-760 snom870/821/Vision ================== 870/821/Vision U-Boot Preparation --------------------------------- - cd /tmp/gplbuild - tar xzvf /tmp/gplarchives/u-boot_870_821_Vision.tar.gz 870/821 U-Boot Compile ---------------------- - cd /tmp/gplbuild/u-boot_870_821_Vision - export TARGET_CPU=9260 - make clobber; make unconfig; make spearbasic_config - make REV=BA ENV=NAND - cp u-boot_image.bin ../images/u-boot_image_870_821.bin Vision U-Boot Compile --------------------- - cd /tmp/gplbuild/u-boot_870_821_Vision - export TARGET_CPU=9260 - make clobber; make unconfig; make spearbasic_config - make REV=BA ENV=NAND STE100P=1 - cp u-boot_image.bin ../images/u-boot_image_870E.bin 870/821/Vision Kernel Preparation --------------------------------- - cd /tmp/gplbuild - tar xzvf /tmp/gplarchives/kernel_870_821_Vision.tar.gz 870/Vision Kernel Compile ------------------------- - cd /tmp/gplbuild/kernel_870_821_Vision - make snom_dbg_defconfig - make clean uImage - cp arch/arm/boot/uImage ../images/uImage-870_Vision 821 Kernel Compile ------------------ - cd /tmp/gplbuild/kernel_870_821_Vision - make snom821_dbg_defconfig - make clean uImage - cp arch/arm/boot/uImage ../images/uImage-821 snom MeetingPoint ================= MeetingPoint Kernel Preparation ------------------------------- - cd /tmp/gplbuild - tar xzvf /tmp/gplarchives/kernel_MP.tar.gz MeetingPoint Kernel Compile --------------------------- - cd /tmp/gplbuild/kernel_MP/linux-2.6.24 - make snom_mp_defconfig - make clean uImage - cp arch/arm/boot/uImage ../../images/uImage-MP Flashing Images =============== Preparation ----------- - Start a TFTP server which hosts all images from /tmp/gplbuild/images - Boot into U-Boot shell and set the U-Boot variables ipaddr, gatewayip, netmask and serverip as required for your network configuration 720 U-Boot ---------- - mtdparts default; tftp ${ramaddress} u-boot720.bin.ublimg; nand erase uboot; nand write.e ${ramaddress} uboot 760 U-Boot ---------- - mtdparts default; tftp ${ramaddress} u-boot760.bin.ublimg; nand erase uboot; nand write.e ${ramaddress} uboot 720 Kernel ---------- - mtdparts default; tftp ${ramaddress} uImage-720; nand erase kernel; nand write.e ${ramaddress} kernel 760 Kernel ---------- - mtdparts default; tftp ${ramaddress} uImage-760; nand erase kernel; nand write.e ${ramaddress} kernel 870/821 U-Boot -------------- - tftp 0x1600000 u-boot_image_870_821.bin;nand erase 0x10000 0x4C000;nand write.e 0x1600000 0x10000 $(filesize) Vision U-Boot ------------- - tftp 0x1600000 u-boot_image_870E.bin;nand erase 0x10000 0x4C000;nand write.e 0x1600000 0x10000 $(filesize) 870/Vision Kernel ----------------- - tftp 0x1600000 uImage-870_Vision;nand erase 0x00080000 0x00200000;nand write.e 0x1600000 0x00080000 $(filesize) 821 Kernel ---------- - tftp 0x1600000 uImage-821;nand erase 0x00080000 0x00200000;nand write.e 0x1600000 0x00080000 $(filesize) MeetingPoint Kernel ------------------- - ethinit - tftp 0x21000000 uImage-MP;nand erase 0x80000 0x200000;nand write.e 0x21000000 0x80000 $filesize