Closed Thread
Thread Tools
MohammadAG's Avatar
Posts: 2,473 | Thanked: 12,265 times | Joined on Oct 2009 @ Jerusalem, PS/IL
#181
Originally Posted by mveplus View Post
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
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...)
 

The Following 12 Users Say Thank You to MohammadAG For This Useful Post:
Dousan's Avatar
Posts: 1,161 | Thanked: 1,707 times | Joined on Jan 2010 @ Denmark
#182
Finally it worked for me allso

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

Here's my sylog (flashstick)...
Syslog.zip

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
__________________
My Procreate art:
https://folio.procreate.art/dousan

My Søciety6:
http://society6.com/Dousan

Last edited by Dousan; 2010-09-28 at 08:58. Reason: Adding info :)
 

The Following 3 Users Say Thank You to Dousan For This Useful Post:
Posts: 17 | Thanked: 0 times | Joined on Sep 2010
#183
Originally Posted by Dousan View Post
Finally it worked for me allso

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

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

Last edited by Kymera76; 2010-09-28 at 13:51.
 
Posts: 35 | Thanked: 14 times | Joined on Apr 2010 @ Angers, France
#184
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 ?
Attached Files
File Type: gz OTG Converter.tar.gz (387.2 KB, 116 views)
File Type: gz reboot from Hostmode1 to Kernel-Power40.tar.gz (21.6 KB, 122 views)

Last edited by nerfiaux; 2010-09-28 at 18:18. Reason: comments added
 

The Following 2 Users Say Thank You to nerfiaux For This Useful Post:
mveplus's Avatar
Posts: 66 | Thanked: 77 times | Joined on Jul 2010 @ intheclouds
#185
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?
Attached Files
File Type: txt powertop1-nohosmode.txt (4.6 KB, 106 views)
File Type: txt powertop2-hostmod.py-started.txt (5.2 KB, 110 views)
File Type: txt powertop3-hostmodeactive.txt (5.9 KB, 105 views)
File Type: txt powertop4-hostmodeactive-after-10min.txt (5.7 KB, 104 views)
File Type: txt udevmonitor.txt (668 Bytes, 143 views)

Last edited by mveplus; 2010-09-29 at 02:12. Reason: update
 

The Following 4 Users Say Thank You to mveplus For This Useful Post:
Posts: 19 | Thanked: 6 times | Joined on Sep 2010
#186
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
Attached Images
 
Attached Files
File Type: txt syslog.txt (5.9 KB, 139 views)
 

The Following 3 Users Say Thank You to Schriek For This Useful Post:
mveplus's Avatar
Posts: 66 | Thanked: 77 times | Joined on Jul 2010 @ intheclouds
#187
Originally Posted by Schriek View Post
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
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.
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?
 

The Following User Says Thank You to mveplus For This Useful Post:
Posts: 96 | Thanked: 80 times | Joined on May 2010
#188
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.
 
Posts: 19 | Thanked: 6 times | Joined on Sep 2010
#189
Originally Posted by mveplus View Post
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
Attached Files
File Type: zip syslog.zip (114.3 KB, 89 views)

Last edited by Schriek; 2010-09-30 at 09:16.
 

The Following 2 Users Say Thank You to Schriek For This Useful Post:
Dousan's Avatar
Posts: 1,161 | Thanked: 1,707 times | Joined on Jan 2010 @ Denmark
#190
I tested my external hdd some more and it turns out i can only read/copy from it not write/copy to it?

Syslogreadonly.zip
__________________
My Procreate art:
https://folio.procreate.art/dousan

My Søciety6:
http://society6.com/Dousan

Last edited by Dousan; 2010-09-30 at 08:39.
 

The Following 2 Users Say Thank You to Dousan For This Useful Post:
Closed Thread


 
Forum Jump


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