(TDA4 BSP )Texas Instruments Jacinto 7 J721E (DRA829/TDA4xM) BSP 如何制作?

1.1.1. Download and Install the SDK — Processor SDK Linux for J721e Documentationicon-default.png?t=N7T8https://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)

PROCESSOR-SDK-J721E Software development kit (SDK) | TI.com

 

这个网址可以下载到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,同时rootfsboot文件夹可以访问

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$ 


 

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

aFakeProgramer

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值