Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: NetBSD on the Lenovo IdeaPad S10 ?



> A word of clarification: The firmware tarball must be extracted in
> /libdata/firmware/bwi (or $DIR/bwi for any DIR in the system firwmare
> path list).  Currently there is a bug in my port which makes the
> kernel panic if it doesn't find the firmware.  Maybe I'll fix that
> (and another similar minor mistake) tonight.

Thanks. No kernel panic for me, just got:

bwi0: firmware_open failed on v3/ucode5.fw
bwi0: firmware_open failed on v3/ucode5.fw

I didn't realize "v3" was needed to. So created that directory. And moved 
the files into it.

So I have:

bwi0 at pci2 dev 2 function 0
bwi0: interrupting at ioapic0 pin 20
bwi_sysctlattach: sysctl_createv failed (rc = 0)
bwi0: BBP id 0x4318, BBP rev 0x2, BBP pkg 2
bwi0: MAC: rev 9
bwi0: PHY type 2, rev 7, ver 3
bwi0: RF manu 0x17f, type 0x2050, rev 8
bwi0: invalid antenna gain in sprom
bwi0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
bwi0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 
24Mbps 36Mbps 48Mbps 54Mbps

Not verbose, so this is:

vendor 0x14e4 product 0x4318 (miscellaneous network, revision 0x02) at pci
which is BCM4318 [AirForce One 54g] 802.11g 

After ifconfig:

bwi0: firmware rev 0x0127, patch level 0x000e

$ ifconfig bwi0                                                                
bwi0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        ssid 5FYA8 nwkey *****
        powersave off
        bssid 00:18:01:e0:8a:57 chan 9
        address: 00:14:a5:74:1e:49
        media: IEEE802.11 autoselect (OFDM36 mode 11g)
        status: active
        inet 192.168.1.6 netmask 0xffffff00 broadcast 192.168.1.255
        inet6 fe80::214:a5ff:fe74:1e49%bwi0 prefixlen 64 scopeid 0x2

It works good. Thanks

I made a few changes to your patch:

../../../../dev/ic/bwi.c: In function 'bwi_mac_fw_image_alloc':
../../../../dev/ic/bwi.c:1942: warning: format '%u' expects type 'unsigned 
int', but argument 5 has type 'long unsigned int'
../../../../dev/ic/bwi.c: In function 'bwi_mac_fw_load':
../../../../dev/ic/bwi.c:2004: warning: format '%zx' expects type 'size_t', but 
argument 4 has type 'int'
../../../../dev/ic/bwi.c:2021: warning: format '%zx' expects type 'size_t', but 
argument 4 has type 'int'

So I changed that %u to %lu. And changed the fw_len to (size_t)fw_len.
I am on amd64 so maybe there is a more portable way for that.

Thank you very much!


Home | Main Index | Thread Index | Old Index