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)

joshv06 2010-11-11 17:10

Re: [Announce] USB hostmode beta release
 
Quote:

Originally Posted by Cybergr (Post 870425)
Guys i need your knowledge-advise here..

I had set up my N900 with Multiboot-00 Maemo omap1 kernel and 01-Power-kernel44 fixed all camera issues etc. and all seems to working perfect.

From inside Power-kernel44 i downloaded the H-e-n (USB Hostmode GUI) from application manager after restarting and booted up again normally without any issues in Power-Kernel44, i caught my AF to AF usb adapter and tried to connect to my usb stick (Sandisk SDCZ6 4gb) using the following steps:
1.High Speed Hostmode
2.Turned on 5v VBUS
3.Enumerate the Device
4.Mount it

The result i got was nothing...I can`t see my pen drive into the File Manager at all...Can someone help me on this to get it work please??!!

Thanks in advise.

PS:If i type sudo fdisk -l in the xterm ask me for a password...?!! ;-?

Exact same problem here..

Cybergr 2010-11-11 17:24

Re: [Announce] USB hostmode beta release
 
Quote:

Originally Posted by Cybergr (Post 870425)
Guys i need your knowledge-advise here..

I had set up my N900 with Multiboot-00 Maemo omap1 kernel and 01-Power-kernel44 fixed all camera issues etc. and all seems to working perfect.

From inside Power-kernel44 i downloaded the H-e-n (USB Hostmode GUI) from application manager after restarting and booted up again normally without any issues in Power-Kernel44, i caught my AF to AF usb adapter and tried to connect to my usb stick (Sandisk SDCZ6 4gb) using the following steps:
1.High Speed Hostmode
2.Turned on 5v VBUS
3.Enumerate the Device
4.Mount it

The result i got was nothing...I can`t see my pen drive into the File Manager at all...Can someone help me on this to get it work please??!!

Thanks in advise.

PS:If i type sudo fdisk -l in the xterm ask me for a password...?!! ;-?


Updated to latest kernel-power45 still same results as before..everything seems working ok!!
But still same luck with File Mananger can`t recognise my Pen Drive as described before..!!Some help please!?

sophocha 2010-11-11 17:42

Re: [Announce] USB hostmode beta release
 
Quote:

Originally Posted by Cybergr (Post 870425)
Guys i need your knowledge-advise here..

I had set up my N900 with Multiboot-00 Maemo omap1 kernel and 01-Power-kernel44 fixed all camera issues etc. and all seems to working perfect.

From inside Power-kernel44 i downloaded the H-e-n (USB Hostmode GUI) from application manager after restarting and booted up again normally without any issues in Power-Kernel44, i caught my AF to AF usb adapter and tried to connect to my usb stick (Sandisk SDCZ6 4gb) using the following steps:
1.High Speed Hostmode
2.Turned on 5v VBUS
3.Enumerate the Device
4.Mount it

The result i got was nothing...I can`t see my pen drive into the File Manager at all...Can someone help me on this to get it work please??!!

Thanks in advise.

PS:If i type sudo fdisk -l in the xterm ask me for a password...?!! ;-?

yep, same thing.Power kernel 44, connect my usb flash pen, nothing happens.Is there a way to troubleshoot this?Any commands we can run in terminal to see where the problem is?

Thanks

augustthe 2010-11-11 17:45

Re: [Announce] USB hostmode beta release
 
im having the same problem cant not see my flash drive in file manager my led is blinking but nothing show up ,i update to latest titan power kernel and host gui 2.0.4 sometimes i get "unable to connect'' can anyone help me

anapospastos 2010-11-11 18:02

Re: [Announce] USB hostmode beta release
 
@augustthe @sophocha @Cybergr @joshv06

Did you try to mount manually from xterm? Make the procedure normally(follow the steps into hen hostmode gui) press enumerate and open your xterm. Take root rights and run
Code:

sfdisk -l
to see the name of your device. If it is for example sda run
Code:

mount /dev/sda /media/flash
and you ll see it in your file manager. If you want to unmount it run
Code:

