mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-08-22 09:58:52 +09:00
![Andreas Huber](/assets/img/avatar_default.png)
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>
12 lines
623 B
Plaintext
12 lines
623 B
Plaintext
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 && saveenv && reset
|
|
rootfsfile=${hostname}/rootfsImage
|
|
setrootfsaddr=setexpr value ${pnvramaddr} - ${rootfssize} && setenv rootfsaddr 0x${value}
|
|
tftpkernel=tftpboot ${load_addr_r} ${hostname}/uImage
|
|
tftpramfs=tftpboot ${rootfsaddr} ${hostname}/rootfsImage
|