home *** CD-ROM | disk | FTP | other *** search
/ Amiga GigaPD 3 / Amiga_GigaPD_v3_3of3.iso / netbsd / docs / mailinglist-archive / 1993-08 / text0017.txt < prev    next >
Encoding:
Text File  |  1993-06-25  |  2.5 KB  |  64 lines

  1. > Well I had a nice pre-typed msg, but this msg answered some Qs.  Please
  2. > disregard those parts.  But to comment on above...  So all SyQuest users
  3. > will be doomed to binpatch kernel for awhile?   Here's orig msg:
  4.  
  5.  
  6. Well... Yep, I can't help that, sorry. I just can't make the default
  7. not to send sync-requests, as then drives that had arranged sync-requests
  8. with the AmigaOS scsi.device will lock up just like your Syquest is now. Since
  9. these SCSI-2 drives are getting more and more frequent, defaulting to sync
  10. seems the right thing to me. 
  11.  
  12. Note: it is *not* possible to pull the RESET line on the scsi bus (at least
  13. on the A3000) without resetting the machine (by a RESET instruction). The
  14. WD/AMD chip has no command to reset the bus, just to reset itself (which 
  15. doesn't reset the bus), and resetting the machine would mean I'd have to
  16. do AutoConfig(tm) myself, which is something I'd like to avoid. So.. we'll
  17. have to live with this problem .. (FAQ-author(s): that would be worth a FAQ-
  18. section I guess:-)).
  19.  
  20. > Would that binpatch prog work?  If so what exact command I need to enter. 
  21. > (The README seemed a bit cryptic...)  Any other SyQuest users having same
  22. > prob?
  23.  
  24. Ok.. there's a byte array called "inhibit_sync", and it's used like that:
  25.  
  26.   if (inhibit_sync[UNIT])
  27.     don't do sync handshake to UNIT, go async
  28.  
  29. to set the apropriate byte, first get the address of the first byte:
  30.  
  31.   binpatch -s _inhibit_sync vmunix.531
  32.  
  33. this outputs a line containing the address of _inhibit_sync in
  34. parenthesis. Call that number ADDR. You then add the unit number of your
  35. drive you want to disable sync on to ADDR, thus if disabling unit 3, you'd
  36. calculate  ADDR=ADDR+3.
  37.  
  38. Then, set the byte:
  39.  
  40.   binpatch -b -a ADDR -r 1 vmunix.531
  41.  
  42. where you replace ADDR with the value you just calculated, specify either
  43. as a decimal number, or as hex like: 0x12345, don't use $12345.
  44.  
  45. That's it. The "-b" tells binpatch to change a byte value, "-w" changes
  46. a word (16bit) value, "-l" is the default and changes a long (32bit) value.
  47.  
  48. Replace vmunix.531 by the kernel you want to patch of course:-)
  49.  
  50. > On another note.  It was stated to recompile stty if it's been dumping.
  51. > It has s atleast 450 for me.  So I did, it compiled fine, but still
  52. > dumped.
  53.  
  54. Hm, I think it stopped dumping when I relinked it with a freshly complied
  55. libc.a, the problem was the first libc.a was compiled in a rather hacky
  56. way "cross" from amigados, by using the amigados gcc :-)
  57.  
  58. -Markus
  59. -- 
  60. CHUUG/EUnet Switzerland                Markus Wild
  61. Zweierstrasse 35    Tel: +41 1 291 45 80    mw@eunet.ch
  62. CH-8004 Zuerich        Fax: +41 1 291 46 42    S=mw;P=EUnet;A=EUnet;C=CH
  63.  
  64.