2009-10-25 09:07:11 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
# use 'dhcp' to do dhcp in barebox and in kernel
|
|
|
|
# use 'none' if you want to skip kernel ip autoconfiguration
|
2012-03-30 04:47:54 +00:00
|
|
|
ip=dhcp-barebox
|
2009-10-25 09:07:11 +00:00
|
|
|
|
2012-03-13 17:43:15 +00:00
|
|
|
if [ x$armlinux_architecture = x848 ]
|
|
|
|
then
|
2012-08-15 07:23:17 +00:00
|
|
|
global.dhcp.vendor_id=barebox-at91sam9261ek
|
2012-03-13 17:43:15 +00:00
|
|
|
else
|
2012-08-15 07:23:17 +00:00
|
|
|
global.dhcp.vendor_id=barebox-at91sam9g10ek
|
2012-03-13 17:43:15 +00:00
|
|
|
fi
|
|
|
|
|
2009-10-25 09:07:11 +00:00
|
|
|
# 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
|
|
|
|
|
2011-03-11 01:10:39 +00:00
|
|
|
# can be either 'nfs', 'tftp' or 'nand'
|
2012-04-12 06:39:15 +00:00
|
|
|
kernel_loc=nfs
|
2009-10-25 09:07:11 +00:00
|
|
|
# can be either 'net', 'nand' or 'initrd'
|
|
|
|
rootfs_loc=net
|
2012-04-12 06:39:15 +00:00
|
|
|
# can be either 'nfs', 'tftp', 'nand' or empty
|
|
|
|
oftree_loc=nfs
|
2009-10-25 09:07:11 +00:00
|
|
|
|
|
|
|
# can be either 'jffs2' or 'ubifs'
|
|
|
|
rootfs_type=ubifs
|
|
|
|
rootfsimage=root.$rootfs_type
|
|
|
|
|
2012-04-12 06:39:15 +00:00
|
|
|
kernelimage=zImage
|
|
|
|
#kernelimage=uImage
|
2009-10-25 09:07:11 +00:00
|
|
|
#kernelimage=Image
|
|
|
|
#kernelimage=Image.lzo
|
|
|
|
|
2011-03-11 01:10:40 +00:00
|
|
|
nand_device=atmel_nand
|
2012-04-12 06:39:15 +00:00
|
|
|
nand_parts="128k(at91bootstrap),256k(barebox)ro,128k(bareboxenv),128k(bareboxenv2),128k(oftree),4M(kernel),120M(rootfs),-(data)"
|
|
|
|
rootfs_mtdblock_nand=6
|
2009-10-25 09:07:11 +00:00
|
|
|
|
|
|
|
autoboot_timeout=3
|
|
|
|
|
|
|
|
bootargs="console=ttyS0,115200"
|
|
|
|
|
|
|
|
# set a fancy prompt (if support is compiled in)
|
2012-03-01 07:58:56 +00:00
|
|
|
PS1="\e[1;32mbarebox@\e[1;31m\h:\w\e[0m\n# "
|