umount /dev/sda

sophocha 2010-11-11 18:10

Re: [Announce] USB hostmode beta release
 
Quote:

Originally Posted by anapospastos (Post 870589)
@augustthe @sophocha @Cybergr @joshv06

Did you try to mount manually from xterm? Make the procedure normally(follow the steps into hen hostmode gui) press enumerate and open your xterm. Take root rights and run
Code:

sfdisk -l
to see the name of your device. If it is for example sda run
Code:

mount /dev/sda /media/flash
and you ll see it in your file manager. If you want to unmount it run
Code:

umount /dev/sda

Thanks for this.Although my usb stick doesn`t even light up, so it must be a dodgy adapter or something.I need to get another one and try one more time and see if I`m lucky.

evan 2010-11-11 18:42

Re: [Announce] USB hostmode beta release
 
Quote:

Originally Posted by anapospastos (Post 870589)
@augustthe @sophocha @Cybergr @joshv06

Did you try to mount manually from xterm? Make the procedure normally(follow the steps into hen hostmode gui) press enumerate and open your xterm. Take root rights and run
Code:

sfdisk -l
to see the name of your device. If it is for example sda run
Code:

mount /dev/sda /media/flash
and you ll see it in your file manager. If you want to unmount it run
Code:

umount /dev/sda


I finally read my usb stick in the file manager, although I had to first manually do
mkdir /media/flash
before I do
mount /dev/sda1 /media/flash
I thought the mount button in the GUI would take care of these.

joshv06 2010-11-11 18:52

Re: [Announce] USB hostmode beta release
 
Quote:

Originally Posted by evan (Post 870628)
I finally read my usb stick in the file manager, although I had to first manually do
mkdir /media/flash
before I do
mount /dev/sda1 /media/flash
I thought the mount button in the GUI would take care of these.

Confirmed, same thing works for me. Bug in H-E-N?

Thanks

augustthe 2010-11-11 19:02

Re: [Announce] USB hostmode beta release
 
Quote:

Originally Posted by evan (Post 870628)
I finally read my usb stick in the file manager, although I had to first manually do
mkdir /media/flash
before I do
mount /dev/sda1 /media/flash
I thought the mount button in the GUI would take care of these.

thanks it works :D

MohammadAG 2010-11-11 19:25

Re: [Announce] USB hostmode beta release
 
Can anyone confirm the newest version's mount button correctly handles multiple devices?
I hope dh_* chmod +x'd the script... if not, try chmod +x /opt/h-e-n/mount.sh in a root shell.

unixak 2010-11-11 20:03

Re: [Announce] USB hostmode beta release
 
Quote:

Originally Posted by evan (Post 870628)
I finally read my usb stick in the file manager, although I had to first manually do
mkdir /media/flash
before I do
mount /dev/sda1 /media/flash
I thought the mount button in the GUI would take care of these.

I tried this procedure but it does not work. When I write lsusb into x-term I get Bus 001 Device 001: ID 1d6b:0002 , so my n900 did not find usb stick. When i write mount /dev/sda1 /media/flash I get "No such file or directory" .

Supersimo88 2010-11-11 20:16

Re: [Announce] USB hostmode beta release
 
Quote:

Originally Posted by MohammadAG (Post 870673)
Can anyone confirm the newest version's mount button correctly handles multiple devices?
I hope dh_* chmod +x'd the script... if not, try chmod +x /opt/h-e-n/mount.sh in a root shell.

it doesn't work

Keneraali 2010-11-11 20:36

Re: [Announce] USB hostmode beta release
 
Running "sh /opt/h-e-n/mount.sh" manually gives "/opt/h-e-n/mount.sh: line 26: syntax error: end of file unexpected (expecting "}")"
Is it supposed to give that or am I just lost?

Edit: add the missing } in the end of mount.sh and chmod +x it, then it works

joerg_rw 2010-11-11 20:48

Re: [Announce] USB hostmode beta release
 
