summaryrefslogtreecommitdiff
path: root/contrib/multitech/uboot-setenv
blob: 9c7ee57e009a1763d802f6188ada75cf27d5ae4e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
print setting U-Boot variables...
send setenv bootargs              \'mem=64M console=ttyS0,115200 root=/dev/mtdblock8 ro rootfstype=jffs2\'
send setenv bootcmd               \'nboot.jffs2 ${loadaddr} 0 ${kernel_addr}; bootm ${loadaddr}\'
send setenv bootdelay             3
send setenv baudrate              115200
send setenv ethaddr               00:D0:A0:02:0D:E1
send setenv serverip              192.168.2.2
send setenv ipaddr                192.168.2.1
send setenv netmask               255.255.255.0
send setenv loadaddr              0x21400000
send setenv hostname              AT91SAM9G20
send setenv dnsip                 192.168.2.3
send setenv stdin                 serial
send setenv stdout                serial
send setenv stderr                serial
send setenv ethact                macb0
send setenv bootstrap_file        oe_bootstrap.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            0x00020000
send setenv uboot_env1_addr       0x00060000
send setenv uboot_env2_addr       0x00080000
send setenv kernel_addr           0x000A0000
send setenv config_addr           0x00800000
send setenv oem_addr              0x01000000
send setenv rootfs_addr           0x01800000
send setenv bootstrap_size        0x00020000
send setenv uboot_size            0x00040000
send setenv uboot_env1_size       0x00020000
send setenv uboot_env2_size       0x00020000
send setenv kernel_size           0x00760000
send setenv config_size           0x00800000
send setenv oem_size              0x00800000
send setenv erase_bootstrap       \'nand erase ${bootstrap_addr} ${bootstrap_size}\'
send setenv erase_uboot           \'nand erase ${uboot_addr} ${uboot_size}\'
send setenv erase_uboot_env1      \'nand erase ${uboot_env1_addr} ${uboot_env1_size}\'
send setenv erase_uboot_env2      \'nand erase ${uboot_env2_addr} ${uboot_env2_size}\'
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 krb                   \'run tftp_kernel; run tftp_rootfs; boot\'
send setenv rb                    \'run tftp_rootfs; boot\'
print saving...
send saveenv
send saveenv
send printenv