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-27 18:26

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

Originally Posted by mveplus (Post 827207)
Quick review of battery drain usage during hostmode.py activated.
Exported form BatteryGraph v.0.3.2
Note - after installation of hostmode kernel I enabled hostmode.py instantly.
SEP.25 - 16:30 to 19:05 I'm using Original battery BL-5J, after 19:05 to 21:00 o'clock using second battery.
First battery shut down the phone without notice at 19:05. with usual low warning message .

SEP.26 hostmode.py was enabled from 09:20 to 11:20 for testing, mainly using only powered HUB. logfile , it was published before on my second post, but now is uploaded on other location, more easy accessible, and no restriction.

The drainage is the same no matter does I use external powered hub or just directly supply power for single USB flash drive.

Battery discharge is around 2 hour and 20-30 minutes.

Graph - PNG on Dropbox
ZIPPED PNG with notes here

Remember this it PreAlpha yet.

Finally, something that could be counted as a contribution, thanks :D
I've also noticed that hostmode.py sometimes gets stuck and doesn't respond at all, which I'm assuming is because of Python sucking at handling memory, so I've started doing the app again in Qt/C++ (god python is so much easier to code in...)

Dousan 2010-09-28 08:44

Re: [Testers needed] USB Hostmode prealpha for the N900
 
1 Attachment(s)
Finally it worked for me allso :D

What i did was start up the bme script, plug in flashstick when 'starting bme' showed (no light in my flashstick at this point), waited to 'connect usb now' showed and waited about 5 secs, then unpluged and repluged the flashstick and now the light blimped on the flashstick, then checked in xterm: ls /dev/sd* and got /dev/sda + /dev/sda1, then pushed mount /dev/sda1 in bme ui... And there it was the flashstick in the N900 file browser ;)

Thanks to all the devs and the ones posting there experience and tips in this thread :D

Here's my sylog (flashstick)...
Attachment 14122

e: Just did it with a external HDD powered by a netbook (i know not that OTG lol) and didn't need to unplug/replug to make it work ;)

Kymera76 2010-09-28 13:40

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

Originally Posted by Dousan (Post 828166)
Finally it worked for me allso :D

What i did was start up the bme script, plug in flashstick when 'starting bme' showed (no light in my flashstick at this point), waited to 'connect usb now' showed and waited about 5 secs, then unpluged and repluged the flashstick and now the light blimped on the flashstick, then checked in xterm: ls /dev/sd* and got /dev/sda + /dev/sda1, then pushed mount /dev/sda1 in bme ui... And there it was the flashstick in the N900 file browser ;)

Thanks to all the devs and the ones posting there experience and tips in this thread :D

Here's my sylog (flashstick)...
Attachment 14122

e: Just did it with a external HDD powered by a netbook (i know not that OTG lol) and didn't need to unplug/replug to make it work ;)

Hi Dousan when i replug my pendrive the light flash but i don't see files on N900 filemanager. I must click on mount /dev/sda1 first? Thank you

p.s.: when i see xterminal after click mount /dev/sda1 i see this:
mounting /dev/sda1 on /media/flash
mount: mounting /dev/sda1 on /media/flash failed: no such file or directory

nerfiaux 2010-09-28 16:05

Re: [Testers needed] USB Hostmode prealpha for the N900
 
2 Attachment(s)
MohammadAG,

It works with my USB adpators:
- USB female to USB Female+Cable
- USB female to µUSB Male (OTG embedded ?)

Here is the logs. (I am still using your first package from the 20102201).
I still have issue on booting from kernel-hostmode1 to Kernel-Power40.
I provided some logs.

Great Job, well done !

P.S: In your new Qt Gui could we have umount button ?
Could this help the procedure to detect a new device, without having to reboot ?

mveplus 2010-09-29 02:01

Re: [Testers needed] USB Hostmode prealpha for the N900
 
5 Attachment(s)
Hi,
A few things noticed during daily testings:
1.During boot process yellow led, start flashing for a few seconds - flash pattern indicate charge mode without charger connected (cold be BME load or the musb starting) is that normal behavior?
2.After restart of N900 and starting #python /root/hostmode.py, and click on "hostmode VBUS" - usb is detected and node created in /dev/sda1, disconnecting single drive and connecting other USB drive will give errors in syslog:
Code:

[37722.812316] usb 1-1: new high speed USB device using musb_hdrc and address 6
[37722.812347] musb is_host_active 1 is_active 0
[37723.023284] musb is_host_active 1 is_active 0
[37723.234039] usb 1-1: device not accepting address 6, error -19
[37723.234100] musb_hub_control      280: clear feature 1
[37723.234191] hub 1-0:1.0: unable to enumerate USB device on port 1
[37723.234222] musb_hub_control      280: clear feature 1
[37723.234283] musb_hub_control      346: port status 00020501
[37723.234313] musb_hub_control      280: clear feature 17

