Subject: Re: Default install for NetBSD on laptops with PC-MCIA cards.
To: Jeff Rizzo <riz@netbsd.org>
From: Gilles Gravier <Gilles@Gravier.org>
List: netbsd-users
Date: 05/23/2005 18:08:44
This is a multi-part message in MIME format.
--------------090208060900010703000507
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Well,

Look at this file : 
ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-2.0.2/i386/INSTALL.html

Then go to "Possible PCMCIA Issues" : 
ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-2.0.2/i386/INSTALL.html#Possible%20PCMCIA%20issues

Now, on each single laptop I've installed NetBSD on, I've actually had 
to do exactly what's in there (if not, it didn't work)... This both for 
GENERIC or for LAPTOP kernels.

OK... Granted, it works...

But, taking the example of Linux, on every one of these same machines, 
I've never had to do anything special to get PCMCIA to work.

Why not make these settings default? For those not capable of finding 
what I mean, this is what I'm talking about:

After installation, this value can be permanently written to the kernel 
image directly with:


       |||#|* cp /netbsd /netbsd.bak*
       |||#|* gdb --write /netbsd*
       |||(gdb)|* set pcic_isa_intr_alloc_mask=0x0a00*
       |||(gdb)|* set pcic_isa_alloc_iobase=0x330*
       |||(gdb)|* set pcic_isa_alloc_iosize=0x0bf*
       |||(gdb)|* quit*
       |||#|

or you could specify these value when configuring your kernel, e.g.:


    | |

options PCIC_ISA_INTR_ALLOC_MASK=0x0a00
options PCIC_ISA_ALLOC_IOBASE=0x330
options PCIC_ISA_ALLOC_IOSIZE=0x0bf
    


Gilles.


Jeff Rizzo wrote:

>Care to be more specific?  I've installed several laptops without
>benefit of "patches".
>
>If you're having trouble with the standard bootfloppys, try the 'laptop'
>ones...
>
>+j
>
>Gilles Gravier wrote:
>
>  
>
>>OK... a warning. This message is a bit of a whine...
>>
>>How come, in the last 6 years that I've been using NetBSD, it is still
>>not possible to install NetBSD on a laptop without having to patch the
>>kernel in order to use PC-MCIA network cards? This must not be too
>>hard to integrate in the default kernels. All Linux distributions of
>>the planet that I know of do it seamlessly. Why still have to manually
>>go into GDB and hack into the kernel? What's worse, it's described in
>>the README.html file, so it's not like it requires thinking. The
>>things in the README.html have worked on every machine I've installed
>>NetBSD on. Maybe it's time to have THOSE settings as defaults, rather
>>than whatever is set today, and obviously doesn't work.
>>
>>Comme on, guys... Let's make sure we do better than Linux. I'm sure
>>we're up to it.
>>
>>Gilles.
>>-- 
>>/*Gilles Gravier*/ *=* *Gilles@Gravier.org*
>><mailto:Gilles@Gravier.org> *=* *http://www.gravier.org/*
>>ICQ : *77488526*
>><http://www.icq.com/whitepages/about_me.php?Uin=77488526> * || *MSN
>>Messenger : Gilles@Gravier.org
>><http://members.msn.com/?mpp=4263%7E5AAAZAAAACcw%210A83PFlYeq0R%21ZPO39GW63sr8Zaat9nB6dTdi0id9FQ$$%7E5AAAaAAAAEDTTl7j2*1w8Gd7%21LdWZmJumAmJe3E2lA97s$>*
>>*Skype : ggravier <callto://ggravier>* || *Y! : ggravier
>><http://profiles.yahoo.com/ggravier> || AOL : gillesgravier
>><aim:goim?screenname=gillesgravier>
>>PGP Key ID : *0x8DE6D026*
>><http://pgp.mit.edu:11371/pks/lookup?search=0x8DE6D026&op=index>
>>"Chastity is its own punishment." (/Solomon Short/) [/David Gerrold/]
>>
>>
>>    
>>
>
>  
>

-- 
/*Gilles Gravier*/ *=* *Gilles@Gravier.org* <mailto:Gilles@Gravier.org> 
*=* *http://www.gravier.org/*
ICQ : *77488526* 
<http://www.icq.com/whitepages/about_me.php?Uin=77488526> * || *MSN 
Messenger : Gilles@Gravier.org 
<http://members.msn.com/?mpp=4263%7E5AAAZAAAACcw%210A83PFlYeq0R%21ZPO39GW63sr8Zaat9nB6dTdi0id9FQ$$%7E5AAAaAAAAEDTTl7j2*1w8Gd7%21LdWZmJumAmJe3E2lA97s$>*
*Skype : ggravier <callto://ggravier>* || *Y! : ggravier 
<http://profiles.yahoo.com/ggravier> || AOL : gillesgravier 
<aim:goim?screenname=gillesgravier>
PGP Key ID : *0x8DE6D026* 
<http://pgp.mit.edu:11371/pks/lookup?search=0x8DE6D026&op=index>
"Chastity is its own punishment." (/Solomon Short/) [/David Gerrold/]



--------------090208060900010703000507
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#336666">
Well,<br>
<br>
Look at this file :
ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-2.0.2/i386/INSTALL.html<br>
<br>
Then go to "Possible PCMCIA Issues" :
ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-2.0.2/i386/INSTALL.html#Possible%20PCMCIA%20issues<br>
<br>
Now, on each single laptop I've installed NetBSD on, I've actually had
to do exactly what's in there (if not, it didn't work)... This both for
GENERIC or for LAPTOP kernels.<br>
<br>
OK... Granted, it works...<br>
<br>
But, taking the example of Linux, on every one of these same machines,
I've never had to do anything special to get PCMCIA to work.<br>
<br>
Why not make these settings default? For those not capable of finding
what I mean, this is what I'm talking about:<br>
<br>
<p><font color="#000000">After installation, this value can be
permanently written to the kernel image
directly with: </font></p>
<p><font color="#000000"><br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<code></code><code>#</code><b> cp /netbsd /netbsd.bak</b>
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<code></code><code>#</code><b> gdb --write /netbsd</b>
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<code></code><code>(gdb)</code><b> set pcic_isa_intr_alloc_mask=0x0a00</b>
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<code></code><code>(gdb)</code><b> set pcic_isa_alloc_iobase=0x330</b>
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<code></code><code>(gdb)</code><b> set pcic_isa_alloc_iosize=0x0bf</b>
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<code></code><code>(gdb)</code><b> quit</b>
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<code></code><code>#</code>
<br>
</font> </p>
<p><font color="#000000">or you could specify these value when
configuring your kernel, e.g.:
</font></p>
<dl compact="compact">
  <dt><font color="#000000"><br>
    </font></dt>
  <dd><font color="#000000"><code>
    </code></font>
    <pre><font color="#000000">options PCIC_ISA_INTR_ALLOC_MASK=0x0a00
options PCIC_ISA_ALLOC_IOBASE=0x330
options PCIC_ISA_ALLOC_IOSIZE=0x0bf</font>
    </pre>
  </dd>
</dl>
<br>
Gilles.<br>
<br>
<br>
Jeff Rizzo wrote:
<blockquote cite="mid4291FE6E.7000205@NetBSD.org" type="cite">
  <pre wrap="">Care to be more specific?  I've installed several laptops without
benefit of "patches".

If you're having trouble with the standard bootfloppys, try the 'laptop'
ones...

+j

Gilles Gravier wrote:

  </pre>
  <blockquote type="cite">
    <pre wrap="">OK... a warning. This message is a bit of a whine...

How come, in the last 6 years that I've been using NetBSD, it is still
not possible to install NetBSD on a laptop without having to patch the
kernel in order to use PC-MCIA network cards? This must not be too
hard to integrate in the default kernels. All Linux distributions of
the planet that I know of do it seamlessly. Why still have to manually
go into GDB and hack into the kernel? What's worse, it's described in
the README.html file, so it's not like it requires thinking. The
things in the README.html have worked on every machine I've installed
NetBSD on. Maybe it's time to have THOSE settings as defaults, rather
than whatever is set today, and obviously doesn't work.

Comme on, guys... Let's make sure we do better than Linux. I'm sure
we're up to it.

Gilles.
-- 
/*Gilles Gravier*/ *=* *Gilles@Gravier.org*
<a class="moz-txt-link-rfc2396E" href="mailto:Gilles@Gravier.org">&lt;mailto:Gilles@Gravier.org&gt;</a> *=* *<a class="moz-txt-link-freetext" href="http://www.gravier.org/*">http://www.gravier.org/*</a>
ICQ : *77488526*
<a class="moz-txt-link-rfc2396E" href="http://www.icq.com/whitepages/about_me.php?Uin=77488526">&lt;http://www.icq.com/whitepages/about_me.php?Uin=77488526&gt;</a> * || *MSN
Messenger : <a class="moz-txt-link-abbreviated" href="mailto:Gilles@Gravier.org">Gilles@Gravier.org</a>
<a class="moz-txt-link-rfc2396E" href="http://members.msn.com/?mpp=4263%7E5AAAZAAAACcw%210A83PFlYeq0R%21ZPO39GW63sr8Zaat9nB6dTdi0id9FQ$$%7E5AAAaAAAAEDTTl7j2*1w8Gd7%21LdWZmJumAmJe3E2lA97s$">&lt;http://members.msn.com/?mpp=4263%7E5AAAZAAAACcw%210A83PFlYeq0R%21ZPO39GW63sr8Zaat9nB6dTdi0id9FQ$$%7E5AAAaAAAAEDTTl7j2*1w8Gd7%21LdWZmJumAmJe3E2lA97s$&gt;</a>*
*Skype : ggravier <a class="moz-txt-link-rfc2396E" href="callto://ggravier">&lt;callto://ggravier&gt;</a>* || *Y! : ggravier
<a class="moz-txt-link-rfc2396E" href="http://profiles.yahoo.com/ggravier">&lt;http://profiles.yahoo.com/ggravier&gt;</a> || AOL : gillesgravier
<a class="moz-txt-link-rfc2396E" href="aim:goim?screenname=gillesgravier">&lt;aim:goim?screenname=gillesgravier&gt;</a>
PGP Key ID : *0x8DE6D026*
<a class="moz-txt-link-rfc2396E" href="http://pgp.mit.edu:11371/pks/lookup?search=0x8DE6D026&op=index">&lt;http://pgp.mit.edu:11371/pks/lookup?search=0x8DE6D026&amp;op=index&gt;</a>
"Chastity is its own punishment." (/Solomon Short/) [/David Gerrold/]


    </pre>
  </blockquote>
  <pre wrap=""><!---->
  </pre>
