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)

MohammadAG 2010-09-23 12:12

[Testers needed] USB Hostmode prealpha for the N900
 
First of all, thanks to joerg_rw for kicking off the hostmode project, and sarahn for the patches, as well as all the devs involved in the project.
The patches are the same ones released in May/June, with a proper method to reproduce them.

This is a prealpha release, although it works on my device, it has NOT been tested on any other devices (kernel is safe though).
Also, DON'T play with i2cset without knowing what to do, the commands in the UI are safe, but don't feel free to experiment with them.

This post by joerg_rw summarizes the main points about this release

You will need to a female to female USB adapter, and the stock USB cable.
Do all the commands below as root.

Step 1: Download kernel-hostmode packages:
Code:

wget http://mohammadag.xceleo.org/hostmode/Jul%2027%202010/kernel-hostmode-flasher_2.6.28-20102201+0m5-hostmode1_armel.deb
wget http://mohammadag.xceleo.org/hostmode/Jul%2027%202010/kernel-hostmode-modules_2.6.28-20102201+0m5-hostmode1_armel.deb
wget http://mohammadag.xceleo.org/hostmode/Jul%2027%202010/kernel-hostmode_2.6.28-20102201+0m5-hostmode1_armel.deb

Step 2: Install packages in this order:
Code:

dpkg -i kernel-hostmode_2.6.28-20102201+0m5-hostmode1_armel.deb kernel-hostmode-modules_2.6.28-20102201+0m5-hostmode1_armel.deb
Code:

dpkg -i kernel-hostmode-flasher_2.6.28-20102201+0m5-hostmode1_armel.deb
Step 3: Download hostmode scripts package:
Code:

wget http://mohammadag.xceleo.org/hostmode/hostmode-scripts_0.1_all.deb
apt-get install i2c-tools python2.5 python2.5-qt4
dpkg -i hostmode-scripts_0.1_all.deb

Step 4: Reboot the device.
Step 5: Start terminal, type root, then python /root/hostmode.py
Step 6: Click Hostmode VBUS, connect flash drive when you see Starting BME.

Using the mount /dev/sda1 button should create a dir in /media and mount the node there, use the filemanager to view stuff on the flash stick, I have successfully copied 2.6GBs and 1.7GBs, to two different devices, a WD MyBook (1TB in size), and a flash stick 4GBs in size, playing music off of it worked as expected.

Quote:

Originally Posted by joerg_rw
Please support hostmode development, join h-e-n.garage.maemo.org if you are a kernel hacker knowing about USB, or provide nice logs if you are a technically savvy user.

Looking forward to patches and kernel logs :)
Refer to https://garage.maemo.org/frs/?group_id=1660 for all files related to the project except binaries.

https://garage.maemo.org/projects/h-e-n/

To compile packages from the sources (in scratchbox)

Code:

apt-get source kernel
cd kernel-2.6.28
wget https://garage.maemo.org/frs/download.php/8384/fullpatchrevision2.diff
patch -p1 <fullpatchrevision2.diff
fakeroot dpkg-buildpackage -b


WhiteWolf 2010-09-23 14:21

Re: [Testers needed] USB Hostmode prealpha for the N900
 
I'll try.

Comment results.

Thanks for the effort.

qosmio 2010-09-23 15:00

Re: [Testers needed] USB Hostmode prealpha for the N900
 
I'll give it a go! and will let you know when and if I get i working.

Great work and thanks to everyone who worked dam hard on this!

Kind Regards Qosmio

WhiteWolf 2010-09-23 15:00

Re: [Testers needed] USB Hostmode prealpha for the N900
 
Followed the steps one by one.

Create "/ media / flash"

Drive does not mount "/ dev/sda1"

Rebooting and trying again.

WhiteWolf 2010-09-23 15:12

Re: [Testers needed] USB Hostmode prealpha for the N900
 
It seems that does not give power to the pendrive. Pilot lights not connected.

I'll try with full charge battery.

donaggio 2010-09-23 15:13

Re: [Testers needed] USB Hostmode prealpha for the N900
 
Thanks a lot to all the people at project h-e-n for your efforts!

ahmadamaj 2010-09-23 15:21

Re: [Testers needed] USB Hostmode prealpha for the N900
 
thank you everyone who participated in this project. i need to ask, does it work with an adapter like the one that comes with the n8?

jacktanner 2010-09-23 15:24

Re: [Testers needed] USB Hostmode prealpha for the N900
 
@WhiteWolf - not surprising if it doesn't power the pen drive. Try with a device that has own power, e.g., an external HD with own A/C adapter.

SSLMM 2010-09-23 15:24

Re: [Testers needed] USB Hostmode prealpha for the N900
 
