|  | 
 
 发表于 2005-10-8 11:11:35
|
显示全部楼层 
| 老大,把你总结的u-boot 命令的一些用法说明传一份。按照你说我重新编译并烧写 U-Boot 1.1.3 (Oct  2 2005 - 16:12:09)
 
 U-Boot code: 007D0000 -> 007E83E0  BSS: -> 007F2634
 IRQ Stack: 007aef7c
 FIQ Stack: 007adf7c
 RAM Configuration:
 Bank #0: 00000000 16 MB
 Flash:  4 MB
 *** Warning - bad CRC, using default environment
 
 In:    serial
 Out:   serial
 Err:   serial
 Hit any key to stop autoboot:  0
 lumit4510 # help
 ?       - alias for 'help'
 autoscr - run script from memory
 base    - print or set address offset
 bdinfo  - print Board Info structure
 boot    - boot default, i.e., run 'bootcmd'
 bootd   - boot default, i.e., run 'bootcmd'
 bootm   - boot application image from memory
 bootp   - boot image via network using BootP/TFTP protocol
 cmp     - memory compare
 coninfo - print console devices and information
 cp      - memory copy
 crc32   - checksum calculation
 echo    - echo args to console
 erase   - erase FLASH memory
 flinfo  - print FLASH memory information
 go      - start application at address 'addr'
 help    - print online help
 iminfo  - print header information for application image
 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
 loop    - infinite loop on address range
 md      - memory display
 mm      - memory modify (auto-incrementing)
 mtest   - simple RAM test
 mw      - memory write (fill)
 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
 run     - run commands in an environment variable
 saveenv - save environment variables to persistent storage
 setenv  - set environment variables
 sleep   - delay execution for some time
 tftpboot- boot image via network using TFTP protocol
 version - print monitor version
 lumit4510 # printenv
 bootargs=console=ttyS0,19200 initrd=0x100a0040,530K root=/dev/ram0 keepinitrd
 bootcmd=tftp 100000 uImage.bin
 bootdelay=7
 baudrate=19200
 ethaddr=00:40:95:36:35:33
 ipaddr=192.168.1.5
 serverip=192.168.1.2
 netmask=255.255.255.0
 stdin=serial
 stdout=serial
 stderr=serial
 
 Environment size: 265/4092 bytes
 lumit4510 #
 只会用简单的几个命令(reset,help,printenv)。
 我想把这个u-boot改造成这样:
 1。标准输入输出改成telnet,只要PC机通过telnet登陆4510,就出现和串口一样的引导信息。既然他支持网络就利用它远程服务。
 2。支持ftp服务,通过通用ftp终端软件上传下载程序,并在telnet里输入命令运行他。
 我也断断续续看了一些别人写u-boot移植说明,但是还有很多疑问想跟老大请教。方便的话能留个QQ号吗?群里好像做u-boot移植的很少。先谢了!:):)
 | 
 |