Chinaunix首页 | 论坛 | 博客
  • 博客访问: 918423
  • 博文数量: 132
  • 博客积分: 9976
  • 博客等级: 中将
  • 技术积分: 1781
  • 用 户 组: 普通用户
  • 注册时间: 2007-08-30 20:40
文章分类

全部博文(132)

文章存档

2013年(1)

2011年(1)

2010年(15)

2009年(77)

2008年(36)

2007年(2)

我的朋友

分类: C/C++

2009-05-19 10:13:20

我的u-boot 日志2
author    : chjianash
date      : 2009-05-19
functions : 1. 在u-boot 中使用md5命令求md5值 2. u-boot 中使用环境变量
===================================================================
U-Boot 1.1.1 (Development build, svnversion: u-boot:36973, exec:36970) (Build time: Sep 17 2008 - 11:16:48)

CN3010_EVB_HS5 board revision major:2, minor:2, serial #: 2008-2.2-00562
OCTEON CN5020-SCP pass 1.1, Core clock: 700 MHz, DDR clock: 265 MHz (530 Mhz data rate)
DRAM:  512 MB
Flash:  8 MB
Clearing DRAM....... done
*** Warning - bad CRC, using default environment

BIST check passed.
Starting PCI
PCI Status: PCI 32-bit
PCI BAR 0: 0x00000000, PCI BAR 1: Memory 0x00000000  PCI 0xf8000000
Net:   octeth0, octeth1
 Bus 0 (CF Card): not available 

Octeon cn3010_evb_hs5#
Octeon cn3010_evb_hs5#
Octeon cn3010_evb_hs5#
Octeon cn3010_evb_hs5# flinfo         

Bank # 1: CFI conformant FLASH (portwidth:8 x chipwidth: 8)  Size: 8 MB in 135 Sectors
 Erase timeout 16384 ms, write timeout 1 ms, buffer write timeout 4096 ms, buffer size 32
  Sector Start Addresses:
    BF400000 (RO) BF410000 (RO) BF420000 (RO) BF430000 (RO) BF440000 (RO)
    BF450000 (RO) BF460000 (RO) BF470000 (RO) BF480000      BF490000    
    BF4A0000      BF4B0000      BF4C0000      BF4D0000      BF4E0000    
    BF4F0000      BF500000      BF510000      BF520000      BF530000    
    BF540000      BF550000      BF560000      BF570000      BF580000    
    BF590000      BF5A0000      BF5B0000      BF5C0000      BF5D0000    
    BF5E0000      BF5F0000      BF600000      BF610000      BF620000    
    BF630000      BF640000      BF650000      BF660000      BF670000    
    BF680000      BF690000      BF6A0000      BF6B0000      BF6C0000    
    BF6D0000      BF6E0000      BF6F0000      BF700000      BF710000    
    BF720000      BF730000      BF740000      BF750000      BF760000    
    BF770000      BF780000      BF790000      BF7A0000      BF7B0000    
    BF7C0000      BF7D0000      BF7E0000      BF7F0000      BF800000    
    BF810000      BF820000      BF830000      BF840000      BF850000    
    BF860000      BF870000      BF880000      BF890000      BF8A0000    
    BF8B0000      BF8C0000      BF8D0000      BF8E0000      BF8F0000    
    BF900000      BF910000      BF920000      BF930000      BF940000    
    BF950000      BF960000      BF970000      BF980000      BF990000    
    BF9A0000      BF9B0000      BF9C0000      BF9D0000      BF9E0000    
    BF9F0000      BFA00000      BFA10000      BFA20000      BFA30000    
    BFA40000      BFA50000      BFA60000      BFA70000      BFA80000    
    BFA90000      BFAA0000      BFAB0000      BFAC0000      BFAD0000    
    BFAE0000      BFAF0000      BFB00000      BFB10000      BFB20000    
    BFB30000      BFB40000      BFB50000      BFB60000      BFB70000    
    BFB80000      BFB90000      BFBA0000      BFBB0000      BFBC0000    
    BFBD0000      BFBE0000      BFBF0000      BFBF2000      BFBF4000    
    BFBF6000      BFBF8000      BFBFA000      BFBFC000      BFBFE000 (RO)
Octeon cn3010_evb_hs5# bootoctlinux  9xbf490000
## No elf image at address 0x00000009
Octeon cn3010_evb_hs5# boot
  bootelf bootoct bootoctlinux bootoctelf
Octeon cn3010_evb_hs5# bootoctlinux 0xbf490000
ELF file is 64 bit
## Not an Executable elf image at address 0xbf490000
Octeon cn3010_evb_hs5#
Unknown command '' - try 'help'
Octeon cn3010_evb_hs5#
Octeon cn3010_evb_hs5#
Octeon cn3010_evb_hs5# help
?       - alias for 'help'
askenv  - get environment variables from stdin
autoscr - run script from memory
base    - print or set address offset
bootelf - Boot from an ELF image in memory
bootoct - Boot from an Octeon Executive ELF image in memory
bootoctelf - Boot a generic ELF image in memory. NOTE: This command does not support
             simple executive applications, use bootoct for those.
bootoctlinux - Boot from a linux ELF image in memory
cmp     - memory compare
coninfo - print console devices and informations
cp      - memory copy
crc32   - checksum calculation
dhcp    - invoke DHCP client to obtain IP/boot params
echo    - echo args to console
eeprom  - EEPROM sub-system
erase   - erase FLASH memory
ext2load- load binary file from a Ext2 filesystem
ext2ls  - list files in a directory (default /)
fatinfo - print information about filesystem
fatload - load binary file from a dos filesystem
fatloadalloc - load binary file from a dos filesystem, and allocate
          a named bootmem block for file data
