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)

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.


All times are GMT. The time now is 19:13.

vBulletin® Version 3.8.8