maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N900 (https://talk.maemo.org/forumdisplay.php?f=44)
-   -   [Testers needed] USB Hostmode prealpha for the N900 (https://talk.maemo.org/showthread.php?t=62787)

johnel 2010-09-23 22:27

Re: [Testers needed] USB Hostmode prealpha for the N900
 
Quote:

Originally Posted by pantera1989 (Post 824802)
Can anyone confirm if this cable works?

http://www.amazon.com/USB-Micro-Fema...279420&sr=1-65

Are you planning to plug this directly into your n900?

If so wouldn't you put undue stress on the N900's USB connector because we all know how fragile it is.

johnel 2010-09-23 22:42

Re: [Testers needed] USB Hostmode prealpha for the N900
 
I looked on ebay and was amazed with the variety of USB Female to Female adapters available.

JohnLF 2010-09-23 23:25

Re: [Testers needed] USB Hostmode prealpha for the N900
 
http://www.usbfirewire.com/uconverters.html

This is just $5 - hope to find a UK one at a similar price...

http://www.usbfirewire.com/Parts/images/rr-2030b.jpghttp://www.usbfirewire.com/Parts/images/rr-2030.jpg

nerfiaux 2010-09-24 02:41

Re: [Testers needed] USB Hostmode prealpha for the N900
 
I did try the package test.
I created directory flash in /media (mkdir /media/flash).
Here below is myUSB adapter:
http://www.usbfirewire.com/Parts/images/rr-2030b.jpg .
Here is my TFlash and the reader :
http://www.clickshop.com/custom/imag...duct-17857.jpg

1 :When I use the Kernel-power40 (I have NITdroid 0.8 installed).
Every time I click on Hostmode VBUS,
I see message "Starting BME" / then i plugg or even not plugging the TFlash :
I always have a reboot.
White LED goes on and reboot.

2: When I use stock kernel, it is ok No reboot, but still have no device detected.
I see "Starting BME"/"Charger Disconnect"/"Connect USB Device Now".
I plug the TFlash the click on mount /dev/sda1
I have nothing new in the file borwser (only emmc and SD Card).
The log tells :
Code:

stop: Job not changed : BME
mount : mounting /dev/sda1 on /media/flash failed: No such file or directory.

I checked in /media/ directory flash exists.
But in /dev,
Code:

ls sd* : No such file or directory
.
So I assume that the device is not detected.

Please tell me how I can provide you debug messages and logs (dmesg or any other logs).
Thanks for job done and thanks for helping me to make it work.

Nerfiaux

flexxxv 2010-09-24 07:09

Re: [Testers needed] USB Hostmode prealpha for the N900
 
Yeah
It is working for me :D
With some minore issues ;)

So I can only connect a usb device after reboot ONCE if I want to do it again I need to restart :( (I tried to set VBus to default but this didn't helped)

Some trick that worked for me if I didn't managed to plug at exact the right time and the device just gets some energy but isn't recognized correctly:
Just plug out plug in it again (without changing anything at software level). This worked for all my flash drives and my USB Hub. :D

one of my flash drives is just showing off as /dev/sda so I had to mount /dev/sda instead of /dev/sda1

With the hub I was able to connect and disconnect thing as often as I want :D were able to use 2 pen drives and one keyboard at the same time :D

Keyboard isn't working directly, I need to have a Hub between (but I didn't do too much testing with this). The keyboard mapping is not really right but anyway.

A lot of thx for fixing my multiboot problem MohammadAG! and this package thing ;)

Btw: it didn't matter for me at all if I connected the flash drive with the cable to n900 or just connected the flash drive to attached cable...

will to provide logs later this day.

toxaris 2010-09-24 07:32

Re: [Testers needed] USB Hostmode prealpha for the N900
 
Got it working.
I use Kernel-Power v40.
Stock USB cable and simple converter bought at the lokal store.
The flashdrive is a Kingston Datatraveler G2 4GB.

But one issue, to restore to default VBUS mode. I have to restart and it works again.

Hmm, if I clicked Hostmode CHARGING before I remove Flashdrive, it seams to work to plug in the phone to a computer again without reboot.

flexxxv 2010-09-24 07:50

Re: [Testers needed] USB Hostmode prealpha for the N900
 
Quote:

Originally Posted by toxaris (Post 824987)
Got it working.
I use Kernel-Power v40.

Are you sure that you are still using this kernel? Do a uname -r
If you get:
2.6.28-hostmode1

You have the right kernel installed :D but not Kernel-Power v40 :D

toxaris 2010-09-24 08:15

Re: [Testers needed] USB Hostmode prealpha for the N900
 
Quote:

Originally Posted by flexxxv (Post 824995)
Are you sure that you are still using this kernel? Do a uname -r
If you get:
2.6.28-hostmode1

You have the right kernel installed :D but not Kernel-Power v40 :D

You are right, didnt notise that it have changed.
But I had Power kernel before.

WhiteWolf 2010-09-24 08:47

Re: [Testers needed] USB Hostmode prealpha for the N900
 
2 Attachment(s)
Today is no longer activated my storage device USB Mass Storage mode.

syslog -> Log out when it can activate the USB Mass Storage external device.

syslog(2) -> Log out when it can not activate the USB Mass Storage external device.

techie 2010-09-24 11:30

Re: [Testers needed] USB Hostmode prealpha for the N900
 
5 Attachment(s)
Working with Sony digital camera.The 1 gb card in it got mounted as USB Mass Storage Device.

Attachment 14020Attachment 14021Attachment 14022Attachment 14023

Successfully copied about 213MB (pictures + video).The battery was ~ 50%.Xorg usage jumped to 20-30%,which returns normal only after rebooting.
However my Kingston 8GB data traveller usb did not work(even the lights won't turn on).Connected a usb mouse, lights came on but no cursor movement.These are the only usb devices I have atm:o Tomorrow will borrow an external hdd to test.
Code:

Hostmode VBUS clicked
Executing pcsuite-enable.sh
Stopping BME
BME stopped
Echoing...
Done echoing commands
Starting BME
VBUS default clicked
killall: vboost.sh: no process killed
Executing Hostmode VBUS again
Executing pcsuite-enable.sh
sh: 0: unknown operand
Stopping BME
BME stopped
Echoing...
Done echoing commands
stop: Job not changed: bme
Mounting /dev/sda1 on /media/flash
VBUS default clicked
Nokia-N900:~#

Code:

/dev/sda    /dev/sda1
Didn't try mounting sda.Maybe its the internal memory of the cam.

I concur with @flexxxv.Reboot is required to connect again.
Thanks!

shockgiga 2010-09-24 12:22

Re: [Testers needed] USB Hostmode prealpha for the N900
 
how come my installation says abort whenever i hit Y?

zenecho 2010-09-24 12:27

Re: [Testers needed] USB Hostmode prealpha for the N900
 
Quote:

Originally Posted by shockgiga (Post 825155)
how come my installation says abort whenever i hit Y?

Are you actually typing Capital "Y" ?

shockgiga 2010-09-24 12:58

Re: [Testers needed] USB Hostmode prealpha for the N900
 
i tried both small and capital y's. still says aborted.

AlMehdi 2010-09-24 13:37

Re: [Testers needed] USB Hostmode prealpha for the N900
 
Quote:

Originally Posted by shockgiga (Post 825185)
i tried both small and capital y's. still says aborted.

Try you native languages equvivalent... I have to use "j" as "Yes" means "Ja" on swedish.

flexxxv 2010-09-24 14:12

Re: [Testers needed] USB Hostmode prealpha for the N900
 
I just was asked to share the fix for multiboot. So now I do :D try at your own risk. Got the solution from MohammadAG . Better don'T try it until he verfied it :D

1. create "/etc/multiboot.d/boot.item" with the following content:
Quote:

ITEM_NAME="Boot"
ITEM_MODULES=ext3
2. install the kernel, modules, flasher debs from first post in Thread (if you already did do it again!)
3. Reboot with opened keyboard and select option "Boot"
4. now feel free to to install the scripts and test (check with "uname -r" if your kernel is "2.6.28-hostmode1")

!!!After starting as normal you will need to flash again the hostmode kernel!

Btw:
MohammedAG confirmed that
sh: 0: unknown operand
is normal because of some bad scripting by Nokia

shockgiga 2010-09-24 15:26

Re: [Testers needed] USB Hostmode prealpha for the N900
 
i managed to get past the installation and reboot. but when i connect the usb flash drive after the "connect usb now" prompt, the flash drive just lights up for a fraction of a second and i can't see it in file manager.

xterm returns "no such file"

nerfiaux 2010-09-24 15:30

Re: [Testers needed] USB Hostmode prealpha for the N900
 
Quote:

Originally Posted by flexxxv (Post 825231)
I just was asked to share the fix for multiboot. So now I do :D try at your own risk. Got the solution from MohammadAG . Better don'T try it until he verfied it :D

1. create "/etc/multiboot.d/boot.item" with the following content:

ITEM_NAME="Boot"
ITEM_MODULES=ext3

2. install the kernel, modules, flasher debs from first post in Thread (if you already did do it again!)
3. Reboot with opened keyboard and select option "Boot"
4. now feel free to to install the scripts and test (check with "uname -r" if your kernel is "2.6.28-hostmode1")

!!!After starting as normal you will need to flash again the hostmode kernel!

Btw:
MohammedAG confirmed that
sh: 0: unknown operand
is normal because of some bad scripting by Nokia

Why "Boot" ?

In directory /etc/multiboot.d/, I have :
00-Maemo-2.6.28-omap1.item
01-Maemo-Kernel-power40.item
11-NITDroid-mmcblk1p2-2.6.28.NIT.06.item

Could I copy the 00-Maemo-2.6.28-omp1.item into :10-Maemo-USB-Hostmode-2.6.28.item
Code:

cp 00-Maemo-2.6.28-omp1.item 10-Maemo-2.6.28-hostmode1.item
and then edit it & modify :
Code:

ITEM_NAME="Maemo 2.6.28 Hostmode1"
ITEM_MODULES=ext3

Then Follow the Procedure in 1st Post of MohammadAG
I have not tried yet, but I checked that I have a correct Kernel 2.6.28-hostmode1 !

Thanks !

flexxxv 2010-09-24 16:25

Re: [Testers needed] USB Hostmode prealpha for the N900
 
@nerfiaux
I'm pretty shure u can use antithing instead of "Boot"
think it was just for me for testing

I havnn't played to much with the multiboot but your solution sounds good. mybee i'll try tomorrow :D

ivyking 2010-09-24 16:44

Re: [Testers needed] USB Hostmode prealpha for the N900
 
Quote:

Originally Posted by shockgiga (Post 825155)
how come my installation says abort whenever i hit Y?

talk about copying multiple lines of commands and pasting directly..
either modify the apt-get install line before copying to
apt-get -y install XXX
or simply copy and paste the commands line by line.

about multiboot , you can use anything instead of "boot", this is simply a name to be shown on the screen .

pali 2010-09-24 16:46

Re: [Testers needed] USB Hostmode prealpha for the N900
 
It is possible to use USB ethernet adapters with this kernel?

ivyking 2010-09-24 17:00

Re: [Testers needed] USB Hostmode prealpha for the N900
 
not right now , first this is prealpha , u need to reboot for phone to recognize changed devices (meaning u connect a flash drive , and after you are done using it , the phone wont recognize any other flash drive until you reboot), also the drivers for other devices are not ported yet , flash drives are the only thing working now .

pali 2010-09-24 17:03

Re: [Testers needed] USB Hostmode prealpha for the N900
 
So it is not possible to use standard linux usb drivers?

flexxxv 2010-09-24 17:35

Re: [Testers needed] USB Hostmode prealpha for the N900
 
@pali
the question if there are support for these devices compiled into this special kernel (MohammedAG will know). try it. you'll need to set up the device by hand.
I can't test because I don't hav a usb2eth device

pali 2010-09-24 17:42

Re: [Testers needed] USB Hostmode prealpha for the N900
 
So if I compile kernel modules for usb ethernet adapter (there are some working for n8x0) into "special kernel" will it be work?

Or is this special usb host mode only for usb flash devices and other usb devices will never working without "special patches" for this "special kernel" ?

flexxxv 2010-09-24 17:49

Re: [Testers needed] USB Hostmode prealpha for the N900
 
@pali
I think:
this kernel has patches to make to make the host mode possible. In host mode any usb device should (doesn't mean it will) work as expected if the right kernel nodules are loaded and the device doesn't need to much power.

1st find out if there aren't any modules yet, if not you can try to compile your own. they should work if the USB ethernet adapter doesn't need too much energy (if it does use an active hub)

I recommend an hub in any way because then you can connect and disconnect your device without reboot.

Dave999 2010-09-24 18:06

Re: [Testers needed] USB Hostmode prealpha for the N900
 
I've have read this thread but I can't really deacid/understand if there are people here, which actually got this right in any usable way?

nerfiaux 2010-09-24 18:11

Re: [Testers needed] USB Hostmode prealpha for the N900
 
I have updated my post,
I have the correct kernel 2.6.28-hostmode1
But I still have no luck with the TFlash.
I will try to find USB convert female to female for getting close to the standard setup.
Also I will get a USB Hub with external power.

MohammadAG, could you link your kernel with Titan's one.
Or could titan modify its kernel power to fit your kernel hostmode ?

nerfiaux 2010-09-24 18:15

Re: [Testers needed] USB Hostmode prealpha for the N900
 
Quote:

Originally Posted by Dave999 (Post 825454)
I've have read this thread but I can't really deacid/understand if there are people here, which actually got this right in any usable way?

The Title says : "PREALPHA", no worry if it is does not work yet.
It is the way to make it standardand easy working and usable way.
When things are easy, things are boaring !

Eventhough it does not work for me I will keep giving it a try !
Maybe you can ask the H.E.N. garage to create a wiki.

Nerfiaux!

aligatro 2010-09-24 21:49

Re: [Testers needed] USB Hostmode prealpha for the N900
 
2 Attachment(s)
My flashdrive refuses to work :(

I get this message in dmesg:

Quote:

[ 140.306427] hub 1-0:1.0: unable to enumerate USB device on port 1
[ 143.032653] musb_bus_suspend 2266: trying to suspend as a_host is_active=1
[ 143.157012] usb 1-1: new high speed USB device using musb_hdrc and address 20
[ 143.305847] usb 1-1: device v0781 p5406 is not supported
[ 143.305908] hub 1-0:1.0: unable to enumerate USB device on port 1
full log is attached

[added]
Tested with a second flashdrive and another error shows up. attached second log file

MohammadAG 2010-09-24 22:32

Re: [Testers needed] USB Hostmode prealpha for the N900
 
Quote:

Originally Posted by aligatro (Post 825681)
My flashdrive refuses to work :(

I get this message in dmesg:



full log is attached

[added]
Tested with a second flashdrive and another error shows up. attached second log file

About the second one, you flashed back to the stock kernel :/
From your logs:
Code:

[  20.667785] misc iphb: Module registered in 2.6.28-omap1, built Apr 15 2010 09:48:35

aligatro 2010-09-24 22:33

Re: [Testers needed] USB Hostmode prealpha for the N900
 
Quote:

Originally Posted by MohammadAG (Post 825711)
About the second one, you flashed back to the stock kernel :/
From your logs:
Code:

[  20.667785] misc iphb: Module registered in 2.6.28-omap1, built Apr 15 2010 09:48:35

oO ooh I know what happened. multiboot.

aligatro 2010-09-24 23:06

Re: [Testers needed] USB Hostmode prealpha for the N900
 
ok , sandisk 8 is working now. Gonna check second flashdrive.
[Added] also works. :)

hardkorek 2010-09-25 00:07

Re: [Testers needed] USB Hostmode prealpha for the N900
 
I just ordered adaptor so I'll join to test asap.
Great job, it was only thing i missing in this device.

toxaris 2010-09-25 00:34

Re: [Testers needed] USB Hostmode prealpha for the N900
 
As I posted before, I got it to work as expected, but since I use FCam from time to time and that drivers dosent work with hostmode kernel, so I reverted. Also I use OC to run a few PSX games to run smooth. but I will follow this thread, but I suggest this gets implemented in Kernel-Power. that way you get both world, that would be something to show your friends :)

WillianWives 2010-09-25 01:46

Re: [Testers needed] USB Hostmode prealpha for the N900
 
Do you guys think this will ever be an ordinary and simple app?

Also: Great job man! :-)

aligatro 2010-09-25 03:15

Re: [Testers needed] USB Hostmode prealpha for the N900
 
Quote:

Originally Posted by WillianWives (Post 825797)
Do you guys think this will ever be an ordinary and simple app?

Also: Great job man! :-)

it's kinda already is.

ryanl33x1511 2010-09-25 05:10

Re: [Testers needed] USB Hostmode prealpha for the N900
 
can we use wlan usb host mod on this ? or its jjust hard driver host ?

Aydan 2010-09-25 09:57

Re: [Testers needed] USB Hostmode prealpha for the N900
 
Hi Guys,

i tried to get the host mode kernel working but I'm having some problems.
I'm working with multiboot so I left out the installation of the flasher.
Instead I extracted the kernel image from the deb-package and put in into /boot/multiboot and added an appropriate item file for multiboot.
When I try to start with the kernel i get the white Nokia screen and after a few seconds the phone shuts off. When I switch it on again i get the same, not even the multiboot screen. I have to use flasher to reflash the kernel.
What's going on here? I'd really like to try hostmode.

Regards
Aydan

Aydan 2010-09-25 10:13

Re: [Testers needed] USB Hostmode prealpha for the N900
 
A little update:
after reflashing the PR1.2 kernel with the flasher and then selecting the power40 kernel it won't boot either. It will only boot with the PR1.2 kernel. Booting the power kernel will exhibit the same behaviour like booting the hostmode kernel.

Dousan 2010-09-25 10:24

Re: [Testers needed] USB Hostmode prealpha for the N900
 
Quote:

Originally Posted by Aydan (Post 825919)
A little update:
after reflashing the PR1.2 kernel with the flasher and then selecting the power40 kernel it won't boot either. It will only boot with the PR1.2 kernel. Booting the power kernel will exhibit the same behaviour like booting the hostmode kernel.

Had that same problem with multiboot as you... played with multiboot yesterday and no success here either :( I found that when i flashed the kernel only (omap1) i had to boot the default one first (omap1) and then do a reboot to power40 to make it work otherwise i ended up in the Nokia splash screen and no multiboot option screen, then after some time it turned off ;) Flexxxv wrote a small guide on how to make it work with multiboot a few pages back ;) Easy to do...

The guide works and you can boot into hostmode1 from multiboot, i'm not sure that if you do a reboot to another kernel and then back to hostmode that it will boot or go into Nokia splash screen and then nothing and then shot off? I think you need to flash the hostmode1 kernel before rebooting everytime you want to use the usb option. Note that after trying usb mode you can't charge your phone and you need to boot into another kernel to charge at the mom :)


All times are GMT. The time now is 08:14.

vBulletin® Version 3.8.8