Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED ]Where is /lib/firmware?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
ecce
Tux's lil' helper
Tux's lil' helper


Joined: 22 Oct 2005
Posts: 92

PostPosted: Wed Nov 14, 2007 10:14 am    Post subject: [SOLVED ]Where is /lib/firmware? Reply with quote

I'm trying to get the Intel 4965 wifi working. I've followed instruction on http://www.intellinuxwireless.org/index.php?p=iwlwifi&n=HOWTO-iwlwifi and installed the mac80211 subsystem without difficulties. The problems begins here:

Code:
cp iwlwifi-4965-ucode-4.44.17/iwlwifi-4965.ucode /lib/firmware/


I don't have that destination directory. The install instructions provides instructions for finding the firmware directory (it seems to diff between dists):

Code:
% grep \"^FIRMWARE_DIR\" /etc/hotplug/firmware.agent


I've tried that, but I don't have a hotplug dir in /etc. Is far as I can see hotplug is built in the kernel. Accordning to .config I have

Code:
CONFIG_HOTPLUG=y
CONFIG_FW_LOADER=y


I use 2.6.23.1 vanilla kernel (with mac8011 patch). Need help...


Last edited by ecce on Fri Nov 16, 2007 1:04 pm; edited 3 times in total
Back to top
View user's profile Send private message
JeliJami
Veteran
Veteran


Joined: 17 Jan 2006
Posts: 1086
Location: Belgium

PostPosted: Wed Nov 14, 2007 10:24 am    Post subject: Reply with quote

On my system, /lib/firmware is created by the iwl3945-ucode ebuild:
Code:
$ equery b /lib/firmware
[ Searching for file(s) /lib/firmware in *... ]
net-wireless/iwl3945-ucode-2.14.4 (/lib/firmware)

I guess the iwl4965-ucode ebuild would do the same.

If you install yourself, just create that directory.
_________________
Unanswered Post Initiative | Search | FAQ
Former username: davjel
Back to top
View user's profile Send private message
VinzC
Watchman
Watchman


Joined: 17 Apr 2004
Posts: 5098
Location: Dark side of the mood

PostPosted: Wed Nov 14, 2007 10:25 am    Post subject: Reply with quote

I believe the /lib/firmware directory is not created until you emerge a package, which contains a firmware, like ipw3945, for instance.
_________________
Gentoo addict: tomorrow I quit, I promise!... Just one more emerge...
1739!
Back to top
View user's profile Send private message
ecce
Tux's lil' helper
Tux's lil' helper


Joined: 22 Oct 2005
Posts: 92

PostPosted: Wed Nov 14, 2007 10:51 am    Post subject: Reply with quote

Since I can't merge any package for 4965 (masked), should I create that directory manually and just continue?

Another thing: Since hotplug init scripts are now gone ("dead and buried"), emerging coldplug seems to be the solution. However coldplug conflicts with >=udev-089 (I have 115). Is the only solution to do a downgrade of udev?
Back to top
View user's profile Send private message
ianw1974
Guru
Guru


Joined: 18 Oct 2006
Posts: 387
Location: UK and Poland

PostPosted: Wed Nov 14, 2007 11:11 am    Post subject: Reply with quote

Just unmask the package and then install it, that would be far simpler. Then no need to manually download and install the packages how you are trying right now. I have IPW 3945, but I've used both ipw3945 and iwl3945 drivers, and it installs the iwl4956 as well even if I don't need it. I unmasked the packages, and it's easier so if updates come in the future, your packages will upgrade as well.
Back to top
View user's profile Send private message
JeliJami
Veteran
Veteran


Joined: 17 Jan 2006
Posts: 1086
Location: Belgium

PostPosted: Wed Nov 14, 2007 11:39 am    Post subject: Reply with quote

ianw1974 wrote:
Just unmask the package and then install it, that would be far simpler. Then no need to manually download and install the packages how you are trying right now.

That's the Gentoo way ;)
Quote:
I have IPW 3945, but I've used both ipw3945 and iwl3945 drivers, and it installs the iwl4956 as well even if I don't need it.

emerge net-wireless/iwlwifi with the correct USE flags:
Code:
$ emerge -pv iwlwifi
[ebuild   R   ] net-wireless/iwlwifi-1.0.0_p1  USE="ipw3945 -ipw4965" 213 kB

@esse: I guess for you, that would be reversed: -ipw3945 ipw4965
Quote:
I unmasked the packages, and it's easier so if updates come in the future, your packages will upgrade as well.

But if you install manually, you can easily upgrade before a new version hits portage!
_________________
Unanswered Post Initiative | Search | FAQ
Former username: davjel
Back to top
View user's profile Send private message
ianw1974
Guru
Guru


Joined: 18 Oct 2006
Posts: 387
Location: UK and Poland

PostPosted: Wed Nov 14, 2007 6:19 pm    Post subject: Reply with quote

davjel wrote:
emerge net-wireless/iwlwifi with the correct USE flags:
Code:
$ emerge -pv iwlwifi
[ebuild   R   ] net-wireless/iwlwifi-1.0.0_p1  USE="ipw3945 -ipw4965" 213 kB


