global_env 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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. # set the ip address based on the main board serial number
  21. ipaddr=192.168.1.%S
  22. serverip=192.168.1.254
  23. # stop auto execute after tftp
  24. autostart=no
  25. #
  26. # 16M flash map, 64 x 256K sectors, mapped at address 0x40000000
  27. #
  28. # sector 0: boot
  29. # sector 1: non volatile environment
  30. # sectors 2-4: linux kernel image
  31. # sectors 5-7: alternate linux kernel image
  32. # sectors 8-63: linux initial ramdisk image
  33. #
  34. fetchboot=tftp 100000 /hymod/u-boot.bin
  35. eraseboot=protect off 1:0 ; erase 1:0 ; protect on 1:0
  36. copyboot=protect off 1:0 ; cp.b 100000 40000000 40000 ; protect on 1:0
  37. cmpboot=cmp.b 100000 40000000 40000
  38. newboot=run fetchboot eraseboot copyboot cmpboot
  39. fetchlinux=tftp 100000 /hymod/linux.bin
  40. eraselinux=erase 1:2-4
  41. copylinux=cp.b 100000 40080000 $(filesize)
  42. cmplinux=cmp.b 100000 40080000 $(filesize)
  43. newlinux=run fetchlinux eraselinux copylinux cmplinux
  44. fetchaltlinux=tftp 100000 /hymod/altlinux.bin
  45. erasealtlinux=erase 1:5-7
  46. copyaltlinux=cp.b 100000 40080000 $(filesize)
  47. cmpaltlinux=cmp.b 100000 40080000 $(filesize)
  48. newaltlinux=run fetchaltlinux erasealtlinux copyaltlinux cmpaltlinux
  49. fetchird=tftp 100000 /hymod/initrd.bin
  50. eraseird=erase 1:8-63
  51. copyird=cp.b 100000 40200000 $(filesize)
  52. cmpird=cmp.b 100000 40200000 $(filesize)
  53. newinitrd=run fetchird eraseird copyird cmpird
  54. bootcmd=bootm 40080000 40200000
  55. -bootargs=root=/dev/ram rw
  56. # these are for hymod linux
  57. bootargs+=preload=unix,i2c-cpm,i2c-dev
  58. bootargs+=serialno=%S
  59. bootargs+=ramdisk_size=32768
  60. bootargs+=automount nisclient nisdomain=mlb.dmt.csiro.au nissrvadr=138.194.112.4
  61. bootdelay=2