uboot 配置 tftp的启动参数

ubuntu 安装tftp server:https://blog.csdn.net/andayjon/article/details/88540639

1、uboot 配置内核和dts、文件系统

           首先 内核和dts 是通过tftpboot进行获取配置

           文件系统是用 nfs 挂载实现

   

# setenv serverip 192.168.9.120
# setenv ipaddr 192.168.9.233
# setenv bootcmd tftp 41000000 uImage;tftp 42000000 exynos4412-fs4412.dtb;bootm 41000000 - 42000000、
#setenv bootargs root=/dev/nfs nfsroot=192.168.9.120:/source/rootfs rw console=ttySAC2,115200  init=/linuxrc  ip=192.168.9.233
# saveenv

 

2、openwrt uboot

https://oldwiki.archive.openwrt.org/doc/techref/bootloader/uboot.config

参考文档:《系统移植实验手册.doc》

3、 uboot 自身的调试方法

       通过tftp下载到内存,然后指定加载内存, 进行执行,  链接:  https://blog.csdn.net/qiaoliang328/article/details/4368951

       tftp 0x30100000 u-boot.bin
      cp 0x300100000 0x000000000 0x1000          /*说明0x1000=4096也就是4k,为什么是4k,见Steppingstone*/
       go 0x00000000    

       以上这种方式是三星的mcu才支持

            

原文地址:https://www.cnblogs.com/hzijone/p/11533228.html