Tiny210编译和烧写u-boot步骤

当有多个交叉编译器是,不方便设置环境变量时,可以在编译命令中指定交叉编译器,具体如下:

make ARCH=arm CROSS_COMPILE=/opt/FriendlyARM/toolschain/4.5.1/bin/arm-none-linux-gnueabi- mrproper

make distclean
make ARCH=arm CROSS_COMPILE=/opt/FriendlyARM/toolschain/4.5.1/bin/arm-none-linux-gnueabi- tiny210_config
make ARCH=arm CROSS_COMPILE=/opt/FriendlyARM/toolschain/4.5.1/bin/arm-none-linux-gnueabi- all spl

ls /dev/sdb        #是否有sdb               cat    /proc/partitions

烧写uboot到sd

sudo dd iflag=dsync oflag=dsync if=tiny210-uboot.bin of=/dev/sdb seek=1

minicom+串口

loadb 21000000

ctrl + A; Z; S; kermit; 选择自己的Uboot。

# 擦除flash 中的所有数据

nand erase.chip

# 从内存中0x21000000处写入0x80000长度的数据到flash的0x0 地址

nand write 0x21000000 0x0 0x80000

原文地址:https://www.cnblogs.com/hei-da-mi/p/4581496.html