# Digi embedded yocto 1.6: how do I add fw\_printenv/fw\_setenv

**URL:** <https://forums.digi.com/t/digi-embedded-yocto-1-6-how-do-i-add-fw-printenv-fw-setenv/14676>\
**Category:** Linux\
**Tags:** yocto\
**Created:** [April 9, 2015, 4:17pm UTC](https://forums.digi.com/t/digi-embedded-yocto-1-6-how-do-i-add-fw-printenv-fw-setenv/14676 "2015-04-09T16:17:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![cobrien](https://avatars.discourse-cdn.com/v4/letter/c/65b543/32.png) [@cobrien](https://forums.digi.com/u/cobrien)\
**Post date:** [April 9, 2015, 4:17pm UTC](https://forums.digi.com/t/digi-embedded-yocto-1-6-how-do-i-add-fw-printenv-fw-setenv/14676/1 "2015-04-09T16:17:51Z")

</div>

I am building an image for a connectcard imx28 board.  
I need fw\_printenv to access uboot environment variables.

I tried adding u-boot-dey-fw-utils and  
got Nothing RPROVIDES ‘u-boot-dey-fw-utils’

I tried adding u-boot-fw-utils and get ’ No rule to make target `ccardimx28js\_config’.

Ideas?

---

<div class="post-metadata">

**Author:** ![jviguera](https://avatars.discourse-cdn.com/v4/letter/j/e0b2c6/32.png) [@jviguera](https://forums.digi.com/u/jviguera)\
**Post date:** [April 10, 2015, 9:20am UTC](https://forums.digi.com/t/digi-embedded-yocto-1-6-how-do-i-add-fw-printenv-fw-setenv/14676/2 "2015-04-10T09:20:16Z")

</div>

u-boot-dey-fw-utils is not available for ccardimx28js, as this platform uses a more complex NVRAM partition with all the u-boot environment plust some more data (partition table, MAC addresses, etc)

But there is an in-house developed tool ubootenv, that serves the same purpose:

```auto

Usage: ubootenv [options]

Prints or updates the U-Boot environment

  -d, --dump Prints the values of all the environment
  -p, --print 'var_name_list' Prints the value of the list of variables
                                    The list has to be simple quoted ('')
  -s, --set 'var_name=var_value' Sets var_value in the variable var_name
                                    The string has to be simple quoted ('') to allow
                                    spaces
  -e --erase 'var_name_list' Removes the list of variables (simple quoted)
  -c --clean Removes all variables
  -a --fileadd file_name Adds variables from file_name. To init the full
                                    environment from file use -c -a simultaneously
  -h --help Displays usage information

```

This command allows to write and read the u-boot environment from Linux.
