mwave 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185
  1. How to try to survive an IBM Mwave under Linux SB drivers
  2. + IBM have now released documentation of sorts and Torsten is busy
  3. trying to make the Mwave work. This is not however a trivial task.
  4. ----------------------------------------------------------------------------
  5. OK, first thing - the IRQ problem IS a problem, whether the test is bypassed or
  6. not. It is NOT a Linux problem, but an MWAVE problem that is fixed with the
  7. latest MWAVE patches. So, in other words, don't bypass the test for MWAVES!
  8. I have Windows 95 on /dev/hda1, swap on /dev/hda2, and Red Hat 5 on /dev/hda3.
  9. The steps, then:
  10. Boot to Linux.
  11. Mount Windows 95 file system (assume mount point = /dos95).
  12. mkdir /dos95/linux
  13. mkdir /dos95/linux/boot
  14. mkdir /dos95/linux/boot/parms
  15. Copy the kernel, any initrd image, and loadlin to /dos95/linux/boot/.
  16. Reboot to Windows 95.
  17. Edit C:/msdos.sys and add or change the following:
  18. Logo=0
  19. BootGUI=0
  20. Note that msdos.sys is a text file but it needs to be made 'unhidden',
  21. readable and writable before it can be edited. This can be done with
  22. DOS' "attrib" command.
  23. Edit config.sys to have multiple config menus. I have one for windows 95 and
  24. five for Linux, like this:
  25. ------------
  26. [menu]
  27. menuitem=W95, Windows 95
  28. menuitem=LINTP, Linux - ThinkPad
  29. menuitem=LINTP3, Linux - ThinkPad Console
  30. menuitem=LINDOC, Linux - Docked
  31. menuitem=LINDOC3, Linux - Docked Console
  32. menuitem=LIN1, Linux - Single User Mode
  33. REM menudefault=W95,10
  34. [W95]
  35. [LINTP]
  36. [LINDOC]
  37. [LINTP3]
  38. [LINDOC3]
  39. [LIN1]
  40. [COMMON]
  41. FILES=30
  42. REM Please read README.TXT in C:\MWW subdirectory before changing the DOS= statement.
  43. DOS=HIGH,UMB
  44. DEVICE=C:\MWW\MANAGER\MWD50430.EXE
  45. SHELL=c:\command.com /e:2048
  46. -------------------
  47. The important things are the SHELL and DEVICE statements.
  48. Then change autoexec.bat. Basically everything in there originally should be
  49. done ONLY when Windows 95 is booted. Then you add new things specifically
  50. for Linux. Mine is as follows
  51. ---------------
  52. @ECHO OFF
  53. if "%CONFIG%" == "W95" goto W95
  54. REM
  55. REM Linux stuff
  56. REM
  57. SET MWPATH=C:\MWW\DLL;C:\MWW\MWGAMES;C:\MWW\DSP
  58. SET BLASTER=A220 I5 D1
  59. SET MWROOT=C:\MWW
  60. SET LIBPATH=C:\MWW\DLL
  61. SET PATH=C:\WINDOWS;C:\MWW\DLL;
  62. CALL MWAVE START NOSHOW
  63. c:\linux\boot\loadlin.exe @c:\linux\boot\parms\%CONFIG%.par
  64. :W95
  65. REM
  66. REM Windows 95 stuff
  67. REM
  68. c:\toolkit\guard
  69. SET MSINPUT=C:\MSINPUT
  70. SET MWPATH=C:\MWW\DLL;C:\MWW\MWGAMES;C:\MWW\DSP
  71. REM The following is used by DOS games to recognize Sound Blaster hardware.
  72. REM If hardware settings are changed, please change this line as well.
  73. REM See the Mwave README file for instructions.
  74. SET BLASTER=A220 I5 D1
  75. SET MWROOT=C:\MWW
  76. SET LIBPATH=C:\MWW\DLL
  77. SET PATH=C:\WINDOWS;C:\WINDOWS\COMMAND;E:\ORAWIN95\BIN;f:\msdev\bin;e:\v30\bin.dbg;v:\devt\v30\bin;c:\JavaSDK\Bin;C:\MWW\DLL;
  78. SET INCLUDE=f:\MSDEV\INCLUDE;F:\MSDEV\MFC\INCLUDE
  79. SET LIB=F:\MSDEV\LIB;F:\MSDEV\MFC\LIB
  80. win
  81. ------------------------
  82. Now build a file in c:\linux\boot\parms for each Linux config that you have.
  83. For example, my LINDOC3 config is for a docked Thinkpad at runlevel 3 with no
  84. initrd image, and has a parameter file named LINDOC3.PAR in c:\linux\boot\parms:
  85. -----------------------
  86. # LOADLIN @param_file image=other_image root=/dev/other
  87. #
  88. # Linux Console in docking station
  89. #
  90. c:\linux\boot\zImage.krn # First value must be filename of Linux kernel.
  91. root=/dev/hda3 # device which gets mounted as root FS
  92. ro # Other kernel arguments go here.
  93. apm=off
  94. doc=yes
  95. 3
  96. -----------------------
  97. The doc=yes parameter is an environment variable used by my init scripts, not
  98. a kernel argument.
  99. However, the apm=off parameter IS a kernel argument! APM, at least in my setup,
  100. causes the kernel to crash when loaded via loadlin (but NOT when loaded via
  101. LILO). The APM stuff COULD be forced out of the kernel via the kernel compile
  102. options. Instead, I got an unofficial patch to the APM drivers that allows them
  103. to be dynamically deactivated via kernel arguments. Whatever you chose to
  104. document, APM, it seems, MUST be off for setups like mine.
  105. Now make sure C:\MWW\MWCONFIG.REF looks like this:
  106. ----------------------
  107. [NativeDOS]
  108. Default=SB1.5
  109. SBInputSource=CD
  110. SYNTH=FM
  111. QSound=OFF
  112. Reverb=OFF
  113. Chorus=OFF
  114. ReverbDepth=5
  115. ChorusDepth=5
  116. SBInputVolume=5
  117. SBMainVolume=10
  118. SBWaveVolume=10
  119. SBSynthVolume=10
  120. WaveTableVolume=10
  121. AudioPowerDriver=ON
  122. [FastCFG]
  123. Show=No
  124. HideOption=Off
  125. -----------------------------
  126. OR the Default= line COULD be
  127. Default=SBPRO
  128. Reboot to Windows 95 and choose Linux. When booted, use sndconfig to configure
  129. the sound modules and voilà - ThinkPad sound with Linux.
  130. Now the gotchas - you can either have CD sound OR Mixers but not both. That's a
  131. problem with the SB1.5 (CD sound) or SBPRO (Mixers) settings. No one knows why
  132. this is!
  133. For some reason MPEG3 files, when played through mpg123, sound like they
  134. are playing at 1/8th speed - not very useful! If you have ANY insight
  135. on why this second thing might be happening, I would be grateful.
  136. ===========================================================
  137. _/ _/_/_/_/
  138. _/_/ _/_/ _/
  139. _/ _/_/ _/_/_/_/ Martin John Bartlett
  140. _/ _/ _/ _/ (martin@nitram.demon.co.uk)
  141. _/ _/_/_/_/
  142. _/
  143. _/ _/
  144. _/_/
  145. ===========================================================