Uboot 命令TFTP 下载RT-Smart系统镜像并烧写到emmc

上回说到Windows下通过 Uboot TFTP 方式下载和启动rt-smart 内核, 其实只是通过TFTP下载rt-smart 内核到内存,启动开发板,并不是下载到emmc(ROM),怎么烧写emmc呢? 下面讲解

准备

  • 设置TFTP服务
  • 设置开板板IP
  • 设置服务器TFTP

请到上回Windows下通过 Uboot TFTP 方式下载和启动rt-smart 内核

下载系统镜像

=> tftp emmc.img
Using ethernet@02188000 device
TFTP from server 192.168.0.26; our IP address is 192.168.0.100
Filename 'emmc.img'.
Load address: 0x80800000
Loading: ##################################################################################################################################.......####################1.6 MiB/s
done
Bytes transferred = 69207040 (4200400 hex)

提示下载启始地址0x80800000,大小69207040Bytes /512Bytes/blk = 135170 转换为16进制 0x21002
写入emmmc

按上面计算写emmc命令为mmc write 0x80800000 0 21002

=> mmc write 0x80800000 0 21002MMC write: dev # 1, block # 0, count 135170 ... 135170 blocks written: OK

注:从内存地址0x80800000开始 写到emmc0blk开始写 135170(x21002) blks(块) 

这时看uboot环境还是之前的,这内存的,boo可以直接启动
 
设置uboot环境变量并保存:

第二次不了,环境变量,是新系统镜像的,所以要重新设置一下

setenv bootcmd "fatload mmc 1:1 0x80001000 /kernel/rtthread.bin; dcache flush; go 0x80001000"
saveenv

RT-Smart系统命令:

boot

新环境变量启动

执行结果

=> setenv bootcmd "fatload mmc 1:1 0x80001000 /kernel/rtthread.bin; dcache flush; go 0x80001000"
=> saveenv
Saving Environment to MMC...
Writing to MMC(1)... done
=> boot
reading /kernel/rtthread.bin
1182208 bytes read in 52 ms (21.7 MiB/s)Starting application at 0x80001000 ...\ | /
- RT -     Thread Smart Operating System
/ | \     5.0.0 build Dec 23 2021
2006 - 2020 Copyright by rt-thread team
lwIP-2.1.2 initialized!
[15] E/drv.enet: emac device init success[20] I/I2C: I2C bus [i2c3] registered
[24] I/I2C: I2C bus [i2c4] registered
[83] E/drv.enet:
PHY Link down, please check the cable connection and link partner setting.[117] I/SDIO: emmc card capacity 3817472 KB.
found part[0], begin: 2098176, size: 128.0MB
found part[1], begin: 136315904, size: 128.0MB
[154] I/touch: rt_touch init success
[158] I/gt911: touch device gt911 init success
[163] I/sal.skt: Socket Abstraction Layer initialize success.
emmc file system initialization done!
Dir / sd0 mount failed!
[1634] E/[RW007]: The wifi Stage 1 status 0 0 0 1
[1641] I/WLAN.dev: wlan init success
[1646] I/WLAN.lwip: eth device init ok name:w0
[1646] I/WLAN.dev: wlan init success
[1656] I/WLAN.lwip: eth device init ok name:w1rw007  sn: [rw00700000000fc584a2c4d43]
rw007 ver: [RW007_2.1.0-a7a0d089-57][5232] D/drv.enet: enet1 link up[5667] W/WLAN.mgnt: F:rt_wlan_connect L:1091 not find ap! ssid:rt-thread
hello rt-smart!
/sd/wifi.sh wi-fi configuration file not exist in sd card!
[5674] I/mcf.link.tcp: TCPServer Waiting for client on port 5555...[5692] I/mcf.link: MCF link port(3) register successfully.
msh />[5722] I/mcf.trans: MCF(V0.1.0) initialized successfully.
[5722] I/urpc: uRPC(V0.1.0) initialize successfully.
[5722] I/mcf.trans: MCF protocol started successfully.

内核成功启动,试试命令,

msh />
msh />ls
Directory /:
kernel              <DIR>
root                <DIR>
sd                  <DIR>
msh />
RT-Thread shell commands:
reboot           - reboot system
cpu_usage        - display cpu usage
dbg              - dbg
memcheck         - check memory data
memtrace         - dump memory trace information
gic_dump         - show gic status
list_page        - show page info
list_fd          - list file descriptor
lsof             - list open files
mount            - mount<device><mountpoint><fstype>
unmount          - unmount the mountpoint
hello            - say hello world
clear            - clear the terminal screen
version          - show RT-Thread version information
list_thread      - list thread
list_sem         - list semaphore in system
list_event       - list event in system
list_mutex       - list mutex in system
list_mailbox     - list mail box in system
list_msgqueue    - list message queue in system
list_memheap     - list memory heap in system
list_mempool     - list memory pool in system
list_timer       - list timer in system
list_device      - list device in system
list             - list all symbol in system
help             - RT-Thread shell help.
ps               - List threads in the system.
free             - Show the memory usage in the system.
ls               - List information about the FILEs.
cp               - Copy SOURCE to DEST.
mv               - Rename SOURCE to DEST.
cat              - Concatenate FILE(s)
rm               - Remove(unlink) the FILE(s).
cd               - Change the shell working directory.
pwd              - Print the name of the current working directory.
mkdir            - Create the DIRECTORY.
mkfs             - format disk with file system
df               - disk free
echo             - echo string to file
set              - set or show environment variable
list_channel     - list IPC channel information
list_process     - list process
kill             - send a signal to a process
killall          - kill processes by name
list_shm         - show share memory info
sys_log          - sys_log 1(enable)/0(disable)
ifconfig         - list the information of all network interfaces
ping             - ping network host
dns              - list and set the information of dns
netstat          - list the information of TCP / IP
pwm_enable       - pwm_enable pwm1 1
pwm_disable      - pwm_disable pwm1 1
pwm_set          - pwm_set pwm1 1 100 50
date             - get date and time or set [year month day hour min sec]
wifi             - wifi command.msh />

