wdenk | e221174 | 2002-11-02 23:30:20 +0000 | [diff] [blame^] | 1 | # format of this file is: |
| 2 | # |
| 3 | # 1. blank lines and lines beginning with '#' are ignored |
| 4 | # 2. all other lines must have the form <name>=<value> |
| 5 | # 3. if a percent appears anywhere, it is replaced like so: |
| 6 | # |
| 7 | # %s serial number of the main board (10 digit zero filled) |
| 8 | # %S serial number of the main board (plain number) |
| 9 | # %% a percentage character |
| 10 | # |
| 11 | # no whitespace is removed in either <name> or <value> |
| 12 | # |
| 13 | # if first character in <name> is a dash ('-'), then an existing env var |
| 14 | # will not be overwritten (the dash is removed). |
| 15 | # |
| 16 | # if last character in <name> is a plus ('+'), then <value> will be appended |
| 17 | # to any existing env var (the plus is removed). Duplicates of <value> are |
| 18 | # removed. |
| 19 | # |
| 20 | |
| 21 | # set the ip address based on the main board serial number |
| 22 | ipaddr=192.168.1.%S |
| 23 | serverip=192.168.1.254 |
| 24 | |
| 25 | # stop auto execute after tftp |
| 26 | autostart=no |
| 27 | |
| 28 | # |
| 29 | # 16M flash map, 64 x 256K sectors, mapped at address 0x40000000 |
| 30 | # |
| 31 | # sector 0: boot |
| 32 | # sector 1: non volatile environment |
| 33 | # sectors 2-4: linux kernel image |
| 34 | # sectors 5-7: alternate linux kernel image |
| 35 | # sectors 8-63: linux initial ramdisk image |
| 36 | # |
| 37 | |
| 38 | fetchboot=tftp 100000 /hymod/u-boot.bin |
| 39 | eraseboot=protect off 1:0 ; erase 1:0 ; protect on 1:0 |
| 40 | copyboot=protect off 1:0 ; cp.b 100000 40000000 40000 ; protect on 1:0 |
| 41 | cmpboot=cmp.b 100000 40000000 40000 |
| 42 | newboot=run fetchboot eraseboot copyboot cmpboot |
| 43 | |
| 44 | fetchlinux=tftp 100000 /hymod/linux.bin |
| 45 | eraselinux=erase 1:2-4 |
| 46 | copylinux=cp.b 100000 40080000 $(filesize) |
| 47 | cmplinux=cmp.b 100000 40080000 $(filesize) |
| 48 | newlinux=run fetchlinux eraselinux copylinux cmplinux |
| 49 | |
| 50 | fetchaltlinux=tftp 100000 /hymod/altlinux.bin |
| 51 | erasealtlinux=erase 1:5-7 |
| 52 | copyaltlinux=cp.b 100000 40080000 $(filesize) |
| 53 | cmpaltlinux=cmp.b 100000 40080000 $(filesize) |
| 54 | newaltlinux=run fetchaltlinux erasealtlinux copyaltlinux cmpaltlinux |
| 55 | |
| 56 | fetchird=tftp 100000 /hymod/initrd.bin |
| 57 | eraseird=erase 1:8-63 |
| 58 | copyird=cp.b 100000 40200000 $(filesize) |
| 59 | cmpird=cmp.b 100000 40200000 $(filesize) |
| 60 | newinitrd=run fetchird eraseird copyird cmpird |
| 61 | |
| 62 | bootcmd=bootm 40080000 40200000 |
| 63 | -bootargs=root=/dev/ram rw |
| 64 | # these are for hymod linux |
| 65 | bootargs+=preload=unix,i2c-cpm,i2c-dev |
| 66 | bootargs+=serialno=%S |
| 67 | bootargs+=ramdisk_size=32768 |
| 68 | bootargs+=automount nisclient nisdomain=mlb.dmt.csiro.au nissrvadr=138.194.112.4 |
| 69 | bootdelay=2 |