porting U-Boot 2020.04-rc2-g464df88-dirty to am4372

build 

make O=../u-boot-am4372 am43xx_evm_defconfig

make O=../u-boot-am4372

Use Fdisk to flash rootfs/MLO/u-boot.img to emmc

setup nfs boot,copy zImage,dtb to ~/tftpboot

=>setenv serverip 192.168.1.105

=>run findfdt

=>setenv rootpath /home/th/nfs/rootfs

=>run netboot

part and format emmc

after nfsboot

 

  • Assuming the eMMC is /dev/mmcblk0. Format it this way:
    1.01. fdisk /dev/mmcblk0
    1.02. o - this clears the existing partitions
    1.03. p - this lists all partition tables on the card (there should be none)
    1.04. n - create a new partition
    1.05. p - primary partition
    1.06. 1 - partition number
    1.07. 2048 - default value for the first sector
    1.08. +16M - last sector / partition size
    1.09. t - change the partition type (select partition 1)
    1.10. e - change tha partition type to "W95 FAT16 (LBA)"
    1.11. a - set the bootable flag for the selected partition (select partition 1)
    1.12. n - create a new partition
    1.13. p - primary partition
    1.14. 2 - partition number
    1.15. hit Enter to choose the default (next available) value for the first sector
    1.16. hit Enter to choose the default (last) value for the last sector
    1.17. p - this lists all partition tables on the card (there should be two)
    1.18. w - write all the above changes to disk
    1.19. umount /dev/mmcblk0p1 - if mounted
    1.20. mkfs.vfat -F 16 /dev/mmcblk0p1 - format the first partition
    1.21. umount /dev/mmcblk0p2 - if mounted
    1.22. mkfs.ext4 /dev/mmcblk0p2 - format the second partition

  • Copy the {MLO,u-boot.img,uImage} files to the first partition:
    2.1. mkdir boot
    2.2. mount /dev/mmcblk0p1 boot
    2.3. cp /{MLO,u-boot.img,uImage} boot
    2.4. sync
    2.5. umount boot

  • Extract the root file system to the second partition:
    3.1. mkdir root
    3.2. mount /dev/mmcblk0p2 root
    3.3. tar -xf /tisdk-rootfs-image-am335x-evm.tar.gz -C root
    3.4. sync
    3.5. umount root

change points

From 9d79400f8720ceb912367d1768d82668e8ac2ca0 Mon Sep 17 00:00:00 2001           
From: Your Name <you@example.com>                                                
Date: Sun, 8 Mar 2020 23:10:14 +0800                                             
Subject: [PATCH] add am4372 ds support                                           
                                                                                 
---                                                                              
 Makefile                               |  2 +-                                  
 arch/arm/dts/am437x-gp-evm-u-boot.dtsi |  4 ++++                                
 arch/arm/dts/am437x-gp-evm.dts         | 27 +++++++++++++++++++++++++--         
 board/ti/am43xx/board.c                |  2 +-                                  
 board/ti/am43xx/mux.c                  | 15 ++++++++++++++-                     
 board/ti/common/board_detect.c         |  2 +-                                  
 include/configs/am43xx_evm.h           |  6 +++++-                              
 include/environment/ti/mmc.h           |  2 +-                                  
 8 files changed, 52 insertions(+), 8 deletions(-)                               
                                                                                 
diff --git 
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值