From owner-freebsd-mobile Mon Sep 6 0:27:21 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from mrelay.jrc.it (mrelay.jrc.it [139.191.1.65]) by hub.freebsd.org (Postfix) with ESMTP id 97C6B15166 for ; Mon, 6 Sep 1999 00:27:19 -0700 (PDT) (envelope-from nick.hibma@jrc.it) Received: from elect8 (elect8.jrc.it [139.191.71.152]) by mrelay.jrc.it (LMC5692) with ESMTP id JAA12504; Mon, 6 Sep 1999 09:26:11 +0200 (MET DST) Date: Mon, 6 Sep 1999 09:26:10 +0200 (MET DST) From: Nick Hibma X-Sender: n_hibma@elect8 Reply-To: Nick Hibma To: Eric Jacoboni Cc: FreeBSD-mobile@FreeBSD.ORG Subject: Re: Configuring PCMCIA NIC after it's loaded In-Reply-To: <87r9kdnd5l.fsf@titine.fr.eu.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The lines are in the wrong order: > > config > > insert /etc/pccard_ether ep0 > > insert kldload /lkm/setmac.ko > > insert /usr/local/sbin/setmac ep0 > "Chris D. Faulhaber" writes: > > > Try putting the commands in /etc/pccard.conf in an 'insert' line: > > > > card "" "" > > config > > insert kldload /lkm/setmac.ko > > insert /usr/local/sbin/setmac ep0 > > insert /etc/pccard_ether ep0 > > Oh no ! If i try this, my laptop resets at boot times after having > loaded pccard and without unmount / :( > > The pb seems that these lines are called _before_ ep0 is up. > > I can get the same pb if i forget to make a 'ifconfig ep0 down' before > the 'setmac ep0 blah'... or even if ep0 is not yet configured. > > It's _very_ important that 'setmac ep0 blah' is called _after_ ep0 is > down, and ep0 can be down only _after_ pccard has done is job (as long > i've understood this process). > > With your solution, it seems that, when setmac is called, ep0 is not > yet configured (/var/log/messages says 'ep0: no such device'). > > Anyway, thanks for your help, i'm still searching... > -- ISIS/STA, T.P.270, Joint Research Centre, 21020 Ispra, Italy To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message