ZHCABB3 July   2021 DRA821U , DRA829J , DRA829V , TDA4VM , TDA4VM-Q1

 

  1.   摘要
  2.   商标
  3. 1刷写工具简介
    1. 1.1 Trace32/Lauterbach
    2. 1.2 基于 CCS 的闪存写入器
    3. 1.3 其它软件工具
  4. 2TDA4 上的闪存器件
    1. 2.1 刷写 OSPI 和 eMMC RAW 扇区
    2. 2.2 对 eMMC 用户分区进行刷写
  5. 3刷写 TDA4 的必要条件
    1. 3.1 引导开关设置
    2. 3.2 如何生成微型文件系统
    3. 3.3 生成 eMMC tisdk-tiny-image.img
    4. 3.4 运行直至 u-boot
      1. 3.4.1 UART 引导模式
      2. 3.4.2 DFU 引导
      3. 3.4.3 SD 引导或任何其他引导模式
    5. 3.5 配置 Boot0 分区和对 eMMC 进行分区
  6. 4OSPI 刷写
    1. 4.1 刷写引导加载程序二进制文件
      1. 4.1.1 TI UNIFLASH 工具
        1. 4.1.1.1 刷写说明
        2. 4.1.1.2 Linux 引导二进制文件
        3. 4.1.1.3 RTOS 引导二进制文件
    2. 4.2 dfu-util
      1. 4.2.1 刷写说明
    3. 4.3 CCS/JTAG
      1. 4.3.1 刷写说明
    4. 4.4 Trace32/Lauterbach
      1. 4.4.1 刷写说明
    5. 4.5 u-boot
      1. 4.5.1 刷写说明
  7. 5eMMC 刷写
    1. 5.1 刷写引导加载程序二进制文件
      1. 5.1.1 TI UNIFLASH 工具
        1. 5.1.1.1 刷写说明
      2. 5.1.2 Trace32/Lauterbach
        1. 5.1.2.1 刷写说明
      3. 5.1.3 dfu-util
        1. 5.1.3.1 刷写说明
    2. 5.2 u-boot
      1. 5.2.1 刷写说明
    3. 5.3 使用 tinyrootfs 在 eMMC UDA 分区中进行刷写
      1. 5.3.1 dfu-util
      2. 5.3.2 u-boot + CCS/JTAG
        1. 5.3.2.1 刷写说明

生成 eMMC tisdk-tiny-image.img

按照以下说明从 tisdk-tiny-image-j7-evm.tar.xs 创建一个微型文件系统映像 (tisdk-tiny-image.img)。

# Below code needs to run on the HOST machine
 
# Create an empty image file, seek value will create an image of that size.Typically 100MB should be enough.
# Size will should be slightly greater than size of untarred tisdk-tiny-image-j7-evm.tar.xz + size (DTBs + Kernel image)
dd if=/dev/null of=tisdk-tiny-image.img bs=1M seek=100

# Add a filesystem to it
mkfs.ext4 -F tisdk-tiny-image.img
 
# Mount it on your local machine to copy DTB and Kernel image
mkdir example_mnt_pt
sudo mount -t ext4 -o loop tisdk-tiny-image.img /home/karan/yocto-build/example_mnt_pt
 
# Untar tisdk-tiny-image-j7-evm.tar.xz on the mounted file system which is currently empty
cd example_mnt_pt
sudo tar xvf ../tisdk-tiny-image-j7-evm.tar.xz
 
# Copy DTB, DTBOs and Kernel Image for your platform
sudo cp /media/karan/rootfs/boot/Image* ./boot
sudo cp /media/karan/rootfs/boot/*dtb* ./boot
sync

# Unmount the image, now the tisdk-tiny-image.img is ready
cd ../
sudo umount /home/karan/yocto-build/example_mnt_pt