So true, I should have checked that :)

Quote:
But if you install manually, you can easily upgrade before a new version hits portage!


True, but I like simplicity. I can wait for some updates. Although I did add a portage_overlay today because I needed a later ebuild for 915resolution, else I would have left this too if I had to do too much manual stuff. :)
Back to top
View user's profile Send private message
ecce
Tux's lil' helper
Tux's lil' helper


Joined: 22 Oct 2005
Posts: 92

PostPosted: Thu Nov 15, 2007 10:41 am    Post subject: Reply with quote

Package is masked by package.mask. I tried:

Code:
echo "net-wireless/iwlwifi" >> /etc/portage/package.unmask


Isn't that how you unmask hardmasked packages? Doesn't work for me.
Back to top
View user's profile Send private message
JeliJami
Veteran
Veteran


Joined: 17 Jan 2006
Posts: 1086
Location: Belgium

PostPosted: Thu Nov 15, 2007 10:44 am    Post subject: Reply with quote

that should work
I have:
Code:
$ fgrep iwlwifi /etc/portage/ -r
/etc/portage/package.keywords:=net-wireless/iwlwifi-1.0.0_p1
/etc/portage/package.unmask:net-wireless/iwlwifi
/etc/portage/package.use:net-wireless/iwlwifi ipw3945


[edit]strange; i have no ~amd64 set in my keywords file !?[/edit]
_________________
Unanswered Post Initiative | Search | FAQ
Former username: davjel
Back to top
View user's profile Send private message
tylerwylie
Guru
Guru


Joined: 19 Sep 2004
Posts: 458
Location: /US/Georgia/Atlanta

PostPosted: Thu Nov 15, 2007 10:57 am    Post subject: Reply with quote

davjel wrote:
that should work
I have:
Code:
$ fgrep iwlwifi /etc/portage/ -r
/etc/portage/package.keywords:=net-wireless/iwlwifi-1.0.0_p1
/etc/portage/package.unmask:net-wireless/iwlwifi
/etc/portage/package.use:net-wireless/iwlwifi ipw3945


[edit]strange; i have no ~amd64 set in my keywords file !?[/edit]
If you place a package in /etc/portage/package.keywords it automatically assumes ~arch now.
Back to top
View user's profile Send private message
ecce
Tux's lil' helper
Tux's lil' helper


Joined: 22 Oct 2005
Posts: 92

PostPosted: Thu Nov 15, 2007 11:26 am    Post subject: Reply with quote

I have no package.unmask file. I created one, but it doesn't seem to matter. emerge doesn't seem to look in that file at all.
Back to top
View user's profile Send private message
JeliJami
Veteran
Veteran


Joined: 17 Jan 2006
Posts: 1086
Location: Belgium

PostPosted: Thu Nov 15, 2007 11:30 am    Post subject: Reply with quote

do you have net-wireless/iwlwifi set in both package.unmask and package.keywords?

show us the output of
Code:
emerge -av iwlwifi

_________________
Unanswered Post Initiative | Search | FAQ
Former username: davjel
Back to top
View user's profile Send private message
ianw1974
Guru
Guru


Joined: 18 Oct 2006
Posts: 387
Location: UK and Poland

PostPosted: Thu Nov 15, 2007 12:59 pm    Post subject: Reply with quote

package.keywords is if it's masked because of the ~x86 parameter. package.unmask is where you put them if it's masked out for some other reason. I've sometimes had to put the package in both, as it was masked for ~x86 and the other as well.

Here are mine for the iwlwifi:

Code:
ian@esprit ~ $ cat /etc/portage/package.keywords
net-wireless/iwlwifi
net-wireless/iwl3945-ucode
net-wireless/iwl4965-ucode

ian@esprit ~ $ cat /etc/portage/package.unmask
net-wireless/iwlwifi
net-wireless/iwl3945-ucode
net-wireless/iwl4965-ucode


and that works for me.
Back to top
View user's profile Send private message
ecce
Tux's lil' helper
Tux's lil' helper


Joined: 22 Oct 2005
Posts: 92

PostPosted: Fri Nov 16, 2007 1:03 pm    Post subject: Reply with quote

Got it! It was masked by both package.mask and ~x86 keyword. I did:

Code:
echo "=net-wireless/iwl4965-ucode-4.44.1.18" >> /etc/portage/package.keyword
echo "=net-wireless/iwl4965-ucode-4.44.1.18" >> /etc/portage/package.unmask


(earlier I added package iwlwifi to those files)

then things worked fine! Thanks for the help!
Back to top
View user's profile Send private message
ianw1974
Guru
Guru


Joined: 18 Oct 2006
Posts: 387
Location: UK and Poland

PostPosted: Fri Nov 16, 2007 7:58 pm    Post subject: Reply with quote

The way you've done it, it won't allow upgrades. Because you've got the physical package versioning as well. If it just had the category/packagename like mine, it will upgrade the packages when a new one becomes available in portage.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum