Guest User

Untitled

a guest
Aug 13th, 2026
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.73 KB | None | 0 0
  1. MT7629> printenv
  2. arch=arm
  3. baudrate=115200
  4. board=leopard_evb
  5. board_name=leopard_evb
  6. boot0=download_setting kernel;tftpboot ${loadaddr} ${kernel_filename};bootm
  7. boot1=download_setting kernel;tftpboot ${loadaddr} ${kernel_filename};run boot_wr_img;run boot_rd_img;bootm
  8. boot2=tftpd
  9. boot3=download_setting uboot;tftpboot ${loadaddr} ${uboot_filename};run wr_uboot;invaild_env
  10. boot4=loadb;run wr_uboot;invaild_env
  11. boot5=download_setting ctp;tftpboot ${loadaddr} ${ctp_filename};run wr_ctp
  12. boot6=run wr_cumstom_image;invaild_env
  13. boot7=download_setting flashimage;tftpboot ${loadaddr} ${flashimage_filename};run wr_flashimage;invaild_env
  14. boot8=tftpsrv;run boot_wr_img;run boot_rd_img;bootm
  15. boot_rd_ctp=mtd read nmbm0 0x40000000 CONFIG_NAND_CTP_OFFSET 0xF20000
  16. boot_rd_img=mtd read nmbm0 ${loadaddr} 0x3e0000 0x2000;image_blks 2048;mtd read nmbm0 ${loadaddr} 0x3e0000 ${img_align_size}
  17. boot_wr_img=filesize_check 0x3200000;if test ${filesize_result} = good; then image_blks 131072;mtd erase nmbm0 0x3e0000 ${filesize};image_blks 2048;mtd write nmbm0 ${loadaddr} 0x3e0000 ${filesize};fi
  18. bootcmd=No
  19. bootdelay=3
  20. bootfile=lede_uImage
  21. bootmenu_0=1. System Load Linux to SDRAM via TFTP.=run boot0
  22. bootmenu_1=2. System Load Linux Kernel then write to Flash via TFTP.=run boot1
  23. bootmenu_2=3. Boot system code via Flash.=run boot2
  24. bootmenu_3=4. System Load U-Boot then write to Flash via TFTP.=run boot3
  25. bootmenu_4=5. System Load U-Boot then write to Flash via Serial.=run boot4
  26. bootmenu_5=6. System Load CTP then write to Flash via TFTP.=run boot5
  27. bootmenu_6=7. Debugger load image then write to Flash.=run boot6
  28. bootmenu_7=8. System Load flashimage then write to Flash via TFTP.=run boot7
  29. bootmenu_delay=30
  30. cpu=armv7
  31. ctp_filename=ctp.bin
  32. ethact=mtk_eth
  33. ethaddr=00:0C:E7:11:22:33
  34. flashimage_filename=flashimage.bin
  35. invaild_env=no
  36. ipaddr=192.168.1.1
  37. kernel_filename=lede-kernel.bin
  38. loadaddr=0x42007F1C
  39. serverip=192.168.1.3
  40. soc=leopard
  41. stderr=serial
  42. stdin=serial
  43. stdout=serial
  44. uboot_filename=u-boot-mtk.bin
  45. vendor=mediatek
  46. wr_ctp=filesize_check CONFIG_MAX_NAND_CTP_SIZE;if test ${filesize_result} = good; then mtd erase nmbm0 CONFIG_NAND_CTP_OFFSET 0xF20000 ;mtd write nmbm0 ${loadaddr} CONFIG_NAND_CTP_OFFSET CONFIG_MAX_NAND_CTP_SIZE;fi
  47. wr_cumstom_image=custom_image_check 0x8000000;if test ${img_result} = good; then mtd erase nmbm0;mtd write nmbm0 0x40000000 0x0 0x1800000;fi
  48. wr_flashimage=filesize_check 0x8000000;if test ${filesize_result} = good; then mtd erase nmbm0;mtd write nmbm0 ${loadaddr} 0x0 ${filesize};fi
  49. wr_uboot=filesize_check 0xe0000;if test ${filesize_result} = good; then mtk_image_blks 131072;mtd erase nmbm0 0x00000 ${filesize} ;mtk_image_blks 2048;mtd write nmbm0 ${loadaddr} 0x00000 ${filesize};fi
  50.  
  51. Environment size: 2787/4092 bytes
  52. MT7629> bdinfo
  53. arch_number = 0x00001DCD
  54. boot_params = 0x40000100
  55. DRAM bank = 0x00000000
  56. -> start = 0x40000000
  57. -> size = 0x08000000
  58. eth0name = mtk_eth
  59. ethaddr = 00:0C:E7:11:22:33
  60. current eth = mtk_eth
  61. ip_addr = 192.168.1.1
  62. baudrate = 115200 bps
  63. TLB addr = 0x47FF0000
  64. relocaddr = 0x47F65000
  65. reloc off = 0x06165000
  66. irq_sp = 0x47B63F40
  67. sp start = 0x47B63F30
  68.  
  69. MT7629> help
  70. ? - alias for 'help'
  71. backup_message- print backup message.
  72. base - print or set address offset
  73. bdinfo - print Board Info structure
  74. boot - boot default, i.e., run 'bootcmd'
  75. bootd - boot default, i.e., run 'bootcmd'
  76. bootm - boot application image from memory
  77. bootmenu- ANSI terminal bootmenu
  78. bootp - boot image via network using BOOTP/TFTP protocol
  79. check_trx- Check ASUS TRX firmware.
  80. chpart - change active partition
  81. cmp - memory compare
  82. coninfo - print console devices and information
  83. cp - memory copy
  84. crc32 - checksum calculation
  85. custom_image_check- check if image in load_addr is normal.
  86. dialog - echo args to console, and get yes or no response from user
  87. download_setting- set download image file name , and device IP , server IP before upgrade
  88. echo - echo args to console
  89. editenv - edit environment variable
  90. env - environment handling commands
  91. esw_read- esw_read - Dump external switch/GMAC status !!
  92.  
  93. exit - exit script
  94. false - do nothing, unsuccessfully
  95. fdt - flattened device tree utility commands
  96. filesize_check- check if filesize of the image that you want to upgrade is normal.
  97. go - start application at address 'addr'
  98. gpio_dump- enable utif debug function.
  99. help - print command description/usage
  100. image_blks- read image size from img_size or image header if no specifying img_size, and divided by blk_size and save image blocks in image_blks variable.
  101. image_check- check if image in load_addr is normal.
  102. iminfo - print header information for application image
  103. imxtract- extract a part of a multi-image
  104. invaild_env- need to invaild env.
  105. itest - return true/false on integer compare
  106. loadb - load binary file over serial line (kermit mode)
  107. loads - load S-Record file over serial line
  108. loadx - load binary file over serial line (xmodem mode)
  109. loady - load binary file over serial line (ymodem mode)
  110. loop - infinite loop on address range
  111. md - memory display
  112. mdio - mdio - Mediatek PHY register R/W command !!
  113.  
  114. mm - memory modify (auto-incrementing address)
  115. mtd - MTD utils
  116. mtdparts- define flash/nand partitions
  117. mtk_image_blks- read image size from image header (MTK format) located at load_addr, divided by blk_size and save image blocks in image_blks variable.
  118. mw - memory write (fill)
  119. n9_jtag - switch GPIO to AUX6 for N9 jtag debug.
  120. n9_uart - switch GPIO to AUX6 for N9 UART output.
  121. nm - memory modify (constant address)
  122. nmbm - NMBM utility commands
  123. ping - send ICMP ECHO_REQUEST to network host
  124. printenv- print environment variables
  125. reco_message- print recovery message.
  126. reg - reg - Mediatek PHY register R/W command !!
  127.  
  128. reset - Perform RESET of the CPU
  129. run - run commands in an environment variable
  130. saveenv - save environment variables to persistent storage
  131. serious_image_check- seriously check if image in load_addr is normal.
  132. setenv - set environment variables
  133. showvar - print local hushshell variables
  134. sleep - delay execution for some time
  135. snor - snor - spi-nor flash command
  136.  
  137. source - run script from memory
  138. switch_rxcal- Re-cal PHY Rx DC offset of mt7531 switch !!
  139. switch_txcal- Re-cal PHY Tx offset of mt7531 switch !!
  140. test - minimal test like /bin/sh
  141. tftpboot- boot image via network using TFTP protocol
  142. tftpd - tftpd -load the data by tftp protocol
  143.  
  144. tftpsrv - act as a TFTP server and boot the first received file
  145. true - do nothing, successfully
  146. uboot_check- check if uboot in load_addr is normal.
  147. uid - uid - Read Unique ID from spi-nor flash
  148.  
  149. utif_debug- enable utif debug function.
  150. version - print monitor, compiler and linker version
  151.  
Advertisement
Add Comment
Please, Sign In to add comment