Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
A ndiswrapper question [Solved]
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
MishY
Tux's lil' helper
Tux's lil' helper


Joined: 18 Mar 2004
Posts: 147

PostPosted: Wed Mar 24, 2004 8:07 pm    Post subject: A ndiswrapper question [Solved] Reply with quote

Hi,

I am using ndiswrapper-0.6 and have successfully got my truemobile 1300 working also with acpi enabled in kernel.

Currently after every reboot I have to do the following:

modprobe ndiswrapper
iwconfig wlan0 essid default
ifconfig wlan0 up
dhcpcd wlan0

Is there anyway which I can have this done at boot time ?


Last edited by MishY on Fri Mar 26, 2004 4:33 am; edited 1 time in total
Back to top
View user's profile Send private message
Earthwings
Bodhisattva
Bodhisattva


Joined: 14 Apr 2003
Posts: 7753
Location: Germany

PostPosted: Wed Mar 24, 2004 9:50 pm    Post subject: Reply with quote

The ndiswrapper package has already prepared it for you. You've got to run ebuild ... config and edit /etc/modules.d/ndiswrapper. Do a "grep einfo <path-to-ndiswrapper-ebuild>" to find out how to do it in detail. Next edit /etc/conf.d/net and copy a net.wlan0 or net.eth0 or whatever to /etc/init.d and add it to the default runlevel.
Back to top
View user's profile Send private message
MishY
Tux's lil' helper
Tux's lil' helper


Joined: 18 Mar 2004
Posts: 147

PostPosted: Thu Mar 25, 2004 1:22 am    Post subject: Reply with quote

Thank you for your reply Earthwings.

I am a little confused still...

I have no ndiswrapper file in:

/etc/modules.d/

Weird :(
Back to top
View user's profile Send private message
latexer
Retired Dev
Retired Dev


Joined: 05 Mar 2003
Posts: 239
Location: NYC

PostPosted: Thu Mar 25, 2004 5:07 am    Post subject: Reply with quote

The ebuild for ndiswrapper includes the file in /etc/modules.d/

I just bumped the version inportage to 0.6 for everyone. It's still marked ~x86 for testing though. hth.
_________________
overlays - Use at your own risk. File bug reports on this stuff and i'll kick you in the junk. Ask me before asking upstream if these fail. I mean it. No, really.

#gentoo-dotnet on freenode
Back to top
View user's profile Send private message
MishY
Tux's lil' helper
Tux's lil' helper


Joined: 18 Mar 2004
Posts: 147

PostPosted: Thu Mar 25, 2004 7:17 am    Post subject: Reply with quote

Thanks latexer - I got this error though when trying to install it:

bash-2.05b# emerge ndiswrapper-0.6.ebuild
Calculating dependencies ...done!
>>> emerge (1 of 1) net-wireless/ndiswrapper-0.6 to /
>>> md5 src_uri ;-) ndiswrapper-0.6.tar.gz
>>> Unpacking source...
* /usr/src/linux is a symbolic link
* Determining the real directory of the Linux kernel source code
* Building for Linux 2.6.4-rc1 found in /usr/src/linux
>>> Unpacking ndiswrapper-0.6.tar.gz to /var/tmp/portage/ndiswrapper-0.6/work
>>> Source unpacked.
make -C driver
make[1]: Entering directory `/var/tmp/portage/ndiswrapper-0.6/work/ndiswrapper-0.6/driver'
make[1]: warning: jobserver unavailable: using -j1. Add `+' to parent make rule.
make -C //usr/src/linux SUBDIRS=/var/tmp/portage/ndiswrapper-0.6/work/ndiswrapper-0.6/driver DRV_VERSION=0.6 modules
make[2]: Entering directory `/usr/src/linux-2.6.4-rc1'
CHK include/linux/version.h
ACCESS DENIED open_wr: /usr/src/linux-2.6.4-rc1/include/linux/version.h.tmp
/bin/sh: line 1: include/linux/version.h.tmp: Permission denied
UPD include/linux/version.h
mv: cannot stat `include/linux/version.h.tmp': No such file or directory
make[2]: *** [include/linux/version.h] Error 1
make[2]: Leaving directory `/usr/src/linux-2.6.4-rc1'
make[1]: *** [default] Error 2
make[1]: Leaving directory `/var/tmp/portage/ndiswrapper-0.6/work/ndiswrapper-0.6/driver'
make: *** [all] Error 2

!!! ERROR: net-wireless/ndiswrapper-0.6 failed.
!!! Function src_compile, Line 40, Exitcode 2
!!! (no error message)

--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE = "/tmp/sandbox-net-wireless_-_ndiswrapper-0.6-4576.log"

open_wr: /usr/src/linux-2.6.4-rc1/include/linux/version.h.tmp
--------------------------------------------------------------------------------
bash-2.05b#
Back to top
View user's profile Send private message
Earthwings
Bodhisattva
Bodhisattva


Joined: 14 Apr 2003
Posts: 7753
Location: Germany

PostPosted: Thu Mar 25, 2004 9:05 am    Post subject: Reply with quote

You'll get that error for every package that uses the kernel-module eclass on 2.6 kernels. As a workaround it's possible to disable sandboxing in FEATURES - or wait some more days as latexer is working on a a new one I believe that will be released soon :)
Back to top
View user's profile Send private message
MishY
Tux's lil' helper
Tux's lil' helper


Joined: 18 Mar 2004
Posts: 147

PostPosted: Thu Mar 25, 2004 7:20 pm    Post subject: Reply with quote

Sorry to appear nubbish (only had Gentoo installed for 4days)

How do I change that setting in FEATURES ? Is that a command or file ?

Thanks for your help :)
Back to top
View user's profile Send private message
MishY
Tux's lil' helper
Tux's lil' helper


Joined: 18 Mar 2004
Posts: 147

PostPosted: Thu Mar 25, 2004 7:48 pm    Post subject: Reply with quote

ah got it :)

FEATURES="-*" emerge ndiswrapper-0.6.ebuild

Will see if this works ;)
Back to top
View user's profile Send private message
latexer
Retired Dev
Retired Dev


Joined: 05 Mar 2003
Posts: 239
Location: NYC

PostPosted: Thu Mar 25, 2004 7:50 pm    Post subject: Reply with quote

MishY wrote:
Sorry to appear nubbish (only had Gentoo installed for 4days)

How do I change that setting in FEATURES ? Is that a command or file ?

Thanks for your help :)



Code:
# FEATURES="-sandbox -usersandbox" ACCEPT_KEYWORDS='~x86' emerge ndiswrapper"


I just put 0.6 in, but i've not had time to update the /etc/modules.d/ndiswrapper to use the new ndiswrapper tool for things. that'll hopefully get fixed soon.
_________________
overlays - Use at your own risk. File bug reports on this stuff and i'll kick you in the junk. Ask me before asking upstream if these fail. I mean it. No, really.

#gentoo-dotnet on freenode
Back to top
View user's profile Send private message
MishY
Tux's lil' helper
Tux's lil' helper


Joined: 18 Mar 2004
Posts: 147

PostPosted: Fri Mar 26, 2004 4:33 am    Post subject: Reply with quote

I have managed to solve my original problem by using the scripts found here:

https://forums.gentoo.org/viewtopic.php?t=122435

Unfortunately I didn't have much like with the ndiswrapper-0.6 ebuild however I know its still being worked on so no matter :)

Thanks for your efforts guys :)
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