arm通过tftp从ubuntu主机上下载可执行程序

来源:互联网 发布:mac初始密码是多少 编辑:程序博客网 时间:2024/06/05 09:50


(1)设置ubuntu主机IP

(2) 在arm超级终端上 pri;

(3)连接网线

(4)设置 #set gatewayip 192.168.2.1

  设置 #set ipaddr  192.168.2.244

  设置 #set serverip (ubuntu主机ip)

     # save 

(5)# ping  (ubuntu机ip)

(6)# tftp  0x40008000 1.bin 

注:上传成功提示 ####

失败提示 ttttt  (time out)   或者file not found    重新 ping  (ubuntu主机IP) 或 重启 ubuntu 主机server  tftp

(7)在arm板上执行 go 40008000  运行程序




1、exynos4412-fs4412.dtb //  ramdisk.img // uImage  放到 tftp的目录
2、在超级终端 下载3个文件
   tftp 0x41000000 uImage
   tftp 0x42000000 ramdisk.img 
   tftp 0x43000000 exynos4412-fs4412.dtb
   bootm 0x41000000   0x42000000     0x43000000
   
3、进入linux:把a.out下载下来,运行。
   tftp -r a.out(要下载的文件名) -g 192.168.2.160(服务器ip)

注:必须chmod  777 a.out  才能 运行可执行程序a.out




0 0