summaryrefslogtreecommitdiff
path: root/board/keymile/scripts/ramfs-common.txt
diff options
context:
space:
mode:
authorAndreas Huber <andreas.huber@keymile.com>2011-09-13 23:06:11 +0000
committerWolfgang Denk <wd@denx.de>2011-10-22 00:29:09 +0200
commit2a7714ce64cfd954535f0c96f2809e2fd80d84f0 (patch)
treeb84c02276f7145a3b1f5bf720e1128db7d60b2c1 /board/keymile/scripts/ramfs-common.txt
parent0eb0e59ed3955cd73548c8769bf594c665025dd5 (diff)
downloadu-boot-imx-2a7714ce64cfd954535f0c96f2809e2fd80d84f0.zip
u-boot-imx-2a7714ce64cfd954535f0c96f2809e2fd80d84f0.tar.gz
u-boot-imx-2a7714ce64cfd954535f0c96f2809e2fd80d84f0.tar.bz2
km/common: fix ramfs development target
Calucations of PRAM needs to take into account the 'rootfssize'. Memory available to the linux kernel 'mem=' is in all cases set to the total memory size minus the pram size. Signed-off-by: Andreas Huber <andreas.huber@keymile.com> Signed-off-by: Holger Brunck <holger.brunck@keymile.com> cc: Wolfgang Denk <wd@denx.de>
Diffstat (limited to 'board/keymile/scripts/ramfs-common.txt')
-rw-r--r--board/keymile/scripts/ramfs-common.txt5
1 files changed, 2 insertions, 3 deletions
diff --git a/board/keymile/scripts/ramfs-common.txt b/board/keymile/scripts/ramfs-common.txt
index 9315500..c1b45ab 100644
--- a/board/keymile/scripts/ramfs-common.txt
+++ b/board/keymile/scripts/ramfs-common.txt
@@ -1,11 +1,10 @@
-addramfs=setenv bootargs "${bootargs} mem=${rootfsaddr} phram.phram=rootfs${boot_bank},${rootfsaddr},${rootfssize}"
+addramfs=setenv bootargs "${bootargs} 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}
+configure=km_setboardid && saveenv && reset
rootfsfile=${hostname}/rootfsImage
setrootfsaddr=setexpr value ${pnvramaddr} - ${rootfssize} && setenv rootfsaddr 0x${value}
tftpkernel=tftpboot ${load_addr_r} ${hostname}/uImage