diff options
author | Holger Brunck <holger.brunck@keymile.com> | 2011-07-04 21:52:52 +0000 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2011-07-27 23:43:33 +0200 |
commit | b648bfc212c0e62dae47b8f09a0c4e49bbd89106 (patch) | |
tree | 36a4688fbcf68ff9fde05fdc20057cc654b31701 /board/keymile/scripts/ramfs-common.txt | |
parent | 0333cfe618eb3ba8ce1001106bf5c3b9fe9af36e (diff) | |
download | u-boot-imx-b648bfc212c0e62dae47b8f09a0c4e49bbd89106.zip u-boot-imx-b648bfc212c0e62dae47b8f09a0c4e49bbd89106.tar.gz u-boot-imx-b648bfc212c0e62dae47b8f09a0c4e49bbd89106.tar.bz2 |
km/common: simplify debug environment
The debug environment which is stored in textfiles in the
scripts directory was reworked. Two usecase are now present
which can be executed simply from the default environment:
run develop: this configures the environment to setup the
rootfs via nfs
run ramfs: this configures the environment to setup the
rootfs in ram
Each architecture now has a "arch" variable which is used
to load the architecture specific debug scripts and to set
the rootpath for NFS.
Signed-off-by: Holger Brunck <holger.brunck@keymile.com>
Signed-off-by: Valentin Longchamp <valentin.longchamp@keymile.com>
cc: Heiko Schocher <hs@denx.de>
cc: Wolfgang Denk <wd@denx.de>
Diffstat (limited to 'board/keymile/scripts/ramfs-common.txt')
-rw-r--r-- | board/keymile/scripts/ramfs-common.txt | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/board/keymile/scripts/ramfs-common.txt b/board/keymile/scripts/ramfs-common.txt new file mode 100644 index 0000000..9315500 --- /dev/null +++ b/board/keymile/scripts/ramfs-common.txt @@ -0,0 +1,12 @@ +addramfs=setenv bootargs "${bootargs} mem=${rootfsaddr} phram.phram=rootfs${boot_bank},${rootfsaddr},${rootfssize}" +actual_bank=-1 +altbootcmd=run ${subbootcmds} +bootcmd=run ${subbootcmds} +subbootcmds=tftpfdt tftpkernel setrootfsaddr tftpramfs flashargs add_default addpanic addramfs boot +nfsargs=setenv bootargs root=/dev/nfs rw nfsroot=${serverip}:${rootpath} +configure=km_setboardid && run setramfspram && saveenv && reset +setramfspram=setexpr value 0 + ${rootfssize} && setexpr value 0x${value} / 0x400 && setexpr value 0x${value} + ${pram} && setenv pram 0x${value} +rootfsfile=${hostname}/rootfsImage +setrootfsaddr=setexpr value ${pnvramaddr} - ${rootfssize} && setenv rootfsaddr 0x${value} +tftpkernel=tftpboot ${load_addr_r} ${hostname}/uImage +tftpramfs=tftpboot ${rootfsaddr} ${hostname}/rootfsImage |