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)

impeham 2010-11-26 12:08

Re: [Announce] USB hostmode beta release
 
Quote:

Originally Posted by arkonosze (Post 883698)
Usb mouse doesn't work for me :/ I've installed bt-hid-scrpits. I can mount pendrives and card readers but when I connect mouse it doesn't react. Mouse cursor doesn't move, but mouse lights are on. Please help :D

same for me - tried both mouse and keyboard and they don't work even though i can attach other things - joystick and disks on key

Sonny_Jim 2010-11-26 17:58

Re: [Announce] USB hostmode beta release
 
Just to let people know, I'd thought I'd try the USB Ethernet adapter I had kicking around:
http://www.belkin.com/IWCatProductPa...duct_Id=281799

After a few false starts (you have to have a network cable plugged in and linked, otherwise it doesn't create eth0) I can happily say it's working.

Once again, great job guys! You've made a amazing phone even more amazing.

ivyking 2010-11-26 20:06

Re: [Announce] USB hostmode beta release
 
1 Attachment(s)
this simple script can hopefully get the mounting job done :D
it depends on pmount (see post 440 in this thread), and also you need to be root.

one line verison ! (well it has a loop so it isn't really a single line :()

Code:

#!/bin/bash
for entry in $(cat /proc/partitions |awk '{print $4}'|sed -n '/[0-9]/!d; /name\|mmc\|loop/!p');do pmount /dev/$entry;done


this can be more useful if it leaves a record of what was mounted this way, so it can later be unmounted easily , here :

mount.sh

Code:

#!/bin/bash
cat /proc/partitions |awk '{print $4}'|sed -n '/[0-9]/!d; /name\|mmc\|loop/!p' > /home/user/partitions.txt
for entry in $(cat /home/user/partitions.txt);do pmount /dev/$entry;done

unmount.sh

Code:

#!/bin/bash
for entry in $(cat /home/user/partitions.txt);do pumount /dev/$entry;done


MohammadAG 2010-11-26 21:16

Re: [Announce] USB hostmode beta release
 
Quote:

Originally Posted by avidscavenger (Post 882614)
As a quick step to making life easier when mounting USB filesystems (I hate typing more than necessary on that tiny keyboard), I've build pmount for maemo based on debian version 0.9.20, the latest that will work with debhelper version 5. I had to modify it to remove the 'user' option when mounting as this isn't supported by busybox. What this means is that you can simply type (for example):



to create the mountpoint /media/sda1 (or /media/<label> if you specified <label>) and mount /dev/sda1 on it. And similarly



to unmount and destroy the mount point.

To install (I guess if you don't know how to do this then maybe you shouldn't be trying, but really it is very easy), download the attachment to your N900 then type:



then (possibly) reboot the device to reload the user and group information. There may be a smarter way to do this, but it was easier just to reboot.

Can you please upload the source either to a server or to extras-devel?

avidscavenger 2010-11-27 07:06

Re: [Announce] USB hostmode beta release
 
@ MohammadAG: Sure... just as soon as I figure out how to do it. If you want it in a hurry PM me and I'll send you a zip file otherwise might be a day or two. [EDIT]Sorry that was a dumb thing to say, the source is on my work computer, I won't be there until Monday morning (UTC+11)[/EDIT]

Another request: I see the latest version of hostmode-gui depends on kernel-feature-usbhost, which is only provided by kernel-power-flasher. I feel safer using multiboot so I can quickly go back to a working phone with a vanilla kernel should power-kernel ever become unstable. Could multiboot-kernel-power be made to also provide kernel-feature-usbhost? Or, as jOERG says, is uBoot now available for multibooting? Thanks!

joerg_rw 2010-11-27 07:14

Re: [Announce] USB hostmode beta release
 
h-e-n GUI shouldn't rdepend on power kernel flasher, rather check for a property signalling the kernel is hostmode enabled - if anything.
Anyway AIUI powerkernel comes with uBoot now, and that should be a cleaner solution for a multiboot system than multiboot pkg

/j

Mentalist Traceur 2010-11-27 07:46

Re: [Announce] USB hostmode beta release
 
Unless Power Kernel updated recently from power46, it's not using uboot in the latest version. It had uboot in Power44, and in power45... not 100% sure if power43 had it, I think not, but whatever. Anyway, Titan took it out from power46 because a bunch of people felt the best way to respond to devel software being, well, devel software, as opposed to something stable and guaranteed to work, was to complain about all the horrible problems uboot caused them.

gixx 2010-11-27 13:34

Re: [Announce] USB hostmode beta release
 
Thanks for all developer who developed h-e-n, i love it.

Please clean bugs with conflict other HW like Camera.

MohammadAG 2010-11-27 13:45

Re: [Announce] USB hostmode beta release
 
Quote:

Originally Posted by gixx (Post 884365)
Thanks for all developer who developed h-e-n, i love it.

Please clean bugs with conflict other HW like Camera.

Umm, camera works fine for me (both stock and FCamera), and this is titan's kernel causing the conflict, not h-e-n's patches.

joerg_rw 2010-11-27 17:02

Re: [Announce] USB hostmode beta release
 
Quote:

Originally Posted by gixx (Post 884365)
Thanks for all developer who developed h-e-n, i love it.

Please clean bugs with conflict other HW like Camera.

I gather you're not talking about problems on connecting your coolpix to N900, ergo...:

Though it's OT once again, yet a short info: I heard powerkernel + cam works fine when installing latest fcam drivers from extras-devel.
Generally, uninstalling fcam usually fixes camera functions for all cam apps. As it's the old fcam drivers that don't play nice with new power-kernel

Anyway please take complaints about problems in camera with powerkernel to either of those two. As Mohammad already said, it's NOT RELATED to h-e-n.
HTH
/j


All times are GMT. The time now is 07:28.

vBulletin® Version 3.8.8