I-Appliance BBS
The Official Source for Internet Appliance Upgrades and Mods
Amazon Honor System Click Here to Pay Learn More
BBS Main List | Sign In | Sign Up | Search | Help | Linux-Hacker.netReply to Thread | Printer |

Home / I-Opener Areas / I-Opener Technical Stuff
D-Link USB driver hack
How to get pegasus.o working with device code 0xabc1

New MessageD-Link USB driver hack (modified 0 times) ConquerAllz
Profile
Hi all,

I have an IO on which Jailbait v6 is loaded. I have a D-Link USB ethernet adapter. The two do not talk. By hacking the binary module included with Jailbait, I got it to work. Below are the details.

The pegasus.o driver in Jailbait checks for the correct device codes before it loads. If they are not found, it does not load. This driver will work with the D-Link adapter I have (code 0x2001 0xabc1, reported upon booting Jailbait).

To hack the driver to work with this and possibly other drivers, do the following:

- remount / as 'rw' (use -o)
- make a backup copy of the driver
- edit the pegasus.o driver in binary mode (vi -b pegasus.o)
- find a device code to replace. In vi, you can "type" any character by escaping it with ^V, then type the three digit decimal for the number. Thus, type 0xab with "^v 171". In the binary, the bytes in a word are reversed, so to find 0x2001, search for "^v 001 ^v 032". Device code 0x4002 is in the driver, so if you find 0x2001 0x4002, you've found the right part of the driver to replace.
- replace the device code (0x4002) with yours. "r ^v 0x193", move forward, "r 0x171".
- write the file and exit (:x)
- remount / -o ro
- reboot, cross fingers.

You can replace pegasus.o with the backup if this fails. I get a couple of errors when the driver loads, but everything seems to work.

People could use this thread to tell others what device codes (other than 0xabc1) work with the driver.

Good luck, and happy hacking!

11-21-2000 17:54:58

New MessageRE:D-Link USB driver hack (modified 0 times) Programmer
Profile
Ummm.. I just recompiled the thing, that way it'll work with the everything it used to work with as well..

the file is here http://bethie.net/~programmer/pegasus.o

If there are any other usb devices that fail, I'd be happy to add them as well. (just let me know what they are; some may need to use the Kawasaki driver)

11-22-2000 07:09:39

New MessageRE:D-Link USB driver hack (modified 0 times) Jembatan
Profile
My D-Link adapter reported with the code 0x2001 0xabc1 upon booting with Jailbait6. When I tried to make a back up copy it said system full.

I am a bit confused with what you have mentioned on your post to edit and change WHAT regs/codes to 0x2001 0xabc1. Can you please be more specific on how to accomplish such a thing to get the D-Link USB ethernet working?

TIA.

11-22-2000 15:09:35

New MessageRE:D-Link USB driver hack (modified 0 times) ConquerAllz
Profile
Here are the step-by-step instructions. (BTW, I did it this way because I have no hard disk and because the driver didn't work, no ethernet.)

- log in as root, and type this:
# mount / -o rw,remount
# cd /lib/modules
# cp pegasus.o pegasusbak.o
# vi -b pegasus.o

Now you're editing the driver (it will look like gobbledygook). Type "/ CTRL-v 0 0 1 CTRL-v 0 3 2 <RETURN>" (without the spaces). The cursor should be on "^A". To be sure you've found the right part, hit "n" three times. vi should say you've hit BOTTOM, continuing at TOP (there are three supported device codes). (I hit 'n' again here, then) hit right arrow twice to skip these two bytes. Type "r CTRL-v 1 9 3", right arrow to go to the next byte, then "r CTRL-v 1 7 1". You've modified the driver. Save and exit by typing ": x <RETURN>". Now, remount just to be sure and reboot.

# mount / -o ro,remount
# reboot

Good luck!

11-22-2000 18:38:07

New MessageRE:D-Link USB driver hack (modified 0 times) Programmer
Profile
good point.. I'll make available a jailbait image that the proper driver installed
.. http://bethie.net/~programmer/jbv6wnewpegasus.img
will work work with the new clear dlink USB adapters
11-22-2000 19:55:15

New MessageRE:D-Link USB driver hack (modified 0 times) Jembatan
Profile
ConquerAllz: Thank U very much. Now my Switch sees the D-Link USB etherport (but the LED of the D-Link USB etherport does not lit up).

On the other hand, I am getting the following error when I executed "ifconfig":

kmod: failed to exec /sbin/modprobe -s -k net-pf-4 error = 2
.
:

It looks like the "busybox" is not compiled with the modprobe module. Does anyone have a work around on this issue?

11-23-2000 06:04:41

New MessageRE:D-Link USB driver hack (modified 0 times) Programmer
Profile
kmod replaces modprobe.. AFAIK the image posted does not have that problem, if it does let me know and I'll check to see if I made any other changes after it was in place.. (I have this working on 2 IOs)
11-23-2000 09:44:16

New MessageRE:D-Link USB driver hack (modified 0 times) Jembatan
Profile
Programmer: I don't see any kmod as well as modprobe on my I-Opener system running with jailbait6 distro. Am I missing something? As far as the modification concerned, my IO now sees the D-Link DSB-650TX port and has assigned it as device number 2. I am clueless... :(
11-23-2000 13:28:47

New MessageRE:D-Link USB driver hack (modified 0 times) Programmer
Profile
kmod is compiled into the kernel, it loads on startup and detects when a module needs to be loaded, and loads it. not exactly sure how it knows WHICH module to load.. many people have found that the ethernet works even without the light being on.. try pinging something?? Jailbait is very much not finished.. it's a shame it was dropped as a project..
11-24-2000 09:02:15

New MessageRE:D-Link USB driver hack (modified 0 times) dermot
Profile | Email
I am so glad I found this post!!
I found that my Linksys USB10T would not work with Jailbait. The Kawasaki driver reported ids 66b:2206.
The thing has a pegasus chip (from other posts) and looking at the pegasus.o and searching for 2206 showed not found. Searching for 2203 worked and I replaced the 03 with 06. Long story short, next boot up I am surfin' baby. Thanks to all who contributed into my happy day.
Now... who will write a driver for the Acer wireless product?
01-03-2001 15:09:42

Reply to Thread | Printer |
All times are PSTPowered by UltraBoard v1.62



Copyright © 2000, Netmake Inc. All Rights Reserved.
See Terms and Conditions for more information.




i-opener opener laptop notebook computer help drivers dll free windows dos repair fix linux mac macintosh 2000 95 98 nt pc configure hardware software sound video netscape explorer network networking lan wan software cmos fat bios printer card mouse modem ide scsi cd rom controllers scanner tape hard drive cgi scripts source code mp3