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