From owner-freebsd-wireless@FreeBSD.ORG Sat Dec 17 23:58:20 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D7C4A1065670 for ; Sat, 17 Dec 2011 23:58:20 +0000 (UTC) (envelope-from moonlightakkiy@yahoo.ca) Received: from nm24-vm0.bullet.mail.bf1.yahoo.com (nm24-vm0.bullet.mail.bf1.yahoo.com [98.139.213.161]) by mx1.freebsd.org (Postfix) with SMTP id 756328FC12 for ; Sat, 17 Dec 2011 23:58:20 +0000 (UTC) Received: from [98.139.212.144] by nm24.bullet.mail.bf1.yahoo.com with NNFMP; 17 Dec 2011 23:45:19 -0000 Received: from [98.139.211.205] by tm1.bullet.mail.bf1.yahoo.com with NNFMP; 17 Dec 2011 23:45:19 -0000 Received: from [127.0.0.1] by smtp214.mail.bf1.yahoo.com with NNFMP; 17 Dec 2011 23:45:19 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.ca; s=s1024; t=1324165519; bh=2kMjneHIiKFqzJ7on+1itq43YLNdH9V28MpuNmX/nBg=; h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:Received:Received:MIME-Version:Received:Received:In-Reply-To:References:Date:Message-ID:Subject:From:To:Cc:Content-Type; b=zPW2AgccKWeNpsfkGpWKaL9CGFZoJp+azJ2B/9yB2KzxcRr+ukwoz2G+DxzzWwQvTbdgHru/q4V1ORmgB2XgxnleLpitvFMrKDFHusTn5Fg797ba2BzPHK0UIwRsGlnM4TENy21/1rHbo6UnfMZpSderjgE2Idw32PAmB5L5/3I= X-Yahoo-Newman-Id: 219821.111.bm@smtp214.mail.bf1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: cOIEpAAVM1lt_GuMGdGPj3TLKQr1GLoDA8MNj5E3fQRnOe7 80N8_fjqGsBddClLKWoMklv6ms7JmL976IgOShBfn3Xpgxf7ZzTJenNR8Dth 24T1hAcdFWmzDGFhGqHmM5vrQRsmQx2YCNWTt0YmA2HwXXc.KYsdz.ofkBik Wyr.iU8yiyqZp9oy2AL1LtRpgywpZp5eqEXR4iX_x9abmMUNQVywdLdT3l5e eE5DdVWtzsAinET.DII2vs.sl1k0x6pd2y8Q1rc2wRt5sKgasZLRTfdsiDHu i2xlEDS_COHfj2EfMYV.jNRmXWNT129On7HxKY2zsVu1ihmo_ozI2AKsjbtQ eT7AByqtSm9EZnoVUFC6pLd.ZR5ulcDslvWTvLbEkk2TbyMZW0JxcQbB.oXX HlL7Zb6I_Q.IiAjKbVxLPPsXZ X-Yahoo-SMTP: Xr6qjFWswBAEmd20sAvB4Q3keqXvXsIH9TjJ Received: from mail-iy0-f182.google.com (moonlightakkiy@209.85.210.182 with plain) by smtp214.mail.bf1.yahoo.com with SMTP; 17 Dec 2011 15:45:19 -0800 PST Received: by iadj38 with SMTP id j38so3577368iad.13 for ; Sat, 17 Dec 2011 15:45:18 -0800 (PST) MIME-Version: 1.0 Received: by 10.50.181.136 with SMTP id dw8mr17914568igc.71.1324165518735; Sat, 17 Dec 2011 15:45:18 -0800 (PST) Received: by 10.231.190.81 with HTTP; Sat, 17 Dec 2011 15:45:18 -0800 (PST) In-Reply-To: <201112171411.05872.bschmidt@freebsd.org> References: <201112171258.56891.erichfreebsdlist@ovitrap.com> <201112171411.05872.bschmidt@freebsd.org> Date: Sat, 17 Dec 2011 16:45:18 -0700 Message-ID: From: PseudoCylon To: Bernhard Schmidt Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless@freebsd.org Subject: Re: Zyxel NWD210N not accepted at boot time but after plugging it in again X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Dec 2011 23:58:20 -0000 On Sat, Dec 17, 2011 at 6:11 AM, Bernhard Schmidt wrote: > On Saturday 17 December 2011 06:58:56 Erich Dollansky wrote: >> Hi, >> >> I have a simple problem with this Zyxel wireless adaptor. I am not able to use it directly after a reboot. The interface becomes only available after I unplug it and plug it in again. >> >> I believe that this is the crucial message: >> >> run0: could not load 8051 microcode >> >> As I have said, it all works as expected after I plugged it in again. >> >> Here is my dmesg with the messages regarding the device. The first part is from the boot and the remaining is from the replugging. >> >> run0: <1.0> on usbus1 >> run0: MAC/BBP RT2860 (rev 0x0102), RF RT2820 (MIMO 2T2R), address 00:19:cb:85:aa:76 >> runfw: root not mounted yet, no way to load image >> run0: failed loadfirmware of file runfw >> run0: could not load 8051 microcode >> device_attach: run0 attach returned 6 >> run0: <1.0> on usbus1 >> run0: MAC/BBP RT2860 (rev 0x0102), RF RT2820 (MIMO 2T2R), address 00:19:cb:85:aa:76 >> run0: firmware RT2870 loaded >> >> I think that the explanation is so simple but I do not see it. > > run(4) tries to load the firmware on attach at which point the root > filesystem isn't yet mounted. Actually I think the prefered behaviour > is to load it during init, not sure this is possible for run(4) > though. Someone should check this. :) > mmm... It seems "someone" is me. At the quick look, the firmware could be loaded during the init. Give me a few days, I will try to change. > As a workaround you can add runfw_load="YES" to /boot/loader.conf > Yep. This should load the firmware during the boot. AK