标签:support dir amp arm-linux 编译 bash arc sudo curses
截止2016年9月1号,tk1最版本为R21.5。 (以下三个文件放在同一个文件夹下)
1、driver package(驱动包,相当于安装程序)
https://developer.nvidia.com/embedded/dlc/l4t-Jetson-TK1-Driver-Package-R21-5
2、Sample File System
https://developer.nvidia.com/embedded/dlc/l4t-Jetson-TK1-Sample-Root-Filesystem-R21-5
3、Kernel sources
https://developer.nvidia.com/embedded/dlc/l4t-Jetson-TK1-Kernel-Sources-R21-5
//以下步骤在主机中完成,不在开发板 //交叉编译工具 cross-complier sudo apt-get install gcc-arm-linux-gnueabihf build-essential //<L4T_version>代表版本,本版本是R21.5,下同 sudo tar -xjf Tegra124_Linux_R<L4T_version>_armhf.tbz2 cd Linux_for_Tegra/rootfs // sudo tar -xjpf <path_to>/Tegra_Linux_Sample-Root-Filesystem_R<L4T_version>_armhf.tbz2 // cd .. // export LDK_ROOTFS_DIR=<absolute path to Linux_for_Tegra>/rootfs // sudo ./apply_binaries.sh // tar -xjf <path_to>/kernel_src.tbz2 // cd kernel/ //配置.config文件 ARCH=arm make tegra12_defconfig
//安装ncurses-devel
sudo apt-get install ncurses-dev //交叉编译,make menuconfig方式编译linux内核 ARCH=arm make menuconfig //在菜单中找到所需的驱动,可以已modules或者build-in方式编译 Device Drivers->Usb serials convertion->usbserials support && usbserials && cp201x,ftdi,pl2303 // ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- make zImage // ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- make modules // ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- make modules_install INSTALL_MOD_PATH=$LDK_ROOTFS_DIR // cp arch/arm/boot/zImage $LDK_ROOTFS_DIR/boot // cp arch/arm/boot/zImage <path_to>/Linux_for_Tegra/kernel/zImage //flash.sh 烧录 sudo ./flash.sh jetson-tk1 mmcblk0p1
标签:support dir amp arm-linux 编译 bash arc sudo curses
原文地址:http://www.cnblogs.com/lvchaoshun/p/6159248.html