MIPS GPL Sources ================ This file contains recipes how to compile the MIPS 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 Preparation =========== - cd /tmp - mkdir gplbuild - cd /tmp/gplbuild - mkdir images - tar xzvf /tmp/gplarchives/tools.tar.gz Toolchain ========= - cd /tmp/gplbuild - wget http://wiki.siemens-enterprise.com/ftp/DeskPhone-OSSW/V3R2/ifx-lxdb26/ifx-lxdb26-1.0.4-2-src.run - chmod +x ifx-lxdb26-1.0.4-2-src.run - ./ifx-lxdb26-1.0.4-2-src.run - cd /tmp/gplbuild/uclibc_toolchain_src - ./build_toolchain.sh -b - export TOOLCHAIN_DIR=/tmp/gplbuild/uclibc_toolchain - export PATH=$TOOLCHAIN_DIR/gcc-3.4.4/toolchain-mips-sf/bin:$TOOLCHAIN_DIR/hostutils/bin:/tmp/gplbuild/tools:$PATH - export CROSS_COMPILE=mips-linux- snom710 ======= 710 U-Boot and Kernel Preparation --------------------------------- - cd /tmp/gplbuild - tar xzvf /tmp/gplarchives/u-boot_kernel_710.tar.gz 710 U-Boot and Kernel Compile ----------------------------- - cd /tmp/gplbuild/u-boot_kernel_710/tools/build_tools/ - cp ../../config/Config.help /tmp/gplbuild/u-boot_kernel_710/ - cp ../../config/kernel_config /tmp/gplbuild/u-boot_kernel_710/ - source .gen_funcs - ./setup.sh -p ../../config/ - cp /tmp/gplbuild/u-boot_kernel_710/Config.help ../../config/ - make menuconfig - Make sure that in "General Setup" --> "Toolchain Absolute Path" is set to "/tmp/gplbuild/uclibc_toolchain" - "< Exit >" - Mark "Change default configurations" with an asterisk - Mark "Set new configurations as default" with an asterisk - "< Exit >" - "< Yes >" - Mark "INCA-IP2 TAPI" with an asterisk - "< Exit >" - "< Yes >" - Leave all further configurations screens with "< Exit >" followed by "< Yes >" and answer questions with "y" until you get back to the shell prompt - cp /tmp/gplbuild/u-boot_kernel_710/kernel_config ../../config/ - make build - "Select build targets" --> Remove asterisk from "All default tagets" and mark "Kernel" and "u-boot" with an asterisk - Mark "Image" and "Modules" with an asterisk - "< Exit >" - "< Yes >" - cp ../../source/kernel/opensource/linux/arch/mips/boot/uImage /tmp/gplbuild/images/uImage-710 - cp ../../source/u-boot/ld_uboot.img /tmp/gplbuild/images/ld_uboot_710.img 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 710 U-Boot ---------- - tftp 0x80a00000 ld_uboot_710.img; nand erase partition 1; nand write 0x80a00000 partition 1 710 Kernel ---------- - tftp 0x80000000 uImage-710; nand erase partition 6; nand write 0x80000000 partition 6