host64.sh.html 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. <?xml version='1.0' encoding='iso-8859-1'?>
  2. <!doctype html public '-//W3C//DTD XHTML 1.0 Strict//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'>
  3. <html xmlns='http://www.w3c.org/1999/xhtml' lang='en-us'>
  4. <head>
  5. <title>
  6. host64.sh
  7. </title>
  8. <meta http-equiv='content-type' content='text/html;iso-8859-1'/>
  9. <meta name='generator' content='motley-tools 1.9.4 13:40:33 Feb 18 2015'/>
  10. <meta name='author' content='cmaier@cmassoc.net'/>
  11. <meta name='robots' content='noindex,nofollow'/>
  12. <link href='toolkit.css' rel='stylesheet' type='text/css'/>
  13. </head>
  14. <body>
  15. <div class='headerlink'>
  16. [<a href='hardware.sh.html' title=' hardware.sh '>PREV</a>]
  17. [<a href='toolkit.html' title=' Index '>HOME</a>]
  18. [<a href='host.sh.html' title=' host.sh '>NEXT</a>]
  19. </div>
  20. <pre>
  21. #!/bin/sh
  22. # file: scripts/host.sh
  23. # edit a PIB file then kick off the INT6300 Host Emulator; if you do
  24. # not want to edit the PIB file before starting then comment out the
  25. # line that does that;
  26. # ====================================================================
  27. # host symbols;
  28. # --------------------------------------------------------------------
  29. . ${SCRIPTS}/hardware.sh
  30. . ${SCRIPTS}/firmware.sh
  31. # ====================================================================
  32. # file symbols;
  33. # --------------------------------------------------------------------
  34. MAC=auto
  35. DAK=$(rkey secret.key -D)
  36. NMK=$(rkey secret.key -M)
  37. # ====================================================================
  38. # confirm MAC;
  39. # --------------------------------------------------------------------
  40. echo -n &quot;MAC Address [${MAC}]: &quot;; read
  41. if [ ! -z ${REPLY} ]; then
  42. MAC=&quot;${REPLY}&quot;
  43. fi
  44. # ====================================================================
  45. # modify PIB;
  46. # --------------------------------------------------------------------
  47. modpib ${PIB} -C0 -M ${MAC} -N ${NMK} -D ${DAK}
  48. if [ ${?} != 0 ]; then
  49. exit 1
  50. fi
  51. # ====================================================================
  52. # service host action request messages;
  53. # --------------------------------------------------------------------
  54. # Force Flash NVRAM
  55. # int64host -i ${ETH} -P ${PIB} -N ${NVM} -p abc.pib -n abc.nvm -FF
  56. # Flash NVRAM (continuous loop because FW/PIB sent to host)
  57. # int64host -i ${ETH} -P ${PIB} -N ${NVM} -p abc.pib -n abc.nvm -F
  58. int64host -i ${ETH} -P ${PIB} -N ${NVM} -p abc.pib -n abc.nvm
  59. if [ ${?} != 0 ]; then
  60. exit 1
  61. fi
  62. </pre>
  63. <div class='footerlink'>
  64. [<a href='hardware.sh.html' title=' hardware.sh '>PREV</a>]
  65. [<a href='toolkit.html' title=' Index '>HOME</a>]
  66. [<a href='host.sh.html' title=' host.sh '>NEXT</a>]
  67. </div>
  68. </body>
  69. </html>