SAMA5D4EK - Now uses the new environment.
This patch switches the SAMA5D4EK development board to the newer environment method. This patch depends on "mtd partition handling updates" patch series from Sascha Hauer <s.hauer@pengutronix.de> Signed-off-by: Doug Brainard <dbrainard@brainardinsight.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
parent
cd7feae00b
commit
fba2adcb3d
|
@ -0,0 +1,6 @@
|
|||
#!/bin/sh
|
||||
|
||||
global.bootm.image="/dev/nand0.kernel.bb"
|
||||
global.bootm.oftree="/dev/nand0.oftree.bb"
|
||||
|
||||
global.linux.bootargs.dyn.root="root=ubi0:rootfs ubi.mtd=rootfs rootfstype=ubifs noinitrd"
|
|
@ -1,42 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
# 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 'nfs', 'tftp', 'nor' or 'nand'
|
||||
kernel_loc=nfs
|
||||
# can be either 'net', 'nor', '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
|
||||
ubiroot=rootfs
|
||||
|
||||
# The image type of the kernel. Can be uimage, zimage, raw, or raw_lzo
|
||||
kernelimage=zImage
|
||||
#kernelimage=uImage
|
||||
#kernelimage=Image
|
||||
#kernelimage=Image.lzo
|
||||
|
||||
nand_device=atmel_nand
|
||||
nand_parts="256k(at91bootstrap),512k(barebox)ro,256k(bareboxenv),256k(bareboxenv2),256k(spare),512k(oftree),6M(kernel),-(rootfs)"
|
||||
rootfs_mtdblock_nand=7
|
||||
|
||||
m25p80_parts="64k(bootstrap),384k(barebox),256k(bareboxenv),256k(bareboxenv2),128k(oftree),-(updater)"
|
||||
|
||||
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# "
|
|
@ -0,0 +1,6 @@
|
|||
#!/bin/sh
|
||||
|
||||
mtdparts="256k(at91bootstrap),512k(barebox)ro,256k(bareboxenv),256k(bareboxenv2),256k(spare),512k(oftree),6M(kernel),-(rootfs)"
|
||||
kernelname="atmel_nand"
|
||||
|
||||
mtdparts-add -b -d nand0 -k ${kernelname} -p ${mtdparts}
|
|
@ -0,0 +1,6 @@
|
|||
#!/bin/sh
|
||||
|
||||
mtdparts="64k(bootstrap),64k(bareboxenv),512k(barebox),384k(oftree),-(kernel)"
|
||||
kernelname="m25p800"
|
||||
|
||||
mtdparts-add -d m25p0 -k ${kernelname} -p ${mtdparts}
|
|
@ -1,10 +1,5 @@
|
|||
#!/bin/sh
|
||||
|
||||
PATH=/env/bin
|
||||
export PATH
|
||||
|
||||
. /env/config
|
||||
|
||||
splash=/env/splash.png
|
||||
|
||||
if [ -f ${splash} -a -e /dev/fb0 ]; then
|
|
@ -0,0 +1 @@
|
|||
nand net
|
|
@ -0,0 +1 @@
|
|||
sama5d4ek
|
|
@ -0,0 +1 @@
|
|||
console=ttyS0,115200
|
|
@ -9,13 +9,12 @@ CONFIG_MALLOC_SIZE=0xA00000
|
|||
CONFIG_EXPERIMENTAL=y
|
||||
CONFIG_MALLOC_TLSF=y
|
||||
CONFIG_PROMPT="A5D4EK:"
|
||||
CONFIG_GLOB=y
|
||||
CONFIG_PROMPT_HUSH_PS2="y"
|
||||
CONFIG_HUSH_FANCY_PROMPT=y
|
||||
CONFIG_CMDLINE_EDITING=y
|
||||
CONFIG_AUTO_COMPLETE=y
|
||||
CONFIG_CONSOLE_ACTIVATE_ALL=y
|
||||
CONFIG_DEFAULT_ENVIRONMENT_GENERIC=y
|
||||
CONFIG_DEFAULT_ENVIRONMENT_GENERIC_NEW=y
|
||||
CONFIG_DEFAULT_ENVIRONMENT_PATH="arch/arm/boards/sama5d4ek/env"
|
||||
CONFIG_DEBUG_INFO=y
|
||||
# CONFIG_CMD_ARM_CPUINFO is not set
|
||||
|
@ -35,6 +34,8 @@ CONFIG_CMD_PARTITION=y
|
|||
CONFIG_CMD_EXPORT=y
|
||||
CONFIG_CMD_LOADENV=y
|
||||
CONFIG_CMD_PRINTENV=y
|
||||
CONFIG_CMD_MAGICVAR=y
|
||||
CONFIG_CMD_MAGICVAR_HELP=y
|
||||
CONFIG_CMD_SAVEENV=y
|
||||
CONFIG_CMD_FILETYPE=y
|
||||
CONFIG_CMD_SLEEP=y
|
||||
|
|
|
@ -494,6 +494,7 @@ choice
|
|||
|
||||
config MACH_SAMA5D4EK
|
||||
bool "Atmel SAMA5D4 Evaluation Kit"
|
||||
select HAVE_DEFAULT_ENVIRONMENT_NEW
|
||||
help
|
||||
Select this if you are using Atmel's SAMA5D4-EK Evaluation Kit.
|
||||
|
||||
|
|
Loading…
Reference in New Issue