global_env 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  1. # DONT FORGET TO CHANGE THE "version" VAR BELOW IF YOU MAKE CHANGES TO THIS FILE
  2. # (C) Copyright 2001
  3. # Murray Jensen, CSIRO-MIT, <Murray.Jensen@csiro.au>
  4. #
  5. # See file CREDITS for list of people who contributed to this
  6. # project.
  7. #
  8. # This program is free software; you can redistribute it and/or
  9. # modify it under the terms of the GNU General Public License as
  10. # published by the Free Software Foundation; either version 2 of
  11. # the License, or (at your option) any later version.
  12. #
  13. # This program is distributed in the hope that it will be useful,
  14. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. # GNU General Public License for more details.
  17. #
  18. # You should have received a copy of the GNU General Public License
  19. # along with this program; if not, write to the Free Software
  20. # Foundation, Inc., 59 Temple Place, Suite 330, Boston,
  21. # MA 02111-1307 USA
  22. #
  23. # global_env
  24. #
  25. # file used by Hymod boards to initialise the u-boot non-volatile
  26. # environment when u-boot is first run (it determines this by the
  27. # absence of the environment variable "global_env_loaded")
  28. #
  29. # format of this file is:
  30. #
  31. # 1. blank lines and lines beginning with '#' are ignored
  32. # 2. all other lines must have the form <name>=<value>
  33. # 3. if a percent appears anywhere, it is replaced like so:
  34. #
  35. # %s serial number of the main board (10 digit zero filled)
  36. # %S serial number of the main board (plain number)
  37. # %% a percentage character
  38. # ... otherwise the %x is discarded
  39. #
  40. # if first character in <name> is a dash ('-'), then an existing env var
  41. # will not be overwritten (the dash is removed). i.e. it is only set if
  42. # it does not exist
  43. #
  44. # if last character in <name> is a plus ('+'), then <value> will be appended
  45. # to any existing env var (the plus is ignored). Duplicates of <value> are
  46. # removed.
  47. #
  48. # similarly, if the last character in <name> is a minus ('-'), then any
  49. # occurences of <value> in the current value of <name> will removed (the
  50. # minus is ignored).
  51. #
  52. # leading and trailing whitespace is removed in both <name> and <value>
  53. # (after processing any initial or final plus/minus in <name>).
  54. #
  55. # MISCELLANEOUS PARAMETERS
  56. # version must always come first
  57. version=3
  58. # set the ip address based on the main board serial number
  59. ipaddr=192.168.1.%S
  60. serverip=192.168.1.254
  61. # stop auto execute after tftp (not a very good name really)
  62. autostart=no
  63. # setting this to "yes" forces the global_env file to be loaded and processed
  64. # if the current version is different to the version in the file
  65. always_check_env=no
  66. # BOOTING COMMANDS AND PARAMETERS
  67. # command to run when "auto-booting"
  68. bootcmd=bootm 40080000 40200000
  69. # how long the "countdown" to automatically running "bootcmd" is
  70. bootdelay=2
  71. # how long before it "times out" console input and attempts to run "bootcmd"
  72. bootretry=5
  73. # arguments passed to the boot program (i.e. linux kernel) via register 6
  74. # the linux kernel (v2.4) uses the following registers:
  75. # r3 - address of board information structure
  76. # r4 - address of initial ramdisk image (0 means no initrd)
  77. # r5 - size of initial ramdisk image
  78. # r6 - address of command line string
  79. -bootargs=root=/dev/ram rw
  80. # these four are for hymod linux intergrated into our Sun network
  81. bootargs+=serialno=%S
  82. bootargs+=nisclient nisdomain=mlb.dmt.csiro.au nissrvadr=138.194.112.4
  83. bootargs+=nfsclient
  84. bootargs+=automount
  85. # start a web server by default
  86. bootargs+=webserver
  87. # give negotiation time to finish
  88. bootargs+=netsleep=5
  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. # these are old bootargs - we don't need them anymore
  94. bootargs-=preload=unix,i2c-cpm,i2c-dev
  95. bootargs-=ramdisk_size=32768
  96. bootargs-=ramdisk_size=24576
  97. # FLASH MANIPULATION COMMANDS
  98. #
  99. # 16M flash, 64 x 256K sectors, mapped at address 0x40000000
  100. #
  101. # Sector(s) Address Size Description
  102. #
  103. # 0 - 0 0x40000000 256K boot code
  104. # 1 - 1 0x40040000 256K non volatile environment
  105. # 2 - 4 0x40080000 768K linux kernel image
  106. # 5 - 7 0x40140000 768K alternate linux kernel image
  107. # 8 - 47 0x40200000 10M linux initial ramdisk image
  108. # 48 - 63 0x40c00000 4M ramdisk image for applications
  109. #
  110. fetchboot=tftp 100000 /hymod/u-boot.bin
  111. eraseboot=protect off 1:0 ; erase 1:0 ; protect on 1:0
  112. copyboot=protect off 1:0 ; cp.b 100000 40000000 40000 ; protect on 1:0
  113. cmpboot=cmp.b 100000 40000000 40000
  114. newboot=run fetchboot eraseboot copyboot cmpboot
  115. fetchlinux=tftp 100000 /hymod/linux.bin
  116. eraselinux=erase 1:2-4
  117. copylinux=cp.b 100000 40080000 $(filesize)
  118. cmplinux=cmp.b 100000 40080000 $(filesize)
  119. newlinux=run fetchlinux eraselinux copylinux cmplinux
  120. fetchaltlinux=tftp 100000 /hymod/altlinux.bin
  121. erasealtlinux=erase 1:5-7
  122. copyaltlinux=cp.b 100000 40140000 $(filesize)
  123. cmpaltlinux=cmp.b 100000 40140000 $(filesize)
  124. newaltlinux=run fetchaltlinux erasealtlinux copyaltlinux cmpaltlinux
  125. fetchird=tftp 100000 /hymod/initrd.bin
  126. eraseird=erase 1:8-47
  127. copyird=cp.b 100000 40200000 $(filesize)
  128. cmpird=cmp.b 100000 40200000 $(filesize)
  129. newinitrd=run fetchird eraseird copyird cmpird
  130. fetchard=tftp 100000 /hymod/apprd.bin
  131. eraseard=erase 1:48-63
  132. copyard=cp.b 100000 40c00000 $(filesize)
  133. cmpard=cmp.b 100000 40c00000 $(filesize)
  134. newapprd=run fetchard eraseard copyard cmpard