#
#                             STB225 Project
#                   ---------------------------------
#
# Copyright (C) 2009 NXP B.V.
# All Rights Reserved.
#
# Rev Date       Author      Comments
#-------------------------------------------------------------------------------
#   1 20070823   fedonczuk   Original (based on previous common file)
#   2 20070918   sjones      Remove BootM0A partition.
#   3 20071008   sjones      Add redundant environment variable partition
#   4 20071016   sjones      Go back to one environment variable partition, but
#                            make it big enough to be able to handle some bad
#                            blocks
#   5 20080324   amccurdy    Add "addcramfs" support
#   6 20080328   laird       Change Nand to gen_nand.
#   7 20080519   fedonczuk   Change default boot to NFS+TFTP with macros for NAND/NOR
#   8 20080620   ocourson    Add User settings partition
#   9 20090316   ocourson    Add "addsquashfs" support
#
###############################################################################

# These environment variables are specific to NAND boards

# For a complete environment you must combine this with
# 'uboot_env_stb225.txt'

###############################################################################

# NAND specific "Macros" for constructing kernel command line ($bootargs)
setenv addcramfs   'setenv bootargs ${bootargs} root=/dev/mtdblock_robbs${fspart} ro rootfstype=cramfs'
setenv addsquashfs 'setenv bootargs ${bootargs} root=/dev/mtdblock_robbs${fspart} ro rootfstype=squashfs'
setenv bootnand  'nboot.jffs2 80800000 0 1A0000'
setenv bootnor

# NAND Flash memory map
setenv mtdparts  'mtdparts=gen_nand:128k(Boot0),1M(Boot1),512k(Env),4M(Kernel),16M(Filesystem),128k(User)'
setenv fspart    '4'
setenv mtdids    'nand0=gen_nand'

###############################################################################

nand erase Env
saveenv