</blockquote>
<br>
<div class="moz-signature">-- <br>
<title>Signature Perso Chastity</title>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
<div style="text-align: left;">
<table
 style="text-align: left; background-color: rgb(102, 102, 102); width: 500px; height: 73px;"
 border="1" cellpadding="3" cellspacing="3">
  <tbody>
    <tr>
      <td
 style="text-align: center; vertical-align: middle; background-color: rgb(204, 204, 204); white-space: nowrap;">
      <div
 style="text-align: center; background-color: rgb(204, 204, 204);"><tt><font
 color="#7d6eaf"><i><b>Gilles Gravier</b></i> <b>=</b> </font><a
 href="mailto:Gilles@Gravier.org"><font color="#000000"><b>Gilles@Gravier.org</b></font></a><font
 color="#7d6eaf"> <b>=</b> </font><a href="http://www.gravier.org/"><font
 color="#000000"><b>http://www.gravier.org/</b></font></a></tt><br>
      </div>
      <div
 style="text-align: center; background-color: rgb(204, 204, 204);"><tt><font
 color="#009900"><span
 style="font-family: monospace; color: rgb(0, 0, 0); font-weight: bold;"></span></font><font
 color="#000099">ICQ :</font> <a
 href="http://www.icq.com/whitepages/about_me.php?Uin=77488526"><font
 color="#009900"><b>77488526</b></font></a></tt>&nbsp;<tt><font
 color="#009900"><b><span
 style="font-family: monospace; color: rgb(0, 0, 0);"> || </span></b></font></tt><tt><font
 color="#000099">MSN Messenger : <a
 href="http://members.msn.com/?mpp=4263%7E5AAAZAAAACcw%210A83PFlYeq0R%21ZPO39GW63sr8Zaat9nB6dTdi0id9FQ$$%7E5AAAaAAAAEDTTl7j2*1w8Gd7%21LdWZmJumAmJe3E2lA97s$"><span
 style="color: rgb(0, 153, 0); font-weight: bold;">Gilles@Gravier.org</span></a></font></tt><tt><font
 color="#009900"><b><span
 style="font-family: monospace; color: rgb(0, 0, 0);"><br>
      </span></b></font></tt><span
 style="font-family: monospace; color: rgb(0, 0, 153);">Skype</span><tt><font
 color="#000099"><span style="color: rgb(0, 0, 153);"> :&nbsp;</span><a
 href="callto://ggravier"><span
 style="font-weight: bold; color: rgb(0, 153, 0);">ggravier</span></a></font></tt><tt><font
 color="#009900"><b><span
 style="font-family: monospace; color: rgb(0, 0, 0);"> || </span></b></font></tt><tt><font
 color="#000099"><span style="color: rgb(0, 153, 0);"></span><span
 style="font-weight: bold;"></span>Y! : <a
 href="http://profiles.yahoo.com/ggravier"><span
 style="color: rgb(0, 153, 0); font-weight: bold;">ggravier</span></a></font></tt><tt
 style="font-weight: bold;"><font color="#009900"><span
 style="font-family: monospace; color: rgb(0, 0, 0);"> || </span></font></tt><tt><font
 color="#000099">AOL : <a href="aim:goim?screenname=gillesgravier"><span
 style="color: rgb(0, 153, 0); font-weight: bold;">gillesgravier</span></a><br>
      </font></tt><tt><font color="#000099">PGP Key ID :</font> <a
 href="http://pgp.mit.edu:11371/pks/lookup?search=0x8DE6D026&amp;op=index"><font
 color="#009900"><b>0x8DE6D026</b></font></a></tt><br>
      </div>
      <div
 style="text-align: center; background-color: rgb(204, 204, 204);"><tt>"Chastity
is its own punishment." (<font color="#999999"><i>Solomon Short</i></font>)
[<font color="#666666"><i>David Gerrold</i></font>]</tt><br>
      </div>
      </td>
    </tr>
  </tbody>
</table>
<pre wrap="">
</pre>
</div>
<br>
</div>
</body>
</html>

--------------090208060900010703000507--