18824714993 发表于 2020-10-4 21:15:13

RK3399J uboot无saveenv的命令

最近遇到一个很奇葩的问题,
uboot 无saveenv的环境变量保存命令,很尴尬,烧录官方的也没有
但是官方nfs环境搭建文档是说有saveenv命令的
如图:


uboot操作:

=>
=>
=>
=>
=> saveenv
Unknown command 'saveenv' - try 'help'
=> s
save setcurs setenv sf showvar size sleep source sysboot
=> s
save setcurs setenv sf showvar size sleep source sysboot
=> s
save setcurs setenv sf showvar size sleep source sysboot
=> help
?       - alias for 'help'
base    - print or set address offset
bdinfo- print Board Info structure
boot    - boot default, i.e., run 'bootcmd'
boot_android- Execute the Android Bootloader flow.
bootd   - boot default, i.e., run 'bootcmd'
bootefi - Boots an EFI payload from memory
bootelf - Boot from an ELF image in memory
booti   - boot arm64 Linux Image image from memory
bootm   - boot application image from memory
bootp   - boot image via network using BOOTP/TFTP protocol
bootrkp - Boot Linux Image from rockchip image type
bootvx- Boot vxWorks from an ELF image
bootz   - boot Linux zImage image from memory
cmp   - memory compare
coninfo - print console devices and information
cp      - memory copy
crc32   - checksum calculation
dhcp    - boot image via network using DHCP/TFTP protocol
dm      - Driver model low level access
dump_bidram- Dump bidram layout
dump_sysmem- Dump sysmem layout
echo    - echo args to console
editenv - edit environment variable
env   - environment handling commands
erase   - erase FLASH memory
exit    - exit script
ext2load- load binary file from a Ext2 filesystem
ext2ls- list files in a directory (default /)
ext4load- load binary file from a Ext4 filesystem
ext4ls- list files in a directory (default /)
ext4size- determine a file's size
false   - do nothing, unsuccessfully
fastboot- use USB or UDP Fastboot protocol
fatinfo - print information about filesystem
fatload - load binary file from a dos filesystem
fatls   - list files in a directory (default /)
fatsize - determine a file's size
fatwrite- write file into a dos filesystem
fdt   - flattened device tree utility commands
flinfo- print FLASH memory information
fstype- Look up a filesystem type
go      - start application at address 'addr'
gpt   - GUID Partition Table
gzwrite - unzip and write memory to block device
help    - print command description/usage
iminfo- print header information for application image
imxtract- extract a part of a multi-image
iomem   - Show iomem data by device compatible(high priority) or node name
itest   - return true/false on integer compare
lcdputs - print string on video framebuffer
load    - load binary file from a filesystem
load_android- load Android Boot image from storage.
loadb   - load binary file over serial line (kermit mode)
loads   - load S-Record file over serial line
loadx   - load binary file over serial line (xmodem mode)
loady   - load binary file over serial line (ymodem mode)
loop    - infinite loop on address range
ls      - list files in a directory (default /)
lzmadec - lzma uncompress a memory region
md      - memory display
mdio    - MDIO utility commands
mii   - MII utility commands
mm      - memory modify (auto-incrementing address)
mmc   - MMC sub system
mmcinfo - display MMC info
mw      - memory write (fill)
nfs   - boot image via network using NFS protocol
nm      - memory modify (constant address)
part    - disk partition related commands
ping    - send ICMP ECHO_REQUEST to network host
printenv- print environment variables
protect - enable or disable FLASH write protection
pxe   - commands to get and boot from pxe files
rbrom   - Perform RESET of the CPU
reset   - Perform RESET of the CPU
rkimgtest- Test if storage media have rockchip image
rockchip_show_bmp- load and display bmp from resource partition
rockchip_show_logo- load and display log from resource partition
rockusb - Use the rockusb Protocol
run   - run commands in an environment variable
save    - save file to a filesystem
setcurs - set cursor position within screen
setenv- set environment variables
sf      - SPI flash sub-system
showvar - print local hushshell variables
size    - determine a file's size
sleep   - delay execution for some time
source- run script from memory
sysboot - command to get and boot from syslinux files
test    - minimal test like /bin/sh
tftpboot- boot image via network using TFTP protocol
time    - run commands and summarize execution time
true    - do nothing, successfully
ums   - Use the UMS
unzip   - unzip a memory region
usb   - USB sub-system
usbboot - boot from USB device
version - print monitor, compiler and linker version
是不是其他命令代替saveenv这个命令

leader-陳 发表于 2020-12-26 15:11:33

我也没发现有....楼主踩完坑没,有方法指导下?

就这样... 发表于 2021-4-10 14:07:53

有没有解决该问题,求助

18370990192 发表于 2021-4-11 14:28:40

编译uboot的时候配置一下,选择MMC作为存储设备。

潇潇 发表于 2021-4-30 17:08:21

u-boot根目录下make menuconfig
存储配置:
Environment--->
Select the location of the environment
(X) Environment in a block device

raswin 发表于 2021-5-18 14:49:47

可以

Lenuxon 发表于 2021-6-15 16:10:11

潇潇 发表于 2021-4-30 17:08
u-boot根目录下make menuconfig
存储配置:
Environment--->


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

sunlifang159 发表于 2023-7-14 13:06:06

可以
页: [1]
查看完整版本: RK3399J uboot无saveenv的命令