Firefly开源社区

[Linux] RK3399J uboot无saveenv的命令

42

积分

0

威望

0

贡献

技术小白

积分
42
发表于 2020-10-4 21:15:13     
最近遇到一个很奇葩的问题,
uboot 无saveenv的环境变量保存命令,很尴尬,烧录官方的也没有
但是官方nfs环境搭建文档是说有saveenv命令的
如图:
image.png

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这个命令
回复

使用道具 举报

11

积分

0

威望

0

贡献

技术小白

积分
11
发表于 2020-12-26 15:11:33     
我也没发现有....楼主踩完坑没,有方法指导下?
回复

使用道具 举报

8

积分

0

威望

0

贡献

技术小白

积分
8
发表于 2021-4-10 14:07:53     
有没有解决该问题,求助
回复

使用道具 举报

47

积分

0

威望

0

贡献

技术小白

积分
47
发表于 2021-4-11 14:28:40     
编译uboot的时候配置一下,选择MMC作为存储设备。
回复

使用道具 举报

5

积分

0

威望

0

贡献

吃瓜的群众

积分
5
发表于 2021-4-30 17:08:21     
u-boot根目录下make menuconfig
存储配置:
Environment  --->
Select the location of the environment
(X) Environment in a block device
回复

使用道具 举报

17

积分

0

威望

0

贡献

技术小白

积分
17
发表于 2021-5-18 14:49:47     
可以
回复

使用道具 举报

85

积分

0

威望

0

贡献

技术小白

积分
85
发表于 2021-6-15 16:10:11     
潇潇 发表于 2021-4-30 17:08
u-boot根目录下make menuconfig
存储配置:
Environment  --->

可以执行saveenv了,但是保存不了环境变量,你们有遇到这种情况吗
回复

使用道具 举报

31

积分

0

威望

0

贡献

技术小白

积分
31
发表于 2023-7-14 13:06:06     
可以
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

友情链接 : 爱板网 电子发烧友论坛 云汉电子社区 粤ICP备14022046号-2
快速回复 返回顶部 返回列表