sorry when I sound like a partypooper, but mounting a drive under linux is elementary 101, there's lots and lots of howtos to be found on web, and it's not really a problem related to hostmode in any way. There's quite a number of different solutions for mounting/unmounting/safely-removing plug-able devices (not only USB though that's most popular, there's also sata, firewire, even scsii, yes also your uSD of N900! Etc.) on usual linux desktops, like automounter, context menus in filemanagers, device managers.
I don't think h-e-n GUI should try to re-invent the wheel here, and should rather stay away from mounting all together. It's not a task of a hostmode-manager's genuine domain. Mohammad implemented it for convenience reasons for the Beta AIUI, just to deal with what we thought would be the most common case. As well you could do same thing with e.g Desktop Cmdline Execution Widget or QueenBeeCon.

On a completely different topic: Multiboot is a hackerish thing which for all I know is reflashing kernels(!!!) on every boot. It's completely irrelevant if these kernels are hostmode enabled or not. So please take problems which are arising from kernel update or adding another alternative kernel to multiboot, to where they belong: Multiboot maintenance.
h-e-n is not responsible for multiboot problems, and also we're not the experts to help you out here

Thanks for all your enthusiasm and reports and suggestions, please understand we want to evolve h-e-n Beta into a proper naturally working tool, not hotfix any problems possibly unrelated to hostmode per se into a more cluttered less straight and clean Beta2, then Beta3 and so on.

Cheers
jOERG

Farooq 2010-11-12 07:36

Re: [Announce] USB hostmode beta release
 
I need help please

I installed hen and updated it today and the default camera was not working so i uninstalled the fcam app (read in the thread) and rebooted my N900 and now its in the restarting loop and not turning on.

Members ur kind help required

anapospastos 2010-11-12 07:52

Re: [Announce] USB hostmode beta release
 
@Farooq

It 's time to flash your kernel. See this post for how to.

Farooq 2010-11-12 08:01

Re: [Announce] USB hostmode beta release
 
Quote:

Originally Posted by anapospastos (Post 871201)
@Farooq

It 's time to flash your kernel. See previous pages for how to.

Can u please point out the exact post for this it will be of great help from ur side.

debernardis 2010-11-12 08:27

Re: [Announce] USB hostmode beta release
 
@MohammadAG: I've changed the /opt/h-e-n/mount.sh script as follows and it seems to work, at least *in vitro*

EDIT warning I removed the code because it worked for single partition devices but doesn't work for multipartition

EDIT EDIT new script some posts below. Good for mounting multipartition devices, as Mohammad intended. Better umount by hand for now, instead.

PaulFertser 2010-11-12 10:05

Re: [Announce] USB hostmode beta release
 
