1 # DONT FORGET TO CHANGE THE "version" VAR BELOW IF YOU MAKE CHANGES TO THIS FILE
4 # Murray Jensen, CSIRO-MIT, <Murray.Jensen@csiro.au>
6 # SPDX-License-Identifier: GPL-2.0+
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")
15 # format of this file is:
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:
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
24 # ... otherwise the %x is discarded
26 # if first character in <name> is a dash ('-'), then an existing env var
27 # will not be overwritten (the dash is removed). i.e. it is only set if
30 # if last character in <name> is a plus ('+'), then <value> will be appended
31 # to any existing env var (the plus is ignored). Duplicates of <value> are
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
38 # leading and trailing whitespace is removed in both <name> and <value>
39 # (after processing any initial or final plus/minus in <name>).
42 # MISCELLANEOUS PARAMETERS
44 # version must always come first
47 # set the ip address based on the main board serial number
49 serverip=192.168.1.254
51 # stop auto execute after tftp (not a very good name really)
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
58 # BOOTING COMMANDS AND PARAMETERS
60 # command to run when "auto-booting"
61 bootcmd=bootm 40080000
63 # how long the "countdown" to automatically running "bootcmd" is
66 # how long before it "times out" console input and attempts to run "bootcmd"
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
75 -bootargs=root=/dev/mtdblock5 rootfstype=squashfs ro
77 # these four are for hymod linux integrated into our Sun network
79 bootargs+=nisclient nisdomain=mlb.dmt.csiro.au nissrvadr=138.194.112.4
83 # start a web server by default
86 # give negotiation time to finish
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
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
99 # FLASH MANIPULATION COMMANDS
102 # 16M flash, 64 x 256K sectors, mapped at address 0x40000000
104 # Sector(s) Address Size Description
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
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
120 fetchlinux=tftp 100000 /hymod/linux.bin
121 eraselinux=erase 1:2-4
122 copylinux=cp.b 100000 40080000 ${filesize}
123 cmplinux=cmp.b 100000 40080000 ${filesize}
124 newlinux=run fetchlinux eraselinux copylinux cmplinux
126 fetchaltlinux=tftp 100000 /hymod/altlinux.bin
127 erasealtlinux=erase 1:5-7
128 copyaltlinux=cp.b 100000 40140000 ${filesize}
129 cmpaltlinux=cmp.b 100000 40140000 ${filesize}
130 newaltlinux=run fetchaltlinux erasealtlinux copyaltlinux cmpaltlinux
132 fetchroot=tftp 100000 /hymod/root.bin
133 eraseroot=erase 1:8-47
134 copyroot=cp.b 100000 40200000 ${filesize}
135 cmproot=cmp.b 100000 40200000 ${filesize}
136 newroot=run fetchroot eraseroot copyroot cmproot
138 fetchard=tftp 100000 /hymod/apprd.bin
139 eraseard=erase 1:48-63
140 copyard=cp.b 100000 40c00000 ${filesize}
141 cmpard=cmp.b 100000 40c00000 ${filesize}
142 newapprd=run fetchard eraseard copyard cmpard
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)