Guest User

u-boot commands

a guest
Oct 19th, 2025
24
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.20 KB | None | 0 0
  1. help
  2. version
  3. printenv
  4. smeminfo
  5.  
  6.  
  7. (IPQ40xx) # help
  8. ? - alias for 'help'
  9. base - print or set address offset
  10. bootipq - bootipq from flash device
  11. bootm - boot application image from memory
  12. bootp - boot image via network using BOOTP/TFTP protocol
  13. chpart - change active partition
  14. cmp - memory compare
  15. cp - memory copy
  16. crc32 - checksum calculation
  17. dcache - enable or disable data cache
  18. dhcp - boot image via network using DHCP/TFTP protocol
  19. echo - echo args to console
  20. env - environment handling commands
  21. exit - exit script
  22. false - do nothing, unsuccessfully
  23. fdt - flattened device tree utility commands
  24. fuseipq - fuse QFPROM registers from memory
  25.  
  26. go - start application at address 'addr'
  27. help - print command description/usage
  28. i2c - I2C sub-system
  29. icache - enable or disable instruction cache
  30. imxtract- extract a part of a multi-image
  31. is_sec_boot_enabled- check secure boot fuse is enabled or not
  32.  
  33. loop - infinite loop on address range
  34. md - memory display
  35. mii - MII utility commands
  36. mm - memory modify (auto-incrementing address)
  37. mtdparts- define flash/nand partitions
  38. mtest - simple RAM read/write test
  39. mw - memory write (fill)
  40. nand - NAND sub-system
  41. nboot - boot from NAND device
  42. nm - memory modify (constant address)
  43. pci - list and access PCI Configuration Space
  44. ping - send ICMP ECHO_REQUEST to network host
  45. printenv- print environment variables
  46. reset - Perform RESET of the CPU
  47. run - run commands in an environment variable
  48. saveenv - save environment variables to persistent storage
  49. secure_authenticate- authenticate the signed image
  50.  
  51. setenv - set environment variables
  52. sf - SPI flash sub-system
  53. showvar - print local hushshell variables
  54. smeminfo- print SMEM FLASH information
  55. source - run script from memory
  56. test - minimal test like /bin/sh
  57. tftpboot- boot image via network using TFTP protocol
  58. true - do nothing, successfully
  59. uartrd - uartrd read from second UART
  60. uartwr - uartwr to second UART
  61. ubi - ubi commands
  62. usb - USB sub-system
  63. usbboot - boot from USB device
  64. version - print monitor, compiler and linker version
  65.  
  66.  
  67. (IPQ40xx) # version
  68. U-Boot 2012.07 [Chaos Calmer 15.05.1,IPQ4019.ILQ.6.1.0.r2-00006-P-1] (Jun 22 2021 - 07:08:05)
  69. arm-openwrt-linux-uclibcgnueabi-gcc (OpenWrt/Linaro GCC 4.8-2014.04 IPQ4019.ILQ.6.1.0.r2-00006-P-1) 4.8.3
  70. GNU ld (GNU Binutils) 2.24.0
  71.  
  72.  
  73. (IPQ40xx) # printenv
  74. baudrate=115200
  75. bootcmd=bootipq
  76. bootdelay=2
  77. flash_type=0
  78. ipaddr=192.168.0.1
  79. lc=tftpboot 0x84000000 ${dir}cdt-AP.DK04.1-C1.bin&&sf probe&&sf erase 0xc0000 +$filesize&&sf write $fileaddr 0xc0000 $filesize
  80. lp=tftpboot 0x84000000 ${dir}norplusnand-system-partition-ipq40xx.bin&&sf probe&&sf erase 0x40000 +$filesize&&sf write $fileaddr 0x40000 $filesize
  81. lr=tftpboot 0x84000000 ${dir}root_uImage&&nand erase 0x1000000 0x800000 &&nand write_partition 0x84000000 0x1000000 0x800000 &&nand erase 0x1800000 0x1D00000 &&nand write_partition 0x84800000 0x1800000 0x1D00000
  82. lrb=tftpboot 0x84000000 ${dir}delta.bin&&nand erase 0x3500000 0x1900000&&nand write $fileaddr 0x3500000 $filesize
  83. lrs=tftpboot 0x84000000 ${dir}root_uImage_s&&nand erase 0x1800000 0x1D00000&&nand write $fileaddr 0x1800000 $filesize
  84. lu=tftpboot 0x84000000 ${dir}uboot.bin&&sf probe&&sf erase 0xf0000 +$filesize&&sf write $fileaddr 0xf0000 $filesize
  85. lw=tftpboot 0x84000000 ${dir}web.img&&nand erase 0x1000000 0x800000&&nand write $fileaddr 0x1000000 $filesize
  86. machid=8010001
  87. serverip=192.168.0.22
  88. stderr=serial
  89. stdin=serial
  90. stdout=serial
  91.  
  92. Environment size: 1149/65532 bytes
  93.  
  94.  
  95. (IPQ40xx) # smeminfo
  96. flash_type: 0x6
  97. flash_index: 0x0
  98. flash_chip_select: 0x0
  99. flash_block_size: 0x10000
  100. flash_density: 0x1000000
  101. partition table offset 0x0
  102. No.: Name Attributes Start Size
  103. 0: 0:SBL1 0x0000ffff 0x0 0x40000
  104. 1: 0:MIBIB 0x001040ff 0x40000 0x20000
  105. 2: 0:QSEE 0x0000ffff 0x60000 0x60000
  106. 3: 0:CDT 0x0000ffff 0xc0000 0x10000
  107. 4: 0:DDRPARAMS 0x0000ffff 0xd0000 0x10000
  108. 5: 0:APPSBLENV 0x0000ffff 0xe0000 0x10000
  109. 6: 0:APPSBL 0x0000ffff 0xf0000 0xc0000
  110. 7: 0:reserved1 0x0000ffff 0x1b0000 0x50000
  111. 8: fota-flag 0x0100ffff 0x0 0xa0000
  112. 9: 0:ART 0x0100ffff 0xa0000 0x80000
  113. 10: mac 0x0100ffff 0x120000 0x80000
  114. 11: reserved2 0x0100ffff 0x1a0000 0xc0000
  115. 12: cfg-param 0x0100ffff 0x260000 0x400000
  116. 13: log 0x0100ffff 0x660000 0x400000
  117. 14: oops 0x0100ffff 0xa60000 0xa0000
  118. 15: reserved3 0x0100ffff 0xb00000 0x500000
  119. 16: web 0x0100ffff 0x1000000 0x800000
  120. 17: rootfs 0x0100ffff 0x1800000 0x1d00000
  121. 18: data 0x0100ffff 0x3500000 0x1900000
  122. 19: fota 0x0100ffff 0x4e00000 0x3200000
  123.  
  124.  
  125. (IPQ40xx) #
  126.  
Advertisement
Add Comment
Please, Sign In to add comment