Инструменты пользователя

Инструменты сайта


wiki:linux-am437x
no way to compare when less than two revisions

Различия

Показаны различия между двумя версиями страницы.


Предыдущая версия
Последняя версия
wiki:linux-am437x [2017/09/15 18:41] – [Ядро Linux] maxx
Строка 1: Строка 1:
 +====== 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" (потребуются права суперпользователя):
 +<code>
 +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- 
 +</code>
 +**Проверить работу компилятора**
 +<code>
 +${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.
 +</code> 
 +===== u-boot =====
 +**Скачать исходный код**
 +<code>
 +git clone https://github.com/u-boot/u-boot
 +cd u-boot/
 +git checkout v2017.09-rc2 -b tmp
 +</code>
 +**Скачать и установить дополнения**
 +<code>
 +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
 +</code>
 +**Выполнить компиляцию U-Boot**
 +<code>
 +make ARCH=arm CROSS_COMPILE=${CC} distclean
 +make ARCH=arm CROSS_COMPILE=${CC} am43xx_evm_defconfig
 +make ARCH=arm CROSS_COMPILE=${CC}
 +</code>
 +После успешного завершения компиляции вы получите два файла MLO и u-boot.img, которые необходимо записать на SD карту.
 +===== Ядро Linux =====
 +**Скачайте исходный код**
 +<code>
 +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
 +</code>
 +**Сборка ядра**
 +<code>
 +./build_kernel.sh
 +</code>
 +Enable PRU\\
 +needs testing
 +<code>
 +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
 +</code>
wiki/linux-am437x.txt · Последнее изменение: 2017/09/15 18:54 — maxx