ARM: clep7212: Update default environment
Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
parent
3539bb8017
commit
1009b307bd
|
@ -1,21 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
if [ "$1" = menu ]; then
|
||||
init-menu-add-entry "$0" "Partitions"
|
||||
exit
|
||||
fi
|
||||
|
||||
norparts="256k(barebox),256k(bareboxenv),3584k(kernel),-(root)"
|
||||
ramparts="-(ramdisk)"
|
||||
|
||||
if [ -e /dev/nor0 ]; then
|
||||
addpart -n /dev/nor0 "${norparts}"
|
||||
|
||||
global linux.mtdparts.nor
|
||||
global.linux.mtdparts.nor="physmap-flash.0:${norparts}"
|
||||
else
|
||||
echo "NOR Flash not found."
|
||||
fi
|
||||
|
||||
global linux.mtdparts.ram
|
||||
global.linux.mtdparts.ram="mtd-ram.0:${ramparts}"
|
|
@ -6,4 +6,4 @@ if [ "$1" = menu ]; then
|
|||
fi
|
||||
|
||||
global.bootm.image="/dev/kernel"
|
||||
global.linux.bootargs.dyn.root="root=/dev/mtdblock4 ro"
|
||||
global.linux.bootargs.dyn.root="root=/dev/mtdblock3 ro"
|
||||
|
|
|
@ -0,0 +1,20 @@
|
|||
#!/bin/sh
|
||||
|
||||
global.hostname=clps711x
|
||||
|
||||
# set to false if you do not want to have colors
|
||||
global.allow_color=true
|
||||
|
||||
# user (used for network filenames)
|
||||
global.user=anonymous
|
||||
|
||||
# timeout in seconds before the default boot entry is started
|
||||
global.autoboot_timeout=2
|
||||
|
||||
# default boot entry (one of /env/boot/*)
|
||||
if [ -e /dev/nor0 ]; then
|
||||
global.boot.default=nor
|
||||
fi
|
||||
|
||||
# default bootargs
|
||||
global.linux.bootargs.base="earlyprintk console=ttyCL0,57600n8"
|
|
@ -1,6 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
if [ "$1" = menu ]; then
|
||||
init-menu-add-entry "$0" "Automountpoints"
|
||||
exit
|
||||
fi
|
|
@ -1,8 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
if [ "$1" = menu ]; then
|
||||
init-menu-add-entry "$0" "Base bootargs"
|
||||
exit
|
||||
fi
|
||||
|
||||
global.linux.bootargs.base="earlyprintk console=ttyCL0,57600n8"
|
|
@ -1,12 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
if [ "$1" = menu ]; then
|
||||
init-menu-add-entry "$0" "general config settings"
|
||||
exit
|
||||
fi
|
||||
|
||||
global.user=barebox
|
||||
global.autoboot_timeout=2
|
||||
global.boot.default=nor
|
||||
|
||||
/env/bin/mtdparts-add
|
|
@ -1,8 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
if [ "$1" = menu ]; then
|
||||
init-menu-add-entry "$0" "hostname"
|
||||
exit
|
||||
fi
|
||||
|
||||
global.hostname=clep7212
|
|
@ -0,0 +1,11 @@
|
|||
#!/bin/sh
|
||||
|
||||
if [ "$1" = menu ]; then
|
||||
init-menu-add-entry "$0" "NOR partitions"
|
||||
exit
|
||||
fi
|
||||
|
||||
mtdparts="256k(barebox),256k(bareboxenv),3584k(kernel),-(root)"
|
||||
kernelname="physmap-flash.0"
|
||||
|
||||
mtdparts-add -d nor0 -k ${kernelname} -p ${mtdparts}
|
Loading…
Reference in New Issue