#!/bin/sh

machine=pcaam1
user=

# use 'dhcp' to do dhcp in barebox and in kernel
# use 'none' if you want to skip kernel ip autoconfiguration
#ip=dhcp

# or set your networking parameters here
eth0.ipaddr=192.168.3.11
eth0.netmask=255.255.255.0
eth0.gateway=192.168.3.10
eth0.serverip=192.168.3.10

# can be either 'nfs', 'tftp' or 'nand'
kernel_loc=nand
# can be either 'net' or 'nand'
rootfs_loc=nand
# can be either 'nand' or nothing for no splash screen
splash_loc=nand

# can be either 'jffs2' or 'ubifs'
rootfs_type=jffs2
rootfsimage=root-$machine.$rootfs_type

# can be either 'uimage', 'zimage', 'raw' or 'raw_lzo'
kernelimage_type=uimage
kernelimage=uImage-$machine

if [ -n $user ]; then
	kernelimage="$user"-"$kernelimage"
	nfsroot="$eth0.serverip:/home/$user/nfsroot/$machine"
	rootfsimage="$user"-"$rootfsimage"
else
	nfsroot="$eth0.serverip:/path/to/nfs/root"
fi

autoboot_timeout=3

#Displays
display=Primeview-PD050VL1
#display=Primeview-PD035VL1
#display=Primeview-PD104SLF
#display=Primeview-PM070WL4

if [ -n $splash_loc ]; then
	bootargs="mem=126M console=ttymxc0,115200 video=mx3fb:$display"
else
	bootargs="console=ttymxc0,115200 video=mx3fb:$display"
fi

# Comment out the following to use a black/white mode
# mt9v022 camera
bootargs="$bootargs mt9v022.sensor_type=colour"

#USB OTG - Comment this out if you want to use USB OTG as host
#bootargs="$bootargs pcaam1_otg_mode=host"

nand_parts="256k(barebox)ro,128k(bareboxenv),1408k(splash),4M(kernel),-(root)"
rootfs_mtdblock_nand=4

nand_device=mxc_nand

# set a fancy prompt (if support is compiled in)
PS1="\e[1;32mbarebox@\e[1;31m\h:\w\e[0m "


