46 lines
1.0 KiB
Bash
46 lines
1.0 KiB
Bash
#!/bin/sh
|
|
|
|
# use 'dhcp' to do dhcp in barebox and in kernel
|
|
# use 'none' if you want to skip kernel ip autoconfiguration
|
|
ip=dhcp-barebox
|
|
|
|
if [ x$armlinux_architecture = x848 ]
|
|
then
|
|
dhcp_vendor_id=barebox-at91sam9261ek
|
|
else
|
|
dhcp_vendor_id=barebox-at91sam9g10ek
|
|
fi
|
|
|
|
# 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 'nfs', 'tftp' or 'nand'
|
|
kernel_loc=nfs
|
|
# can be either 'net', 'nand' or 'initrd'
|
|
rootfs_loc=net
|
|
# can be either 'nfs', 'tftp', 'nand' or empty
|
|
oftree_loc=nfs
|
|
|
|
# can be either 'jffs2' or 'ubifs'
|
|
rootfs_type=ubifs
|
|
rootfsimage=root.$rootfs_type
|
|
|
|
kernelimage=zImage
|
|
#kernelimage=uImage
|
|
#kernelimage=Image
|
|
#kernelimage=Image.lzo
|
|
|
|
nand_device=atmel_nand
|
|
nand_parts="128k(at91bootstrap),256k(barebox)ro,128k(bareboxenv),128k(bareboxenv2),128k(oftree),4M(kernel),120M(rootfs),-(data)"
|
|
rootfs_mtdblock_nand=6
|
|
|
|
autoboot_timeout=3
|
|
|
|
bootargs="console=ttyS0,115200"
|
|
|
|
# set a fancy prompt (if support is compiled in)
|
|
PS1="\e[1;32mbarebox@\e[1;31m\h:\w\e[0m\n# "
|