again reconecting the first USB drive will not work till reboot, there is 5V on the USB during all the time (these was mentioned before) but I can add next side effect:
3. After reboot and using N900 for a day without starting hostmode, then starting hosmode and trying to connect device, no longer work, until I reboot (need conformation and further testing-happened 3 times, but today after one night on is still working).
4. When USB device is recognized and mounted, without doing anything else, it has constant activity reading and writing to device (it could be tracerd indexing service, but activity last till disconnecting device after 30 minutes)
5.Few days running hostmode1 kernel logs

Attaching few logs including powertop (LCD was off during all 4 test) and udev trigger device and subsystem does not help for proper recognizing device again logs:

Adding todays log

Can someone confirm some of the things mentioned?

Schriek 2010-09-29 18:54

Re: [Testers needed] USB Hostmode prealpha for the N900
 
2 Attachment(s)
Okay me Usb lights his LED up, but damn it won't mount, Syslog provided.

Also, i got an IOerror in your script, see attachement

mveplus 2010-09-30 02:12

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

Originally Posted by Schriek (Post 829548)
Okay me Usb lights his LED up, but damn it won't mount, Syslog provided.

Also, i got an IOerror in your script, see attachement

In hostmode.py on line 144 witch is
Quote:

dummy = os.popen('/root/vboost.sh &').read()
executing this
Code:

#!/bin/sh
echo "Stopping bme and raising power output to 5V"
stop bme; sleep 3; i2cset -y -m 0x07 2 0x6b 0x01 0x05; while true; do sleep 28; i2cset -y -m 0x80 2 0x6b 0x00 0x80; done

but reading back result gave error? MohammadAG?
I do not know python, but it seem that for some reason it can not reach the stage where you can mount your device.
can you reboot and click hostmode vbus,connect your USB and post the result from the fallowing commands in prompt:
Code:

ls /dev/sd*
Code:

ls /usr/local/sbin/i2*
and your full syslog, not only part of it.
Quote:

WARNING
i2cset can be extremely dangerous if used improperly. It can confuse your I2C bus, cause data loss, or have more serious side effects. Writing to a serial EEPROM on a memory DIMM (chip addresses between 0x50 and 0x57) may DESTROY your memory, leaving your system unbootable! Be extremely careful using this program.
Do not play with it , as MohammadAG said you can regret if you do so.

Also if you can measure the output voltage form your USB post value here?

avidscavenger 2010-09-30 02:52

Re: [Testers needed] USB Hostmode prealpha for the N900
 
Is there any good reason why the hostmode kernel has to be flashed to work with multiboot and can't just be placed in /boot/multiboot? I'm guessing that flashing it makes it the emergency/default boot - I'd prefer to keep the most conservative kernel possible for that purpose.

Schriek 2010-09-30 08:04

Re: [Testers needed] USB Hostmode prealpha for the N900
 
1 Attachment(s)
Quote:

Originally Posted by mveplus (Post 829775)
In hostmode.py on line 144 witch is executing this
Code:

#!/bin/sh
echo "Stopping bme and raising power output to 5V"
stop bme; sleep 3; i2cset -y -m 0x07 2 0x6b 0x01 0x05; while true; do sleep 28; i2cset -y -m 0x80 2 0x6b 0x00 0x80; done

but reading back result gave error? MohammadAG?
I do not know python, but it seem that for some reason it can not reach the stage where you can mount your device.
can you reboot and click hostmode vbus,connect your USB and post the result from the fallowing commands in prompt:
Code:

ls /dev/sd*
Code:

ls /usr/local/sbin/i2*
and your full syslog, not only part of it.
Do not play with it , as MohammadAG said you can regret if you do so.

Also if you can measure the output voltage form your USB post value here?

Thanks for help

First, i cant measure the voltage, but i assume theres a voltage because the LED goes up.

ls /dev/sd* returned : No such file or directory

ls/usr/local/sbin/i2* Returned: No such file or directory

BTW

IOerror is input output, so i think it gives the error because my flashdrive can't be read.

Only an idea maybe im talkin complete ****, but im learning java, C, linux and all the shizzle on school right now :)

Thanks again

Dousan 2010-09-30 08:35

Re: [Testers needed] USB Hostmode prealpha for the N900
 
1 Attachment(s)
I tested my external hdd some more and it turns out i can only read/copy from it not write/copy to it?

Attachment 14196


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

vBulletin® Version 3.8.8