One, TK1 drive package, file system and source code download
截止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
Second, compile the source code
The following steps are done in the host, not the board//cross-compilation tool Cross-compliersudo Apt-get install GCC-ARM-LINUX-GNUEABIHF build-essential//<l4t_ Version> representative version, this version is R21.5, the same as sudo tar-xjf tegra124_linux_r<l4t_version>_armhf.tbz2cd 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///Configuring the. config file arch=arm make Tegra12_defconfig
Installing Ncurses-devel
sudo apt-get install ncurses-dev//Cross compile, make menuconfig way to compile the Linux kernel arch=arm make menuconfig//find the desired driver in the menu, Device Drivers->usb Serials convertion->usbserials support && Usbserials & can be compiled modules or build-in way & 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 burn sudo./flash.sh jetson-tk1 mmcblk0p1
Jetson TK1 Mounting Usbtoserials Drive