This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

我是新手:为什么我买的BeagleBone Black的uboot中没有saveenv命令?

最近刚入手一块BeagleBone Black,是国产英蓓特的,进入uboot界面后输入saveenv竟然说

=> saveenv
Unknown command 'saveenv' - try 'help'

请教这个命令为何没有,应该用什么命令代替呢,谢谢。

  • 其他命令了?执行下help看看有什么打印信息。

  • 是不是我手头的bbb不支持saveenv命令?我买的是Embest国产的BeagleBone Black Rev C element14版本的,我看了一下

    uboot的版本如下,网上搜了一下,有的说是和eMMC访问有关,说是有些版本不支持saveenv命令,需要去改什么uEnv.txt文件,这个哪里有官方的说法?我去Enbest的论坛转了一下,也没看到什么正式的说明。请问是否有同道碰到过类似的问题的?

    如果没有saveenv命令,我用TI的SDK的setup脚本设置tftp/nfs环境会失败啊,这个embest的板子的uboot为何会这样?!

    => version

    U-Boot 2015.10-00001-g143c9ee (Nov 06 2015 - 15:27:19 -0600)
    arm-linux-gnueabihf-gcc (Linaro GCC 4.9-2015.05) 4.9.3 20150413 (prerelease)
    GNU ld (GNU Binutils) Linaro 2014.11-3-git 2.24.0.20141017

    => help
    ? - alias for 'help'
    askenv - get environment variables from stdin
    base - print or set address offset
    bdinfo - print Board Info structure
    boot - boot default, i.e., run 'bootcmd'
    bootd - boot default, i.e., run 'bootcmd'
    bootm - boot application image from memory
    bootp - boot image via network using BOOTP/TFTP protocol
    bootz - boot Linux zImage image from memory
    cmp - memory compare
    coninfo - print console devices and information
    cp - memory copy
    crc32 - checksum calculation
    dfu - Device Firmware Upgrade
    dhcp - boot image via network using DHCP/TFTP protocol
    dm - Driver model low level access
    echo - echo args to console
    editenv - edit environment variable
    eeprom - EEPROM sub-system
    env - environment handling commands
    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 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
    fstype - Look up a filesystem type
    go - start application at address 'addr'
    gpio - query and control gpio pins
    gpt - GUID Partition Table
    help - print command description/usage
    i2c - I2C sub-system
    iminfo - print header information for application image
    imxtract- extract a part of a multi-image
    itest - return true/false on integer compare
    load - load binary file from a filesystem
    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 /)
    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
    reset - Perform RESET of the CPU
    run - run commands in an environment variable
    save - save file to a filesystem
    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
    spl - SPL configuration
    sspi - SPI utility command
    test - minimal test like /bin/sh
    tftpboot- boot image via network using TFTP protocol
    true - do nothing, successfully
    ums - Use the UMS [USB Mass Storage]
    usb - USB sub-system
    usbboot - boot from USB device
    version - print monitor, compiler and linker version

  • saveenv只是个命令,板子上有没有nand flash,你saveenv时要把环境变量存在哪里呢?总得有实现吧。

    你的办卡上应该只有emmc卡,个人觉得放在uEnv.txt中会相对来说方便些。