uboot 开发之其常见命令

举报
aiot_bigbear 发表于 2022/09/25 02:31:57 2022/09/25
【摘要】 U-Boot 2009.06-2.0.6-svn50281 (10鏈02 2015 - 20:35:08) === U-Boot DDR Reserved Area === !! Please do...
U-Boot 2009.06-2.0.6-svn50281 (1002 2015 - 20:35:08)

=== U-Boot DDR Reserved Area ===
  !! Please do not write any data to these locations. !!
  TEXT section  : 0x00002000 -> 0x00019b7c
  BSS  section  : 0x00019b7c -> 0x0001db64
  MALLOC Area   : 0x0001db64 -> 0x0031db64
  STACK         : 0x0031dbe4 -> 0x00368bf0
  GMAC Desc/Buf : 0x00368c00 -> 0x00374e00

=== DRAM Configuration ===
  Bank #0      : 0x00000000 512 MB

=== SPI FLASH Configuration ===
SPIFLASH: Got idcode c2 20 18 c2 20
SF: Detected MX25L12805D with page size 256, total 16 MB
  There are 1 SPI FLASH, total 16 MB

=== Boot Configuration ===
  Boot Storage : Serial Flash
  Finding the environment variables in boot storage...
SPIFLASH: Got idcode c2 20 18 c2 20
SF: Detected MX25L12805D with page size 256, total 16 MB
  The environment varialbes stored in Serial Flash are found.

