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)

kuavo15 2010-09-25 11:20

Re: [Testers needed] USB Hostmode prealpha for the N900
 
hi i dit this but when i want to close n900 ,dont close, always open please help me i want to delete hostmode from my n900

MohammadAG 2010-09-25 11:35

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

Originally Posted by Dousan (Post 825921)
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 :)

Actually, you just need to reboot, this is related to some issue with bme not starting up properly if you disconnect in a certain sequence.

apt-get --reinstall install kernel kernel-modules kernel-flasher to restore stock kernel, this isn't really for noobs...

Aydan 2010-09-25 11:48

Re: [Testers needed] USB Hostmode prealpha for the N900
 
Now I have two questions:
1. What could be the reason for the aborted boot?
2. Is it possible to multiboot power40 and hostmode?

flexxxv 2010-09-25 11:53

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

Originally Posted by MohammadAG (Post 825952)
Actually, you just need to reboot, this is related to some issue with bme not starting up properly if you disconnect in a certain sequence.

apt-get --reinstall install kernel kernel-modules kernel-flasher to restore stock kernel, this isn't really for noobs...

If my n900 refuses to charge after host mode it normally was enough to change back to dfault vbus and then to stop and start bme by hand. (but this can be tricky :p)

kuavo15 2010-09-25 12:06

Re: [Testers needed] USB Hostmode prealpha for the N900
 
I applied these packages.but did not.There is a downside to my phone.except for one thing.my phone shuts down and immediately opened my phone when I click close button and text flow stops.does not turn off my phone
I followed the packages I want to remove this.plese help me

Dousan 2010-09-25 13:23

Re: [Testers needed] USB Hostmode prealpha for the N900
 
@kuavo15 I believe MuhammadAG has answered you with this:

apt-get --reinstall install kernel kernel-modules kernel-flasher

to restore stock kernel, this isn't really for noobs... ;)

kuavo15 2010-09-25 13:39

Re: [Testers needed] USB Hostmode prealpha for the N900
 
hi @ Dousan thanks for help me

but i just want to remove

kernel-hostmode_2.6.28-20102201+0m5-hostmode1_armel.deb
kernel-hostmode-modules_2.6.28-20102201+0m5-hostmode1_armel.deb
kernel-hostmode-flasher_2.6.28-20102201+0m5-hostmode1_armel.deb
i2c-tools python2.5 python2.5-qt4
hostmode-scripts_0.1_all.deb

from my n900 i believe when i remove they i have answered

but i dont now how can i remove they :(

nerfiaux 2010-09-25 14:54

Re: [Testers needed] USB Hostmode prealpha for the N900
 
MohammadAG,
FYI:
I notice that when I shutdown from nitdroid to hostmode kernel , boot fails !
I need to boot either kernel-power40 or kernel-omap1.

Nerfiaux.

MohammadAG 2010-09-25 15:32

Re: [Testers needed] USB Hostmode prealpha for the N900
 
Booting sometimes fails due to the framebuffer, it might reboot a maximum of three times then it'll boot again.

On another note:
Code:

[ 1489.837036] usb 1-1.3: new high speed USB device using musb_hdrc and address 6
[ 1489.948516] usb 1-1.3: configuration #1 chosen from 1 choice
[ 1490.078796] scsi2 : SCSI emulation for USB Mass Storage devices
[ 1490.083343] drivers/usb/core/inode.c: creating file '006'
[ 1490.083953] usb 1-1.3: New USB device found, idVendor=13fd, idProduct=0841
[ 1490.083984] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 1490.084014] usb 1-1.3: Product: USB Mass Storage Device
[ 1490.084014] usb 1-1.3: Manufacturer: TSSTcorp
[ 1490.084045] usb 1-1.3: SerialNumber: SATASLIM0000007a1da
[ 1490.090301] usb-storage: device found at 6
[ 1490.090332] usb-storage: waiting for device to settle before scanning
[ 1495.088073] usb-storage: device scan complete
[ 1495.089874] scsi 2:0:0:0: CD-ROM            TSSTcorp CDDVDW SE-T084M  TS01 PQ: 0 ANSI: 0
[ 1495.389221] sr0: scsi3-mmc drive: 8x/24x writer dvd-ram cd/rw xa/form2 cdda tray
[ 1495.395996] sr 2:0:0:0: Attached scsi CD-ROM sr0
Nokia-N900:/sys# mount /dev/sr0
block/    class/    devices/  fs/        module/
bus/      dev/      firmware/  kernel/    power/
Nokia-N900:/sys# mount /dev/sr0 /mnt
Nokia-N900:/sys# cd /mnt
Nokia-N900:/mnt# ls
README.diskdefines  install            pool
cdromupgrade        isolinux            preseed
dists              md5sum.txt          ubuntu
doc                pics

What does this mean? External DVD Writter up and running on the N900! (External power's needed though).
Now we need mkisofs, cdrecord, and a GUI for burning discs :)

Using a hub is recommended when using hostmode, if the hub works, _ALL_ devices work, including mice (testing with qole's scripts), keyboards (keymap is ****), drives, flashes etc...

kuavo15 2010-09-25 16:17

Re: [Testers needed] USB Hostmode prealpha for the N900
 
who is going to help me ??? :( :(

nerfiaux 2010-09-25 16:36

Re: [Testers needed] USB Hostmode prealpha for the N900
 
IT WORKS !!!

I used your setup :

http://www.clickshop.com/custom/imag...duct-17857.jpg +http://www1.dealextreme.com/producti...46_2_small.jpg+Micro USB Cable (Samung one) = Success !!

I read on USB OTG for N8XX, that the converter http://www.usbfirewire.com/Parts/images/rr-2030.jpg
I used before, already integrates OTG.

After the boot crash that I had, eventhough I choose 2.6.28-hostmode1 in the multiboot menu, after the uname -a command, the output is 2.6.28-kernelpower40.
So I booted on the kernel 2.6.28-omap1 and just reinstalled the 3 kernel package you provided in the correct order.
Then I could boot the 2.6.28-hostmode1 kernel.

And Finally Thanks a lot for the job achieved ! It is awesome !

Nerfiaux

MohammadAG 2010-09-25 16:40

Re: [Testers needed] USB Hostmode prealpha for the N900
 
Logs, please! :)

kuavo15 2010-09-25 17:29

Re: [Testers needed] USB Hostmode prealpha for the N900
 
plese help me ? :'(

mveplus 2010-09-25 17:48

Re: [Testers needed] USB Hostmode prealpha for the N900
 
5 Attachment(s)
BIG THANKS guys - Great job!
Here is my result:
first a couple of times did not work properly(may be around 7-9).
I fallow strictly all rules that MohammadAG wrote in his first post.
especially that one:
Quote:

Step 6: Click Hostmode VBUS, connect flash drive when you see Starting BME.
-first because I was in a hurry, I did not pay attention that I miss to install i2c-tools, that was fixed after first reboot, but still the things did not worked...:confused:
-after an hour of rebooting and hunting the time between Start BME and connect USB now - I was too excited so I needed an hour to coll down... waiting the light of my drive to light on...

Finally I got the multimeter and plug one naked female connector and start looking what and when is coming out form N900? I have 5.12V even with less than a half empty battery.
So the sequence for me working ONLY IF I wait to plug my usb/hub/mouse/keyboard/usb2sata(IDE) controller as fallows:
1st-Click Hostmode VBUS, 2nd- Start BME, 3rd-Connect now USB and finally - wait 5 seconds, then everything is working, USB Flash powers up, then I need to press mount /dev/sda1, and Ye-it works!
If I connect before that it does not work!

There a small issue when connecting only single flash drive flexxxv wrote about it but with HUB+external power the issue not present.
I tried to connect the fallowing things:
1.flash drive 2GB /Transcend-Bamboo/ FAT32 - WORKING!
2.HDD 2.5" 320GB Transcend-StoreJet - 160GB NTFS + Truecrypt second partition - it appiared in /dev/sd*, but can not be mounted, no ntfs kernel module loaded, tried to install and load form stock kernel but failed (witch was obvious but..).
3.flash drive 8GB Kingston - Travelstar - NTFS - same stroy
4.keyboard GuoYu :D - working after connect/disconnect/connect - not all keys mapped correctly (digits and ctrl,shift,alt not working)
5.mouse usb wireless 2.4GHz Logitech VX Nano, some kind working but not correctly.
6.usb to SATA/IDE/2.5"IDE converter 1st connected with 2.5"IDE2CF (4GB SANDISK Ultra - 3 ext2 partitions), tried to mount failed for unknown reason?? its appeared in /dev/sdc1,2,5 kernel module for ext2 is there but
Quote:

mount -t ext2 /dev/sdc1 /media/flash
fail.
7.usb to SATA (same adapter) connected to LG DVD RW, with external supply - no success here at all /for now/

!!!PLEASE WARNING DO NOT TRY THIS!!!
Clicking on VBUS default - cut off the power (5.12V) coming form USB, but Hostmode CHARGING not working for me...
!!!PLEASE WARNING DO NOT PLAY WITH THIS!!!

I will not have time to make patches right now, but I'm ready to test more, more devices like usb2wlan, usb2lan , Web cam (just for fun), all-in-one card reader, smart card reader (I'll banking from N900 :eek: ...and more :)
Some not good pictures ...

Greetings

aligatro 2010-09-25 18:59

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

Originally Posted by MohammadAG (Post 826093)
Logs, please! :)

I thought you only want logs when it doesn't work.

shockgiga 2010-09-25 19:15

Re: [Testers needed] USB Hostmode prealpha for the N900
 
my n900 won't prompt mass storage mode or pc suite mode when i plug it into my pc anymore. how can i fix this?

MohammadAG 2010-09-25 19:17

Re: [Testers needed] USB Hostmode prealpha for the N900
 
http://mohammadag.xceleo.org/hostmode/Sep%2025%202010/
Location above contains the same kernel updated with more modules.
Should support NTFS RW, UDF, and ISOFS, so you should be able to use NTFS formatted devices as well as externally powered DVD drives.

I also compiled and uploaded genisoimage, which contains mkisofs.
http://maemo.org/packages/view/genisoimage/
No instructions for the time being, but you should, theoretically (not tested actually) be able to write to DVDs with cdrecrod (when I compile that).

Logs are always welcome, whether it worked or not.

aligatro 2010-09-25 19:25

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

Originally Posted by MohammadAG (Post 826183)
http://mohammadag.xceleo.org/hostmode/Sep%2025%202010/
Location above contains the same kernel updated with more modules.
Should support NTFS RW, UDF, and ISOFS, so you should be able to use NTFS formatted devices as well as externally powered DVD drives.

I also compiled and uploaded genisoimage, which contains mkisofs.
http://maemo.org/packages/view/genisoimage/
No instructions for the time being, but you should, theoretically (not tested actually) be able to write to DVDs with cdrecrod (when I compile that).

Logs are always welcome, whether it worked or not.

Is there any way to access/force to store full logs? dmesg only shows 177(?) lines.

MohammadAG 2010-09-25 19:28

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

Originally Posted by aligatro (Post 826188)
Is there any way to access/force to store full logs? dmesg only shows 177(?) lines.

Sure, apt-get install sysklogd

MohammadAG 2010-09-25 19:53

Re: [Testers needed] USB Hostmode prealpha for the N900
 
First CD burned successfully on an N900 :)
Use genisoimage and wodim, scroll to examples here: http://linux.die.net/man/1/wodim
Code:

Nokia-N900:/home/user/MyDocs# wodim -v speed=2 dev=0,0,0 cdimage.raw
wodim: No write mode specified.
wodim: Assuming -tao mode.
wodim: Future versions of wodim may have different drive dependent defaults.
TOC Type: 1 = CD-ROM
scsidev: '0,0,0'
scsibus: 0 target: 0 lun: 0
WARNING: the deprecated pseudo SCSI syntax found as device specification.
Support for that may cease in the future versions of wodim. For now,
the device will be mapped to a block device file where possible.
Run "wodim --devices" for details.
Linux sg driver version: 3.5.27
Wodim version: 1.1.10
SCSI buffer size: 64512
Device type    : Removable CD-ROM
Version        : 0
Response Format: 2
Capabilities  :
Vendor_info    : 'TSSTcorp'
Identification : 'CDDVDW SE-T084M '
Revision      : 'TS01'
Device seems to be: Generic mmc2 DVD-R/DVD-RW.
Current: 0x0009 (CD-R)
Profile: 0x0015 (DVD-R/DL sequential recording)
Profile: 0x0016 (DVD-R/DL layer jump recording)
Profile: 0x002B (DVD+R/DL)
Profile: 0x001B (DVD+R)
Profile: 0x001A (DVD+RW)
Profile: 0x0014 (DVD-RW sequential recording)
Profile: 0x0013 (DVD-RW restricted overwrite)
Profile: 0x0012 (DVD-RAM)
Profile: 0x0011 (DVD-R sequential recording)
Profile: 0x0010 (DVD-ROM)
Profile: 0x000A (CD-RW)
Profile: 0x0009 (CD-R) (current)
Profile: 0x0008 (CD-ROM)
Profile: 0x0002 (Removable disk)
Using generic SCSI-3/mmc  CD-R/CD-RW driver (mmc_cdr).
Driver flags  : MMC-3 SWABAUDIO BURNFREE
Supported modes: TAO PACKET SAO SAO/R96P SAO/R96R RAW/R16 RAW/R96P RAW/R96R
Drive buf size : 1962752 = 1916 KB
Beginning DMA speed test. Set CDR_NODMATEST environment variable if device
communication breaks or freezes immediately after that.
FIFO size      : 12582912 = 12288 KB
Track 01: data    28 MB       
Total size:      32 MB (03:12.97) = 14473 sectors
Lout start:      32 MB (03:14/73) = 14473 sectors
Current Secsize: 2048
ATIP info from disk:
  Indicated writing power: 5
  Is not unrestricted
  Is not erasable
  Disk sub type: Medium Type B, low Beta category (B-) (4)
  ATIP start of lead in:  -11607 (97:27/18)
  ATIP start of lead out: 359849 (79:59/74)
Disk type:    Short strategy type (Phthalocyanine or similar)
Manuf. index: 18
Manufacturer: Plasmon Data systems Ltd.
Blocks total: 359849 Blocks current: 359849 Blocks remaining: 345376
Speed set to 1764 KB/s
Starting to write CD/DVD at speed  10.0 in real TAO mode for single session.
Last chance to quit, starting real write in    0 seconds. Operation starts.
Waiting for reader process to fill input buffer ... input buffer ready.
Performing OPC...
Starting new track at sector: 0
Track 01:  28 of  28 MB written (fifo 100%) [buf 100%]  10.1x.
Track 01: Total bytes read/written: 29636608/29636608 (14471 sectors).
Writing  time:  31.014s
Average write speed  8.2x.
Min drive buffer fill was 99%
Fixating...
Fixating time:  52.534s
BURN-Free was never needed.
wodim: fifo had 467 puts and 467 gets.
wodim: fifo was 0 times empty and 248 times full, min fill was 96%.


Kymera76 2010-09-25 20:20

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

Originally Posted by MohammadAG (Post 824298)
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

shockgiga 2010-09-25 20:22

Re: [Testers needed] USB Hostmode prealpha for the N900
 
my n900 won't prompt mass storage mode or pc suite mode when i plug it into my pc anymore. how can i fix this?

ivyking 2010-09-25 20:27

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

Originally Posted by shockgiga (Post 826222)
my n900 won't prompt mass storage mode or pc suite mode when i plug it into my pc anymore. how can i fix this?

rebooting should fix that .

shockgiga 2010-09-25 20:28

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

Originally Posted by ivyking (Post 826230)
rebooting should fix that .

thanks very much

