Firefly开源社区

标题: RK3399J uboot无saveenv的命令 [打印本页]

作者: 18824714993    时间: 2020-10-4 21:15
标题: RK3399J uboot无saveenv的命令
最近遇到一个很奇葩的问题,
uboot 无saveenv的环境变量保存命令,很尴尬,烧录官方的也没有
但是官方nfs环境搭建文档是说有saveenv命令的
如图:


uboot操作:

  1. =>
  2. =>
  3. =>
  4. =>
  5. => saveenv
  6. Unknown command 'saveenv' - try 'help'
  7. => s
  8.   save setcurs setenv sf showvar size sleep source sysboot
  9. => s
  10.   save setcurs setenv sf showvar size sleep source sysboot
  11. => s
  12.   save setcurs setenv sf showvar size sleep source sysboot
  13. => help
  14. ?       - alias for 'help'
  15. base    - print or set address offset
  16. bdinfo  - print Board Info structure
  17. boot    - boot default, i.e., run 'bootcmd'
  18. boot_android- Execute the Android Bootloader flow.
  19. bootd   - boot default, i.e., run 'bootcmd'
  20. bootefi - Boots an EFI payload from memory
  21. bootelf - Boot from an ELF image in memory
  22. booti   - boot arm64 Linux Image image from memory
  23. bootm   - boot application image from memory
  24. bootp   - boot image via network using BOOTP/TFTP protocol
  25. bootrkp - Boot Linux Image from rockchip image type
  26. bootvx  - Boot vxWorks from an ELF image
  27. bootz   - boot Linux zImage image from memory
  28. cmp     - memory compare
  29. coninfo - print console devices and information
  30. cp      - memory copy
  31. crc32   - checksum calculation
  32. dhcp    - boot image via network using DHCP/TFTP protocol
  33. dm      - Driver model low level access
  34. dump_bidram- Dump bidram layout
  35. dump_sysmem- Dump sysmem layout
  36. echo    - echo args to console
  37. editenv - edit environment variable
  38. env     - environment handling commands
  39. erase   - erase FLASH memory
  40. exit    - exit script
  41. ext2load- load binary file from a Ext2 filesystem
  42. ext2ls  - list files in a directory (default /)
  43. ext4load- load binary file from a Ext4 filesystem
  44. ext4ls  - list files in a directory (default /)
  45. ext4size- determine a file's size
  46. false   - do nothing, unsuccessfully
  47. fastboot- use USB or UDP Fastboot protocol
  48. fatinfo - print information about filesystem
  49. fatload - load binary file from a dos filesystem
  50. fatls   - list files in a directory (default /)
  51. fatsize - determine a file's size
  52. fatwrite- write file into a dos filesystem
  53. fdt     - flattened device tree utility commands
  54. flinfo  - print FLASH memory information
  55. fstype  - Look up a filesystem type
  56. go      - start application at address 'addr'
  57. gpt     - GUID Partition Table
  58. gzwrite - unzip and write memory to block device
  59. help    - print command description/usage
  60. iminfo  - print header information for application image
  61. imxtract- extract a part of a multi-image
  62. iomem   - Show iomem data by device compatible(high priority) or node name
  63. itest   - return true/false on integer compare
  64. lcdputs - print string on video framebuffer
  65. load    - load binary file from a filesystem
  66. load_android- load Android Boot image from storage.
  67. loadb   - load binary file over serial line (kermit mode)
  68. loads   - load S-Record file over serial line
  69. loadx   - load binary file over serial line (xmodem mode)
  70. loady   - load binary file over serial line (ymodem mode)
  71. loop    - infinite loop on address range
  72. ls      - list files in a directory (default /)
  73. lzmadec - lzma uncompress a memory region
  74. md      - memory display
  75. mdio    - MDIO utility commands
  76. mii     - MII utility commands
  77. mm      - memory modify (auto-incrementing address)
  78. mmc     - MMC sub system
  79. mmcinfo - display MMC info
  80. mw      - memory write (fill)
  81. nfs     - boot image via network using NFS protocol
  82. nm      - memory modify (constant address)
  83. part    - disk partition related commands
  84. ping    - send ICMP ECHO_REQUEST to network host
  85. printenv- print environment variables
  86. protect - enable or disable FLASH write protection
  87. pxe     - commands to get and boot from pxe files
  88. rbrom   - Perform RESET of the CPU
  89. reset   - Perform RESET of the CPU
  90. rkimgtest- Test if storage media have rockchip image
  91. rockchip_show_bmp- load and display bmp from resource partition
  92. rockchip_show_logo- load and display log from resource partition
  93. rockusb - Use the rockusb Protocol
  94. run     - run commands in an environment variable
  95. save    - save file to a filesystem
  96. setcurs - set cursor position within screen
  97. setenv  - set environment variables
  98. sf      - SPI flash sub-system
  99. showvar - print local hushshell variables
  100. size    - determine a file's size
  101. sleep   - delay execution for some time
  102. source  - run script from memory
  103. sysboot - command to get and boot from syslinux files
  104. test    - minimal test like /bin/sh
  105. tftpboot- boot image via network using TFTP protocol
  106. time    - run commands and summarize execution time
  107. true    - do nothing, successfully
  108. ums     - Use the UMS [USB Mass Storage]
  109. unzip   - unzip a memory region
  110. usb     - USB sub-system
  111. usbboot - boot from USB device
  112. version - print monitor, compiler and linker version
复制代码

是不是其他命令代替saveenv这个命令
作者: leader-陳    时间: 2020-12-26 15:11
我也没发现有....楼主踩完坑没,有方法指导下?
作者: 就这样...    时间: 2021-4-10 14:07
有没有解决该问题,求助
作者: 18370990192    时间: 2021-4-11 14:28
编译uboot的时候配置一下,选择MMC作为存储设备。
作者: 潇潇    时间: 2021-4-30 17:08
u-boot根目录下make menuconfig
存储配置:
Environment  --->
Select the location of the environment
(X) Environment in a block device
作者: raswin    时间: 2021-5-18 14:49
可以
作者: Lenuxon    时间: 2021-6-15 16:10
潇潇 发表于 2021-4-30 17:08
u-boot根目录下make menuconfig
存储配置:
Environment  --->

可以执行saveenv了,但是保存不了环境变量,你们有遇到这种情况吗
作者: sunlifang159    时间: 2023-7-14 13:06
可以




欢迎光临 Firefly开源社区 (https://dev.t-firefly.com/) Powered by Discuz! X3.1