Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 Jul 2006 20:28:35 +0200
From:      =?UTF-8?B?RXJpayBOw7hyZ2FhcmQ=?= <norgaard@locolomo.org>
To:        Don Wilde <Don@Silver-Lynx.com>,  freebsd-mobile@freebsd.org
Subject:   Problem (maybe a solution) loading iwi firmware: firmware_get: failed to load firmware image iwi_bss
Message-ID:  <44C905D3.4040208@locolomo.org>
In-Reply-To: <eefa2c8b0607271007w1cd17408q4a08d2a63169d1f5@mail.gmail.com>
References:  <44C8D7FE.4080108@locolomo.org> <eefa2c8b0607271007w1cd17408q4a08d2a63169d1f5@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
Hi:

This question has been on various lists lately, maybe I'm on the right
track:

I looked at the source code and tried to track down what it attempts to
load. It seems that it doesn't find the firmware to load. There are two
things I found:

1) it seems it searches paths in kern.module_path, which by default is
/boot/kernel;boot/modules. But I had my firmware installed in
/boot/firmware.

2) it seems that modules that load a firmware blob are linked to this in
the linker.hints file which must also reside in module_path I suppose.

Getting the kernel modules, seems to require net/iwi-firmware-kmod, but
this does not install the firmware, it install kernel modules and the
linker.hints, although the firmware is distributed with the source.

The linker.hints file seems to be defined in the makefiles for each
kernel module, ie. in iwi_bss/Makefile you have:

KMOD= iwi_bss
FIRMWS= iwi_bss.fw:iwi_bss:300
.include <bsd.kmod.mk>

Getting the firmware seems to require net/iwi-firmware which installs
the firmware in /boot/firmware, but it seems further that filenames does
not match those in the hints file, instead of iwi_bss.fw it installs
iwi-bss.fw

So things don't match up.

A possible solution should then be: set kern.modules_path to include
/boot/firmware or copy the firmware to /boot/modules. Make sure to link
firmware files to the filename in linker.hints. That is replace '-' with
'_'.

I haven't had success with this yet - but maybe I've been messing too
much around now, need a break.

There is some development, I'm not sure if it has been imported into the
source tree yet,

  http://people.freebsd.org/~mlaier/new_iwi/

There are two files of interest:

  20060315.both.tgz 20060418.both_nofw.tgz

The former includes the firmware and seems to let you create the
linker.hints by editing the Makefiles, but beware that the firmware is
installed under yet new names.

The second is AFAIK the latest kernel modules.

Has anyone succeeded in getting this to the end and get iwi firmware to
load?

Thanks, Erik
-- 
Ph: +34.666334818                      web: http://www.locolomo.org
X.509 Certificate: http://www.locolomo.org/crt/8D03551FFCE04F0C.crt
Key ID: 69:79:B8:2C:E3:8F:E7:BE:5D:C3:C3:B1:74:62:B8:3F:9F:1F:69:B9

[-- Attachment #2 --]
0	*H
010	+0	*H
00נ	UO0
	*H
010	UES10U
Daemon Security10UCertificate Authority10UCertificate Authority1$0"	*H
	ca@daemonsecurity.com1
0U00
060420131650Z
070420131650Z0b10	UES10U
LocoLomo.Org10U
Erik Norgaard1$0"	*H
	norgaard@locolomo.org0"0
	*H
0
>NPLGMK	$^ha~	Xם-`Y^P
oœtƥ*\.e_!2\j]m)B>v+z2VfDѝR}Tc&E/#_.9DŽ9÷(3	?ԝWu%)vŅͯTr)FA+(R6ƶw
{9zP_Q^zpk/jXMYn0j0U00U0Uiy,]ñtb?i0U#0Àa&WtЕna=⥡010	UES10U
Daemon Security10UCertificate Authority10UCertificate Authority1$0"	*H
	ca@daemonsecurity.com1
0U0	UO0 U0norgaard@locolomo.org08U10/0-+)'http://www.daemonsecurity.com/ca/ds.crl0
	*H
ǟ@&<mWc4LS@G4['s5\\VN^`I
&>"@>"[xq89`@sG;LP]ƜTT|sGٶ2Ҋctx?'ҭ$0r;2#ba"%$B
p%rԆU
ì>!73ȁg6_I.2Ġ!AaAmF
G'bךuf>-dxqq09#XOSk+FuyTvr+p!!}n.6NH'5+9`CVĩ;7RߔRKIpv&S@P`;%eƓxCuiL	Cb
Y,)x:3ѓGjRe
EtPҰk<
c\;9pT9/K̩ LHzMMuʔ(dkskj<ds08PxZ
NWC00נ	UO0
	*H
010	UES10U
Daemon Security10UCertificate Authority10UCertificate Authority1$0"	*H
	ca@daemonsecurity.com1
0U00
060420131650Z
070420131650Z0b10	UES10U
LocoLomo.Org10U
Erik Norgaard1$0"	*H
	norgaard@locolomo.org0"0
	*H
0
>NPLGMK	$^ha~	Xם-`Y^P
oœtƥ*\.e_!2\j]m)B>v+z2VfDѝR}Tc&E/#_.9DŽ9÷(3	?ԝWu%)vŅͯTr)FA+(R6ƶw
{9zP_Q^zpk/jXMYn0j0U00U0Uiy,]ñtb?i0U#0Àa&WtЕna=⥡010	UES10U
Daemon Security10UCertificate Authority10UCertificate Authority1$0"	*H
	ca@daemonsecurity.com1
0U0	UO0 U0norgaard@locolomo.org08U10/0-+)'http://www.daemonsecurity.com/ca/ds.crl0
	*H
ǟ@&<mWc4LS@G4['s5\\VN^`I
&>"@>"[xq89`@sG;LP]ƜTT|sGٶ2Ҋctx?'ҭ$0r;2#ba"%$B
p%rԆU
ì>!73ȁg6_I.2Ġ!AaAmF
G'bךuf>-dxqq09#XOSk+FuyTvr+p!!}n.6NH'5+9`CVĩ;7RߔRKIpv&S@P`;%eƓxCuiL	Cb
Y,)x:3ѓGjRe
EtPҰk<
c\;9pT9/K̩ LHzMMuʔ(dkskj<ds08PxZ
NWC100010	UES10U
Daemon Security10UCertificate Authority10UCertificate Authority1$0"	*H
	ca@daemonsecurity.com1
0U0	UO0	+)0	*H
	1	*H
0	*H
	1
060727182835Z0#	*H
	1EV67~i} g0R	*H
	1E0C0
*H
0*H
0
*H
@0+0
*H
(0	+710010	UES10U
Daemon Security10UCertificate Authority10UCertificate Authority1$0"	*H
	ca@daemonsecurity.com1
0U0	UO0*H
	1010	UES10U
Daemon Security10UCertificate Authority10UCertificate Authority1$0"	*H
	ca@daemonsecurity.com1
0U0	UO0
	*H
,h)@Ux{(
$ګTTfDev/`W)3T^̏tgD&hQ>hH?v]5mO#y41]
Ogo;nezmXbQ$?_OĚ)qz&U\-f 6:Fy&Rz#ʨ؞>kOڂ\ڶ-Z@yQ`j,$%mK}]Χ~Bd

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?44C905D3.4040208>