View Single Post
Posts: 17 | Thanked: 0 times | Joined on Sep 2010
#101
Originally Posted by MohammadAG View Post
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.



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
Hi and thank you for this.
I have some problems becouse at step 3 (when i write apt-get install i2c-tools python2.5 python2.5-qt4) i see this:

reading package list... done
building dependency tree
reading state information... done
package i2c-tools is not available, but is referred to by another package.
this may mean that the package is missing, has been obsolated, or is only available from another source
e: package i2c-tools has no installation candidate

Now how i can install i2c??

thank you
Livio