"mount: mounting /dev/sda1 on /media/flash failed: no suck file or directory"

:\

Thanks for all the work and time dispended with this :)

WhiteWolf 2010-09-23 15:26

Re: [Testers needed] USB Hostmode prealpha for the N900
 
I'm using the original cable that came with my N900.
http://elrincondetolgalen.files.word...pg?w=500&h=375

jacktanner 2010-09-23 15:34

Re: [Testers needed] USB Hostmode prealpha for the N900
 
@SSLMM you're missing the mount point. First do

mkdir /media/flash

@WhiteWolf that cable is fine (i think) but it still doesn't power the external device

MohammadAG 2010-09-23 15:36

Re: [Testers needed] USB Hostmode prealpha for the N900
 
Video's crappy, but remember to connect the stick directly after starting BME is shown.
http://www.youtube.com/watch?v=mXkQErnrb1Q

TiagoTiago 2010-09-23 15:53

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

Originally Posted by jacktanner (Post 824441)
@WhiteWolf - not surprising if it doesn't power the pen drive. Try with a device that has own power, e.g., an external HD with own A/C adapter.

It won't ever supply power to connected devices?

pelago 2010-09-23 15:59

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

Originally Posted by WhiteWolf (Post 824444)
I'm using the original cable that came with my N900.
http://elrincondetolgalen.files.word...pg?w=500&h=375

What cable is that? It doesn't look like a Nokia cable.

flexxxv 2010-09-23 16:05

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

Originally Posted by WhiteWolf (Post 824444)
I'm using the original cable that came with my N900.
http://elrincondetolgalen.files.word...pg?w=500&h=375

Mine is more looking like this:
http://europe.nokia.com/find-product...y-cable-ca-101
are different cables packaged with the n900??

Anyway I'll try now the host mode :D

edit: I was too slow...

MohammadAG 2010-09-23 16:06

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

Originally Posted by TiagoTiago (Post 824473)
It won't ever supply power to connected devices?

Actually, it does.

Please bear in mind this is a pre-alpha, it might not work for some of you.
Also, if you can, install sysklogd and provide a copy of /var/log/syslog.

TiagoTiago 2010-09-23 16:11

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

Originally Posted by flexxxv (Post 824490)
Mine is more looking like this:
http://europe.nokia.com/find-product...y-cable-ca-101
are different cables packaged with the n900??

....

mine didn't come with the adapter for older charger plugs

flexxxv 2010-09-23 16:31

Re: [Testers needed] USB Hostmode prealpha for the N900
 
Ok I'm still playing with this :D
I tried two flash drives:
no success, just power but not recognized by the system :( Will provide logs later.
Will try now a self powered HD.

btw:
is it normal that i get after "executing pcsuite-enable.sh":
sh: 0: unknown operand

niGhT 2010-09-23 16:33

Re: [Testers needed] USB Hostmode prealpha for the N900
 
omg i just cant believe... was waiting for this.... \m/ thank you so much i am gona try it out ryt away n update :)... thanks...

WhiteWolf 2010-09-23 17:09

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

Originally Posted by MohammadAG (Post 824455)
Video's crappy, but remember to connect the stick directly after starting BME is shown.
http://www.youtube.com/watch?v=mXkQErnrb1Q

No distinction practically nothing in the video

Chrome 2010-09-23 17:19

Re: [Testers needed] USB Hostmode prealpha for the N900
 
How does this effect kernel-power, NITKernel, or multiboot in general?

Great job btw :)

pedram_noei_a 2010-09-23 17:22

Re: [Testers needed] USB Hostmode prealpha for the N900
 
hi and thanks for all working on this project
i have installed nitdroid and power kernal on my phone
if i want to test this project what will be happen?
any changes in my boot menus or other kernels i have installed?
any losing of data?
thanks again

ivyking 2010-09-23 17:37

Re: [Testers needed] USB Hostmode prealpha for the N900
 
i am getting 2.56 v out from the n900 , on 80% battery , so i think some people may get power leds to light on some devices , but they won't be recognized by the system , since the controller/processor on that device isn't actually on , i think minimum voltage is 3.3v , i will charge the battery fully and hope to get more than 3.3 v , BIG THANKS to all developers .in future i hope we can get 5v out.

[EDIT]the above is wrong , i had a faulty cable , the output is 5v .

MohammadAG 2010-09-23 17:47

Re: [Testers needed] USB Hostmode prealpha for the N900
 
How are you testing voltage, is i2c-tools installed, does anything like Permission denied show in the terminal window?

WhiteWolf 2010-09-23 17:52

Re: [Testers needed] USB Hostmode prealpha for the N900
 