nice成功了

【RT-Smart】Uboot 命令TFTP 下载RT-Smart系统镜像并烧写到emmc相关推荐

  1. 【uboot 】uboot通过tftp下载内核

    1.开发板uboot,虚拟机能相互ping通 2.ubuntu搭建好tftp服务器,设置好文件夹,放置好文件 sudo apt install tftpd-hpa  //安装服务程序 sudo sys ...

  2. uboot下tftp下载文件失败的排查步骤

    1.排查步骤 (1)网线是否已经插上单板并连接正常; (2)可以先把网线插到其他设备上,确认网线是否可以正常工作; (3)确认单板与PC之间是否是网络直连:如果不是网络直连,则要先尝试去ping网关地 ...

  3. Hi3516开发笔记(十一):通过HiTools使用网口将uboot、kernel、roofts烧写进eMMC

    若该文为原创文章,转载请注明原文出处 本文章博客地址:https://hpzwl.blog.csdn.net/article/details/128425000 红胖子(红模仿)的博文大全:开发技术集 ...

  4. 从红帽官网下载redhat企业版系统镜像

    好多人都不太清楚如何从官网下载redhat enterprise iso镜像,自己没事写个,给新手做个小小的指引,开始: 1.登陆官网:www.redhat.com ,点击右上方的 LOGIN  .当 ...

  5. 在哪里能下载纯净的系统镜像?让我来告诉你……

    在哪里能找到纯净一点的系统镜像呢?想必这个问题很多人在准备换系统的时候,都有思考过,当我们去百度搜索的时候,你可能会搜出很多结果,使你眼花缭乱,不知道该如何选择.有这么一个网站它一直在做这么一件事,  ...

  6. 如何从红帽官网下载redhat企业版系统镜像

    好多人都不太清楚如何从官网下载redhat enterprise iso镜像,自己没事写个,给新手做个小小的指引,开始: 1.登陆官网:www.redhat.com ,点击右上方的 LOGIN  .当 ...

  7. 使用u-boot的tftp下载功能烧写程序到Nand Flash ——韦东山嵌入式Linux学习笔记09

    本文实验环境: 1. windows 7(64bit) 2. JZ2440(V2) 操作步骤: (1)设置好开发板和PC的IP地址,使开发板可以 ping 通 PC 如果搞不定,可以参考我的博文 ht ...

  8. keil怎么将c语言烧写软件下载,Keil-MDK编译完成后自动烧写下载

    大多数人使用Keil调试程序都是先点编译工程(Build),然后等编译成功后再点下载(Download)或者调试(Debug).Keil本身可以选择编译完成后自动开启调试,但是如果不想开启调试而是直接 ...

  9. 下载官方 windows 系统镜像

    方式一:msdn 简介:此站仅为个人性质的原版软件信息收录站点. 下载流程: 打开网站 https://msdn.itellyou.cn/,点击 "操作系统" 菜单.(如下) 选择 ...

最新文章

  1. springboot @ConfigurationProperties
  2. 黄聪:buffer overflow detected问题解决及gcc-4.1安装
  3. 汇编语言快速入门学习笔记
  4. 矩阵理论及其应用_有限元分析ansys理论与应用视频第三课 绪论:直接法矩阵求解...
  5. 剑指offer-JZ9 用两个栈实现队列(C++,附思路)
  6. Keil软件仿真时如何用逻辑分析仪观察变量值
  7. jdk1.8源码Thread与Runnable区别
  8. 转载椭圆曲线原理和openssl命令操作
  9. php实现小说字典功能_PHP实现微信小程序人脸识别刷脸登录功能
  10. android 吃鸡模拟器,《刺激战场模拟器》电脑版 逍遥安卓模拟器智能键吃鸡设置...
  11. Worktile Teambition 与Tower 使用对比
  12. 研究生--论文书写规范
  13. Flink1.12 文档
  14. FCM和Threshold
  15. 2014年牡丹江现场赛打铁记
  16. 基于产生式表示的动物识别系统
  17. 2020年度广东学法普法平台开始了
  18. 基于InforFlow的业务流程管理系统解决方案(转载)
  19. 神仙道战斗游戏逻辑设计
  20. HTG评论The Wink Hub:在不破坏资金的情况下为您的智能家居提供大脑

热门文章

  1. Hi3861开发环境
  2. [atlas200dk] 配置记录
  3. 《JSDOM编程艺术》笔记
  4. 白骑士的移动(BFS)
  5. 龙芯1B:PCA9557用iic扩展口使能蜂鸣器
  6. Elasticsearch的核心原理
  7. Java Seckill Module:Order details are static and Resolve purchases beyond
  8. 去深圳办理港澳通行证签注延期
  9. 虚拟人直播-元宇宙离我们有多远?
  10. 电脑音频转换mp3格式怎么操作