Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Tue 21 Oct 2014, 11:37
All times are UTC - 4
 Forum index » Advanced Topics » Hardware » Networking » Wireless
ndiswrapper written in C to replace Perl script
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 1 of 1 Posts_count  
Author Message
BarryK
Puppy Master


Joined: 09 May 2005
Posts: 7047
Location: Perth, Western Australia

PostPosted: Thu 19 Jan 2012, 18:25    Post_subject:  ndiswrapper written in C to replace Perl script  

I am still on holiday, and don't have the hardware to test this. Help requested!

In this thread, PANZERKOPF posted an ndiswrapper.c that was obtained from the GeexBox Linux project:

http://murga-linux.com/puppy/viewtopic.php?t=51478&start=405

I am looking again at being able to build Puppy distros without Perl. Currently, we have a cutdown Perl in all puppies, needed by ndiswrapper, pplog, one of the partview variants, don't know if anything else.

The ndiswrapper package has /usr/sbin/ndiswrapper a Perl script. This was the original reason that we were forced to introduce Perl into Puppy.

Note, if we take out cutdown-Perl, the full Perl will still be in the 'devx' SFS, as required for compiling source packages.

I would like to know if the ndiswrapper executable written in C, that PANZERKOPF found, works. Could you test it with your hardware?
There is one issue apparently, the *.inf file must not have multi-byte characters (unicode) -- it would be good if the program could detect that rather than just fail. But, are there any such .inf files out there?

The compiled binary is attached. Gunzip it, make sure the executable flags are set, and place it at /usr/sbin. Remove prior files at /etc/ndiswrapper then try you wireless hardware.

Feedback will be greatly appreciated!
ndiswrapper.gz
Description 
gz

 Download 
Filename  ndiswrapper.gz 
Filesize  8.83 KB 
Downloaded  243 Time(s) 

_________________
http://bkhome.org/news/
Back to top
View user's profile Send_private_message Visit_website 
Keef


Joined: 20 Dec 2007
Posts: 633
Location: Staffordshire

PostPosted: Thu 19 Jan 2012, 19:20    Post_subject:  

Just tried this in SolidPup 5.1.1.

I have a Netgear USB WG111T which I had already set up.
Copied the new file, and deleted /etc/ndiswrapper, then rebooted.
Re ran the Network Wizard, but it said no interface had been found. Having experienced this in the past, I ignored it and rebooted.
USB dongle was activated, and got a connection straight away.

Out of interest, also tried it with MeanPup, and this worked straight away. Networking has to be setup with a script after bootup, so the wireless adapter was not already active when I made the changes, which may explain the slight problem above.
Back to top
View user's profile Send_private_message 
PANZERKOPF

Joined: 16 Dec 2009
Posts: 280
Location: Earth

PostPosted: Fri 20 Jan 2012, 16:08    Post_subject: Re: ndiswrapper written in C to replace Perl script  

BarryK wrote:

I would like to know if the ndiswrapper executable written in C, that PANZERKOPF found, works. Could you test it with your hardware?

Some time ago I tested it with three cards:
1) Zyxel G320H (Hasn,t native Linux driver)
2) Asus wl-138Gv2 (BCM 4318 Chip. Has native driver, unloaded before testing)
3) Forgotten................ Sad seems it had Broadcom's chip.
They worked without any issues.

_________________
SUUM CUIQUE.
Back to top
View user's profile Send_private_message 
Plume

Joined: 12 May 2008
Posts: 34

PostPosted: Sat 21 Jan 2012, 05:53    Post_subject:  

Tried it with lupu 5.25.
WiFi card detected as
Quote:
Marvell Technology Group Ltd. 88w8335 [Libertas] 802.11b/g Wireless (rev 03)

net-setup.sh fails
Quote:
# net-setup.sh
OK
mrv8335
Usage: ndiswrapper OPTION [-o]

Manage ndis drivers for ndiswrapper.
-i inffile Install driver described by 'inffile'
Optionally with:
-a Use alternate output format
-e driver Remove 'driver'

Optional:
-o output_dir Use alternate install directory 'output_dir'
(default: '/etc/ndiswrapper')
WARNING: Deprecated config file /etc/modprobe.conf, all config files belong into /etc/modprobe.d/.

But manual connexion is successfull (using it now).
Back to top
View user's profile Send_private_message 
technosaurus


Joined: 18 May 2008
Posts: 4353

PostPosted: Sat 21 Jan 2012, 21:22    Post_subject:  

Ok, I started rewriting it in shell script, but my understanding of perl is weak. If someone could document the ndiswrapper perl script as if it were being used to teach a college course in perl, I could have it done in about a day or so. (probably... I don't own any devices to test it.)

Any perl users out there?

_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send_private_message 
technosaurus


Joined: 18 May 2008
Posts: 4353

PostPosted: Wed 25 Jan 2012, 01:40    Post_subject:  

I havent looked at the c code, but the perl code thinks you are using a 2.4 kernel if you are using a 3.x kernel by how it does the test... the check can just be removed
_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send_private_message 
Display_posts:   Sort by:   
Page 1 of 1 Posts_count  
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » Advanced Topics » Hardware » Networking » Wireless
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0593s ][ Queries: 12 (0.0071s) ][ GZIP on ]