1 How to try to survive an IBM Mwave under Linux SB drivers
4 + IBM have now released documentation of sorts and Torsten is busy
5 trying to make the Mwave work. This is not however a trivial task.
7 ----------------------------------------------------------------------------
9 OK, first thing - the IRQ problem IS a problem, whether the test is bypassed or
10 not. It is NOT a Linux problem, but an MWAVE problem that is fixed with the
11 latest MWAVE patches. So, in other words, don't bypass the test for MWAVES!
13 I have Windows 95 on /dev/hda1, swap on /dev/hda2, and Red Hat 5 on /dev/hda3.
18 Mount Windows 95 file system (assume mount point = /dos95).
20 mkdir /dos95/linux/boot
21 mkdir /dos95/linux/boot/parms
23 Copy the kernel, any initrd image, and loadlin to /dos95/linux/boot/.
27 Edit C:/msdos.sys and add or change the following:
32 Note that msdos.sys is a text file but it needs to be made 'unhidden',
33 readable and writable before it can be edited. This can be done with
34 DOS' "attrib" command.
36 Edit config.sys to have multiple config menus. I have one for windows 95 and
37 five for Linux, like this:
40 menuitem=W95, Windows 95
41 menuitem=LINTP, Linux - ThinkPad
42 menuitem=LINTP3, Linux - ThinkPad Console
43 menuitem=LINDOC, Linux - Docked
44 menuitem=LINDOC3, Linux - Docked Console
45 menuitem=LIN1, Linux - Single User Mode
46 REM menudefault=W95,10
62 REM Please read README.TXT in C:\MWW subdirectory before changing the DOS= statement.
64 DEVICE=C:\MWW\MANAGER\MWD50430.EXE
65 SHELL=c:\command.com /e:2048
68 The important things are the SHELL and DEVICE statements.
70 Then change autoexec.bat. Basically everything in there originally should be
71 done ONLY when Windows 95 is booted. Then you add new things specifically
72 for Linux. Mine is as follows
76 if "%CONFIG%" == "W95" goto W95
81 SET MWPATH=C:\MWW\DLL;C:\MWW\MWGAMES;C:\MWW\DSP
82 SET BLASTER=A220 I5 D1
84 SET LIBPATH=C:\MWW\DLL
85 SET PATH=C:\WINDOWS;C:\MWW\DLL;
86 CALL MWAVE START NOSHOW
87 c:\linux\boot\loadlin.exe @c:\linux\boot\parms\%CONFIG%.par
94 SET MSINPUT=C:\MSINPUT
95 SET MWPATH=C:\MWW\DLL;C:\MWW\MWGAMES;C:\MWW\DSP
96 REM The following is used by DOS games to recognize Sound Blaster hardware.
97 REM If hardware settings are changed, please change this line as well.
98 REM See the Mwave README file for instructions.
99 SET BLASTER=A220 I5 D1
101 SET LIBPATH=C:\MWW\DLL
102 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;
103 SET INCLUDE=f:\MSDEV\INCLUDE;F:\MSDEV\MFC\INCLUDE
104 SET LIB=F:\MSDEV\LIB;F:\MSDEV\MFC\LIB
107 ------------------------
109 Now build a file in c:\linux\boot\parms for each Linux config that you have.
111 For example, my LINDOC3 config is for a docked Thinkpad at runlevel 3 with no
112 initrd image, and has a parameter file named LINDOC3.PAR in c:\linux\boot\parms:
114 -----------------------
115 # LOADLIN @param_file image=other_image root=/dev/other
117 # Linux Console in docking station
119 c:\linux\boot\zImage.krn # First value must be filename of Linux kernel.
120 root=/dev/hda3 # device which gets mounted as root FS
121 ro # Other kernel arguments go here.
125 -----------------------
127 The doc=yes parameter is an environment variable used by my init scripts, not
130 However, the apm=off parameter IS a kernel argument! APM, at least in my setup,
131 causes the kernel to crash when loaded via loadlin (but NOT when loaded via
132 LILO). The APM stuff COULD be forced out of the kernel via the kernel compile
133 options. Instead, I got an unofficial patch to the APM drivers that allows them
134 to be dynamically deactivated via kernel arguments. Whatever you chose to
135 document, APM, it seems, MUST be off for setups like mine.
137 Now make sure C:\MWW\MWCONFIG.REF looks like this:
139 ----------------------
159 -----------------------------
161 OR the Default= line COULD be
165 Reboot to Windows 95 and choose Linux. When booted, use sndconfig to configure
166 the sound modules and voilĂ - ThinkPad sound with Linux.
168 Now the gotchas - you can either have CD sound OR Mixers but not both. That's a
169 problem with the SB1.5 (CD sound) or SBPRO (Mixers) settings. No one knows why
172 For some reason MPEG3 files, when played through mpg123, sound like they
173 are playing at 1/8th speed - not very useful! If you have ANY insight
174 on why this second thing might be happening, I would be grateful.
176 ===========================================================
179 _/ _/_/ _/_/_/_/ Martin John Bartlett
180 _/ _/ _/ _/ (martin@nitram.demon.co.uk)
185 ===========================================================