I tried with a digital photo frame and when I connected the N900 is activated operating mode showing PENDRIVE.

Listing "/ dev" is not "/ dev/sda1", missing the mount in / media / flash ".

At least it seems that way pendrive into the storage device.

pedram_noei_a 2010-09-23 17:56

Re: [Testers needed] USB Hostmode prealpha for the N900
 
i cant wait please answer my last post and let me to know what will happen if i install this?!

WhiteWolf 2010-09-23 17:56

Re: [Testers needed] USB Hostmode prealpha for the N900
 
I had to modify the script vboost.sh to locate the command i2cset. "

/usr/local/sbin/i2cset

MohammadAG 2010-09-23 18:00

Re: [Testers needed] USB Hostmode prealpha for the N900
 
If you're running the app as root /usr/local/sbin/ should be in $PATH.

This is a prerelease, if you're not sure what you're doing then wait for a newer more stable release :)

cfh11 2010-09-23 18:11

Re: [Testers needed] USB Hostmode prealpha for the N900
 
Everyone asking questions, please make sure you read Joerg_rw's post cited in the first post:

http://talk.maemo.org/showpost.php?p...&postcount=218

WhiteWolf 2010-09-23 18:21

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

Originally Posted by MohammadAG (Post 824602)
If you're running the app as root /usr/local/sbin/ should be in $PATH.

This is a prerelease, if you're not sure what you're doing then wait for a newer more stable release :)

I found that /usr/local/sbin/ is not included in $PATH.(root)

I've solved.

WhiteWolf 2010-09-23 18:55

Re: [Testers needed] USB Hostmode prealpha for the N900
 
By connecting pendrive displays the following error message:

>> Can not connect, no file system available

Still shows the drive / dev/sda1 and therefore can not mount it.

MohammadAG 2010-09-23 19:02

Re: [Testers needed] USB Hostmode prealpha for the N900
 
If you got that error message, host mode worked, check ls /dev/sd* for a list of devices to mount, currently it's hardcoded to /dev/sda1

WhiteWolf 2010-09-23 19:09

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

Originally Posted by MohammadAG (Post 824648)
If you got that error message, host mode worked, check ls /dev/sd* for a list of devices to mount, currently it's hardcoded to /dev/sda1

Already mentioned that the storage device goes into "USB mass storage."

But in the path "/dev/" is not a device "/dev/sd *"

Thank you very much for the effort they are doing.

ivyking 2010-09-23 20:14

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

Originally Posted by MohammadAG (Post 824592)
How are you testing voltage, is i2c-tools installed, does anything like Permission denied show in the terminal window?

testing voltage using a multimeter-meter while load is connected, i have i2c-tools installed , and no errors are shown in terminal .

zenecho 2010-09-23 20:14

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

Originally Posted by flexxxv (Post 824515)
btw:
is it normal that i get after "executing pcsuite-enable.sh":
sh: 0: unknown operand


I get the same error - using a powered USB Drive

celebrant 2010-09-23 20:39

Re: [Testers needed] USB Hostmode prealpha for the N900
 
So I tried it too and unfortunately my USB flash drive wasn't recognized. But the good news is, that the script indeed enabled 5V output (measured 5.05 V using a voltmeter) so when I tried connecting a mouse the light turned on... but nothing showed up in dmesg (new usb device should be mentioned in dmesg, right?).

http://fileshare.cqproject.net/files/syslog

aligatro 2010-09-23 21:30

Re: [Testers needed] USB Hostmode prealpha for the N900
 
Can't connect flash drive right now to check, but definitely get 5 volts. I plugged it into usb hub and and flashcard lit up after I switched to host-mode. So only, storage usb devices are detected for now or we can can connect keyboards,etc ?

pantera1989 2010-09-23 22:05

Re: [Testers needed] USB Hostmode prealpha for the N900
 
Can anyone confirm if this cable works?

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

MohammadAG 2010-09-23 22:22

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

Originally Posted by WhiteWolf (Post 824655)
Already mentioned that the storage device goes into "USB mass storage."

But in the path "/dev/" is not a device "/dev/sd *"

Thank you very much for the effort they are doing.

Can you apt-get install sysklogd, reboot, and try to reproduce what worked for you? ty

As for the error from pcsuite-enable.sh, it can be ignored, it's just lazy coding by Nokia.

And again, @ others, connect the flash drive directly after Starting BME is shown, and no more than after Connect the device NOW is shown.

WhiteWolf 2010-09-23 22:25

Re: [Testers needed] USB Hostmode prealpha for the N900
 
I'll try and communicate the results, thanks.


All times are GMT. The time now is 04:01.

vBulletin® Version 3.8.8