2011-09-25 20:54:10 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
2012-04-15 04:05:39 +00:00
|
|
|
hostname=FIXME
|
2012-05-12 21:40:12 +00:00
|
|
|
if [ -z "$user" ]; then
|
|
|
|
# user=
|
|
|
|
fi
|
2011-09-25 20:54:10 +00:00
|
|
|
|
2011-09-25 20:54:13 +00:00
|
|
|
# Enter MAC address here if not retrieved automatically
|
|
|
|
#eth0.ethaddr=de:ad:be:ef:00:00
|
|
|
|
|
2011-09-25 20:54:10 +00:00
|
|
|
# use 'dhcp' to do dhcp in barebox and in kernel
|
|
|
|
# use 'none' if you want to skip kernel ip autoconfiguration
|
|
|
|
ip=dhcp
|
2012-08-15 07:23:17 +00:00
|
|
|
global.dhcp.vendor_id=barebox
|
2011-09-25 20:54:10 +00:00
|
|
|
|
|
|
|
# or set your networking parameters here
|
|
|
|
#eth0.ipaddr=a.b.c.d
|
|
|
|
#eth0.netmask=a.b.c.d
|
|
|
|
#eth0.serverip=a.b.c.d
|
|
|
|
#eth0.gateway=a.b.c.d
|
|
|
|
|
|
|
|
# can be either 'tftp', 'nfs', 'nand', 'nor' or 'disk'
|
|
|
|
kernel_loc=tftp
|
|
|
|
# can be either 'net', 'nand', 'nor', 'disk' or 'initrd'
|
|
|
|
rootfs_loc=net
|
2012-04-08 09:27:20 +00:00
|
|
|
# can be either 'tftp', 'nfs', 'nand', 'nor', 'disk' or none
|
|
|
|
oftree_loc=tftp
|
2011-09-25 20:54:10 +00:00
|
|
|
|
|
|
|
# for flash based rootfs: 'jffs2' or 'ubifs'
|
|
|
|
# in case of disk any regular filesystem like 'ext2', 'ext3', 'reiserfs'
|
|
|
|
rootfs_type=ubifs
|
|
|
|
# where is the rootfs in case of 'rootfs_loc=disk' (linux name)
|
|
|
|
rootfs_part_linux_dev=mmcblk0p4
|
2012-09-03 12:05:39 +00:00
|
|
|
rootfsimage=rootfs-${global.hostname}.$rootfs_type
|
2011-09-25 20:54:10 +00:00
|
|
|
|
|
|
|
# where is the kernel image in case of 'kernel_loc=disk'
|
|
|
|
kernel_part=disk0.2
|
|
|
|
|
2012-09-03 12:05:39 +00:00
|
|
|
kernelimage=zImage-${global.hostname}
|
|
|
|
#kernelimage=uImage-${global.hostname}
|
|
|
|
#kernelimage=Image-${global.hostname}
|
|
|
|
#kernelimage=Image-${global.hostname}.lzo
|
2011-09-25 20:54:10 +00:00
|
|
|
|
2012-09-03 12:05:39 +00:00
|
|
|
bareboximage=barebox-${global.hostname}.bin
|
|
|
|
bareboxenvimage=barebox-${global.hostname}.bin
|
2011-09-25 20:54:10 +00:00
|
|
|
|
|
|
|
if [ -n $user ]; then
|
|
|
|
bareboximage="$user"-"$bareboximage"
|
|
|
|
bareboxenvimage="$user"-"$bareboxenvimage"
|
|
|
|
kernelimage="$user"-"$kernelimage"
|
|
|
|
rootfsimage="$user"-"$rootfsimage"
|
2012-09-03 12:05:39 +00:00
|
|
|
nfsroot="/home/$user/nfsroot/${global.hostname}"
|
2011-09-25 20:54:10 +00:00
|
|
|
else
|
|
|
|
nfsroot="/path/to/nfs/root"
|
|
|
|
fi
|
|
|
|
|
|
|
|
autoboot_timeout=3
|
|
|
|
|
|
|
|
bootargs="console=ttyFIXME,115200"
|
|
|
|
|
|
|
|
nor_parts="256k(barebox)ro,128k(bareboxenv),3M(kernel),-(root)"
|
|
|
|
rootfs_mtdblock_nor=3
|
|
|
|
|
|
|
|
nand_parts="256k(barebox)ro,128k(bareboxenv),3M(kernel),-(root)"
|
|
|
|
nand_device="FIXME"
|
|
|
|
rootfs_mtdblock_nand=7
|
|
|
|
|
|
|
|
# set a fancy prompt (if support is compiled in)
|
|
|
|
PS1="\e[1;32mbarebox@\e[1;31m\h:\w\e[0m "
|