wdenk | 6dd652f | 2003-06-19 23:40:20 +0000 | [diff] [blame] | 1 | # DONT FORGET TO CHANGE THE "version" VAR BELOW IF YOU MAKE CHANGES TO THIS FILE |
| 2 | |
| 3 | # (C) Copyright 2001 |
| 4 | # Murray Jensen, CSIRO-MIT, <Murray.Jensen@csiro.au> |
| 5 | # |
Wolfgang Denk | 1a45966 | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 6 | # SPDX-License-Identifier: GPL-2.0+ |
wdenk | 6dd652f | 2003-06-19 23:40:20 +0000 | [diff] [blame] | 7 | |
| 8 | # |
| 9 | # global_env |
| 10 | # |
| 11 | # file used by Hymod boards to initialise the u-boot non-volatile |
| 12 | # environment when u-boot is first run (it determines this by the |
| 13 | # absence of the environment variable "global_env_loaded") |
| 14 | # |
wdenk | e221174 | 2002-11-02 23:30:20 +0000 | [diff] [blame] | 15 | # format of this file is: |
| 16 | # |
| 17 | # 1. blank lines and lines beginning with '#' are ignored |
| 18 | # 2. all other lines must have the form <name>=<value> |
| 19 | # 3. if a percent appears anywhere, it is replaced like so: |
| 20 | # |
| 21 | # %s serial number of the main board (10 digit zero filled) |
| 22 | # %S serial number of the main board (plain number) |
| 23 | # %% a percentage character |
wdenk | 6dd652f | 2003-06-19 23:40:20 +0000 | [diff] [blame] | 24 | # ... otherwise the %x is discarded |
wdenk | e221174 | 2002-11-02 23:30:20 +0000 | [diff] [blame] | 25 | # |
| 26 | # if first character in <name> is a dash ('-'), then an existing env var |
wdenk | 6dd652f | 2003-06-19 23:40:20 +0000 | [diff] [blame] | 27 | # will not be overwritten (the dash is removed). i.e. it is only set if |
| 28 | # it does not exist |
wdenk | e221174 | 2002-11-02 23:30:20 +0000 | [diff] [blame] | 29 | # |
| 30 | # if last character in <name> is a plus ('+'), then <value> will be appended |
wdenk | 6dd652f | 2003-06-19 23:40:20 +0000 | [diff] [blame] | 31 | # to any existing env var (the plus is ignored). Duplicates of <value> are |
wdenk | e221174 | 2002-11-02 23:30:20 +0000 | [diff] [blame] | 32 | # removed. |
| 33 | # |
wdenk | 6dd652f | 2003-06-19 23:40:20 +0000 | [diff] [blame] | 34 | # similarly, if the last character in <name> is a minus ('-'), then any |
| 35 | # occurences of <value> in the current value of <name> will removed (the |
| 36 | # minus is ignored). |
| 37 | # |
| 38 | # leading and trailing whitespace is removed in both <name> and <value> |
| 39 | # (after processing any initial or final plus/minus in <name>). |
| 40 | # |
| 41 | |
| 42 | # MISCELLANEOUS PARAMETERS |
| 43 | |
| 44 | # version must always come first |
wdenk | 592c5ca | 2003-06-21 00:17:24 +0000 | [diff] [blame] | 45 | version=4 |
wdenk | e221174 | 2002-11-02 23:30:20 +0000 | [diff] [blame] | 46 | |
| 47 | # set the ip address based on the main board serial number |
| 48 | ipaddr=192.168.1.%S |
| 49 | serverip=192.168.1.254 |
| 50 | |
wdenk | 6dd652f | 2003-06-19 23:40:20 +0000 | [diff] [blame] | 51 | # stop auto execute after tftp (not a very good name really) |
wdenk | e221174 | 2002-11-02 23:30:20 +0000 | [diff] [blame] | 52 | autostart=no |
| 53 | |
wdenk | 6dd652f | 2003-06-19 23:40:20 +0000 | [diff] [blame] | 54 | # setting this to "yes" forces the global_env file to be loaded and processed |
| 55 | # if the current version is different to the version in the file |
| 56 | always_check_env=no |
| 57 | |
| 58 | # BOOTING COMMANDS AND PARAMETERS |
| 59 | |
| 60 | # command to run when "auto-booting" |
wdenk | 592c5ca | 2003-06-21 00:17:24 +0000 | [diff] [blame] | 61 | bootcmd=bootm 40080000 |
wdenk | 6dd652f | 2003-06-19 23:40:20 +0000 | [diff] [blame] | 62 | |
| 63 | # how long the "countdown" to automatically running "bootcmd" is |
| 64 | bootdelay=2 |
| 65 | |
| 66 | # how long before it "times out" console input and attempts to run "bootcmd" |
| 67 | bootretry=5 |
| 68 | |
| 69 | # arguments passed to the boot program (i.e. linux kernel) via register 6 |
| 70 | # the linux kernel (v2.4) uses the following registers: |
| 71 | # r3 - address of board information structure |
| 72 | # r4 - address of initial ramdisk image (0 means no initrd) |
| 73 | # r5 - size of initial ramdisk image |
| 74 | # r6 - address of command line string |
wdenk | 592c5ca | 2003-06-21 00:17:24 +0000 | [diff] [blame] | 75 | -bootargs=root=/dev/mtdblock5 rootfstype=squashfs ro |
wdenk | 6dd652f | 2003-06-19 23:40:20 +0000 | [diff] [blame] | 76 | |
wdenk | 592c5ca | 2003-06-21 00:17:24 +0000 | [diff] [blame] | 77 | # these four are for hymod linux integrated into our Sun network |
wdenk | 6dd652f | 2003-06-19 23:40:20 +0000 | [diff] [blame] | 78 | bootargs+=serialno=%S |
| 79 | bootargs+=nisclient nisdomain=mlb.dmt.csiro.au nissrvadr=138.194.112.4 |
| 80 | bootargs+=nfsclient |
| 81 | bootargs+=automount |
| 82 | |
| 83 | # start a web server by default |
| 84 | bootargs+=webserver |
| 85 | |
| 86 | # give negotiation time to finish |
| 87 | bootargs+=netsleep=5 |
| 88 | |
| 89 | # then our ciscos don't pass packets for 25-30 secs after that, so |
| 90 | # pinging the server until it responds prevents network connections |
| 91 | # from failing... |
| 92 | bootargs+=netping |
| 93 | |
| 94 | # these are old bootargs - we don't need them anymore |
| 95 | bootargs-=preload=unix,i2c-cpm,i2c-dev |
| 96 | bootargs-=ramdisk_size=32768 |
| 97 | bootargs-=ramdisk_size=24576 |
| 98 | |
| 99 | # FLASH MANIPULATION COMMANDS |
| 100 | |
wdenk | e221174 | 2002-11-02 23:30:20 +0000 | [diff] [blame] | 101 | # |
wdenk | 6dd652f | 2003-06-19 23:40:20 +0000 | [diff] [blame] | 102 | # 16M flash, 64 x 256K sectors, mapped at address 0x40000000 |
wdenk | e221174 | 2002-11-02 23:30:20 +0000 | [diff] [blame] | 103 | # |
wdenk | 6dd652f | 2003-06-19 23:40:20 +0000 | [diff] [blame] | 104 | # Sector(s) Address Size Description |
| 105 | # |
| 106 | # 0 - 0 0x40000000 256K boot code |
| 107 | # 1 - 1 0x40040000 256K non volatile environment |
| 108 | # 2 - 4 0x40080000 768K linux kernel image |
| 109 | # 5 - 7 0x40140000 768K alternate linux kernel image |
| 110 | # 8 - 47 0x40200000 10M linux initial ramdisk image |
| 111 | # 48 - 63 0x40c00000 4M ramdisk image for applications |
wdenk | e221174 | 2002-11-02 23:30:20 +0000 | [diff] [blame] | 112 | # |
| 113 | |
| 114 | fetchboot=tftp 100000 /hymod/u-boot.bin |
| 115 | eraseboot=protect off 1:0 ; erase 1:0 ; protect on 1:0 |
| 116 | copyboot=protect off 1:0 ; cp.b 100000 40000000 40000 ; protect on 1:0 |
| 117 | cmpboot=cmp.b 100000 40000000 40000 |
| 118 | newboot=run fetchboot eraseboot copyboot cmpboot |
| 119 | |
| 120 | fetchlinux=tftp 100000 /hymod/linux.bin |
| 121 | eraselinux=erase 1:2-4 |
Wolfgang Denk | fe126d8 | 2005-11-20 21:40:11 +0100 | [diff] [blame] | 122 | copylinux=cp.b 100000 40080000 ${filesize} |
| 123 | cmplinux=cmp.b 100000 40080000 ${filesize} |
wdenk | e221174 | 2002-11-02 23:30:20 +0000 | [diff] [blame] | 124 | newlinux=run fetchlinux eraselinux copylinux cmplinux |
| 125 | |
| 126 | fetchaltlinux=tftp 100000 /hymod/altlinux.bin |
| 127 | erasealtlinux=erase 1:5-7 |
Wolfgang Denk | fe126d8 | 2005-11-20 21:40:11 +0100 | [diff] [blame] | 128 | copyaltlinux=cp.b 100000 40140000 ${filesize} |
| 129 | cmpaltlinux=cmp.b 100000 40140000 ${filesize} |
wdenk | e221174 | 2002-11-02 23:30:20 +0000 | [diff] [blame] | 130 | newaltlinux=run fetchaltlinux erasealtlinux copyaltlinux cmpaltlinux |
| 131 | |
wdenk | 592c5ca | 2003-06-21 00:17:24 +0000 | [diff] [blame] | 132 | fetchroot=tftp 100000 /hymod/root.bin |
| 133 | eraseroot=erase 1:8-47 |
Wolfgang Denk | fe126d8 | 2005-11-20 21:40:11 +0100 | [diff] [blame] | 134 | copyroot=cp.b 100000 40200000 ${filesize} |
| 135 | cmproot=cmp.b 100000 40200000 ${filesize} |
wdenk | 592c5ca | 2003-06-21 00:17:24 +0000 | [diff] [blame] | 136 | newroot=run fetchroot eraseroot copyroot cmproot |
wdenk | e221174 | 2002-11-02 23:30:20 +0000 | [diff] [blame] | 137 | |
wdenk | 6dd652f | 2003-06-19 23:40:20 +0000 | [diff] [blame] | 138 | fetchard=tftp 100000 /hymod/apprd.bin |
| 139 | eraseard=erase 1:48-63 |
Wolfgang Denk | fe126d8 | 2005-11-20 21:40:11 +0100 | [diff] [blame] | 140 | copyard=cp.b 100000 40c00000 ${filesize} |
| 141 | cmpard=cmp.b 100000 40c00000 ${filesize} |
wdenk | 6dd652f | 2003-06-19 23:40:20 +0000 | [diff] [blame] | 142 | newapprd=run fetchard eraseard copyard cmpard |
wdenk | 592c5ca | 2003-06-21 00:17:24 +0000 | [diff] [blame] | 143 | |
| 144 | # pass above map to linux mtd driver |
| 145 | bootargs+=mtdparts=phys:256k(u-boot),256k(u-boot-env),768k(linux),768k(altlinux),10m(root),4m(hymod) |