9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] Bitsy's WaveLAN problem
@ 2008-05-09 17:22 David du Colombier
  0 siblings, 0 replies; 14+ messages in thread
From: David du Colombier @ 2008-05-09 17:22 UTC (permalink / raw)
  To: 9fans

Hello,

I bought a Compaq iPaq H3650 to install Plan 9.

After some difficulties, I successfully compiled 9bitsy
and paqdisk from a current Plan 9.
Plan 9 is now running fine on my Bitsy.

I also tried old 9bitsy and paqdisk from John and Nemo,
they are working well too.

As recommended, I also bought a Lucent ORiNOCO Classic
Gold PC Card to use Wi-Fi.

However, I haven't succeeded to make the Wi-Fi work on
my Bitsy.

During the boot, I can see some error messages on the
serial console:

increfp 0
increfp full power
wavelanreset, iob 0xa0204000
#l0: exec#l0: init failed
ing cmd 0000: 0000
echo: write error: couldn't configure devdecrefp 0
ice
increfp power down
bind: #l0: no free devices
ipconfig: /net/ipifc/clone: bind ether /net/ether0:
'/net/ether0' file does not exist
ndb/dns: can't read my ip address

The card seems to be visible from Plan 9:

bitsy# grep Wave /dev/pcm0ctl
version Lucent Technologies;WaveLAN/IEEE;Version 01.01;

I tried manually to run the card, but I get these error
messages again:

bitsy# echo -n 'configure #l0 wavelan' > /dev/pcm0ctl
echo: write error: couldn't configure device
bitsy# bind -a '#l0' /net
bind: #l0: no free devices

I get exactly the same errors from Nemo's (May 2003) and
John's (March 2004) 9bitsy and paqdisk.

How can I solve this problem?

Thank you.

--
David du Colombier



^ permalink raw reply	[flat|nested] 14+ messages in thread
* Re: [9fans] Bitsy's WaveLAN problem
@ 2008-05-11 12:44 David du Colombier
  0 siblings, 0 replies; 14+ messages in thread
From: David du Colombier @ 2008-05-11 12:44 UTC (permalink / raw)
  To: 9fans

After a massive print debugging, I found where the
problem appears.

In /sys/src/9/bitsy/wavelan.c, in the function w_cmd():

if(i==WTmOut){
    /*
     * WCmdIni can take a really long time.
     */
    enum { IniTmOut = 2000 };
    for(i=0; i<IniTmOut; i++){
        if(csr_ins(ctlr, WR_EvSts)&WCmdEv)
            break;
        microdelay(100);
    }
    if(i < IniTmOut)
        if(0) print("#l%d: long cmd %.4ux %d\n",
                     ctlr->ctlrno, cmd, i);
    if(i == IniTmOut){
        print("#l%d: execing cmd %.4ux: %.4ux\n",
               ctlr->ctlrno, cmd, csr_ins(ctlr, WR_EvSts));
        return -1;
    }
}

w_cmd() is returning -1.

The preceding print displays (with some junk in):

#l0: execing cmd 0000: 0000

Can this be a hardware problem?

Thank you.

--
David du Colombier



^ permalink raw reply	[flat|nested] 14+ messages in thread
* Re: [9fans] Bitsy's WaveLAN problem
@ 2008-05-11 15:10 David du Colombier
  2008-05-11 15:37 ` erik quanstrom
  0 siblings, 1 reply; 14+ messages in thread
From: David du Colombier @ 2008-05-11 15:10 UTC (permalink / raw)
  To: 9fans

I succeeded to run the ORiNOCO card.

I increased the timeout, and it works sometimes.

bitsy# echo -n 'configure #l0 wavelan' > /dev/pcm0ctl
bitsy# bind -a '#l0' /net

Now, I am able to connect the Bitsy to the Access Point.

bitsy# echo -n 'essid my_essid' > /net/ether0/clone

In /sys/src/9/bitsy/wavelan.c, in the function w_cmd():

    if(rc&WResSts){
        /*
         * Don't print; this happens on every WCmdAccWr
         * for some reason.
         */
        if(0) print("#l%d: cmd %.4ux: status %.4ux\n",
                    ctlr->ctlrno, cmd, rc);
        return -1;
    }

It returns -1 when I set the essid, but it seems to work
since the Access Point can see the Bitsy's Ethernet address.

I can also run ip/ipconfig. Sometimes it works, sometimes
it freezes the system and I must reset the Bitsy.

bitsy# ip/ipconfig ether /net/ether0 192.168.0.7
                                     255.255.255.0

But I am not able to ping other machines, and other
machines cannot ping the Bitsy.

--
David du Colombier



^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2008-05-12 15:42 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-05-09 17:22 [9fans] Bitsy's WaveLAN problem David du Colombier
2008-05-11 12:44 David du Colombier
2008-05-11 15:10 David du Colombier
2008-05-11 15:37 ` erik quanstrom
2008-05-11 16:21   ` David du Colombier
2008-05-11 21:09     ` cinap_lenrek
2008-05-12 10:10     ` Axel Belinfante
2008-05-12 11:49       ` erik quanstrom
2008-05-12 12:52         ` Paweł Lasek
2008-05-12 13:20           ` Axel Belinfante
2008-05-12 14:35             ` David du Colombier
2008-05-12 14:56               ` Axel Belinfante
2008-05-12 15:13                 ` David du Colombier
2008-05-12 15:42                   ` David du Colombier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).