|
2010-07-13
, 09:12
|
Posts: 654 |
Thanked: 664 times |
Joined on Feb 2009
@ Germany
|
#13
|
|
2010-07-13
, 17:57
|
Posts: 4,030 |
Thanked: 1,633 times |
Joined on Jul 2007
@ nd usa
|
#14
|
...My 770 is currently on OS2006, but I canīt see any wireless networks. The problem seem to be draft-n access points. As soon as a draft-n network is near, it wonīt see any wireless networks. How is it on OS2008HE? Do you have similar problems?
The Following User Says Thank You to bunanson For This Useful Post: | ||
|
2010-07-13
, 19:00
|
Posts: 154 |
Thanked: 73 times |
Joined on Jan 2009
@ Toronto
|
#15
|
0xFFFF -U 1
chmod ugo+x 0xFFFF.static
./0xFFFF -U 1
|
2010-07-13
, 20:23
|
Posts: 154 |
Thanked: 73 times |
Joined on Jan 2009
@ Toronto
|
#16
|
|
2010-07-30
, 20:16
|
Posts: 3 |
Thanked: 0 times |
Joined on Oct 2009
|
#19
|
NOW THE ORIGINAL POST, ABOUT HOST MODE:
I was wondering whether it was time to write this up again. The old ITT threads on the subject are hard to find, and in any case they contain a lot of misleading information. There was a wiki about it that has now disappeared. There are different ways of activating USB host mode on the 770. Some methods require the use of another Linux computer. I am going to describe a method that can be done entirely on the 770 and requires very little knowledge of Linux. (It avoids using a Linux text editor.) It works for every OS except OS2005. I assume that readers have some experience with X-Terminal and that they have installed rootsh or becomeroot (depending on their OS).
First, you need to find three pieces of hardware.
1.Y-cable, such as those on http://shop.ebay.com/i.html?_nkw=usb...y+cable+mini+b .
You might already have this item. It sometimes comes in the box with a hard drive or a HDD enclosure. Note that one of the items on the eBay page is not a Y-cable at all, but just a 10 ft cable with USB connectors for A male and mini B. Your cable should have a mini-B connector at one end (to plug into your 770's USB port) and two A-male connectors at the other end. One of the A-male connectors will be at the end of a thinner piece of cable: you will plug this into a USB power supply. The other A-male connector is your data line, connecting with your memory drive, keyboard, hub or whatever.
DO NOT CONNECT THE USB POWER TO YOUR 770 AT THIS TIME.
2.USB Gender Changer (with an A-female connector at each end).
Officially, there is not supposed to be a purpose for these in the USB system. Nevertheless, they are sold on eBay, and you can sometimes find them in electronics stores. If you get one by mail order, you might have to straighten its ends with pliers, because they are not sturdily made and they are too cheap to be worth protecting in a mailing box. (Ideally, the Y-cable should have a female connector in place of the A-male data connector. Unfortunately, no such cables are available, and you have to attach the gender-changer there instead.)
3.USB Power Supply.
These are widely available nowadays as chargers for mp3 players etc. You can get a reliable wall charger for under $5, but then you will also need a USB extension cord to connect the charger to the power connector of your Y-cable. For a lot more money, you can get a compact portable version with lithium batteries. I would warn you not to make the same choice that I did (illustrated in the picture). I bought the most expensive one because it had the biggest capacity, and I hoped to use it for recharging Nokia phones and tablets, since the kit includes plug-in tips with Nokia connectors. Unfortunately, the Nokia connectors have voltage regulators that waste a large proportion of the stored energy, giving it disappointing performance as a charger. For USB purposes, a much smaller and less expensive version is all that you need.
While waiting for your hardware to arrive, you can make some more preparation.
Download this attachment [attach]host-texts.tar.gz[/attach] to your Documents or other folder of your preference. You can download directly to the 770 if you access this page on the MicroB browser. Tear and some other browsers refuse to download attachments from talk.maemo.org. If you are running OS2006, you will have to download first to another computer and then transfer the file. (Sorry, the attachment is down at the bottom of the post. I thought this thing with the square brackets was supposed to link it here. If someone can tell me how to link it here, I would be grateful.)
cd to the folder where you saved the download and expand the downloaded file with
(If you are comfortable with a Linux text editor, you can also adapt the texts into scripts. For this purpose, you would delete the "sudo gainroot" line, add an "exit" line at the end of each script, and run the scripts as root. This works much better than the copying and pasting method. You should still keep Activate-host-mode.txt handy for emergency use, though.)
Next, open X-Terminal and enter the following code:
THE BIG DAY.
When you have all your hardware and want to use host mode, do the following operations in this order (if X-Term is open at this time, close it now):
1.Attach the gender-changer to the cable's A-male connector that has the thicker piece of cable.
2.Connect the USB power supply to the A-male connector that has the thinner piece of cable.
3.Open the Activate-host-mode text file.
4.Click the menu symbol in the top left corner of the Notes page. Click on Edit -> Select all.
5.Again from the menu, click on Edit -> Copy.
6.Open X-Terminal.
7.Click the menu symbol on the X-Term page, then Edit -> Paste.
The cursor will start moving and then will pause for a while after insertion of the usbhid module. It will start again in a few seconds.
8.The cursor will come to a complete stop at the end of a line reading
9.Plug the cable's mini-B into the 770's USB port.
10.Plug your peripheral device into the gender-changer.
If your device is an external keyboard, you can now use it. Be careful to unplug your keyboard while the 770 is still in host mode. If you fail to do this, you will lose the onscreen keyboard. If that happens, close X-Term, copy the Note as before, re-open X-Term, paste as before, plug in the USB keyboard, wait 10 seconds, unplug the USB keyboard, and your onscreen keyboard will reappear.
If you connect a USB storage device, you still have to mount it at the command line. First, you need to find the drive name that the 770 has given to your device. Almost certainly this will be sda1, but you had better make sure. Assuming that you are still root in X-Term, code:
[some numbers] sda: sda1
There could be something other than a letter a, for instance sdc: sdc1 . If your storage device has more than one partition, you might see something like:
[some numbers] sda: sda1 sda2 sda3
Whatever you find in the dmesg output, amend the following command accordingly:
BEFORE UNPLUGGING YOUR MEMORY DEVICE, you must unmount it at the command line, as root in X-Term:
To use the 770 as a peripheral device again, first unmount all attached USB devices (unplug keyboard, use umount command for memory device, unplug hub/switch), then unplug the cable from the 770.
At this point, you have a choice. Rebooting will return the 770 to peripheral mode. Alternatively, if you are still root in X-Term, you can copy the contents of the Restore-client-mode Note into the X-Term page and the 770 will be back to peripheral mode without rebooting.
Additional Notes:
(1)When you close the text files and a popup asks you whether you want to save changes, it is better to answer "No".
(2)When you open the file, you just see the end of the text. There are several "insmod" or "rmmod" lines higher up.
(3)If you are bothered by the large number of line breaks, you could remove some of them. The various operations of copying, tarring, transferring and untarring seem to have added more line breaks than I started out with.
Last edited by scaler; 2010-11-28 at 20:23. Reason: Tried again to display the attachment where it should be.