mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-09-30 11:22:09 +00:00
7b2268b88f
This consists of: a) Defining the addresses, enabling fdtsupport [arm] b) Defining "cramfsloadfdt" [arm,powerpc => common] c) Adding the FDT address to bootm [arm,powerpc => common] d) Defining "tftpfdt" in ramfs-,develop- [arm,powerpc >= common] This should work with 3.10 kernels, whether loaded through TFTP (with rootfs either through NFS or TFTP-ramfs) or from the NAND. The machid was left unchanged, this should keep compatibility with both older and newer kernels. Signed-off-by: Valentin Longchamp <valentin.longchamp@keymile.com> Signed-off-by: Gerlando Falauto <gerlando.falauto@keymile.com> Signed-off-by: Holger Brunck <holger.brunck@keymile.com> Acked-by: Valentin Longchamp <valentin.longchamp@keymile.com>
13 lines
750 B
Text
13 lines
750 B
Text
addramfs=setenv bootargs "${bootargs} phram.phram=rootfs${boot_bank},${rootfsaddr},${rootfssize}"
|
|
boot_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=run set_uimage; km_setboardid && saveenv && reset
|
|
rootfsfile=${hostname}/rootfsImage
|
|
setrootfsaddr=setexpr value ${pnvramaddr} - ${rootfssize} && setenv rootfsaddr 0x${value}
|
|
tftpfdt=tftpboot ${fdt_addr_r} ${hostname}/${hostname}.dtb
|
|
tftpkernel=tftpboot ${load_addr_r} ${hostname}/${uimage}
|
|
tftpramfs=tftpboot ${rootfsaddr} ${hostname}/rootfsImage
|
|
set_uimage=printenv uimage || setenv uimage uImage
|