blob: ac12fd7f18fe3048f06e685a94ae4b8d0794cccf [file] [log] [blame]
wdenkb00ec162003-06-19 23:40:20 +00001# 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 Denkd79de1d2013-07-08 09:37:19 +02006# SPDX-License-Identifier: GPL-2.0+
wdenkb00ec162003-06-19 23:40:20 +00007
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#
wdenke2211742002-11-02 23:30:20 +000015# 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
wdenkb00ec162003-06-19 23:40:20 +000024# ... otherwise the %x is discarded
wdenke2211742002-11-02 23:30:20 +000025#
26# if first character in <name> is a dash ('-'), then an existing env var
wdenkb00ec162003-06-19 23:40:20 +000027# will not be overwritten (the dash is removed). i.e. it is only set if
28# it does not exist
wdenke2211742002-11-02 23:30:20 +000029#
30# if last character in <name> is a plus ('+'), then <value> will be appended
wdenkb00ec162003-06-19 23:40:20 +000031# to any existing env var (the plus is ignored). Duplicates of <value> are
wdenke2211742002-11-02 23:30:20 +000032# removed.
33#
wdenkb00ec162003-06-19 23:40:20 +000034# 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#
wdenke2211742002-11-02 23:30:20 +000041
wdenkb00ec162003-06-19 23:40:20 +000042# MISCELLANEOUS PARAMETERS
43
44# version must always come first
wdenkdbae5042003-06-21 00:17:24 +000045version=4
wdenkb00ec162003-06-19 23:40:20 +000046
wdenke2211742002-11-02 23:30:20 +000047# set the ip address based on the main board serial number
48ipaddr=192.168.1.%S
49serverip=192.168.1.254
50
wdenkb00ec162003-06-19 23:40:20 +000051# stop auto execute after tftp (not a very good name really)
wdenke2211742002-11-02 23:30:20 +000052autostart=no
53
wdenkb00ec162003-06-19 23:40:20 +000054# 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
56always_check_env=no
57
58# BOOTING COMMANDS AND PARAMETERS
59
60# command to run when "auto-booting"
wdenkdbae5042003-06-21 00:17:24 +000061bootcmd=bootm 40080000
wdenkb00ec162003-06-19 23:40:20 +000062
63# how long the "countdown" to automatically running "bootcmd" is
64bootdelay=2
65
66# how long before it "times out" console input and attempts to run "bootcmd"
67bootretry=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
wdenkdbae5042003-06-21 00:17:24 +000075-bootargs=root=/dev/mtdblock5 rootfstype=squashfs ro
wdenkb00ec162003-06-19 23:40:20 +000076
wdenkdbae5042003-06-21 00:17:24 +000077# these four are for hymod linux integrated into our Sun network
wdenkb00ec162003-06-19 23:40:20 +000078bootargs+=serialno=%S
79bootargs+=nisclient nisdomain=mlb.dmt.csiro.au nissrvadr=138.194.112.4
80bootargs+=nfsclient
81bootargs+=automount
82
83# start a web server by default
84bootargs+=webserver
85
86# give negotiation time to finish
87bootargs+=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...
92bootargs+=netping
93
94# these are old bootargs - we don't need them anymore
95bootargs-=preload=unix,i2c-cpm,i2c-dev
96bootargs-=ramdisk_size=32768
97bootargs-=ramdisk_size=24576
98
99# FLASH MANIPULATION COMMANDS
100
101#
102# 16M flash, 64 x 256K sectors, mapped at address 0x40000000
wdenke2211742002-11-02 23:30:20 +0000103#
wdenkb00ec162003-06-19 23:40:20 +0000104# Sector(s) Address Size Description
wdenke2211742002-11-02 23:30:20 +0000105#
wdenkb00ec162003-06-19 23:40:20 +0000106# 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
wdenke2211742002-11-02 23:30:20 +0000112#
113
114fetchboot=tftp 100000 /hymod/u-boot.bin
115eraseboot=protect off 1:0 ; erase 1:0 ; protect on 1:0
116copyboot=protect off 1:0 ; cp.b 100000 40000000 40000 ; protect on 1:0
117cmpboot=cmp.b 100000 40000000 40000
118newboot=run fetchboot eraseboot copyboot cmpboot
119
120fetchlinux=tftp 100000 /hymod/linux.bin
121eraselinux=erase 1:2-4
Wolfgang Denk86eb3b72005-11-20 21:40:11 +0100122copylinux=cp.b 100000 40080000 ${filesize}
123cmplinux=cmp.b 100000 40080000 ${filesize}
wdenke2211742002-11-02 23:30:20 +0000124newlinux=run fetchlinux eraselinux copylinux cmplinux
125
126fetchaltlinux=tftp 100000 /hymod/altlinux.bin
127erasealtlinux=erase 1:5-7
Wolfgang Denk86eb3b72005-11-20 21:40:11 +0100128copyaltlinux=cp.b 100000 40140000 ${filesize}
129cmpaltlinux=cmp.b 100000 40140000 ${filesize}
wdenke2211742002-11-02 23:30:20 +0000130newaltlinux=run fetchaltlinux erasealtlinux copyaltlinux cmpaltlinux
131
wdenkdbae5042003-06-21 00:17:24 +0000132fetchroot=tftp 100000 /hymod/root.bin
133eraseroot=erase 1:8-47
Wolfgang Denk86eb3b72005-11-20 21:40:11 +0100134copyroot=cp.b 100000 40200000 ${filesize}
135cmproot=cmp.b 100000 40200000 ${filesize}
wdenkdbae5042003-06-21 00:17:24 +0000136newroot=run fetchroot eraseroot copyroot cmproot
wdenke2211742002-11-02 23:30:20 +0000137
wdenkb00ec162003-06-19 23:40:20 +0000138fetchard=tftp 100000 /hymod/apprd.bin
139eraseard=erase 1:48-63
Wolfgang Denk86eb3b72005-11-20 21:40:11 +0100140copyard=cp.b 100000 40c00000 ${filesize}
141cmpard=cmp.b 100000 40c00000 ${filesize}
wdenkb00ec162003-06-19 23:40:20 +0000142newapprd=run fetchard eraseard copyard cmpard
wdenkdbae5042003-06-21 00:17:24 +0000143
144# pass above map to linux mtd driver
145bootargs+=mtdparts=phys:256k(u-boot),256k(u-boot-env),768k(linux),768k(altlinux),10m(root),4m(hymod)