日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問(wèn) 生活随笔!

生活随笔

當(dāng)前位置: 首頁(yè) > 编程资源 > 编程问答 >内容正文

编程问答

【Tiny4412】Uboot常用命令

發(fā)布時(shí)間:2024/4/24 编程问答 57 豆豆
生活随笔 收集整理的這篇文章主要介紹了 【Tiny4412】Uboot常用命令 小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.

00. 目錄

文章目錄

    • 00. 目錄
    • 01. Uboot幫助命令
    • 02. md命令
    • 03. mm命令
    • 04. printenv命令
    • 05. setenv命令
    • 06. saveenv命令
    • 07. reset命令
    • 08. base命令
    • 09. bdinfo命令
    • 10. cmp命令
    • 11. coninfo命令
    • 12. crc32命令
    • 13. dcache
    • 14. echo命令
    • 15. emmc命令
    • 16. env命令
    • 17. exit命令
    • 18. version命令
    • 19. source命令
    • 20. sleep命令
    • 21. showvar命令
    • 22. reginfo命令
    • 23. 附錄

01. Uboot幫助命令

? 幫助
help 幫助

DengJin #help ? - alias for 'help' 幫助base - print or set address offset 打印或者設(shè)置地址的偏移bdinfo - print Board Info structure 板子的信息結(jié)構(gòu) boot - boot default, i.e., run 'bootcmd' 啟動(dòng)bootd - boot default, i.e., run 'bootcmd' 啟動(dòng)bootelf - Boot from an ELF image in memory 從內(nèi)存中啟動(dòng)elf鏡像bootm - boot application image from memory 從內(nèi)存中啟動(dòng)應(yīng)用鏡像bootp - boot image via network using BOOTP/TFTP protocol 通過(guò)網(wǎng)絡(luò)協(xié)議引導(dǎo)鏡像bootvx - Boot vxWorks from an ELF imagechpart - change active partition 改變活動(dòng)的分區(qū)cmp - memory compare 內(nèi)存比較coninfo - print console devices and information 串口設(shè)備和信息cp - memory copy 內(nèi)存拷貝crc32 - checksum calculation crc32校驗(yàn)dcache - enable or disable data cache 使能或者禁用數(shù)據(jù)cachednw - dnw - initialize USB device and ready to receive for Windows server (specific)echo - echo args to console 輸出參數(shù)到串口editenv - edit environment variable 編輯環(huán)境變量emmc - Open/Close eMMC boot Partition 關(guān)閉或者打開(kāi)emmc分區(qū)env - environment handling commands 環(huán)境變量操作exit - exit script 退出ext2format- ext2format - disk format by ext2 格式化ext3ext2load- load binary file from a Ext2 filesystem 從ext2文件系統(tǒng)中加載二進(jìn)制文件ext2ls - list files in a directory (default /) 列出ext2文件系統(tǒng)中的文件ext3format- ext3format - disk format by ext3 使用ext3格式化分區(qū)false - do nothing, unsuccessfully fastboot- fastboot- use USB Fastboot protocol usb fastboot協(xié)議fatformat- fatformat - disk format by FAT32 格式化fatinfo - fatinfo - print information about filesystem fatload - fatload - load binary file from a dos filesystemfatls - list files in a directory (default /)fdisk - fdisk for sd/mmc. 分區(qū)go - start application at address 'addr' 從指定地址啟動(dòng)應(yīng)用程序help - print command description/usage 幫助信息icache - enable or disable instruction cache 使能和禁用指令cacheiminfo - print header information for application imageimxtract- extract a part of a multi-imageitest - return true/false on integer compareloadb - load binary file over serial line (kermit mode)loads - load S-Record file over serial lineloady - load binary file over serial line (ymodem mode)loop - infinite loop on address rangemd - memory display 內(nèi)存的內(nèi)容顯示mm - memory modify (auto-incrementing address) 內(nèi)存的內(nèi)容修改mmc - MMC sub systemmmcinfo - mmcinfo <dev num>-- display MMC info 顯示MMC信息movi - movi - sd/mmc r/w sub system for SMDK boardmtdparts- define flash/nand partitionsmtest - simple RAM read/write testmw - memory write (fill)nfs - boot image via network using NFS protocol 使用NFS協(xié)議啟動(dòng)鏡像nm - memory modify (constant address) 內(nèi)存修改ping - send ICMP ECHO_REQUEST to network hostprintenv- print environment variables 打印環(huán)境變量reginfo - print register information 打印寄存器信息reset - Perform RESET of the CPU 重置CPU run - run commands in an environment variable 運(yùn)行環(huán)境變量中的命令saveenv - save environment variables to persistent storage 保存設(shè)置setenv - set environment variables 設(shè)置環(huán)境變量showvar - print local hushshell variablessleep - delay execution for some time 睡眠source - run script from memory 從內(nèi)存中運(yùn)行腳本test - minimal test like /bin/shtftpboot- boot image via network using TFTP protocoltrue - do nothing, successfullyusb - USB sub-systemversion - print monitor version 輸出u-boot的版本

02. md命令

