#
#                             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 2007????   amcurdy     Change boot partition to 512k
#   3 20071207   sjones      Change boot address to b80a0000 accordingly
#   4 20080226   batelaan    Fix line endings
#   5 20080324   amccurdy    Add "addcramfs" support
#   6 20080519   fedonczuk   Change default boot to NFS+TFTP with macros for NAND/NOR
#   6 20080620   ocourson    Add User settings partition
#   9 20090303   batelaan    Align Kernel partition on 128k to solve problems with some flash types.
#  10 20090316   ocourson    Add "addsquashfs" support
#  11 20090317   amccurdy    Use mtdblock_robbs for squashfs filesystems
#  11 20090320   cgrosse     User partition must be at least 5 blocks (5*128Kb)
#
###############################################################################

# These environment variables are specific to NOR boards

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

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

# NOR specific "Macros" for constructing kernel command line ($bootargs)
setenv addcramfs   'setenv bootargs ${bootargs} root=/dev/mtdblock${fspart} ro rootfstype=cramfs'
setenv addsquashfs 'setenv bootargs ${bootargs} root=/dev/mtdblock_robbs${fspart} ro rootfstype=squashfs'
setenv bootnor   'bootm b80a0000'
setenv bootnand

# NOR Flash memory map
# Note: partition sizes aligned on 64k has been seen to cause problems with
# some devices, so we will use alignment on 128k.
setenv mtdparts  'mtdparts=physmap-flash.0:512k(Boot),128k(Env),1664k(Kernel),11M(Filesystem),640k(User)'
setenv fspart    '3'
setenv mtdids    'nor0=physmap-flash.0'

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

saveenv