=== Net Configuration  ===(5 PHY TYPE     : ICPlus IP101A/G(mii)
  Link Detect  : GMAC Waiting for PHY auto negotiation to complete.... done
  Link Status  : Link Up
               : Full Duplex
  Link Speed   : 100Mbps
  MAC Address  : 02 00 dc 00 11 57

=== Model Name ===
  Model Name : M388c

=== Loader Info ===
  Loader Version# : 0x15050701 (This value is stored at 0x41001000)

Hit any key to stop autoboot:  0 
U-Boot> ifconfig
Unknown command 'ifconfig' - try 'help'
U-Boot> ?
?       - alias for 'help'
base    - print or set address offset
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
cp      - memory copy
crc32   - checksum calculation
dce     - DCE
echo    - echo args to console
efuse   - eFuse read/write
go      - start application at address 'addr'
gpio    - Set gpio pins
help    - print online help
jump    - Boot Linux kernel image from memory
loop    - infinite loop on address range
md      - memory display
mm      - memory modify (auto-incrementing)
mmc     - MMC sub system
mmcinfo - display MMC info
mtest   - simple RAM test
mw      - memory write (fill)
nm      - memory modify (constant address)
printenv- print environment variables
reserved- print reserved area
reset   - Perform RESET of the CPU
run     - run commands in an environment variable
saveenv - save environment variables to persistent storage
sdread  - Read SD card content
setenv  - set environment variables
setnet  - Set net environment variables for EVM.
sf      - SPI flash sub-system
sleep   - delay execution for some time
source  - run script from memory
tftpboot- boot image via network using TFTP protocol
version - print monitor version
U-Boot> base
Base Address: 0x00000000
U-Boot> crc32
Usage:
crc32 - checksum calculation

U-Boot> echo 88
88
U-Boot> efuse
argc: 1
mode: 1
start: 18551
####################################
eFuse read start...
bit Addr 0 1,  1,  1,  1,  1,  1,  1,  1, 
bit Addr 1 1,  1,  1,  1,  1,  1,  1,  1, 
bit Addr 2 1,  1,  1,  1,  1,  1,  1,  1, 
bit Addr 3 1,  1,  1,  1,  1,  1,  1,  1, 
bit Addr 4 1,  1,  1,  1,  1,  1,  1,  1, 
bit Addr 5 1,  1,  1,  1,  1,  1,  1,  1, 
bit Addr 6 1,  1,  1,  1,  1,  1,  1,  1, 
bit Addr 7 1,  1,  1,  1,  1,  1,  1,  1, 
bit Addr 8 1,  1,  1,  1,  1,  1,  1,  1, 
bit Addr 9 1,  1,  1,  1,  1,  1,  1,  1, 
bit Addr a 1,  1,  1,  1,  1,  1,  1,  1, 
bit Addr b 1,  1,  1,  1,  1,  1,  1,  1, 
bit Addr c 1,  1,  1,  1,  1,  1,  1,  1, 
bit Addr d 1,  1,  1,  1,  1,  1,  1,  1, 
bit Addr e 1,  1,  1,  1,  1,  1,  1,  1, 
bit Addr f 1,  1,  1,  1,  1,  1,  1,  1, 
eFuse read done.
####################################
data[ 31:  0]: ffffffff, 
data[ 63: 32]: ffffffff, 
data[ 95: 64]: ffffffff, 
data[127: 96]: ffffffff
end: 14574
U-Boot> md
Usage:
md - memory display

U-Boot> version

U-Boot 2009.06-2.0.6-svn50281 (1002 2015 - 20:35:08)
U-Boot> help
?       - alias for 'help'
base    - print or set address offset
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
cp      - memory copy
crc32   - checksum calculation
dce     - DCE
echo    - echo args to console
efuse   - eFuse read/write
go      - start application at address 'addr'
gpio    - Set gpio pins
help    - print online help
jump    - Boot Linux kernel image from memory
loop    - infinite loop on address range
md      - memory display
mm      - memory modify (auto-incrementing)
mmc     - MMC sub system
mmcinfo - display MMC info
mtest   - simple RAM test
mw      - memory write (fill)
nm      - memory modify (constant address)
printenv- print environment variables
reserved- print reserved area
reset   - Perform RESET of the CPU
run     - run commands in an environment variable
saveenv - save environment variables to persistent storage
sdread  - Read SD card content
setenv  - set environment variables
setnet  - Set net environment variables for EVM.
sf      - SPI flash sub-system
sleep   - delay execution for some time
source  - run script from memory
tftpboot- boot image via network using TFTP protocol
version - print monitor version
U-Boot> help md
md [.b, .w, .l] address [# of objects]
          - memory display
U-Boot> printenv
bootcmd=run setargs;sf read 0xa00000 0x40000 0x2C0000;jump 0xa00000
bootdelay=3
baudrate=38400
phy_mode=mii
setargs=setenv bootargs ${bootargs} ${mtdparts};setenv bootargs ${bootargs} phy_mode=${phy_mode};
auto_quicktest=0
filesize=1000000
fileaddr=A00000
ethaddr=02:00:DC:00:11:57
modelname=M388c
serverip=192.168.1.239
netmask=255.255.255.0
gatewayip=172.17.0.1
ipaddr=172.17.220.87
bootargs=root=/dev/mtdblock2 mem=48M console=2,38400 user_debug=8

Environment size: 451/65532 bytes



  
 
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155
  • 156
  • 157
  • 158
  • 159
  • 160
  • 161
  • 162
  • 163
  • 164
  • 165
  • 166
  • 167
  • 168
  • 169
  • 170
  • 171
  • 172
  • 173
  • 174
  • 175
  • 176
  • 177
  • 178
  • 179
  • 180
  • 181
  • 182
  • 183
  • 184

文章来源: blog.csdn.net,作者:悟空胆好小,版权归原作者所有,如需转载,请联系作者。

原文链接:blog.csdn.net/xushx_bigbear/article/details/123364527

【版权声明】本文为华为云社区用户转载文章,如果您发现本社区中有涉嫌抄袭的内容,欢迎发送邮件进行举报,并提供相关证据,一经查实,本社区将立刻删除涉嫌侵权内容,举报邮箱: cloudbbs@huaweicloud.com
  • 点赞
  • 收藏
  • 关注作者

评论(0

0/1000
抱歉,系统识别当前为高风险访问,暂不支持该操作

全部回复

上滑加载中

设置昵称

在此一键设置昵称,即可参与社区互动!

*长度不超过10个汉字或20个英文字符,设置后3个月内不可修改。

*长度不超过10个汉字或20个英文字符,设置后3个月内不可修改。