DengJin # help md md - memory displayUsage: md [.b, .w, .l] address [# of objects] DengJin # # 默認(rèn)顯示256字節(jié) DengJin # md 40000000 40000000: ffffffff ffffffff ffffffff ffffffff ................ 40000010: ffffffff ffffffff ffffffff ffffffff ................ 40000020: ffffffff ffffffff ffffffff ffffffff ................ 40000030: ffffffff ffffffff ffffffff ffffffff ................ 40000040: ffffffff ffffffff ffffffff ffffffff ................ 40000050: ffffffff ffffffff ffffffff ffffffff ................ 40000060: ffffffff ffffffff ffffffff ffffffff ................ 40000070: ffffffff ffffffff ffffffff ffffffff ................ 40000080: ffffffff ffffffff ffffffff ffffffff ................ 40000090: ffffffff ffffffff ffffffff ffffffff ................ 400000a0: ffffffff ffffffff ffffffff ffffffff ................ 400000b0: ffffffff ffffffff ffffffff ffffffff ................ 400000c0: ffffffff ffffffff ffffffff ffffffff ................ 400000d0: ffffffff ffffffff ffffffff ffffffff ................ 400000e0: ffffffff ffffffff ffffffff ffffffff ................ 400000f0: ffffffff ffffffff ffffffff ffffffff ................ DengJin # # 以字節(jié)為單位顯示64個(gè)字節(jié) DengJin # md.b 400000000 00000000: 06 00 00 ea fe ff ff ea fe ff ff ea fe ff ff ea ................ 00000010: fe ff ff ea fe ff ff ea 1a 30 00 ea 1b 30 00 ea .........0...0.. 00000020: a4 01 9f e5 00 10 a0 e3 00 10 80 e5 9c 01 9f e5 ................ 00000030: 00 00 90 e5 3e 00 00 e2 3e 00 30 e3 0d 00 00 1a ....>...>.0..... DengJin # # 從指定的地址開(kāi)始顯示8個(gè)字節(jié) DengJin # md.b 40000000 8 40000000: ff ff ff ff ff ff ff ff ........ DengJin # # 以兩個(gè)字節(jié)為單位 顯示8個(gè)單位 DengJin # md.w 40000000 8 40000000: ffff ffff ffff ffff ffff ffff ffff ffff ................ DengJin # # 顯示四個(gè)字節(jié) DengJin # md.l 40000000 1 40000000: ffffffff .... DengJin #

03. mm命令

內(nèi)存修改內(nèi)容命令

DengJin # help mm mm - memory modify (auto-incrementing address)Usage: mm [.b, .w, .l] address DengJin # # 字節(jié) DengJin # mm.b 40008000 40008000: ff ? 0xff 40008001: ff ? 0xee 40008002: ff ? 40008003: ff ? 40008004: ff ? quit# 兩個(gè)字節(jié)為單位 DengJin # mm.w 40008000 40008000: eeff ? 0x1111 40008002: ffff ? 0x2222 40008004: ffff ? 0x3333 40008006: ffff ? quit# 四個(gè)字節(jié)為單位 DengJin # mm.l 40008000 40008000: 22221111 ? 11 40008004: ffff3333 ? 2 40008008: ffffffff ? 33 4000800c: ffffffff ? 44 40008010: ffffffff ? 55 40008014: ffffffff ? 66 40008018: ffffffff ? 77 4000801c: ffffffff ? 88 40008020: ffffffff ? quit

應(yīng)用示例一:控制LED燈

# LED ---> GPM4_0 GPM4_1 GPM4_2 GPM4_3 # CON 0x110002E0 # DAT 0x110002E4# 所有的燈亮 DengJin #mm.l 0x110002E4 110002e4: 0000000c ? 0 110002e8: 00005555 ? quit# 所有的燈滅 DengJin #mm.l 0x110002E4 110002e4: 00000000 ? 0xf 110002e8: 00005555 ? quit

應(yīng)用示例二:控制蜂鳴器

# Buzzer ---> GPD0_0# CON 0x114000A0 # DAT 0x114000A4# 配置為輸出 DengJin #mm.l 0x114000A0 114000a0: 00000000 ? 0x1 114000a4: 0000000c ? quit# 高電平 峰鳴器叫 DengJin #mm.l 0x114000A4 114000a4: 0000000c ? 0xd 114000a8: 00000055 ? quit# 低電平 峰鳴器不叫 DengJin #mm.l 0x114000A4 114000a4: 0000000d ? c 114000a8: 00000055 ? quit

04. printenv命令

DengJin # help printenv printenv - print environment variablesUsage: printenv - print values of all environment variables printenv name ...- print value of environment variable 'name' DengJin # # 輸出環(huán)境變量 DengJin #printenv baudrate=115200 波特率 bootcmd=movi read kernel 0 40008000;movi read rootfs 0 41000000 400000;bootm 40008000 41000000 bootdelay=5 啟動(dòng)內(nèi)核的時(shí)候延時(shí) ethaddr=00:40:5c:26:0a:5b 硬件地址 gatewayip=192.168.0.1 網(wǎng)關(guān) ipaddr=192.168.0.20 IP地址 netmask=255.255.255.0 掩碼 serverip=192.168.0.10 服務(wù)器的IP地址Environment size: 252/16380 bytes DengJin #

