1.1.1. Download and Install the SDK — Processor SDK Linux for J721e Documentationhttps://software-dl.ti.com/jacinto7/esd/processor-sdk-linux-jacinto7/08_00_00_08/exports/docs/linux/Overview/Download_and_Install_the_SDK.html
Texas Instruments Jacinto 7 J721E (DRA829/TDA4xM)
这个网址可以下载到TDA4_BSP需要的东西
1、Download and Install the SDK
file:///home/etastc8/ti--sdk-linux/docs/linux/Overview/Download_and_Install_the_SDK.html
http://software-dl.ti.com/jacinto7/esd/processor-sdk-linux-jacinto7/latest/index_FDS.html
chmod +x ./ti-processor-sdk-linux-j7-evm-<version>-Linux-x86-Install.bin #(replace the name of the package download)
./ti-processor-sdk-linux-j7-evm-08_00_00_08-Linux-x86-Install.bin
2、添加上面的内核选项到tisdk_j7-evm_defconfig 文件中
(这一步如果不需要可以不添加)
CONFIG_EXT2_FS_POSIX_ACL=y
CONFIG_EXT3_FS_POSIX_ACL=y
CONFIG_NFS_V3_ACL=y
CONFIG_EXT4_FS_POSIX_ACL=y
CONFIG_BTRFS_FS_POSIX_ACL=y
CONFIG_TMPFS_FS_POSIX_ACL=y
Rules.make文件中有变量的定义:
#defconfig
DEFCONFIG=tisdk_j7-evm_defconfig 文件中
/home/developer/BSP1/board-support/linux-5.10.41+gitAUTOINC+4c2eade9f7-g4c2eade9f7/arch/arm64/configs/tisdk_j7-evm_defconfig
命令中的目录需要根据自己PC上的实际路径修改
3、 Run Setup Scripts
How to run the setup script?
The Setup Script (setup.sh) is located in the Processor SDK Linux J721e installation directory. By default, this directory has a name that has the form ti-processor-sdk-linux-j7-evm-<version>.
Then run the script:
./setup.sh
4、 Formatting SD card on Linux
mount your SD card on this ubuntu
By default Ubuntu uses “dash” as the default shell for /bin/sh. You must reconfigure to use bash by running the following command:
sudo dpkg-reconfigure dash
Be sure to select “No” when you are asked to use dash as the default system shell.
The mksdboot.sh script can be run from any location but must be run with root permissions. This usually means using the sudo command to start execution of the script. For example:
------------------------------------------------------------------------------------------------------------------
sudo <SDK INSTALL DIR>/bin/mksdboot.sh --device /dev/sdX --sdk <SDK INSTALL DIR>
sudo /home/etastc8/ti--sdk-linux/bin/mksdboot.sh --device /dev/sdb --sdk /home/etastc8/ti--sdk-linux/
sudo /home/etastc8/ti-processor-sdk-linux-j7-evm-08_00_00_08/bin/mksdboot.sh --device /dev/sdb --sdk /home/etastc8/ti--sdk-linux/
#Replace the /dev/sdX with appropriate device name
----------------------------------------------------------------------------------------------------------------------
5、Required Host Packages
Please run the following command to install all packages required to by the makefile targets.
host# sudo apt-get install build-essential autoconf automake bison flex libssl-dev bc u-boot-tools python diffstat texinfo gawk chrpath dos2unix wget unzip socat doxygen libc6:i386 libncurses5:i386 libstdc++6:i386 libz1:i386 g++-multilib
----------------------------------------------------------------------------------------------------------------------
Download Compiler toolchain
On the download page, you will find links to the recommended compiler toolchains. Download and extract them into your home directory. Note that you have to download both the toolchains for ARMv8 and ARMv7. Make sure to update your PATH to include the path to toolchain.
GCC92PATH=$HOME/gcc-arm-9.2-2019.12-x86_64-aarch64-none-linux-gnu/bin:$HOME/gcc-arm-9.2-2019.12-x86_64-arm-none-linux-gnueabihf/bin
export PATH=$GCC92PATH:$PATH
6、Simplified SDK Build using Top-Level Makefile
Required Host Packages
Please run the following command to install all packages required to by the makefile targets.
host# sudo apt-get install build-essential autoconf automake bison flex libssl-dev bc u-boot-tools (上面运行过了)
GCC92PATH=$HOME/gcc-arm-9.2-2019.12-x86_64-aarch64-none-linux-gnu/bin:$HOME/gcc-arm-9.2-2019.12-x86_64-arm-none-linux-gnueabihf/bin
export PATH=$GCC92PATH:$PATH
make clean
make all
7、Installing to SD card rootfs
All the install targets copy the files in the rootfs pointed by the DESTDIR variable. By default, Rules.make points the DESTDIR to the NFS path for filesystem. If you want to install the files to the SD card, you should be able to specify different path to DESTDIR on commandline. e.g. run following for installing everything in the SD card rootfs.
确保插入已经分好区的SD Card,同时rootfs与boot文件夹可以访问
host# sudo DESTDIR=/media/$USER/rootfs make install
#Replace the path to SD card rootfs partition as appropriate
Installing boot binaries
All the install targets copy the files in the rootfs pointed by the DESTDIR variable. make install command only copies the files in rootfs. If you have built either of system firmware or u-boot, you should copy these binaries in the boot partition of the SD card. e.g. run following to copy boot binaries in SD card boot partition.
host# sudo cp board-support/u-boot_build/a72/u-boot.img board-support/u-boot_build/a72/tispl.bin board-support/u-boot_build/r5/tiboot3.bin /media/$USER/boot
#Replace the path to SD card boot partition as appropriate
xiang@Ubuntu18:~/ti-processor-sdk-linux-j7-evm-08_04_00_11
export PATH=/home/etastc8/ti-processor-sdk-linux-j7-evm-08_00_00_08/linux-devkit/sysroots/x86_64-arago-linux/usr/bin:$PATH
xiang@Ubuntu18:~$ cd ti-processor-sdk-linux-j7-evm-08_04_00_11/board-support/linux-5.10.120+gitAUTOINC+95b90aa828-g95b90aa828/
xiang@Ubuntu18:~/ti-processor-sdk-linux-j7-evm-08_04_00_11/board-support/linux-5.10.120+gitAUTOINC+95b90aa828-g95b90aa828$ ti_config_fragments/defconfig_builder.sh -t ti_sdk_arm64_release
export ARCH=arm64
xiang@Ubuntu18:~/ti-processor-sdk-linux-j7-evm-08_04_00_11/board-support/linux-5.10.120+gitAUTOINC+95b90aa828-g95b90aa828$ make ti_sdk_arm64_release_defconfig
xiang@Ubuntu18:~/ti-processor-sdk-linux-j7-evm-08_04_00_11/board-support/linux-5.10.120+gitAUTOINC+95b90aa828-g95b90aa828$ mv .config arch/arm64/configs/tisdk_j7-evm_defconfig
mv .config arch/arm64/configs/tisdk_[platformName]-evm_defconfig
log:
xiang@Ubuntu18:~$ sudo find . -name defconfig_builder.sh
./ti-processor-sdk-linux-j7-evm-08_04_00_11/board-support/linux-5.10.120+gitAUTOINC+95b90aa828-g95b90aa828/ti_config_fragments/defconfig_builder.sh
./ti-processor-sdk-linux-j7-evm-08_02_00_03/board-support/linux-5.10.100+gitAUTOINC+7a7a3af903-g7a7a3af903/ti_config_fragments/defconfig_builder.sh
xiang@Ubuntu18:~$ cd ti-processor-sdk-linux-j7-evm-08_04_00_11/board-support/linux-5.10.120+gitAUTOINC+95b90aa828-g95b90aa828/
xiang@Ubuntu18:~/ti-processor-sdk-linux-j7-evm-08_04_00_11/board-support/linux-5.10.120+gitAUTOINC+95b90aa828-g95b90aa828$ ti_config_fragments/defconfig_builder.sh -t ti_sdk_arm64_release
Creating defconfig file /home/xiang/ti-processor-sdk-linux-j7-evm-08_04_00_11/board-support/linux-5.10.120+gitAUTOINC+95b90aa828-g95b90aa828/arch/arm64/configs/ti_sdk_arm64_release_defconfig
xiang@Ubuntu18:~/ti-processor-sdk-linux-j7-evm-08_04_00_11/board-support/linux-5.10.120+gitAUTOINC+95b90aa828-g95b90aa828$ export ARCH=arm64
xiang@Ubuntu18:~/ti-processor-sdk-linux-j7-evm-08_04_00_11/board-support/linux-5.10.120+gitAUTOINC+95b90aa828-g95b90aa828$ ls
arch crypto init lib modules.builtin net security usr
block Documentation ipc LICENSES modules.builtin.modinfo patches sound virt
certs drivers Kbuild MAINTAINERS modules-only.symvers README System.map vmlinux
COPYING fs Kconfig Makefile modules.order samples ti_config_fragments vmlinux.o
CREDITS include kernel mm Module.symvers scripts tools vmlinux.symvers
xiang@Ubuntu18:~/ti-processor-sdk-linux-j7-evm-08_04_00_11/board-support/linux-5.10.120+gitAUTOINC+95b90aa828-g95b90aa828$ make ti_sdk_arm64_release_defconfig
#
# configuration written to .config
#
xiang@Ubuntu18:~/ti-processor-sdk-linux-j7-evm-08_04_00_11/board-support/linux-5.10.120+gitAUTOINC+95b90aa828-g95b90aa828$ mv .config arch/arm64/configs/
defconfig ti_sdk_arm64_release_defconfig tisdk_j7-evm_defconfig
xiang@Ubuntu18:~/ti-processor-sdk-linux-j7-evm-08_04_00_11/board-support/linux-5.10.120+gitAUTOINC+95b90aa828-g95b90aa828$ mv .config arch/arm64/configs/ti
ti_sdk_arm64_release_defconfig tisdk_j7-evm_defconfig
xiang@Ubuntu18:~/ti-processor-sdk-linux-j7-evm-08_04_00_11/board-support/linux-5.10.120+gitAUTOINC+95b90aa828-g95b90aa828$ mv .config arch/arm64/configs/tisdk_j7-evm_defconfig
xiang@Ubuntu18:~/ti-processor-sdk-linux-j7-evm-08_04_00_11/board-support/linux-5.10.120+gitAUTOINC+95b90aa828-g95b90aa828$
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)