--- /dev/null
+# Configuration file for fw_(printenv/saveenv) utility.
+# Up to two entries are valid, in this case the redundand
+# environment sector is assumed present.
+
+# MTD device name Device offset Env. size Flash sector size
+/dev/mtd1 0x0000 0x4000 0x4000
--- /dev/null
+# Configuration file for fw_(printenv/saveenv) utility.
+# Up to two entries are valid, in this case the redundand
+# environment sector is assumed present.
+
+# MTD device name Device offset Env. size Flash sector size
+
+# Primary U-Boot environment. You shouldn't need to touch this. If you touch this,
+# you should be *very* sure about what you're doing if you don't have a serial
+# cable attached!
+# /dev/mtd4 0x00000 0x20000 0x20000
+
+# Secondary U-Boot environment. This is a *bit* more safe to modify, but can easily
+# render your turbostation unbootable!
+
+/dev/mtd5 0x00000 0x20000 0x20000
\ No newline at end of file
PRIORITY = "optional"
LICENSE = "GPL"
DEPENDS = "mtd-utils"
-PR = "2"
+PR = "r3"
SRC_URI = "${SOURCEFORGE_MIRROR}/u-boot/u-boot-${PV}.tar.bz2 \
file://fw_env.c.patch;patch=1 \
file://tools-Makefile.patch;patch=1 \
- file://env-Makefile.patch;patch=1 "
+ file://env-Makefile.patch;patch=1 \
+ file://fw_env.config"
S = "${WORKDIR}/u-boot-${PV}"
EXTRA_OEMAKE = "CROSS_COMPILE=${TARGET_PREFIX}"
do_install () {
install -d ${D}/sbin
install -d ${D}${sysconfdir}
+ install -m 644 ${WORKDIR}/fw_env.config ${D}${sysconfdir}/fw_env.config
install -m 755 ${S}/tools/env/fw_printenv ${D}/sbin/fw_printenv
install -m 755 ${S}/tools/env/fw_printenv ${D}/sbin/fw_setenv
- install -m 644 ${S}/tools/env/fw_env.config ${D}${sysconfdir}/fw_env.config
}