b43-dev.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: grarpamp <grarpamp@gmail.com>
To: b43-dev@lists.infradead.org
Subject: Need to match driver to microcode?
Date: Thu, 6 Feb 2014 03:19:04 -0500	[thread overview]
Message-ID: <CAD2Ti29in5Y5PgWLKaWPJu1hUKYgYWi2a0cWORXqaFd8Y_XNRg@mail.gmail.com> (raw)
In-Reply-To: <CACna6rwXrua5-55+T=y+NACVnXkwrEEVg-A-UK=x6Pk5W9-EGQ@mail.gmail.com>

On Thu, Feb 6, 2014 at 1:10 AM, Rafa? Mi?ecki <zajec5@gmail.com> wrote:
>> How does something like '6.30.102.9 (r366174)' on the wrapper
>> relate to its corresponding internal '784.2'? What are those
>> strings each describing?
>
> Broadcom's closed source driver embeds firmware in the driver. They
> don't request it from the user space (ex. from /lib/firmware/).
> However they develop driver and firmware independently, so they use
> different numbering for them.
>
> You can't really say what firmware version is embedded in the driver
> until you load this firmware to the WiFi card and read the version
> back.
>
> What we do is downloading closed source driver (that was compiled for
> some completely different system/architecture) and extract firmware
> from it (which is a tiny part of the total size). We extract it to the
> /lib/firmware/ and then b43 can use it.

I should say i understand Broadcom makes a closed source
linux driver:
http://www.broadcom.com/support/802.11/linux_sta.php
which I don't think includes the card firmware, but I'll
try to unpack it again and look closer. Even if it does
i don't see any reference on b43 site to fw ever being
cut out of it and used with b43/insmod, only to blobs
from GPL being used that way.

And I know the firmware the open b43 driver uses comes
from unpacking GPL releases from people like Linksys.

What I didn't understand was if I run strings on wl_apsta.o
I get the first number, and b43 prints the second number
when loading the firmware. I didn't get what those different
numbers in the same .o/.fw file represented. And I'm
not sure if the first number is present in the loaded firmware
to also be printed on load.

It sounds like the 784.2 is Broadcom microcode rev
and the 6.30.102.9 (rN) is their driver rev (which seemed
a bit odd to find the latter in wl_apsta.o
which i don't think functions as a driver to Linksys,
only as a firmware blob). It could be just a build chain
note or artifact. I suppose apsta could be a driver
object too, but haven't looked that far into the GPL kits.

Now I get what those two numbers are, driver and firmware,
respectively I think.

> In the past there were only 2 noticeable changes in the driver <->
> firmware communication. It results in some 3 different code paths in
> the b43 (we didn't drop support for the old firmwares yet).

Ok, so it sounds like it's not necessarily always just matter of
adding a newer firmware like 7mm.nnn to fwcutter_list.h and
then insmod for b43. There could be other things todo there.

  reply	other threads:[~2014-02-06  8:19 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-05 22:58 Need to match driver to microcode? grarpamp
2014-02-05 23:57 ` Larry Finger
2014-02-06  0:54   ` grarpamp
2014-02-06  1:50     ` Larry Finger
2014-02-06  4:34       ` grarpamp
2014-02-06  6:10         ` Rafał Miłecki
2014-02-06  8:19           ` grarpamp [this message]
2014-02-06  8:47             ` Rafał Miłecki
2014-02-06  7:22         ` Larry Finger
2014-02-06  9:01           ` grarpamp
2014-02-06 16:54             ` Larry Finger
2014-02-06 20:02               ` grarpamp
2014-02-06 20:19                 ` Chris Adams

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAD2Ti29in5Y5PgWLKaWPJu1hUKYgYWi2a0cWORXqaFd8Y_XNRg@mail.gmail.com \
    --to=grarpamp@gmail.com \
    --cc=b43-dev@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).