====== Linux для AM437x Sitara™ Processors ====== ===== Компилятор Linaro ===== Скачиваем компилятор Linaro: [[https://releases.linaro.org/components/toolchain/binaries/6.2-2016.11/arm-linux-gnueabihf/gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf.tar.xz]] Распаковываем компилятор либо в домашнюю директорию, либо в "/opt" (потребуются права суперпользователя): tar xJf gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf.tar.xz export CC=<путь к компилятору>/gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf- **Проверить работу компилятора** ${CC}gcc --version arm-linux-gnueabihf-gcc (Linaro GCC 6.2-2016.11) 6.2.1 20161016 Copyright (C) 2016 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. ===== u-boot ===== **Скачать исходный код** git clone https://github.com/u-boot/u-boot cd u-boot/ git checkout v2017.09-rc2 -b tmp **Скачать и установить дополнения** wget -c http://www.mentorel.com/downloads/usomiq/patches/add-am437x-usomiq-u-boot-2017.09-rc2.patch patch -p1 < add-am437x-usomiq-u-boot-2017.09-rc2.patch **Выполнить компиляцию U-Boot** make ARCH=arm CROSS_COMPILE=${CC} distclean make ARCH=arm CROSS_COMPILE=${CC} am43xx_evm_defconfig make ARCH=arm CROSS_COMPILE=${CC} После успешного завершения компиляции вы получите два файла MLO и u-boot.img, которые необходимо записать на SD карту. ===== Ядро Linux ===== **Скачайте исходный код** git clone https://github.com/RobertCNelson/ti-linux-kernel-dev.git cd ti-linux-kernel-dev/ git checkout origin/ti-linux-4.4.y -b tmp **Сборка ядра** ./build_kernel.sh Enable PRU\\ needs testing git clone git://git.ti.com/processor-firmware/ti-amx3-cm3-pm-firmware.git git clone git://git.ti.com/pru-software-support-package/pru-software-support-package.git http://software-dl.ti.com/codegen/non-esd/downloads/download.htm#PRU wget http://software-dl.ti.com/codegen/esd/cgt_public_sw/PRU/2.1.5/ti_cgt_pru_2.1.5_linux_installer_x86.bin chmod a+x ti_cgt_pru_2.1.5_linux_installer_x86.bin ./ti_cgt_pru_2.1.5_linux_installer_x86.bin answer Yes http://software-dl.ti.com/codegen/non-esd/downloads/download.htm#ARM download ARM Code Generation Tools v5.2.9 -> Linux version. Registration at TI is necessary chmod a+x ti_cgt_tms470_5.2.9_linux_installer_x86.bin ./ti_cgt_tms470_5.2.9_linux_installer_x86.bin