fatls   - list files in a directory (default /)
flinfo  - print FLASH memory information
freeprint    - Print list of free bootmem blocks
go      - start application at address 'addr'
gunzip  - Uncompress an in memory gzipped file
help    - print online help
ide     - IDE sub-system
itest    - return true/false on integer compare
loadb   - load binary file over serial line (kermit mode)
loop    - infinite loop on address range
md      - memory display
md5   - MD5 hash calculation
mii     - MII utility commands
mm      - memory modify (auto-incrementing)
mtest   - simple RAM test
mw      - memory write (fill)
namedalloc    - Allocate a named bootmem block
namedfree    - Free a named bootmem block
namedprint    - Print list of named bootmem blocks
nm      - memory modify (constant address)
pci     - list and access PCI Configuraton Space
ping    - send ICMP ECHO_REQUEST to network host
printenv- print environment variables
protect - enable or disable FLASH write protection
read64    - read 64 bit word from 64 bit address
read64b    - read 8 bit word from 64 bit address
read64l    - read 32 bit word from 64 bit address
read64s    - read 16 bit word from 64 bit address
read_cmp    - read and compare memory to val
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
tlv_eeprom  - EEPROM data parsing for ebt3000 board
version - print monitor version
write64    - write 64 bit word to 64 bit address
write64b    - write 8 bit word to 64 bit address
write64l    - write 32 bit word to 64 bit address
write64s    - write 16 bit word to 64 bit address
Octeon cn3010_evb_hs5# pci
Scanning PCI devices on bus 0
BusDevFun  VendorId   DeviceId   Device Class       Sub-Class
_____________________________________________________________
Octeon cn3010_evb_hs5# help md5
md5 address count [addr]
    - compute MD5 [save at addr]

Octeon cn3010_evb_hs5# tftpboot 0x0 vmlinux.64
Interface 0 has 2 ports (GMII)
*** ERROR: `serverip' not set
WARNING: Data loaded outside of the reserved load area, memory corruption may occur.
WARNING: Please refer to the bootloader memory map documentation for more information.
Octeon cn3010_evb_hs5# printenv
bootdelay=0
baudrate=115200
download_baudrate=115200
bootloader_flash_update=protect off $(uboot_flash_addr) +$(uboot_flash_size);erase $(uboot_flash_addr) +$(uboot_flash_size);cp.b $(fileaddr) $v
burn_app=erase $(flash_unused_addr) +$(filesize);cp.b $(fileaddr) $(flash_unused_addr) $(filesize)
bf=bootoct $(flash_unused_addr) forceboot numcores=$(numcores)
nuke_env=protect off $(env_addr) +$(env_size); erase $(env_addr) +$(env_size)
linux_cf=fatload ide 0 $(loadaddr) vmlinux.64;bootoctlinux $(loadaddr)
ls=fatls ide 0
autoload=n
loadaddr=0x9f00000
numcores=2
stdin=serial
stdout=serial
stderr=serial
env_addr=0xbfbfe000
env_size=0x2000
flash_base_addr=0xbf400000
flash_size=0x800000
uboot_flash_addr=0xbf430000
uboot_flash_size=0x50000
flash_unused_addr=0xbf480000
flash_unused_size=0x77e000
ethact=octeth0

Environment size: 862/8188 bytes
Octeon cn3010_evb_hs5# setenv ipaddr 192.168.0.222
Octeon cn3010_evb_hs5# setenv serverip 192.168.0.104
Octeon cn3010_evb_hs5# saveenv
Saving Environment to Flash...
Un-Protected 1 sectors
Erasing Flash...
. done
Erased 1 sectors
Writing to Flash... done
Protected 1 sectors
Octeon cn3010_evb_hs5# tftpboot vmlinux.64
Using octeth0 device
TFTP from server 192.168.0.104; our IP address is 192.168.0.222
Filename 'vmlinux.64'.
Load address: 0x9f00000
Loading: octeth0: Up 100 Mbps Full duplex (port  0)
#################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         ##
done
Bytes transferred = 83940318 (500d3de hex), 2942 Kbytes/sec
Octeon cn3010_evb_hs5# md
  md md5
Octeon cn3010_evb_hs5# md5 0x9f00000 filesize
MD5 for 09f00000 ... 09f0000e ==> 622666c750c5776385dd3e58f19650d7
Octeon cn3010_evb_hs5# printenv filesize
filesize=500d3de
Octeon cn3010_evb_hs5#
Unknown command '' - try 'help'
Octeon cn3010_evb_hs5# md5 0x9f00000 $filesize
MD5 for 09f00000 ... 09efffff ==> d41d8cd98f00b204e9800998ecf8427e
Octeon cn3010_evb_hs5# md5 0x9f00000 0x500d3de
MD5 for 09f00000 ... 0ef0d3dd ==> d9b0d5bd5efc74ccb8fc9bd6e461f798  (注: 这个是正确的值)
Octeon cn3010_evb_hs5# md5 0x9f00000 ${filesize}
MD5 for 09f00000 ... 0ef0d3dd ==> d9b0d5bd5efc74ccb8fc9bd6e461f798  (注: 这个是正确的值)
Octeon cn3010_evb_hs5# crc32 0x9f00000 ${filesize}
CRC32 for 09f00000 ... 0ef0d3dd ==> 0b319450    (注: 获得文件crc32校验值: 0b319450 )
Octeon cn3010_evb_hs5#


阅读(2757) | 评论(0) | 转发(0) |
0

上一篇:我的u-boot 日志1

下一篇:获取crc32的程序

给主人留下些什么吧!~~