Example: tourism industry

U-Boot コマンドの使用

U-Boot uboot BusyBox Hush uboot run saveenv setenv setenv name value name=value ${name} $name run run uboot $? Hush &&,|| 1 2 1 2 1&& 2 1 0 2 1 || 2 1 0 2 for name in ; do ; done name if ; then ; [ elif ; then ;].

serverip: bootpサーバのIPアドレス ipaddr: 割り当てられたIPアドレス bootfile: 読みこむべきファイル (filenameが指定されている場合、引数で渡したものがコピーさ れます) gatewayip,netmask,hostname,rootpath,dnsip,dnsip2,domain:

Tags:

  Matheson

Information

Domain:

Source:

Link to this page:

Please notify us if you found a problem with this document:

Other abuse

Advertisement

Transcription of U-Boot コマンドの使用

1 U-Boot uboot BusyBox Hush uboot run saveenv setenv setenv name value name=value ${name} $name run run uboot $? Hush &&,|| 1 2 1 2 1&& 2 1 0 2 1 || 2 1 0 2 for name in ; do ; done name if ; then ; [ elif ; then ;].

2 [ else ; ] fiif elif 0 then else while ; do ; donewhile 0 do until ; do ; doneuntil 0 do $ ; \ " ${name} ' TAB TAB tftpboot tftp tf tftpboot C CtrlC erase U-Boot uboot 16 ( ) ( CFG_HUSH_PARSER)

3 ? 'help' ? [ ]command: command command askenv askenv name [size]askenv name [message] sizename: size (10 )1 255 255 message: setenv askenv setenv printenv autoscr autoscr [addr]addr: 80400000 mkimage verify n ( verify=n )# iminfo 80400000## Checking Image at 80400000.

4 Image Name: helloCreated: 2004 12 04 9:24:20 UTCI mage Type: MIPS U Boot Script (uncompressed)Data Size: 24 Bytes = 0 kBLoad Address: 80200000 Entry Point: 80200000 Verifying Checksum .. OK# autoscr## Executing script at 80400000hello# run base base [offset]offset: offset md mm nm mw cmp cp crc32 base 0 base md mm nm mw cmp cp crc32 bdinfo bdinfoRAM boot bootbootd bootcmd boot bootd bootd boot bootelf ELF u boot bootelf [addr]addr.

5 ELF # nfs \" :/usr/src/mldbox/u boot/examples/hello_world\"Using i82559#0 deviceFile transfer via NFS from server ; our IP address '/usr/src/mldbox/u boot/examples/hello_world'.Load address: 0x80400000 Loading: ##doneBytes transferred = 6798 (1a8e hex)# bootelf 80400000 Loading .text @ 0x80200000 (672 bytes)Loading .rodata @ 0x802002a0 (160 bytes)Loading .reginfo @ 0x80200340 (24 bytes)Loading .got @ 0x80200360 (56 bytes)## Starting application at 0x80200000 ..Example expects ABI version 2 Actual U Boot ABI version 2 Hello Worldargc = 1argv[0] = "80400000"argv[1] = "<NULL>"Hit any key to exit.

6 ## Application terminated, rc = 0x0# bootm go bootm OS bootm [addr [initrdaddr]]addr: initrdaddr: Linux OS initrdaddr mkimage OS verify n ( verify=n ) Linux bootargs Linux uboot bootelf bootvx iminfo bootp BOOTP IPv4 bootp [addr] [filename]addr: loadaddr loadaddr 80400000 filename bootp bootfile addr filename filename " " bootp " Bootp IP serverip: bootp IP ipaddr: IP bootfile (filename )gatewayip,netmask,hostname,rootpath,dns ip,dnsip2,domain.

7 Autoload autoload n autoload NFS nfs autoload tftpboot dhcp nfs rarpboot tftpboot bootvx ELF vxWorks bootvx [addr]addr: vxWorks ELF bootm vxWorks ELF bootm chpart chpart numnum: (02)ls,fsload,fsinfo 0 ls fsload fsinfo cmp cmp[.b, .w, .l] addr1 addr2 count[.b, .w, .l]: (.b) (2 ) (.w) (4 ) (.l) .l addr1: addr2: count: [.]

8 B, .w, .l] 16 addr1 count addr2 count count # nfs 80400000 :/usr/src/mldbox/u i82559#0 deviceFile transfer via NFS from server ; our IP address '/usr/src/mldbox/u '.Load address: 0x80400000 Loading: ######################################## doneBytes transferred = 199948 (30d0c hex)# BFC00000 80400000 $filesizeTotal of 199948 bytes were the same# base md mm nm mw cp crc32 coninfo coninfo cp cp[.b, .w, .l] source target count[.b, .w, .l]: (.b) (2 ) (.w) (4 ) (.l) .l source: target: count: [.

9 B, .w, .l] 16 cmp base md mm nm mw cmp crc32 dhcp DHCP IPv4 dhcpDHCP , serverip: DHCP IP ipaddr: IP bootfile gatewayip,netmask,hostname,rootpath,dnsi p,dnsip2,domain: autoload autoload n autoload NFS nfs autoload tftpboot bootp nfs rarpboot tftpboot echo echo [args ..]args: args '\c' erase erase start enderase N:SF[SL]erase bank N26erase allstart: ( )end: ( )N ( 1 )SF: SL.

10 (0 ) SF (0 ) 1 erase bank 1 erase all 128kbyte 16kbyte 128kbyte # erase BFC40000 doneErased 29 sectors# protect exit exit mkimage NULL exit flinfo flinfo [N]N: ( ) 1 protect fsinfo fsinfo cramfs jffs2 chpart chpart ls fsload fsload fsload [addr] [filename]addr: loadb,fsload,nfs,tftpboot 80400000 filename.


Related search queries