summaryrefslogtreecommitdiff
path: root/multitech/contrib/uboot-setenv
diff options
context:
space:
mode:
Diffstat (limited to 'multitech/contrib/uboot-setenv')
-rw-r--r--multitech/contrib/uboot-setenv17
1 files changed, 9 insertions, 8 deletions
diff --git a/multitech/contrib/uboot-setenv b/multitech/contrib/uboot-setenv
index f07f7c1..55c1593 100644
--- a/multitech/contrib/uboot-setenv
+++ b/multitech/contrib/uboot-setenv
@@ -12,6 +12,7 @@ send setenv stdout serial
send setenv stderr serial
send setenv ethact macb0
send setenv loadaddr 0x21400000
+send setenv tftpaddr 0x20000000
send setenv bootstrap_file oe_bootstrap.bin
send setenv uboot_file oe_u-boot.bin
send setenv uboot_env1_file oe_uboot_env1.bin
@@ -43,14 +44,14 @@ send setenv erase_kernel \'nand erase ${kernel_addr} ${kernel_size}\'
send setenv erase_config \'nand erase ${config_addr} ${config_size}\'
send setenv erase_oem \'nand erase ${oem_addr} ${oem_size}\'
send setenv erase_rootfs \'nand erase ${rootfs_addr}\'
-send setenv tftp_bootstrap \'tftp ${loadaddr} ${bootstrap_file}; run erase_bootstrap; nand write.jffs2 ${fileaddr} ${bootstrap_addr} ${filesize}\'
-send setenv tftp_uboot \'tftp ${loadaddr} ${uboot_file}; run erase_uboot; nand write.jffs2 ${fileaddr} ${uboot_addr} ${filesize}\'
-send setenv tftp_uboot_env1 \'tftp ${loadaddr} ${uboot_env1_file}; run erase_uboot_env1; nand write.jffs2 ${fileaddr} ${uboot_env1_addr} ${filesize}\'
-send setenv tftp_uboot_env2 \'tftp ${loadaddr} ${uboot_env2_file}; run erase_uboot_env2; nand write.jffs2 ${fileaddr} ${uboot_env2_addr} ${filesize}\'
-send setenv tftp_kernel \'tftp ${loadaddr} ${kernel_file}; run erase_kernel; nand write.jffs2 ${fileaddr} ${kernel_addr} ${filesize}\'
-send setenv tftp_config \'tftp ${loadaddr} ${config_file}; run erase_config; nand write.jffs2 ${fileaddr} ${config_addr} ${filesize}\'
-send setenv tftp_oem \'tftp ${loadaddr} ${oem_file}; run erase_oem; nand write.jffs2 ${fileaddr} ${oem_addr} ${filesize}\'
-send setenv tftp_rootfs \'tftp ${loadaddr} ${rootfs_file}; run erase_rootfs; nand write.jffs2 ${fileaddr} ${rootfs_addr} ${filesize}\'
+send setenv tftp_bootstrap \'tftp ${tftpaddr} ${bootstrap_file}; run erase_bootstrap; nand write.jffs2 ${fileaddr} ${bootstrap_addr} ${filesize}\'
+send setenv tftp_uboot \'tftp ${tftpaddr} ${uboot_file}; run erase_uboot; nand write.jffs2 ${fileaddr} ${uboot_addr} ${filesize}\'
+send setenv tftp_uboot_env1 \'tftp ${tftpaddr} ${uboot_env1_file}; run erase_uboot_env1; nand write.jffs2 ${fileaddr} ${uboot_env1_addr} ${filesize}\'
+send setenv tftp_uboot_env2 \'tftp ${tftpaddr} ${uboot_env2_file}; run erase_uboot_env2; nand write.jffs2 ${fileaddr} ${uboot_env2_addr} ${filesize}\'
+send setenv tftp_kernel \'tftp ${tftpaddr} ${kernel_file}; run erase_kernel; nand write.jffs2 ${fileaddr} ${kernel_addr} ${filesize}\'
+send setenv tftp_config \'tftp ${tftpaddr} ${config_file}; run erase_config; nand write.jffs2 ${fileaddr} ${config_addr} ${filesize}\'
+send setenv tftp_oem \'tftp ${tftpaddr} ${oem_file}; run erase_oem; nand write.jffs2 ${fileaddr} ${oem_addr} ${filesize}\'
+send setenv tftp_rootfs \'tftp ${tftpaddr} ${rootfs_file}; run erase_rootfs; nand write.jffs2 ${fileaddr} ${rootfs_addr} ${filesize}\'
send setenv krb \'run tftp_kernel; run tftp_rootfs; boot\'
send setenv rb \'run tftp_rootfs; boot\'
print saving...