diff options
Diffstat (limited to 'board/pcm043/env/config')
-rw-r--r-- | board/pcm043/env/config | 65 |
1 files changed, 47 insertions, 18 deletions
diff --git a/board/pcm043/env/config b/board/pcm043/env/config index c1ab234e63..212b6a9cd8 100644 --- a/board/pcm043/env/config +++ b/board/pcm043/env/config @@ -1,29 +1,58 @@ #!/bin/sh -# can be either 'net', 'nor' or 'nand'' -kernel=nor -root=nor +machine=pcm043 +eth0.serverip= +user= -uimage=uImage-pcm043 -jffs2=root-pcm043.jffs2 +# 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=a.b.c.d +#eth0.netmask=a.b.c.d +#eth0.gateway=a.b.c.d +#eth0.serverip=a.b.c.d + +# can be either 'net', 'nor' or 'nand' +kernel_loc=net +# can be either 'net', 'nor', 'nand' or 'initrd' +rootfs_loc=net + +# can be either 'jffs2' or 'ubifs' +rootfs_type=ubifs +rootfsimage=root-$machine.$rootfs_type + +# The image type of the kernel. Can be uimage, zimage, raw, or raw_lzo +kernelimage_type=zimage +kernelimage=zImage-$machine +#kernelimage_type=uimage +#kernelimage=uImage-$machine +#kernelimage_type=raw +#kernelimage=Image-$machine +#kernelimage_type=raw_lzo +#kernelimage=Image-$machine.lzo + +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 -nfsroot="/path/to/nfs_root" bootargs="console=ttymxc0,115200" -nor_parts="256k(barebox)ro,128k(bareboxenv),2048k(kernel),-(root)" -rootpart_nor="/dev/mtdblock3" -nand_parts="256k(barebox)ro,128k(bareboxenv),2048k(kernel),-(root)" -rootpart_nand="/dev/mtdblock3" +bootargs="$bootargs video=mx3fb:CTP-CLAA070LC0ACW" -# use 'dhcp' to do dhcp in barebox and in kernel -ip=dhcp +nor_parts="256k(barebox)ro,128k(bareboxenv),2M(kernel),-(root)" +rootfs_mtdblock_nor=3 -# or set your networking parameters here -eth0.ipaddr=192.168.3.11 -eth0.netmask=255.255.255.0 -#eth0.gateway=a.b.c.d -#eth0.serverip=192.168.3.10 -#eth0.ethaddr=aa.bb.cc.dd.ee.ff +nand_parts="256k(barebox)ro,128k(bareboxenv),2M(kernel),-(root)" +rootfs_mtdblock_nand=7 + +# set a fancy prompt (if support is compiled in) +PS1="\e[1;32mbarebox@\e[1;31m\h:\w\e[0m " |