summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
Diffstat (limited to 'contrib')
-rw-r--r--contrib/uboot-setenv-mtcdt.minicom61
-rw-r--r--contrib/uboot-setenv-mtcdt.ttl149
-rw-r--r--contrib/uboot-setenv-mtr.minicom61
-rw-r--r--contrib/uboot-setenv-mtrv1.minicom61
4 files changed, 332 insertions, 0 deletions
diff --git a/contrib/uboot-setenv-mtcdt.minicom b/contrib/uboot-setenv-mtcdt.minicom
new file mode 100644
index 0000000..5ab6c6c
--- /dev/null
+++ b/contrib/uboot-setenv-mtcdt.minicom
@@ -0,0 +1,61 @@
+print setting U-Boot variables...
+send setenv bootargs \'mem=256M console=ttyS0,115200 root=/dev/mtdblock8 ro rootfstype=jffs2\'
+send setenv bootcmd \'nboot.jffs2 ${loadaddr} 0 ${kernel_addr} && bootm ${loadaddr}\'
+send setenv bootdelay 1
+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
+send setenv ethact macb0
+send setenv mtdids nand0=nand0
+send setenv mtdparts mtdparts=nand0:256k(bootstrap),512k(u-boot),640k(u-boot-env1),640k(u-boot-env2),6M(kernel),8M(config),8M(oem),128M(rootfs),-(user)
+send setenv bootstrap_file oe_bootstrap_pmecc_padded.bin
+send setenv uboot_file oe_u-boot.bin
+send setenv uboot_env1_file oe_uboot_env1.bin
+send setenv uboot_env2_file oe_uboot_env2.bin
+send setenv kernel_file oe_uImage.bin
+send setenv config_file oe_config.tar.gz
+send setenv oem_file oe_oem.tar.gz
+send setenv rootfs_file oe_rootfs.jffs2
+send setenv bootstrap_addr 0x00000000
+send setenv uboot_addr 0x00040000
+send setenv uboot_env1_addr 0x000C0000
+send setenv uboot_env2_addr 0x00160000
+send setenv kernel_addr 0x00200000
+send setenv config_addr 0x00800000
+send setenv oem_addr 0x01000000
+send setenv rootfs_addr 0x01800000
+send setenv bootstrap_size 0x00040000
+send setenv uboot_size 0x00080000
+send setenv uboot_env1_size 0x000A0000
+send setenv uboot_env2_size 0x000A0000
+send setenv kernel_size 0x00600000
+send setenv config_size 0x00800000
+send setenv oem_size 0x00800000
+send setenv erase_bootstrap \'nand erase.part bootstrap\'
+send setenv erase_uboot \'nand erase.part u-boot\'
+send setenv erase_uboot_env1 \'nand erase.part u-boot-env1\'
+send setenv erase_uboot_env2 \'nand erase.part u-boot-env2\'
+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 erase_user_data \'nand erase.part user\'
+send setenv tftp_bootstrap \'tftpb ${tftpaddr} ${bootstrap_file} && run erase_bootstrap && nand write.jffs2 ${fileaddr} bootstrap ${filesize}\'
+send setenv tftp_uboot \'tftpb ${tftpaddr} ${uboot_file} && run erase_uboot && nand write.jffs2 ${fileaddr} u-boot ${filesize}\'
+send setenv tftp_uboot_env1 \'tftpb ${tftpaddr} ${uboot_env1_file} && run erase_uboot_env1 && nand write.jffs2 ${fileaddr} u-boot-env1 ${filesize}\'
+send setenv tftp_uboot_env2 \'tftpb ${tftpaddr} ${uboot_env2_file} && run erase_uboot_env2 && nand write.jffs2 ${fileaddr} u-boot-env2 ${filesize}\'
+send setenv tftp_kernel \'tftpb ${tftpaddr} ${kernel_file} && run erase_kernel && nand write.jffs2 ${fileaddr} kernel ${filesize}\'
+send setenv tftp_config \'tftpb ${tftpaddr} ${config_file} && run erase_config && nand write.jffs2 ${fileaddr} config ${filesize}\'
+send setenv tftp_oem \'tftpb ${tftpaddr} ${oem_file} && run erase_oem && nand write.jffs2 ${fileaddr} oem ${filesize}\'
+send setenv tftp_rootfs \'tftpb ${tftpaddr} ${rootfs_file} && run erase_rootfs && run erase_user_data && 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...
+send saveenv
+send saveenv
+send printenv
diff --git a/contrib/uboot-setenv-mtcdt.ttl b/contrib/uboot-setenv-mtcdt.ttl
new file mode 100644
index 0000000..2b5dc54
--- /dev/null
+++ b/contrib/uboot-setenv-mtcdt.ttl
@@ -0,0 +1,149 @@
+;; Teraterm script to set the u-boot environmnet for flashing MTCDT or MTCAP
+;;
+;; setting U-Boot variables...
+;; Prompt 'U-Boot> '
+;; 39 below translates to an apostrophe.
+P = 'U-Boot> '
+K1 = 'mem=256M console=ttyS0,115200 root=/dev/mtdblock8 ro rootfstype=jffs2'
+K2 = 'nboot.jffs2 ${loadaddr} 0 ${kernel_addr} && bootm ${loadaddr}'
+BOOTSTRAP = 'nand erase.part bootstrap'
+UBOOT0 = 'nand erase.part u-boot'
+UBOOT1 = 'nand erase.part u-boot-env1'
+UBOOT2 = 'nand erase.part u-boot-env2'
+EKERN = 'nand erase.part kernel'
+ECONF = 'nand erase.part config'
+EOEM = 'nand erase.part oem'
+EROOT = 'nand erase.part rootfs'
+EUSER = 'nand erase.part user'
+TBOOT = 'tftpb ${tftpaddr} ${bootstrap_file} && run erase_bootstrap && nand write.jffs2 ${fileaddr} bootstrap ${filesize}'
+TUBOOT = 'tftpb ${tftpaddr} ${uboot_file} && run erase_uboot && nand write.jffs2 ${fileaddr} u-boot ${filesize}'
+TUBOOTE1 = 'tftpb ${tftpaddr} ${uboot_env1_file} && run erase_uboot_env1 && nand write.jffs2 ${fileaddr} u-boot-env1 ${filesize}'
+TUBOOTE2 = 'tftpb ${tftpaddr} ${uboot_env2_file} && run erase_uboot_env2 && nand write.jffs2 ${fileaddr} u-boot-env2 ${filesize}'
+TKERN = 'tftpb ${tftpaddr} ${kernel_file} && run erase_kernel && nand write.jffs2 ${fileaddr} kernel ${filesize}'
+TCONF = 'tftpb ${tftpaddr} ${config_file} && run erase_config && nand write.jffs2 ${fileaddr} config ${filesize}'
+TOEM = 'tftpb ${tftpaddr} ${oem_file} && run erase_oem && nand write.jffs2 ${fileaddr} oem ${filesize}'
+TROOT = 'tftpb ${tftpaddr} ${rootfs_file} && run erase_rootfs && run erase_user_data && nand write.jffs2 ${fileaddr} rootfs ${filesize}'
+KRB = 'run tftp_kernel && run tftp_rootfs && boot'
+RB = 'run tftp_rootfs && boot'
+
+sendln 'setenv bootargs '39 K1 39
+wait P
+sendln 'setenv bootcmd '39 K2 39
+wait P
+sendln 'setenv bootdelay 1'
+wait P
+sendln 'setenv serverip 192.168.2.2'
+wait P
+sendln 'setenv ipaddr 192.168.2.1'
+wait P
+sendln 'setenv netmask 255.255.255.0'
+wait P
+sendln 'setenv loadaddr 0x22000000'
+wait P
+sendln 'setenv tftpaddr 0x20000000'
+wait P
+sendln 'setenv stdin serial'
+wait P
+sendln 'setenv stdout serial'
+wait P
+sendln 'setenv stderr serial'
+wait P
+sendln 'setenv ethact macb0'
+wait P
+sendln 'setenv mtdids nand0=nand0'
+wait P
+sendln 'setenv mtdparts mtdparts=nand0:256k(bootstrap),512k(u-boot),640k(u-boot-env1),640k(u-boot-env2),6M(kernel),8M(config),8M(oem),128M(rootfs),-(user)'
+wait P
+sendln 'setenv bootstrap_file oe_bootstrap_pmecc_padded.bin'
+wait P
+sendln 'setenv uboot_file oe_u-boot.bin'
+wait P
+sendln 'setenv uboot_env1_file oe_uboot_env1.bin'
+wait P
+sendln 'setenv uboot_env2_file oe_uboot_env2.bin'
+wait P
+sendln 'setenv kernel_file oe_uImage.bin'
+wait P
+sendln 'setenv config_file oe_config.tar.gz'
+wait P
+sendln 'setenv oem_file oe_oem.tar.gz'
+wait P
+sendln 'setenv rootfs_file oe_rootfs.jffs2'
+wait P
+sendln 'setenv bootstrap_addr 0x00000000'
+wait P
+sendln 'setenv uboot_addr 0x00040000'
+wait P
+sendln 'setenv uboot_env1_addr 0x000C0000'
+wait P
+sendln 'saveenv'
+wait P
+sendln 'setenv uboot_env2_addr 0x00160000'
+wait P
+sendln 'setenv kernel_addr 0x00200000'
+wait P
+sendln 'setenv config_addr 0x00800000'
+wait P
+sendln 'setenv oem_addr 0x01000000'
+wait P
+sendln 'setenv rootfs_addr 0x01800000'
+wait P
+sendln 'setenv bootstrap_size 0x00040000'
+wait P
+sendln 'setenv uboot_size 0x00080000'
+wait P
+sendln 'setenv uboot_env1_size 0x000A0000'
+wait P
+sendln 'setenv uboot_env2_size 0x000A0000'
+wait P
+sendln 'setenv kernel_size 0x00600000'
+wait P
+sendln 'setenv config_size 0x00800000'
+wait P
+sendln 'setenv oem_size 0x00800000'
+wait P
+sendln 'setenv erase_bootstrap ' 39 BOOTSTRAP 39
+wait P
+sendln 'setenv erase_uboot ' 39 UBOOT0 39
+wait P
+sendln 'setenv erase_uboot_env1 ' 39 UBOOT1 39
+wait P
+sendln 'setenv erase_uboot_env2 ' 39 UBOOT2 39
+wait P
+sendln 'setenv erase_kernel ' 39 EKERN 39
+wait P
+sendln 'setenv erase_config ' 39 ECONF 39
+wait P
+sendln 'setenv erase_oem ' 39 EOEM 39
+wait P
+sendln 'setenv erase_rootfs ' 39 EROOT 39
+wait P
+sendln 'setenv erase_user_data ' 39 EUSER 39
+wait P
+sendln 'setenv tftp_bootstrap ' 39 TBOOT 39
+wait P
+sendln 'setenv tftp_uboot ' 39 TUBOOT 39
+wait P
+sendln 'setenv tftp_uboot_env1 ' 39 TUBOOTE1 39
+wait P
+sendln 'setenv tftp_uboot_env2 ' 39 TUBOOTE2 39
+wait P
+sendln 'setenv tftp_kernel ' 39 TKERN 39
+wait P
+sendln 'setenv tftp_config ' 39 TCONF 39
+wait P
+sendln 'setenv tftp_oem ' 39 TOEM 39
+wait P
+sendln 'setenv tftp_rootfs ' 39 TROOT 39
+wait P
+sendln 'setenv krb ' 39 KRB 39
+wait P
+sendln 'setenv rb ' 39 RB 39
+wait P
+;; print saving...
+sendln 'saveenv'
+wait P
+sendln 'saveenv'
+wait P
+sendln 'printenv'
+wait P
diff --git a/contrib/uboot-setenv-mtr.minicom b/contrib/uboot-setenv-mtr.minicom
new file mode 100644
index 0000000..340e4f0
--- /dev/null
+++ b/contrib/uboot-setenv-mtr.minicom
@@ -0,0 +1,61 @@
+print setting U-Boot variables...
+send setenv bootargs \'mem=128M console=ttyS0,115200 root=/dev/mtdblock8 ro rootfstype=jffs2\'
+send setenv bootcmd \'nboot.jffs2 ${loadaddr} 0 ${kernel_addr}; bootm ${loadaddr}\'
+send setenv bootdelay 1
+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 stdin serial
+send setenv stdout serial
+send setenv stderr serial
+send setenv ethact macb0
+send setenv ethaddr 00:08:00:87:00:02
+send setenv mtdids nand0=nand0
+send setenv mtdparts mtdparts=nand0:256k(bootstrap),512k(u-boot),640k(u-boot-env1),640k(u-boot-env2),6M(kernel),8M(config),8M(oem),128M(rootfs),-(user)
+send setenv bootstrap_file oe_bootstrap_pmecc_padded.bin
+send setenv uboot_file oe_u-boot.bin
+send setenv uboot_env1_file oe_uboot_env1.bin
+send setenv uboot_env2_file oe_uboot_env2.bin
+send setenv kernel_file oe_uImage.bin
+send setenv config_file oe_config.tar.gz
+send setenv oem_file oe_oem.tar.gz
+send setenv rootfs_file oe_rootfs.jffs2
+send setenv bootstrap_addr 0x00000000
+send setenv uboot_addr 0x00040000
+send setenv uboot_env1_addr 0x000C0000
+send setenv uboot_env2_addr 0x00160000
+send setenv kernel_addr 0x00200000
+send setenv config_addr 0x00800000
+send setenv oem_addr 0x01000000
+send setenv rootfs_addr 0x01800000
+send setenv bootstrap_size 0x00040000
+send setenv uboot_size 0x00080000
+send setenv uboot_env1_size 0x000A0000
+send setenv uboot_env2_size 0x000A0000
+send setenv kernel_size 0x00600000
+send setenv config_size 0x00800000
+send setenv oem_size 0x00800000
+send setenv erase_bootstrap \'nand erase.part bootstrap\'
+send setenv erase_uboot \'nand erase.part u-boot\'
+send setenv erase_uboot_env1 \'nand erase.part u-boot-env1\'
+send setenv erase_uboot_env2 \'nand erase.part u-boot-env2\'
+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 erase_user_data \'nand erase.part user\'
+send setenv tftp_bootstrap \'tftpboot ${loadaddr} ${bootstrap_file} && run erase_bootstrap && nand write.jffs2 ${fileaddr} bootstrap ${filesize}\'
+send setenv tftp_uboot \'tftpboot ${loadaddr} ${uboot_file} && run erase_uboot && nand write.jffs2 ${fileaddr} u-boot ${filesize}\'
+send setenv tftp_uboot_env1 \'tftpboot ${loadaddr} ${uboot_env1_file} && run erase_uboot_env1 && nand write.jffs2 ${fileaddr} u-boot-env1 ${filesize}\'
+send setenv tftp_uboot_env2 \'tftpboot ${loadaddr} ${uboot_env2_file} && run erase_uboot_env2 && nand write.jffs2 ${fileaddr} u-boot-env2 ${filesize}\'
+send setenv tftp_kernel \'tftpboot ${loadaddr} ${kernel_file} && run erase_kernel && nand write.jffs2 ${fileaddr} kernel ${filesize}\'
+send setenv tftp_config \'tftpboot ${loadaddr} ${config_file} && run erase_config && nand write.jffs2 ${fileaddr} config ${filesize}\'
+send setenv tftp_oem \'tftpboot ${loadaddr} ${oem_file} && run erase_oem && nand write.jffs2 ${fileaddr} oem ${filesize}\'
+send setenv tftp_rootfs \'tftpboot ${loadaddr} ${rootfs_file} && run erase_rootfs && run erase_user_data && 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...
+send saveenv
+send saveenv
+send printenv
diff --git a/contrib/uboot-setenv-mtrv1.minicom b/contrib/uboot-setenv-mtrv1.minicom
new file mode 100644
index 0000000..340e4f0
--- /dev/null
+++ b/contrib/uboot-setenv-mtrv1.minicom
@@ -0,0 +1,61 @@
+print setting U-Boot variables...
+send setenv bootargs \'mem=128M console=ttyS0,115200 root=/dev/mtdblock8 ro rootfstype=jffs2\'
+send setenv bootcmd \'nboot.jffs2 ${loadaddr} 0 ${kernel_addr}; bootm ${loadaddr}\'
+send setenv bootdelay 1
+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 stdin serial
+send setenv stdout serial
+send setenv stderr serial
+send setenv ethact macb0
+send setenv ethaddr 00:08:00:87:00:02
+send setenv mtdids nand0=nand0
+send setenv mtdparts mtdparts=nand0:256k(bootstrap),512k(u-boot),640k(u-boot-env1),640k(u-boot-env2),6M(kernel),8M(config),8M(oem),128M(rootfs),-(user)
+send setenv bootstrap_file oe_bootstrap_pmecc_padded.bin
+send setenv uboot_file oe_u-boot.bin
+send setenv uboot_env1_file oe_uboot_env1.bin
+send setenv uboot_env2_file oe_uboot_env2.bin
+send setenv kernel_file oe_uImage.bin
+send setenv config_file oe_config.tar.gz
+send setenv oem_file oe_oem.tar.gz
+send setenv rootfs_file oe_rootfs.jffs2
+send setenv bootstrap_addr 0x00000000
+send setenv uboot_addr 0x00040000
+send setenv uboot_env1_addr 0x000C0000
+send setenv uboot_env2_addr 0x00160000
+send setenv kernel_addr 0x00200000
+send setenv config_addr 0x00800000
+send setenv oem_addr 0x01000000
+send setenv rootfs_addr 0x01800000
+send setenv bootstrap_size 0x00040000
+send setenv uboot_size 0x00080000
+send setenv uboot_env1_size 0x000A0000
+send setenv uboot_env2_size 0x000A0000
+send setenv kernel_size 0x00600000
+send setenv config_size 0x00800000
+send setenv oem_size 0x00800000
+send setenv erase_bootstrap \'nand erase.part bootstrap\'
+send setenv erase_uboot \'nand erase.part u-boot\'
+send setenv erase_uboot_env1 \'nand erase.part u-boot-env1\'
+send setenv erase_uboot_env2 \'nand erase.part u-boot-env2\'
+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 erase_user_data \'nand erase.part user\'
+send setenv tftp_bootstrap \'tftpboot ${loadaddr} ${bootstrap_file} && run erase_bootstrap && nand write.jffs2 ${fileaddr} bootstrap ${filesize}\'
+send setenv tftp_uboot \'tftpboot ${loadaddr} ${uboot_file} && run erase_uboot && nand write.jffs2 ${fileaddr} u-boot ${filesize}\'
+send setenv tftp_uboot_env1 \'tftpboot ${loadaddr} ${uboot_env1_file} && run erase_uboot_env1 && nand write.jffs2 ${fileaddr} u-boot-env1 ${filesize}\'
+send setenv tftp_uboot_env2 \'tftpboot ${loadaddr} ${uboot_env2_file} && run erase_uboot_env2 && nand write.jffs2 ${fileaddr} u-boot-env2 ${filesize}\'
+send setenv tftp_kernel \'tftpboot ${loadaddr} ${kernel_file} && run erase_kernel && nand write.jffs2 ${fileaddr} kernel ${filesize}\'
+send setenv tftp_config \'tftpboot ${loadaddr} ${config_file} && run erase_config && nand write.jffs2 ${fileaddr} config ${filesize}\'
+send setenv tftp_oem \'tftpboot ${loadaddr} ${oem_file} && run erase_oem && nand write.jffs2 ${fileaddr} oem ${filesize}\'
+send setenv tftp_rootfs \'tftpboot ${loadaddr} ${rootfs_file} && run erase_rootfs && run erase_user_data && 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...
+send saveenv
+send saveenv
+send printenv