[oi-dev] Broadcom BCM4312 on OpenIndiana

Jean-Pierre jean-pierre.andre at wanadoo.fr
Thu Apr 4 07:11:05 UTC 2013


Hi Jim,

Jim Klimov wrote:
> Hello Jean-Pierre,
>
> Sorry it took me a while to test the new version, here goes:
>
> On 2013-03-26 19:18, Jean-Pierre wrote:
>> Hi,
>>
>> I have uploaded the source code of a new beta version of
>> the Windows Wireless emulator on :
>> http://jp-andre.pagesperso-orange.fr/ndis.1.3.beta6.tar.gz
>
> I gave this a shot and it builds on my box with gcc-4.4.4-il now,
> although with several warnings. Linked with the older bcmwl drivers
> (which you use for your card) the NDIS driver even loads cleanly,

That is a significant progress.

> both with your ndisapi and with a freshly-built one. However, as
> before, this driver version does not support my own card.
>
> Other bcmwl* drivers that I tried to feed it, that are supposed
> to support my card, did not modload, due to not finding several
> symbols (below). One driver did not get processed into a driver.s
> file (though it did before, when I tried with stock gcc-3.4.3).
> I can't say if it was GCC's fault, or if you changed something in
> ndiscvt to such effect, but the curious fact is there.

I did make changes to ndiscvt and I improved a few checks,
but I am not aware of any regression.

> One driver's missing symbols:
>
> Apr 4 02:47:19 nbofh genunix: [ID 826211 kern.notice] 'IoWMIOpenBlock'
> Apr 4 02:47:19 nbofh genunix: [ID 826211 kern.notice] 'ExFreePoolWithTag'
> Apr 4 02:47:19 nbofh genunix: [ID 826211 kern.notice] 'DbgPrint'
> Apr 4 02:47:19 nbofh genunix: [ID 826211 kern.notice] 'MmMapIoSpace'
> Apr 4 02:47:19 nbofh genunix: [ID 826211 kern.notice] 'IoWMIQueryAllData'
> Apr 4 02:47:19 nbofh genunix: [ID 826211 kern.notice]
> 'RtlInitUnicodeString'
> Apr 4 02:47:19 nbofh genunix: [ID 826211 kern.notice] 'MmUnmapIoSpace'
> Apr 4 02:47:19 nbofh genunix: [ID 472681 kern.notice] WARNING: mod_load:
> cannot load module 'bcmndis'

These missing symbols are functions provided by Windows
and needed by the driver, but which are not emulated by ndis.
I have not enough knowledge to emulate the WMI ones.

> Another one's are different:
>
> Apr 4 02:52:20 nbofh genunix: [ID 826211 kern.notice]
> 'IoUnregisterPlugPlayNotification'
> Apr 4 02:52:20 nbofh genunix: [ID 826211 kern.notice] 'ExFreePoolWithTag'
> Apr 4 02:52:20 nbofh genunix: [ID 826211 kern.notice] 'DbgPrint'
> Apr 4 02:52:20 nbofh genunix: [ID 826211 kern.notice]
> 'ZwQueryInformationFile'
> Apr 4 02:52:20 nbofh genunix: [ID 826211 kern.notice] 'ZwReadFile'
> Apr 4 02:52:20 nbofh genunix: [ID 826211 kern.notice]
> 'RtlInitUnicodeString'
> Apr 4 02:52:20 nbofh genunix: [ID 826211 kern.notice] 'ZwCreateFile'
> Apr 4 02:52:20 nbofh genunix: [ID 472681 kern.notice] WARNING: mod_load:
> cannot load module 'bcmndis'

These missing ones are easier to emulate, though I am not
sure whether reading a file is allowed within an OpenIndiana
driver. The required file may have to be linked to the driver
at the building stage.

Can you please where I can get this driver from, so that
I can try myself ?

> I did not yet dig any further, i.e. if there is anywhere to snatch
> implementations from (BSD?) With misbehaving gani/rge and missing
> wifi, my notebook is essentially without networking when booted in
> OI, at least for most of the boots. Rarely the wired net happens to
> work, most often it does not. So it is not very easy to test such
> things out and try to get code from internet ;)

I know this too well : I have three computers.
On the first one, OpenIndiana cannot boot (some problem related
to the BIOS),
on the second one, OpenIndiana cannot access the internal drive,
on the third one, I had no network access until recently.

And no much hope for improvements...

Regards

Jean-Pierre






More information about the oi-dev mailing list