pedram_noei_a 2010-09-25 20:47

Re: [Testers needed] USB Hostmode prealpha for the N900
 
hi again
i have problem with installing kernel
i have installed nitdroid and power kernal so when i press power button i see 3 lines on bootmenu
1-main kernel
2-power kernel
3-nitdroid
i have tested every thing to add 4 th line with name of hostmode but there is no luck
i cant install the hostmode kernel
is there any idea for help?

Kymera76 2010-09-25 20:53

Re: [Testers needed] USB Hostmode prealpha for the N900
 
How install i2c-tools package and python2.5 package?

LondonBenji 2010-09-25 21:02

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

Originally Posted by MohammadAG (Post 826203)
First CD burned successfully on an N900 :)

This is huge, for me this blows my mind more than anything, well done guys, well done.

Kymera76 2010-09-25 21:41

Re: [Testers needed] USB Hostmode prealpha for the N900
 
there are someone????

luketanti 2010-09-25 21:42

Re: [Testers needed] USB Hostmode prealpha for the N900
 
Hello I have a problem with this. When I connect the flash drive and press mount I get "No such file or directory" What am I doing wrong? I know that this is prealpha but I wish to make this work like all you guys. Thanks

Kymera76 2010-09-25 21:45

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

Originally Posted by luketanti (Post 826277)
Hello I have a problem with this. When I connect the flash drive and press mount I get "No such file or directory" What am I doing wrong? I know that this is prealpha but I wish to make this work like all you guys. Thanks

Hey Luke do you know how i can install i2c-tools and python2.5?
Thank you

luketanti 2010-09-25 21:47

Re: [Testers needed] USB Hostmode prealpha for the N900
 
You just have to run all the commands step by step like on the first post. That is what I did

ivyking 2010-09-25 21:50

Re: [Testers needed] USB Hostmode prealpha for the N900
 
i think you don't have extras-testing and extras-devel enabled

Kymera76 2010-09-25 21:58

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

Originally Posted by luketanti (Post 826282)
You just have to run all the commands step by step like on the first post. That is what I did

it's ok for step1 step2 but step3 no becouse i not install lc2 and python but i dont' understand how to do...

luketanti 2010-09-25 21:58

Re: [Testers needed] USB Hostmode prealpha for the N900
 
ivyking do you know how can I resolve my problem please??

WhiteWolf 2010-09-25 22:07

Re: [Testers needed] USB Hostmode prealpha for the N900
 
I continue without being detected / dev/sda1.

The device if it is activated.

Preparing log.

Kymera76 2010-09-25 22:20

Re: [Testers needed] USB Hostmode prealpha for the N900
 
Hi WhiteWolf, how i can install i2c-tools?
thank you so much
livio

WhiteWolf 2010-09-25 22:26

Re: [Testers needed] USB Hostmode prealpha for the N900
 
Install repository "devel" or from here ...

http://maemo.org/packages/view/i2c-tools/

luketanti 2010-09-25 22:34

Re: [Testers needed] USB Hostmode prealpha for the N900
 
1 Attachment(s)
ok Now It worked but not always. Only two times, successfully mounted an 8GB Sandisk Cruzer without hub so self-powered with battery low icon. This is great. I just want to know what is the problem that it will not work every time. But thanks over all. Very good work!! :)

ear0wax 2010-09-25 22:37

Re: [Testers needed] USB Hostmode prealpha for the N900
 
I got hostmode working, Only tested with a Cruzer flash drive so far. Can/Will Someone make a O/C enabled kernel? My O/C config will not load/apply

Kymera76 2010-09-25 22:38

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

Originally Posted by WhiteWolf (Post 826300)
Install repository "devel" or from here ...

http://maemo.org/packages/view/i2c-tools/

Thank you so much, so i write dpkg -i "nomefile" but i read this:
"cannot access archive: no such file or directory".

I try two files:i2c-tools_3.0.2-1maemo1_armel.deb and i2c-tools_3.0.2-1maemo1_i386.deb but i can't install.


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

vBulletin® Version 3.8.8