summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--multitech/contrib/uboot-setenv17
-rw-r--r--multitech/contrib/uboot-setenv-mtocgd317
2 files changed, 18 insertions, 16 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...
diff --git a/multitech/contrib/uboot-setenv-mtocgd3 b/multitech/contrib/uboot-setenv-mtocgd3
index da24d5e..e3022b3 100644
--- a/multitech/contrib/uboot-setenv-mtocgd3
+++ b/multitech/contrib/uboot-setenv-mtocgd3
@@ -6,6 +6,7 @@ send setenv serverip 192.168.2.2
send setenv ipaddr 192.168.2.1
send setenv netmask 255.255.255.0
send setenv loadaddr 0x22000000
+send setenv tftpaddr 0x20000000
send setenv stdin serial
send setenv stdout serial
send setenv stderr serial
@@ -43,14 +44,14 @@ send setenv erase_kernel \'nand erase.part kernel\'
send setenv erase_config \'nand erase.part config\'
send setenv erase_oem \'nand erase.part oem\'
send setenv erase_rootfs \'nand erase.part rootfs\'
-send setenv tftp_bootstrap \'tftp ${loadaddr} ${bootstrap_file}; run erase_bootstrap; nand write.jffs2 ${fileaddr} bootstrap ${filesize}\'
-send setenv tftp_uboot \'tftp ${loadaddr} ${uboot_file}; run erase_uboot; nand write.jffs2 ${fileaddr} u-boot ${filesize}\'
-send setenv tftp_uboot_env1 \'tftp ${loadaddr} ${uboot_env1_file}; run erase_uboot_env1; nand write.jffs2 ${fileaddr} u-boot-env1 ${filesize}\'
-send setenv tftp_uboot_env2 \'tftp ${loadaddr} ${uboot_env2_file}; run erase_uboot_env2; nand write.jffs2 ${fileaddr} u-boot-env2 ${filesize}\'
-send setenv tftp_kernel \'tftp ${loadaddr} ${kernel_file}; run erase_kernel; nand write.jffs2 ${fileaddr} kernel ${filesize}\'
-send setenv tftp_config \'tftp ${loadaddr} ${config_file}; run erase_config; nand write.jffs2 ${fileaddr} config ${filesize}\'
-send setenv tftp_oem \'tftp ${loadaddr} ${oem_file}; run erase_oem; nand write.jffs2 ${fileaddr} oem ${filesize}\'
-send setenv tftp_rootfs \'tftp ${loadaddr} ${rootfs_file}; run erase_rootfs; nand write.jffs2 ${fileaddr} rootfs ${filesize}\'
+send setenv tftp_bootstrap \'tftp ${tftpaddr} ${bootstrap_file}; run erase_bootstrap; nand write.jffs2 ${fileaddr} bootstrap ${filesize}\'
+send setenv tftp_uboot \'tftp ${tftpaddr} ${uboot_file}; run erase_uboot; nand write.jffs2 ${fileaddr} u-boot ${filesize}\'
+send setenv tftp_uboot_env1 \'tftp ${tftpaddr} ${uboot_env1_file}; run erase_uboot_env1; nand write.jffs2 ${fileaddr} u-boot-env1 ${filesize}\'
+send setenv tftp_uboot_env2 \'tftp ${tftpaddr} ${uboot_env2_file}; run erase_uboot_env2; nand write.jffs2 ${fileaddr} u-boot-env2 ${filesize}\'
+send setenv tftp_kernel \'tftp ${tftpaddr} ${kernel_file}; run erase_kernel; nand write.jffs2 ${fileaddr} kernel ${filesize}\'
+send setenv tftp_config \'tftp ${tftpaddr} ${config_file}; run erase_config; nand write.jffs2 ${fileaddr} config ${filesize}\'
+send setenv tftp_oem \'tftp ${tftpaddr} ${oem_file}; run erase_oem; nand write.jffs2 ${fileaddr} oem ${filesize}\'
+send setenv tftp_rootfs \'tftp ${tftpaddr} ${rootfs_file}; run erase_rootfs; nand write.jffs2 ${fileaddr} rootfs ${filesize}\'
send setenv krb \'run tftp_kernel; run tftp_rootfs; boot\'
send setenv rb \'run tftp_rootfs; boot\'
print saving...