diff options
Diffstat (limited to 'qemu/roms/u-boot/board/keymile/scripts/ramfs-common.txt')
-rw-r--r-- | qemu/roms/u-boot/board/keymile/scripts/ramfs-common.txt | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/qemu/roms/u-boot/board/keymile/scripts/ramfs-common.txt b/qemu/roms/u-boot/board/keymile/scripts/ramfs-common.txt new file mode 100644 index 000000000..d79ad2e21 --- /dev/null +++ b/qemu/roms/u-boot/board/keymile/scripts/ramfs-common.txt @@ -0,0 +1,13 @@ +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=if run set_fdthigh || test ${arch} != arm; then tftpboot ${fdt_addr_r} ${hostname}/${hostname}.dtb; else true; fi +tftpkernel=tftpboot ${load_addr_r} ${hostname}/${uimage} +tftpramfs=tftpboot ${rootfsaddr} ${hostname}/rootfsImage +set_uimage=printenv uimage || setenv uimage uImage |