home *** CD-ROM | disk | FTP | other *** search
/ AMIGA PD 1 / AMIGA-PD-1.iso / NetBSD / Tools / binpatch.readme < prev    next >
Text File  |  1994-11-27  |  1KB  |  35 lines

  1. The binpatch utility allows you to patch your BSD binaries, for example,
  2. a distributed kernel. There's no man-page for it currently, these may
  3. serve as example, to go into details, read the source:
  4.  
  5. binpatch -l -s _hz vmunix
  6.      |   |  |
  7.     ^^^  | ^^^
  8.      a long  |  symbol name, "_hz" in this case
  9.         ^^^
  10.       you specify symbol (-a to specify address)
  11.  
  12. this should print 100 (this is a nice reality check...)
  13.  
  14. Other sizes available are -w: 2 byte, -b: 1 byte.
  15.  
  16. now it gets more advanced:
  17. binpatch -l -s _scsi_debug -r 1 vmunix
  18.  
  19. -r 1 says, replace the value found with 1. The previous value is printed
  20. to stdout, and the new value is set.
  21.  
  22. So if you have problems with the kernel not finding your
  23. drives, you could enable all available debugging options helping to
  24. shed light on that problem:
  25.  
  26. binpatch -l -s _scsi_debug -r 1 vmunix    scsi-level
  27. binpatch -l -s _sddebug -r 1 vmunix    sd-level (disk-driver)
  28. binpatch -l -s _acdebug -r 1 vmunix    autoconfig-level
  29.  
  30. Good luck!
  31.  
  32. -Markus Wild
  33.  
  34. PS: compile with gcc -I. binpatch.c nlist.c -o binpatch.
  35.