maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N900 (https://talk.maemo.org/forumdisplay.php?f=44)
-   -   [Announce] USB hostmode beta release (https://talk.maemo.org/showthread.php?t=65232)

jinnn_1989 2010-11-12 16:33

Re: [Announce] USB hostmode beta release
 
Quote:

Originally Posted by lifenexus (Post 871639)
Tap on the menu and select "kernel messages" and post the output. atleast the last 10-12 lines

when i press enumerate no light come on my pen drive and when i mount the drive the applications gets hanged cant do anything furture

jinnn_1989 2010-11-12 16:37

Re: [Announce] USB hostmode beta release
 
1 Attachment(s)
Quote:

Originally Posted by lifenexus (Post 871639)
Tap on the menu and select "kernel messages" and post the output. atleast the last 10-12 lines

here i am attaching a file of kernel messages

lifenexus 2010-11-12 16:38

Re: [Announce] USB hostmode beta release
 
Quote:

Originally Posted by jinnn_1989 (Post 871645)
when i press enumerate no light come on my pen drive and when i mount the drive the applications gets hanged cant do anything furture

Have u tried any other usb Female-female connector?

lifenexus 2010-11-12 16:45

Re: [Announce] USB hostmode beta release
 
Quote:

Originally Posted by jinnn_1989 (Post 871648)
here i am attaching a file of kernel messages

seems everything is fine. try this in xterm and report back
Code:

sudo gainroot

mount /dev/sda1 /media/flash


jinnn_1989 2010-11-12 17:03

Re: [Announce] USB hostmode beta release
 
Quote:

Originally Posted by lifenexus (Post 871660)
seems everything is fine. try this in xterm and report back
Code:

sudo gainroot

mount /dev/sda1 /media/flash


it says mounting failed no such file or dierctory found

lifenexus 2010-11-12 17:05

Re: [Announce] USB hostmode beta release
 
Quote:

Originally Posted by jinnn_1989 (Post 871678)
it says mounting failed no such file or dierctory found

You have to do this after u Click on "Enumerate"
Did u do that first?

jinnn_1989 2010-11-12 17:10

Re: [Announce] USB hostmode beta release
 
Quote:

Originally Posted by lifenexus (Post 871682)
You have to do this after u Click on "Enumerate"
Did u do that first?

ya i did the same thing. but thn also showing the same error

jinnn_1989 2010-11-12 17:12

Re: [Announce] USB hostmode beta release
 
Quote:

Originally Posted by jinnn_1989 (Post 871692)
ya i did the same thing. but thn also showing the same error

nw i got a msg that "unable to connect, no file system found"

lifenexus 2010-11-12 17:17

Re: [Announce] USB hostmode beta release
 
Quote:

Originally Posted by jinnn_1989 (Post 871694)
nw i got a msg that "unable to connect, no file system found"

Ok try this. Get another flash first
1- open h-e-n
2- Connect ur cables and flash
3- select high speed mode
4- wait for a few seconds then click vBus boost on
5- Wat for some more time
6- click enumerate and wait for some time before u mount. Check ur kernel messages for the model of the flash to show up. if it does, then do the following

Check if /dev/sda1 exists or not

Code:

cd /dev/

ls

Then check if media/flash exists or not
Code:

cd /media

ls

Then if both exists, do this
Code:

mount /dev/sda1 /media/flash

jinnn_1989 2010-11-12 17:29

Re: [Announce] USB hostmode beta release
 
Quote:

Originally Posted by lifenexus (Post 871697)
Ok try this. Get another flash first
1- open h-e-n
2- Connect ur cables and flash
3- select high speed mode
4- wait for a few seconds then click vBus boost on
5- Wat for some more time
6- click enumerate and wait for some time before u mount. Check ur kernel messages for the model of the flash to show up. if it does, then do the following

Check if /dev/sda1 exists or not

Code:

cd /dev/

ls

Then check if media/flash exists or not
Code:

cd /media

ls

Then if both exists, do this
Code:

mount /dev/sda1 /media/flash


ok thx for your help but nw my phones battery is totally down due to restart several times. i will try it tommorrow morning and i am also get one problem that if i open h-e-n application and thn when i connect my device to my computer it does not show up in computer nor my devices gets charge and its does not pop up for mass storage or pc suite.

lifenexus 2010-11-12 17:31

Re: [Announce] USB hostmode beta release
 
Quote:

Originally Posted by jinnn_1989 (Post 871704)
ok thx for your help but nw my phones battery is totally down due to restart several times. i will try it tommorrow morning and i am also get one problem that if i open h-e-n application and thn when i connect my device to my computer it does not show up in computer nor my devices gets charge and its does not pop up for mass storage or pc suite.

No problem buddy.
When H-E-N is open, ur battery charging wont happen. so close it and then attach ur charger and also ur pc will detect ur phone. If ya need any help, do ask..

jinnn_1989 2010-11-12 17:34

Re: [Announce] USB hostmode beta release
 
Quote:

Originally Posted by lifenexus (Post 871706)
No problem buddy.
When H-E-N is open, ur battery charging wont happen. so close it and then attach ur charger and also ur pc will detect ur phone. If ya need any help, do ask..

ya i have closed h-e-n and thn tried but the problem arises. i have to restart my phn to charge it or to connect it to my pc

lifenexus 2010-11-12 17:35

Re: [Announce] USB hostmode beta release
 
Quote:

Originally Posted by jinnn_1989 (Post 871709)
ya i have closed h-e-n and thn tried but the problem arises. i have to restart my phn to charge it or to connect it to my pc

now thats weird.. i dont have to do that. Are u running the latest h-e-n? (0.2.5 i guess)

also check for power-kernel v45

do this in x-term
Code:

uname -r

jinnn_1989 2010-11-12 17:39

Re: [Announce] USB hostmode beta release
 
Quote:

Originally Posted by lifenexus (Post 871711)
now thats weird.. i dont have to do that. Are u running the latest h-e-n? (0.2.5 i guess)

also check for power-kernel v45

do this in x-term
Code:

uname -r

ya i have latest h-e-n and its power kernel 45

lifenexus 2010-11-12 17:43

Re: [Announce] USB hostmode beta release
 
Quote:

Originally Posted by jinnn_1989 (Post 871715)
ya i have latest h-e-n and its power kernel 45

Im lost there.. no idea why its happening.. It works fine for me. I can help u out with the rest though

Psycho 2010-11-12 17:46

Re: [Announce] USB hostmode beta release
 
hmm i got excactly the same thing.. but my problem is that the hole H-E-N app hangs.. and my cpu load is at 100 %.. and it crashes.. dont know what the problem is..

im also using the latest kernel 45 and H-e-N

lifenexus 2010-11-12 17:50

Re: [Announce] USB hostmode beta release
 
Quote:

Originally Posted by Psycho (Post 871720)
hmm i got excactly the same thing.. but my problem is that the hole H-E-N app hangs.. and my cpu load is at 100 %.. and it crashes.. dont know what the problem is..

im also using the latest kernel 45 and H-e-N

how about u uninstall it completely. do this to be sure after uninstallation

Code:

dpkg --purge hostmode-gui
then reinstall

jinnn_1989 2010-11-12 17:50

Re: [Announce] USB hostmode beta release
 
Quote:

Originally Posted by lifenexus (Post 871717)
Im lost there.. no idea why its happening.. It works fine for me. I can help u out with the rest though

ok lets c tommorrow mornig wht happens. i tried it yesterday with multiboot and power kernel 44 but no mounting done. and thn i flashed my phn and just installed hen ,kernel , rootsh. nothing else but thn also i am facing problems. i have checked my cable too. i have wireless mouse so when i connect the dongle of it to my cable and press enumerate its gets the power thn light on the blinks. but when i insert pen drive the light comes sometime only. tried with 2 flash drives. i dnt have the mouse script installed. will try that aslo tommorrow. thx buddy

jinnn_1989 2010-11-12 17:51

Re: [Announce] USB hostmode beta release
 
Quote:

Originally Posted by lifenexus (Post 871722)
how about u uninstall it completely. do this to be sure after uninstallation

Code:

dpkg --purge hostmode-gui
then reinstall

can u tell me what will this do?.........

Psycho 2010-11-12 17:52

Re: [Announce] USB hostmode beta release
 
Quote:

Originally Posted by lifenexus (Post 871697)
Ok try this. Get another flash first
1- open h-e-n
2- Connect ur cables and flash
3- select high speed mode
4- wait for a few seconds then click vBus boost on
5- Wat for some more time
6- click enumerate and wait for some time before u mount. Check ur kernel messages for the model of the flash to show up. if it does, then do the following

Check if /dev/sda1 exists or not

Code:

cd /dev/

ls

Then check if media/flash exists or not
Code:

cd /media

ls

Then if both exists, do this
Code:

mount /dev/sda1 /media/flash


hmm Flash doesnt exist ??

what can i do ?

casper27 2010-11-12 18:00

Re: [Announce] USB hostmode beta release
 
Quote:

Originally Posted by Psycho (Post 871729)
hmm Flash doesnt exist ??

what can i do ?

Looks like you need to create dir

Code:

mkdir /media/flash

lifenexus 2010-11-12 18:05

Re: [Announce] USB hostmode beta release
 
Quote:

Originally Posted by jinnn_1989 (Post 871724)
can u tell me what will this do?.........

some softwares leave a lot of settings, configs etc behind after uninstallaion. (eg irreco) Doing a purge will clear all that. im not sure hen will leave anything or not so just to be sure, purge it

Psycho 2010-11-12 18:06

Re: [Announce] USB hostmode beta release
 
Quote:

Originally Posted by casper27 (Post 871740)
Looks like you need to create dir

Code:

mkdir /media/flash

yaayy this was my problem :D

it works !

joerg_rw 2010-11-12 18:07

Re: [Announce] USB hostmode beta release
 
http://www.google.com/search?q=howto...drive+on+linux

Rly dds! gt brn! & thnk bt ur sp33ch, ts ! 7331, ts jst PLAIN ANNOYING :mad:

this one recommended: http://www.jarrodgoddard.com/linux-w...drive-in-linux
just keep in mind on maemo fstab file is autogenerated on every boot, so editing it doesn't help much.
Please also refer to http://talk.maemo.org/showthread.php...763#post870763
Thanks!
/j

Psycho 2010-11-12 18:08

Re: [Announce] USB hostmode beta release
 
But the H-E-N program hangs if I tap the MOUNT button.. so i need to do it manually..

mount /dev/sda1 /media/flash

how do i unmount ?

unmount /dev/sda1 ??

EDIT:

umount /dev/sda1 .. it works.. thnx

lifenexus 2010-11-12 18:09

Re: [Announce] USB hostmode beta release
 
Quote:

Originally Posted by Psycho (Post 871745)
yaayy this was my problem :D

it works !

congratz.. now try various devices and see if they work

Psycho 2010-11-12 18:22

Re: [Announce] USB hostmode beta release
 
is this a bug with the 'mount' button that the whole app hangs.. and freezes ?

EDIT:

hmm downloaded and installed version 0.2-6 and the mount button works (Y) nice guys..

im going to play whole night..

MohammadAG 2010-11-12 18:31

Re: [Announce] USB hostmode beta release
 
Remind me never to subscribe to a thread on tmo again.

This is a beta, expect it to be buggy, and try to help instead of complain about it (thanks debernardis!).

I've sent a new version to devel, which should have mounting and unmounting working (the wrong way anyways, ke-recv should be fixed, there should be no need for a mount button), now please, can we tone down on the pointless replies, (again, please)?

lifenexus 2010-11-12 19:22

Re: [Announce] USB hostmode beta release
 
Quote:

Originally Posted by Psycho (Post 871747)
But the H-E-N program hangs if I tap the MOUNT button.. so i need to do it manually..

mount /dev/sda1 /media/flash

how do i unmount ?

unmount /dev/sda1 ??

EDIT:

umount /dev/sda1 .. it works.. thnx

Code:

umount /media/flash

Marshall Banana 2010-11-12 20:52

Re: [Announce] USB hostmode beta release
 
It works, very nice!

Thx @ h-e-n crew!

<3 <3 <3

samipower 2010-11-12 21:18

Re: [Announce] USB hostmode beta release
 
hello i flashed my n900 and re-installed pr-1.3 and kernel flasher 45

installed h-e-n 2.6 latest version

and my experience:

1-run hen
2-select hi-speed or full speed
3-select vbus
4-conect pendrive and click in enumerate
5-pendrive light on , but nothing
6-mount and nothing

second experience:

1-xterminal sudo gainroot
mkdir /media/flash

2- run hen
3-full speed or hi-speed
4-vbus
5-conect pendrive and clik in enumerate
6-xterminal mount /dev/sda1 /media/flash
7- pendrive access ok , i can see all files into my pendrive
8- unmount pendrive with umount /dev/sda1


hen not mount i think

and this command mount /dev/sda1 /media/flash

only run with pendrive, with keyboard or mouse nothing , i dont know

i have installed mouse scripts hid for i can see mouse cursor.

but mouse and keyboard or jostick all have energy but hen not mount and in xterminal what commands are neccesary for keyboard or mouse or jostick???????

thanks

MohammadAG 2010-11-12 21:19

Re: [Announce] USB hostmode beta release
 
Install the latest version, it's not 0.2-6

giannoug 2010-11-12 21:38

Re: [Announce] USB hostmode beta release
 
Nice job guys. I've tried a mouse, a 3G modem (worked in idle, didn't test further) and a USB gamepad which I confirmed working with mupen64!

EDIT: Also tried Arduino.

samipower 2010-11-12 21:41

Re: [Announce] USB hostmode beta release
 
ok i will try

http://repository.maemo.org/extras-d....2-8_armel.deb

and giannoug you mount with hen or in xterminal ??

you can look my steps

your steps please???

Sudisk 2010-11-12 21:43

Re: [Announce] USB hostmode beta release
 
Hello,
I installed version 0.2.7 and apparently the mount script is still not working.

The usb key appears as sda and the "list" variable of the mount.sh script is empty.

The sda entry is the last one of the /proc/partitions file.

aligatro 2010-11-12 21:50

Re: [Announce] USB hostmode beta release
 
Quote:

Originally Posted by samipower (Post 871897)
hello i flashed my n900 and re-installed pr-1.3 and kernel flasher 45

installed h-e-n 2.6 latest version

and my experience:

1-run hen
2-select hi-speed or full speed
3-select vbus
4-conect pendrive and click in enumerate
5-pendrive light on , but nothing
6-mount and nothing

second experience:

1-xterminal sudo gainroot
mkdir /media/flash

2- run hen
3-full speed or hi-speed
4-vbus
5-conect pendrive and clik in enumerate
6-xterminal mount /dev/sda1 /media/flash
7- pendrive access ok , i can see all files into my pendrive
8- unmount pendrive with umount /dev/sda1


hen not mount i think

and this command mount /dev/sda1 /media/flash

only run with pendrive, with keyboard or mouse nothing , i dont know

i have installed mouse scripts hid for i can see mouse cursor.

but mouse and keyboard or jostick all have energy but hen not mount and in xterminal what commands are neccesary for keyboard or mouse or jostick???????

thanks

You can't mount devices that are not storage. For mouse(and probably for other hid devices) you just select the "low speed hostmode" -> VBUS -> "Enumerate" and that's it.

MohammadAG 2010-11-12 22:03

Re: [Announce] USB hostmode beta release
 
Quote:

Originally Posted by Sudisk (Post 871916)
Hello,
I installed version 0.2.7 and apparently the mount script is still not working.

The usb key appears as sda and the "list" variable of the mount.sh script is empty.

The sda entry is the last one of the /proc/partitions file.

Sigh... read my post above.
Hint: 0.2-8

laasonen 2010-11-12 22:06

Re: [Announce] USB hostmode beta release
 
After installing this and kernel-power 2.6.28-maemo45 my n900 thought its loading battery from usbstick, when I enabled VBUS boost from hostmode-gui.

It stopped thinking thats its getting loaded after couple seconds after i closed hostmode-gui. Plugging out usbstick, disabling VBUS boost and really trying to load the battery didn't do anything.

Kernel messages

Video (Uploading now, will be ready in about 10 minutes...)

Sudisk 2010-11-12 22:38

Re: [Announce] USB hostmode beta release
 
Quote:

Originally Posted by MohammadAG (Post 871934)
Sigh... read my post above.
Hint: 0.2-8

Versions are changing too fast. It was still 2.7 when I downloaded it.

Mount works the first time, but when unmounting, the directory is not or could not be removed from /media. So when the key is mounted once more, the script fails on directory creation.

My understanding is that two possibilities are to be considered:
- The name resolves to empty directory not matching any active mount point. It can be used to mount the device.
- The name is already used in a mount point. Either signal the issue or create a new moint point using a suffix.

Hope it helps (and that a version 0.2.9 is not already availble ;) )

A very nice job anyway.

aligatro 2010-11-12 23:05

Re: [Announce] USB hostmode beta release
 
Since this project became very popular, I decided it's best to update an old USB-host page on wiki with new information.
http://wiki.maemo.org/N900_Hardware_USB_Host
Feel free to correct any mistakes(esp in the http://wiki.maemo.org/N900_Hardware_USB_Host#Warning: area)


All times are GMT. The time now is 15:34.

vBulletin® Version 3.8.8