home *** CD-ROM | disk | FTP | other *** search
- The binpatch utility allows you to patch your BSD binaries, for example,
- a distributed kernel. There's no man-page for it currently, these may
- serve as example, to go into details, read the source:
-
- binpatch -l -s _hz vmunix
- | | |
- ^^^ | ^^^
- a long | symbol name, "_hz" in this case
- ^^^
- you specify symbol (-a to specify address)
-
- this should print 100 (this is a nice reality check...)
-
- Other sizes available are -w: 2 byte, -b: 1 byte.
-
- now it gets more advanced:
- binpatch -l -s _scsi_debug -r 1 vmunix
-
- -r 1 says, replace the value found with 1. The previous value is printed
- to stdout, and the new value is set.
-
- So if you have problems with the kernel not finding your
- drives, you could enable all available debugging options helping to
- shed light on that problem:
-
- binpatch -l -s _scsi_debug -r 1 vmunix scsi-level
- binpatch -l -s _sddebug -r 1 vmunix sd-level (disk-driver)
- binpatch -l -s _acdebug -r 1 vmunix autoconfig-level
-
- Good luck!
-
- -Markus Wild
-
- PS: compile with gcc -I. binpatch.c nlist.c -o binpatch.
-