返回信息流本人新手,求教一下。
我在uboot的网站上看到说可以直接在uboot中更新uboot。
说是输入
=> setenv u-boot /tftpboot/duts/canyonlands/u-boot.bin
=> run load update
因为我买的板子的uboot是改过的,所以我想问问,是进入shell,然后输入上面的命令就可以了?
还有我的是nand flash。没有什么问题么?
那这个bootloader是烧写到flash的哪个地方了呢?编译出来的u-boot.bin的大小有没有什么限制?
这是一条镜像帖。来源:北邮人论坛 / embedded-system / #9481同步于 2010/10/6
该镜像源已超过 30 天没有更新,可能在源站已被删除。
Embedded_System机器人发帖
求教,在uboot中更新uboot的方法
hman
2010/10/6镜像同步10 回复
订阅后,新回复会通过你的通知中心匿名送达。
9 条回复
不过我刚试验了一下,我这个bootloader中没有run这个命令。
? - alias for 'help'
base - print or set address offset
bdinfo - print Board Info structure
bootm - boot application image from memory
bootp - boot image via network using BootP/TFTP protocol
branch - enable or disable branch prediction
cmp - memory compare
cp - memory copy
crc32 - checksum calculation
dcache - enable or disable data cache
dnw - initialize USB device and ready to receive for Windows server (specific)
echo - echo args to console
erase - erase FLASH memory
exit - exit script
flinfo - print FLASH memory information
go - start application at address 'addr'
help - print online help
icache - enable or disable instruction cache
imls - list all images found in flash
itest - return true/false on integer compare
loadb - load binary file over serial line (kermit mode)
loads - load S-Record file over serial line
loady - load binary file over serial line (ymodem mode)
loop - infinite loop on address range
md - memory display
mm - memory modify (auto-incrementing)
movi - MoviNAND sub-system
mtest - simple RAM test
mw - memory write (fill)
nand - NAND sub-system
nboot - boot from NAND device
nfs - boot image via network using NFS protocol
nm - memory modify (constant address)
ping - send ICMP ECHO_REQUEST to network host
printenv- print environment variables
protect - enable or disable FLASH write protection
rarpboot- boot image via network using RARP/TFTP protocol
reset - Perform RESET of the CPU
saveenv - save environment variables to persistent storage
setenv - set environment variables
sleep - delay execution for some time
test - minimal test like /bin/sh
tftpboot- boot image via network using TFTP protocol
usb - USB sub-system
version - print monitor version
本人新手,求教一下。
我在uboot的网站上看到说可以直接在uboot中更新uboot。
说是输入
=> setenv u-boot /tftpboot/duts/canyonlands/u-boot.bin
=> run load update
因为我买的板子的uboot是改过的,所以我想问问,是进入shell,然后输入上面的命令就可
以了?
[Hobby]这里说的是进入uboot的命令行进行操作,而不是linux的shell。对于一般的uboot(或者未经用户裁减的),也就是autodelay读秒之内,用户有任何输入时,uboot跳转到的地方。
说的比较抽象,试试就知道了。。
还有我的是nand flash。没有什么问题么?
那这个bootloader是烧写到flash的哪个地方了呢?编译出来的u-boot.bin的大小有没有什
么限制?
[Hobby]你可以使用printenv看看已经定义的环境变量,你可以把环境变量理解为shell下的变量。
看样子这个从tftp server上取下来的uboot镜像文件大概会烧到你的flash里面,具体烧录的位置可以找找环境变量,要不就是在代码中硬编码指定了。
你指的大小限制是什么?如果是跟flash容量有关,那么只要保证你的uboot处在flash当中的适当位置而没有覆盖其他内容不就行了吗?
【 在 hman (Wizard) 的大作中提到: 】
: 本人新手,求教一下。
: 我在uboot的网站上看到说可以直接在uboot中更新uboot。
: 说是输入
: ...................
补充一句,做嵌入式开发,尤其是软件开发的,初期好好学习软件自带的文档,可以少走很多弯路,对于理解其设计理念也有很大好处。
uboot的随机文档应该是在uboot源码doc目录下。
如果你将来还要用uboot引导linux,那么linux的参考文档也有必要看看,特别是对于内核启动参数的设置。
【 在 hman (Wizard) 的大作中提到: 】
: 本人新手,求教一下。
: 我在uboot的网站上看到说可以直接在uboot中更新uboot。
: 说是输入
: ...................
多谢大牛,你说的uboot命令是不是就是我用help打印出来的东西呢?
因为我听说nand flash中的直接访问的flash有大小限制。你没听说过这个事情?
我看源代码里doc下面很多文档,你有啥建议看的不?且这些文档是关于开发的吧,不是使用的文档吧。
【 在 hman 的大作中提到: 】
: 多谢大牛,你说的uboot命令是不是就是我用help打印出来的东西呢?
[Hobby] 应该是,就是你第一个回帖中的那些东西,我记得是printenv打印的?help能不能打出来不清楚。
: 因为我听说nand flash中的直接访问的flash有大小限制。你没听说过这个事情?
[Hobby]不好意思,没太做过nand的,不太清楚。你可以上网查查看
: 我看源代码里doc下面很多文档,你有啥建议看的不?且这些文档是关于开发的吧,不是使用的文档吧。
[Hobby]如果你时间还算充裕,我建议:
首先看看uboot的概述(了解uboot的来源、主要结构、开发流程);
然后了解一下编译相关的说明(不同的软件,编译方面总会有些小的差别,但这些又对开发工作有明显影响);
再然后根据你的兴趣或者项目需要深入学习某个方面的内容(这个阶段一般研究的比较细了,可以文档和代码比对着看,必要的时候自己动手改改代码跑跑看);
如果时间比较紧张,上网搜索资料+定向学习!