Since you all are running ke-recv [1] anyway, why the hell do not you try to recompile it with FREMANTLE_MODE undefined; from a cursory look it seems that might be enough to get automounting for usb volumes to work. And if not (and you're interested in non-manual mounting that much), why do not you just find out how to do it with the daemon already running and eating your memory?

PS: Not a being a believer in the "Just say No" strategy [2], i still feel like politely asking all forum members to refrain from posting while intoxicated, TIA.

[1] http://maemo.gitorious.org/maemo-af/ke-recv
[2] http://en.wikipedia.org/wiki/Just_Say_No

pennywise 2010-11-12 10:26

Re: [Announce] USB hostmode beta release
 
was trying to connect my Canon DSLR as mass storage device to backup my camera pictures on the road.

(as alternative i now am using my SD card reader which works great using h-e-n but i would prefer a direct connection to my camera so i dont'have to carry the SDcard reader.)

However a direct connection does not work as I and others have noticed.
reason for this is that the Canon uses USB for multiple purposes. To be able to use a "mass storage" device it must receive a specific command so its put into this mode.

I started looking for alternative solutions, and started this new thread.
http://talk.maemo.org/showthread.php...210#post871210

as you can read, possible a few options are there and looking well.

reason i post a message here is because i had the following question.
is there any possible change in the future that you could/would embed some parts into h-e-n?
Only thing i really would need is:
- option to mount the SDcard from the camera directly.
means: some button in the interface in example "mount camera"
and when pressed, code is send to put the SLR into storage device mode?
the right protocol codes for the cameras are available on gPhoto.

WhiteWolf 2010-11-12 10:37

Re: [Announce] USB hostmode beta release
 
The latest update of "hen" has caused me not detect or activate any USB device.

sophocha 2010-11-12 10:41

Re: [Announce] USB hostmode beta release
 
Quote:

Originally Posted by WhiteWolf (Post 871349)
The latest update of "hen" has caused me not detect or activate any USB device.

while I`m waiting for my new female adapter to come, I said, why not test the new version, it might work....end result?Whenever I click mount the application hangs...I don`t even see the unmount button, and I have to force the app close....and while I was booting up in Maemo, the device said 'charging' while I didn`t have the charging cable in the device!.....that`s what happens when we test beta software....ahaha

WhiteWolf 2010-11-12 11:16

Re: [Announce] USB hostmode beta release
 
I am also experiencing application hangs and I only open it if I do it from xterm

debernardis 2010-11-12 11:25

Re: [Announce] USB hostmode beta release
 
The following version of the /opt/mount.sh script seems to mount correctly also multipartition devices. I am not convinced of the unmounting, it seems not to work, or at least unmounting should be confirmed before you proceed quitting hostmode.
For now it's true that it's better to mount and umount by hand so that you have feedback in xterm of what you do

Code:

#!/bin/sh


monta() {
echo mounting
lista=`awk '$4~"[0-9]$"{print $4}' /proc/partitions | grep -v "mmcblk*" | grep -v "loop*"`
for partitions in $lista
    do echo mkdir -p $partitions
    mkdir -p /media/$partitions
    echo mount /dev/$partitions /media/$partitions
    mount /dev/$partitions /media/$partitions
done
}

unmount() {
echo unmounting
lista=`awk '$4~"[0-9]$"{print $4}' /proc/partitions | grep -v "mmcblk*" | grep -v "loop*"`
for partitions in $lista
        do echo umount /media/$partitions
    umount /media/$partitions
done
}   

if [ "$1" = "--mount" ]
    then
        monta
fi

if [ "$1" = "--unmount" ]
    then
        unmount
fi
   
exit

Of course should you should be root to copy it in /opt/mount.sh and chmod 755

fw190 2010-11-12 12:27

Re: [Announce] USB hostmode beta release
 
Funny thing. Yesterday I've managed to mount 2 usb sticks for the first time but I had to mount them from x-term. Today I can't mount them anymore. After enumeration the led is lightened bud trying to mount it from x-term gives na error.

CormacB 2010-11-12 12:33

Re: [Announce] USB hostmode beta release
 
I am getting "Forced hostmode error: no device attached" with anything I try.

kolos 2010-11-12 13:14

Re: [Announce] USB hostmode beta release
 
Now with power kernel 45 I don't have rebooting issue anymore when I close h-e-n (0.2-4) if the battery module is loaded (bq27x00_battery). Also I was able to mount for the first time 3.5" external hard disk and 16GB & 8GB USB sticks, that I wasn't able with previous kernel and h-e-n. For all of them I had to use x-terminal mounting.

CormacB 2010-11-12 13:21

Re: [Announce] USB hostmode beta release
 
Quote:

Originally Posted by CormacB (Post 871445)
I am getting "Forced hostmode error: no device attached" with anything I try.

My mistake: i2c-tools failed to install because it conflicted with linux-kernel-headers. Sorted that out and I was able to use a keyboard and a couple of mice that I tried.

But after using a mouse kinetic scrolling seems to be messed up.

sophocha 2010-11-12 14:00

Re: [Announce] USB hostmode beta release
 
0.2-5

Any comments on this version?Mine hangs when I click mount

lifenexus 2010-11-12 14:18

Re: [Announce] USB hostmode beta release
 
Quote:

Originally Posted by CormacB (Post 871482)
My mistake: i2c-tools failed to install because it conflicted with linux-kernel-headers. Sorted that out and I was able to use a keyboard and a couple of mice that I tried.

But after using a mouse kinetic scrolling seems to be messed up.

same here.. kinetic scrolling is messed up in browser.. any solution for this?

CormacB 2010-11-12 14:26

Re: [Announce] USB hostmode beta release
 
Kinetic scrolling problem is bt-hid-scripts fault. And uninstalling it doesn't fix the problem! How do I get back to the original mouse driver?

IzzehO 2010-11-12 14:30

Re: [Announce] USB hostmode beta release
 
Quote:

Originally Posted by CormacB (Post 871532)
Kinetic scrolling problem is bt-hid-scripts fault. And uninstalling it doesn't fix the problem! How do I get back to the original mouse driver?

Perhaps ask there instead? As no one here knows anything about the scripts?

lifenexus 2010-11-12 14:30

Re: [Announce] USB hostmode beta release
 
Quote:

Originally Posted by CormacB (Post 871532)
Kinetic scrolling problem is bt-hid-scripts fault. And uninstalling it doesn't fix the problem! How do I get back to the original mouse driver?

i can confirm that uninstalling doesnt fix the problem but i guess this is the wrong place to discuss it

CormacB 2010-11-12 14:38

Re: [Announce] USB hostmode beta release
 
Quote:

Originally Posted by lifenexus (Post 871537)
i can confirm that uninstalling doesnt fix the problem but i guess this is the wrong place to discuss it

apt-get remove xorg-evdev-mouse does the trick. How annoying that we either get mouse support or proper scrolling but not both. Anyway, apologies for going off topic.

lifenexus 2010-11-12 14:39

Re: [Announce] USB hostmode beta release
 
Quote:

Originally Posted by CormacB (Post 871544)
apt-get remove xorg-evdev-mouse does the trick. How annoying that we either get mouse support or proper scrolling but not both. Anyway, apologies for going off topic.

thx buddy :)

Psycho 2010-11-12 15:01

Re: [Announce] USB hostmode beta release
 
hey guys, when i try to mount, does the usb stick need to be fat32 ? or something or ntfs ?

cuz when i push on mount, the usb stick blinks, but doesnt appear in the filesystem and it hangs..

cpu load is on 100 % ?

lifenexus 2010-11-12 15:03

Re: [Announce] USB hostmode beta release
 
Quote:

Originally Posted by Psycho (Post 871564)
hey guys, when i try to mount, does the usb stick need to be fat32 ? or something or ntfs ?

cuz when i push on mount, the usb stick blinks, but doesnt appear in the filesystem

it can be ntfs too. if it doesnt mount do this
Code:

mount -t ntfs /dev/sda1 /media/flash
then use filebox to view the files at that directory (/media/flash)

divan 2010-11-12 15:40

Re: [Announce] USB hostmode beta release
 
Another bunch of videos:
http://www.youtube.com/watch?v=0YPk4Y0ZPQY - USB Card Reader
http://www.youtube.com/watch?v=1Qfx_jaQ9jo - USB 500GB HDD (via usb hub)
http://www.youtube.com/watch?v=ua5xpTZJpwo - USB Mouse
http://www.youtube.com/watch?v=9byE_qTl15M - USB Keyboard

jinnn_1989 2010-11-12 16:17

Re: [Announce] USB hostmode beta release
 
i have installer pr 1.3 just nw. rootsh and h-e-n and kernel power45 and nothing else. i tried to mount my pen drive but can mount my pendrive. dont know wht is the problem. i have dont everything possible solutions reading fourms. please help me. plz do reply quick

lifenexus 2010-11-12 16:28

Re: [Announce] USB hostmode beta release
 
Quote:

Originally Posted by jinnn_1989 (Post 871628)
i have installer pr 1.3 just nw. rootsh and h-e-n and kernel power45 and nothing else. i tried to mount my pen drive but can mount my pendrive. dont know wht is the problem. i have dont everything possible solutions reading fourms. please help me. plz do reply quick

Tap on the menu and select "kernel messages" and post the output. atleast the last 10-12 lines


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

vBulletin® Version 3.8.8