<!--#include virtual="HTML_begin.inc"-->
  <title>Fostex MR-8 and Linux</title>
  <meta name="keywords" content="fostex mr-8, linux, compact flash"/>
<!--#include virtual="HTML_head_end.inc"-->
<!--#include virtual="Music_tabs.inc"-->

<div id="content">
<h2>Fostex MR-8 and Linux</h2>
<img alt="Fostex MR-8" class="right"src="images/mr8.png"
     width="138" height="107" />

<h3>Introduction:</h3>

<p>The user's manual for the Fostex MR-8 claims that the Compact Flash
card and the unit itself only work with MS Windows software. However,
if you have a working USB Compact Flash card reader set up on your
Linux installation you can access the Compact Flash card and the MR-8
unit with relative ease.</p>

<h3>Compact Flash:</h3>

<p>From the point of view of a computer, the <em>Compact Flash</em>
card is nothing more than a <tt>VFAT</tt> file system. With Linux you
can access the card by getting a USB flash card reader and setting up
the kernel modules to access it.</p>

<p>If you are lucky, your installation may have been setup to mount
your Compact Flash automatically; in fact, <em>the Compact Flash will
be mounted when you plug it into the reader and unmounted when you
remove it!</em> If you are not so lucky you will have to do a little
work to get access to the flash card. I've had the most luck using the
2.6 Linux kernel. With the 2.4 kernel it's been more of a crap
shoot.</p>

<p>First you have to verify that you have all the necessary drivers
either compiled into the kernel or available as modules. The following
modules are necessary to access the device:</p>

<pre>
    nls_iso8859-1
    nls_cp437
    vfat
    fat
    usb-storage
    uhci
    usbcore
    sd_mod
    scsi_mod
</pre>

<p>You could throw in the modules to handle hot plug devices and
automount the thing, but let's not get carried away. To see if the
modules are available on your machine issue the following command for
each module in the list above. Be sure to add
&ldquo;<tt>.o</tt>&rdquo; to the end of each module:</p>

<pre>  find /lib/modules/<a href="BashTricks.shtml#commandsubstitution">`uname -r`</a>/ -name nls_cp437.o</pre>

<p>If the module is available <tt>find</tt> will print out its exact
location; if not it will do nothing. Any modules that are missing will
have to be compiled and installed. If these drivers are in the kernel
you will just have to try mounting the flash card or recompile the
kernel to make sure.</p>

<p>I was able to mount the Compact Flash card as a VFAT file system on
one of the <tt>/dev/sda</tt> (SCSI) devices&mdash;mine sets up as
<tt>/dev/sda1</tt>.</p>

<p>Next, as root, create a mount point for the flash card and try to
mount it:</p>

<pre>  su
  mkdir /mnt/flash
  mount -t vfat /dev/sda1 /mnt/flash
</pre>

<p>You can then do &ldquo;<tt>ls -l /mnt/flash</tt>&rdquo; and see
what's on it just as you would for any other file system. Later you
can tweek the setup so ordinary mortals can access the flash reader
and card.</p>

<h3>Using the Compact Flash Information:</h3>

<p>One of the top reasons for buying the Fostex MR-8 is that it stores
songs in WAV file format rather than a proprietary format. With a
proprietary format any utilities for dealing with the files would
require software from the manufacturer, and that software would
probable only run on . . . you guessed it: Windows, and maybe
Apple. Linux? Forget it.</p>

<p>With Linux you can copy stuff to and from the card, delete stuff
from the card&mdash;and completely screw up your favorite song if you
are not careful&mdash;because the Compact Flash has a VFAT file system
and the songs are in WAV files. See the MR-8 User Manual for
information on how files are stored on the card.</p>

<h3>Software Update for the MR-8:</h3>

<p>The software on the MR-8 can be updated using Linux. Go to the <a
href="http://www.fostex.com/">Fostex</a> site and get the update zip
file and the instructions. Ignore most of the instructions about
hooking up the MR-8 directly to your computer and the Windows specific
stuff.</p>

<p>On your computer use <tt>unzip</tt> to decompress the software zip
file and copy it to the Compact Flash's root directory. Now,
<tt>umount</tt> the flash card and put it in your MR-8, which, I hope,
you turned off to start with! Turn on the MR-8 while holding down the
STOP key; the unit will see the update file and ask if you want to
update the software to the new version. Respond with yes. When the
unit finishes loading the new software simply turns the MR-8 off and
then on again.</p>


<h3>Accessing the MR-8:</h3>

<p>This part is still to be done. I haven't tried to access the unit
with Linux, yet. The User Manual describes the MR-8 in such a way to
make me believe that it will appear as nothing more than a VFAT file
system.  I'll have to get a cable and try it. Of course, try it
yourself. If I'm wrong there's no harm done by hooking it up.</p>

</div>

<p class="lastupdate">Last updated: <!--#echo var="LAST_MODIFIED" --></p>
<!--#include virtual="HTML_end.inc"-->
