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

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


wiki:linux-am437x

Различия

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

Ссылка на это сравнение

Следующая версия
Предыдущая версия
wiki:linux-am437x [2017/09/13 17:29] – создано maxxwiki:linux-am437x [2017/09/15 18:54] (текущий) – [Ядро Linux] maxx
Строка 6: Строка 6:
 <code> <code>
 tar xJf gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf.tar.xz 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>
 +**Проверить работу компилятора**
 +<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 ===== ===== 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 
 +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 
 +</code>
wiki/linux-am437x.1505312988.txt.gz · Последнее изменение: 2017/09/13 17:29 — maxx