]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - board/hymod/global_env
Merge git://git.denx.de/u-boot-arm
[karo-tx-uboot.git] / board / hymod / global_env
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 #
6 # SPDX-License-Identifier:      GPL-2.0+
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 #
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
24 #               ... otherwise the %x is discarded
25 #
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
28 # it does not exist
29 #
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
32 # removed.
33 #
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
45 version=4
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
51 # stop auto execute after tftp (not a very good name really)
52 autostart=no
53
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"
61 bootcmd=bootm 40080000
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
75 -bootargs=root=/dev/mtdblock5 rootfstype=squashfs ro
76
77 # these four are for hymod linux integrated into our Sun network
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
101 #
102 # 16M flash, 64 x 256K sectors, mapped at address 0x40000000
103 #
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
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
122 copylinux=cp.b 100000 40080000 ${filesize}
123 cmplinux=cmp.b 100000 40080000 ${filesize}
124 newlinux=run fetchlinux eraselinux copylinux cmplinux
125
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
131
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
137
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
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)