openwrtv4/package/boot/uboot-envtools/files/kirkwood
Luka Perkov 2381f4a7b0 uboot-envtools: add Pogoplug E02 support
The settings require that the OpenWrt provided u-boot is used as either
first or second stage bootloader as it modifies the partitioning scheme
to move the u-boot environment to a separate mtd partition.

Signed-off-by: Felix Kaechele <heffer@fedoraproject.org>

SVN-Revision: 40829
2014-05-23 08:17:02 +00:00

23 lines
429 B
Bash

#!/bin/sh
#
# Copyright (C) 2012-2013 OpenWrt.org
#
[ -e /etc/config/ubootenv ] && exit 0
touch /etc/config/ubootenv
. /lib/uboot-envtools.sh
. /lib/functions.sh
case "`cat /proc/device-tree/model`" in
"Cloud Engines Pogoplug E02" | \
"RaidSonic ICY BOX IB-NAS62x0 (Rev B)")
ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x20000" "0x20000"
;;
esac
config_load ubootenv
config_foreach ubootenv_add_app_config ubootenv
exit 0