05. setenv命令

DengJin # help setenv setenv - set environment variablesUsage: setenv name value ...- set environment variable 'name' to 'value ...' setenv name- delete environment variable 'name' DengJin # # 設(shè)置環(huán)境變量 DengJin #setenv aa 33# 變量名后沒(méi)有值 那么就是取消環(huán)境變量 DengJin #setenv aa

06. saveenv命令

DengJin # help saveenv saveenv - save environment variables to persistent storageUsage: saveenv DengJin # # 保存環(huán)境變量 DengJin #saveenv Saving Environment to SMDK bootable device... done

07. reset命令

DengJin # help reset reset - Perform RESET of the CPUUsage: reset DengJin # # 重新啟動(dòng)u-boot DengJin #reset

08. base命令

DengJin # help base base - print or set address offsetUsage: base - print address offset for memory commands base off- set address offset for memory commands to 'off' DengJin # # 設(shè)置偏移地址 DengJin # base 40008000 Base Address: 0x40008000# 打印偏移地址 DengJin # base Base Address: 0x40008000 DengJin #

09. bdinfo命令

DengJin # help bdinfo bdinfo - print Board Info structureUsage: bdinfo DengJin # DengJin # bdinfo arch_number = 0x00001200 boot_params = 0x40000100 DRAM bank = 0x00000000 -> start = 0x40000000 -> size = 0x10000000 DRAM bank = 0x00000001 -> start = 0x50000000 -> size = 0x10000000 DRAM bank = 0x00000002 -> start = 0x60000000 -> size = 0x10000000 DRAM bank = 0x00000003 -> start = 0x70000000 -> size = 0x0FF00000 ethaddr = 00:40:5c:26:0a:5b ip_addr = 192.168.0.20 baudrate = 0 bps TLB addr = 0x3FFF0000 relocaddr = 0x43E00000 reloc off = 0x00000000 irq_sp = 0x43CFBF58 sp start = 0x43CFBF50 FB base = 0x00000000 DengJin #

10. cmp命令

DengJin # help cmp cmp - memory compareUsage: cmp [.b, .w, .l] addr1 addr2 count DengJin #

11. coninfo命令

DengJin # help coninfo coninfo - print console devices and informationUsage: coninfo DengJin # coninfo List of available devices: serial 80000003 SIO DengJin #

12. crc32命令

DengJin # help crc32 crc32 - checksum calculationUsage: crc32 address count [addr]- compute CRC32 checksum [save at addr] DengJin # crc32 40000000 8 CRC32 for 40000000 ... 40000007 ==> 2144df1c DengJin #

13. dcache

DengJin # help dcache dcache - enable or disable data cacheUsage: dcache [on, off]- enable or disable data (writethrough) cache# 查看dcache狀態(tài) DengJin # dcache Data (writethrough) Cache is OFF DengJin #

14. echo命令

DengJin # help echo echo - echo args to consoleUsage: echo [args..]- echo args to console; \c suppresses newline# 輸出信息到終端 DengJin # echo "hello world" hello world DengJin #

15. emmc命令

DengJin # help emmc emmc - Open/Close eMMC boot PartitionUsage: emmc open <device num> emmc close <device num>

16. env命令

DengJin # help env env - environment handling commandsUsage: env default -f - reset default environment env edit name - edit environment variable env export [-t | -b | -c] addr [size] - export environmnt env import [-d] [-t | -b | -c] addr [size] - import environmnt env print [name ...] - print environment env run var [...] - run commands in an environment variable env save - save environment env set [-f] name [arg ...]

17. exit命令

DengJin # help exit exit - exit scriptUsage: exit DengJin # exit exit not allowed from main input shell. DengJin #

18. version命令

DengJin # help version version - print monitor versionUsage: version # 輸出uboot版本信息 DengJin # versionU-Boot 2010.12 (Jun 04 2020 - 20:12:26) for TINY4412 DengJin #

19. source命令

DengJin # help source source - run script from memoryUsage: source [addr]- run script starting at addr- A valid image header must be present DengJin #

20. sleep命令

DengJin # help sleep sleep - delay execution for some timeUsage: sleep N- delay execution for N seconds (N is _decimal_ !!!) DengJin # sleep 3 DengJin #

21. showvar命令

DengJin # help showvar showvar - print local hushshell variablesUsage: showvar - print values of all hushshell variables showvar name ...- print value of hushshell variable 'name' DengJin # showvar HUSH_VERSION=0.01 DengJin #

22. reginfo命令

DengJin # help reginfo reginfo - print register informationUsage: reginfo DengJin #

23. 附錄

其它命令放在后面部署環(huán)境的時(shí)候使用…

總結(jié)

以上是生活随笔為你收集整理的【Tiny4412】Uboot常用命令的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。

如果覺(jué)得生活随笔網(wǎng)站內(nèi)容還不錯(cuò),歡迎將生活随笔推薦給好友。