Re: N800 experimental host mode patches available

2007-06-06 Thread Frantisek Dufka
Kees Jongenburger wrote:

 On a side note I followed the HowTo EASILY Boot From MMC card
 and I now have boot from usb disk should that work with the same patch?

In theory yes but you need to have correct modules and root device name 
set for the bootmenu item in bootmenu.conf, it won't work out of box. 
linuxrc script in initfs on N800 doesn't have any special suppport for 
this (n770 one has so there is 'usb' root device). But it should still 
work if the device automatically switches itself to host mode and 
detects usb device correctly. Maybe there can be also timing problem if 
you set usb as default boot device and skip the menu.

Anyway, if you make it working, let me know your bootmenu.conf settings 
so I can add it to the n800 bootmenu.conf example configuration. Also if 
you need to set host mode by hand on boot it can be solved too in 
bootmenu.sh (see how poweroff is done).

I'd like to try it too but don't have cable yet. I was thinking about 
building short usb female to female adapter so it could work together 
with normal mini-usb cable. Slight disadvantage is that probably that 
fifth pin for host mode autodetection doesn't have wire in the cable so 
I cannot shortcut it in the short adapter I want to build = software 
switching must be used.

Frantisek

___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


Re: N800 experimental host mode patches available

2007-06-06 Thread Frantisek Dufka
Frantisek Dufka wrote:
 I was thinking about 
 building short usb female to female adapter so it could work together 
 with normal mini-usb cable.

Also the alternative is one of gender changers (example here 
http://usbfirewire.com/uconverters.html)
The female to female can be used with two cables. There is also A Female 
to B Male which could be used with one cable (i.e you can attach digital 
camera with its own cable and this adapter only). Also this one can be 
modified to shortcut that fifth pin. But maybe this one can be too heavy 
and put more pressure on n800 usb connector.

Frantisek
___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


Re: N800 experimental host mode patches available

2007-06-06 Thread Tony Lindgren
* Kees Jongenburger [EMAIL PROTECTED] [070605 12:14]:
 On 5/9/07, Tony Lindgren [EMAIL PROTECTED] wrote:
 Hi,
 
 Here's what I did to convert a mini-A to mini-B cable: I chopped off the
 top part of the mini-A end connector aluminum shielding using side cutter
 pliers and a hand file so the mini-A fits into the mini-B socket on N800.

 Hello Tony

 I applied the usb host patch and now I would like to understand a bit
 more about the hardware
 If I understand correctly the mini usb has 5 pins (normal usb only 4)
 and for USB on the go to work you need to ground the 5'th pin
 grounded so the device will detect that it's supposed to work as host
 right? Is that all, no resistors etc?

 I searched to a ready made cable it that on the market?
 would this adapter work?
 http://www.nextag.com/Belkin-USB-B-TO-77569655/prices-html

Well that will still not ground the ID pin, also it should be A to
mini-B converter... Which is probably not available.

Non-standard A to A converter can be used to connect two standard mini-B
to A cables together, but still the ID pin is not grounded and you have
to set it via software.

 On a side note I followed the HowTo EASILY Boot From MMC card
 and I now have boot from usb disk should that work with the same patch?

Cool :)

Tony
___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


Re: N800 experimental host mode patches available

2007-06-05 Thread Kees Jongenburger
On 5/9/07, Tony Lindgren [EMAIL PROTECTED] wrote:
 Hi,
 
 Here's what I did to convert a mini-A to mini-B cable: I chopped off the
 top part of the mini-A end connector aluminum shielding using side cutter
 pliers and a hand file so the mini-A fits into the mini-B socket on N800.

Hello Tony

I applied the usb host patch and now I would like to understand a bit
more about the hardware
If I understand correctly the mini usb has 5 pins (normal usb only 4)
and for USB on the go to work you need to ground the 5'th pin
grounded so the device will detect that it's supposed to work as host
right? Is that all, no resistors etc?

I searched to a ready made cable it that on the market?
would this adapter work?
http://www.nextag.com/Belkin-USB-B-TO-77569655/prices-html

On a side note I followed the HowTo EASILY Boot From MMC card
and I now have boot from usb disk should that work with the same patch?

greetings
___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


Re: N800 experimental host mode patches available

2007-05-10 Thread Marcell Lengyel
Ok, now that I have loaded g_file_storage it looks much better but it still 
does 
not work for me.
I use a powered usb hub, connected the upstream port to N800 and connected
a usb keyboard to one of the downstream ports in the usb hub. I got a bunch of
device not accepting address 11, error -71 messages in dmesg and the keyboard 
is unusable. When I connected my phone (mass storage mode) to the usb hub,
the n800 froze and then rebooted.

Marcell

- Original Message 
From: Tony Lindgren [EMAIL PROTECTED]
[...]

Sounds like it should work based on what you described above. Do you
have a powered hub connected? Otherwise you can only use devices that
need minimal power or are self powered.

Another thing to check is to make sure you have some gadget driver
also loader, it's currently needed to initialize the OTG driver.
So you should have g_file_storage loaded when you do lsmod.

Tony





 

Don't get soaked.  Take a quick peak at the forecast
with the Yahoo! Search weather shortcut.
http://tools.search.yahoo.com/shortcuts/#loc_weather
___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


Re: N800 experimental host mode patches available

2007-05-10 Thread Marcell Lengyel
Just for the record: I got the host mode working with a usb keyboard 
connected to the N800 through a powered usb hub. It was a different
keyboard, the first one that I have tried had a hub built into it and the
N800 did not like that for some reason.
Mass storage devices are still crashing the N800 though.

Marcell

- Original Message 
From: Marcell Lengyel [EMAIL PROTECTED]
To: maemo-developers@maemo.org
Sent: Thursday, May 10, 2007 10:45:56 AM
Subject: Re: N800 experimental host mode patches available

Ok, now that I have loaded g_file_storage it looks much better but it still 
does 
not work for me.
I use a powered usb hub, connected the upstream port to N800 and connected
a usb keyboard to one of the downstream ports in the usb hub. I got a bunch of
device not accepting address 11, error -71 messages in dmesg and the keyboard 
is unusable. When I connected my phone (mass storage mode) to the usb hub,
the n800 froze and then rebooted.









 

Be a PS3 game guru.
Get your game face on with the latest PS3 news and previews at Yahoo! Games.
http://videogames.yahoo.com/platform?platform=120121
___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


Re: N800 experimental host mode patches available

2007-05-10 Thread Tony Lindgren
* Marcell Lengyel [EMAIL PROTECTED] [070510 17:07]:
 Just for the record: I got the host mode working with a usb keyboard 
 connected to the N800 through a powered usb hub. It was a different
 keyboard, the first one that I have tried had a hub built into it and the
 N800 did not like that for some reason.
 Mass storage devices are still crashing the N800 though.

Can you check that you have 0004-usb-core-allow-transfer-buffer.txt
applied in addition to the other patches in the latest series
patches-tusb-n800-2007-05-04.tar.gz.

Without it mass storage will certainly fail with mixed DMA and PIO
transfers. If you have it applied and the crashing happens, try
disabling DMA by setting CONFIG_USB_INVENTRA_FIFO.

Regards,

Tony
___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


Re: N800 experimental host mode patches available

2007-05-09 Thread Marcell Lengyel
Hi,

I tried the usb host mode on my N800, but I did not get it working. Here's what 
I did:
- In scratchbox SDK_ARMEL I downloaded the kernel-source-rx-34_2.6.18-osso40 
sources,
- Applied the patches-tusb-n800-2007-05-04.tar.gz patch set from muru.com (it 
did apply cleanly)
- make n800_defconfig
- make zImage
-  flasher -f -k -R 
/scratchbox/users/username/home/username/kernel-source-rx-34/arch/arm/boot/zImage
- echo host  /sys/devices/platform/musb_hdrc/mode

I executed the last command twice and in dmesg there was a line saying that it 
is already in host mode, so I assumed that all is well now.
However no matter what I connected to the USB port no message appeared in dmesg 
or in /sys/bus/usb/devices

I used a male mini-B - female A converter that was plugged into the n800 and 
the memory stick / externally powered usb hdd was connected to that.

Any suggestions how to continue from here?

BR,

Marcell




 

Food fight? Enjoy some healthy debate 
in the Yahoo! Answers Food  Drink QA.
http://answers.yahoo.com/dir/?link=listsid=396545367
___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


Re: N800 experimental host mode patches available

2007-05-09 Thread Frantisek Dufka
Hello,

any tips how to make custom mini-B to female A cable so that N800 
switches mode automatically? Which two wires I need to shortcut in the 
cable? I  can see the pinout here 
http://pinouts.ru/Slots/USB_pinout.shtml but don't see USB ID pin. Is it 
the fifth pin on mini-b connector (which may have no wire in the cable)? 
Thanks.

Frantisek
___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


Re: N800 experimental host mode patches available

2007-05-09 Thread Marcell Lengyel
Frantisek Dufka wrote:
 I tried the usb host mode on my N800, but I did not get it working. Here's 
 what I did:
 - In scratchbox SDK_ARMEL I downloaded the kernel-source-rx-34_2.6.18-osso40 
 sources,
 - Applied the patches-tusb-n800-2007-05-04.tar.gz patch set from muru.com 
 (it did apply cleanly)
 - make n800_defconfig

 Unless those patches modify default config you need to enable usb host 
 mode drivers in kernel configuration. You also need drivers for 
 peripherials - for usb harddrive you need scsi and usb storage drivers.

The patches do modify the default config. I double checked and usb storage, 
scsi  scsi block devices are all compiled in to the kernel. Along with a bunch 
of other usb stuff like hid drivers and all.
Anyhow, even if the drivers for peripheral devices would be missing, I should 
still see some messages in dmesg about a new usb device connected and also the 
device data should appear in /sys/bus/usb if host mode would be working fine.

BR,

Marcell





 

Get your own web address.  
Have a HUGE year through Yahoo! Small Business.
http://smallbusiness.yahoo.com/domains/?p=BESTDEAL
___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


Re: N800 experimental host mode patches available

2007-05-09 Thread Tony Lindgren
Hi,

* Frantisek Dufka [EMAIL PROTECTED] [070509 00:05]:
 Hello,
 
 any tips how to make custom mini-B to female A cable so that N800 
 switches mode automatically? Which two wires I need to shortcut in the 
 cable? I  can see the pinout here 
 http://pinouts.ru/Slots/USB_pinout.shtml but don't see USB ID pin. Is it 
 the fifth pin on mini-b connector (which may have no wire in the cable)? 

Here's what I did to convert a mini-A to mini-B cable: I chopped off the
top part of the mini-A end connector aluminum shielding using side cutter
pliers and a hand file so the mini-A fits into the mini-B socket on N800.

The mini-A connector has the ID pin grounded while mini-B end has the
ID pin floating. Of course if you can figure out a way to ground the ID
pin on the mini-B end, that will do the trick too. ID pin is the fifth
pin on the mini connectors.

Regards,

Tony
___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


Re: N800 experimental host mode patches available

2007-05-09 Thread Tony Lindgren
* Marcell Lengyel [EMAIL PROTECTED] [070509 00:48]:
 Frantisek Dufka wrote:
  I tried the usb host mode on my N800, but I did not get it working. Here's 
  what I did:
  - In scratchbox SDK_ARMEL I downloaded the 
  kernel-source-rx-34_2.6.18-osso40 sources,
  - Applied the patches-tusb-n800-2007-05-04.tar.gz patch set from muru.com 
  (it did apply cleanly)
  - make n800_defconfig
 
  Unless those patches modify default config you need to enable usb host 
  mode drivers in kernel configuration. You also need drivers for 
  peripherials - for usb harddrive you need scsi and usb storage drivers.
 
 The patches do modify the default config. I double checked and usb storage, 
 scsi  scsi block devices are all compiled in to the kernel. Along with a 
 bunch of other usb stuff like hid drivers and all.
 Anyhow, even if the drivers for peripheral devices would be missing, I should 
 still see some messages in dmesg about a new usb device connected and also 
 the device data should appear in /sys/bus/usb if host mode would be working 
 fine.

Sounds like it should work based on what you described above. Do you
have a powered hub connected? Otherwise you can only use devices that
need minimal power or are self powered.

Another thing to check is to make sure you have some gadget driver
also loader, it's currently needed to initialize the OTG driver.
So you should have g_file_storage loaded when you do lsmod.

Tony
___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


Re: N800 experimental host mode patches available

2007-05-08 Thread Klaus Rotter
Tony Lindgren wrote:
 I've updated the patches for 2.6.18 below based on the linux-omap tree
 snapshot. This udpate fixes a nasty bug with host mode TX fifo flushing,
 so now all the Linux testusb testcases run reliably.

I am interessted in getting a USB keybord working on a N800. Anyone 
tried it yet? Is there support for a usb keyboard in the usb-host-mode 
patches? Do I have to recompile the kernel on my own or is somewhere a 
ready compiled kernel available for download?

Thanks, -Klaus

BTW: Great work!

-- 
Klaus Rotter * klaus at rotters dot de * www.rotters.de
___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


Re: N800 experimental host mode patches available

2007-05-08 Thread Tony Lindgren
* Klaus Rotter [EMAIL PROTECTED] [070508 05:55]:
 Tony Lindgren wrote:
  I've updated the patches for 2.6.18 below based on the linux-omap tree
  snapshot. This udpate fixes a nasty bug with host mode TX fifo flushing,
  so now all the Linux testusb testcases run reliably.
 
 I am interessted in getting a USB keybord working on a N800. Anyone 
 tried it yet? Is there support for a usb keyboard in the usb-host-mode 
 patches? Do I have to recompile the kernel on my own or is somewhere a 
 ready compiled kernel available for download?

Yes the patches support USB HID, and yes you have to recompile the
kernel. Anybody interested in posting compiled kernel somewhere?

Tony
___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


Re: N800 experimental host mode patches available

2007-05-04 Thread Tony Lindgren
Hi,

* Tony Lindgren [EMAIL PROTECTED] [070418 14:06]:
 Hi all,
 
 I've been meaning to do this for a while, but only now got into it after
 sorting out one more issue with the N800 USB DMA.
 
 I've posted some experimental N800 host mode patches to [1] for people
 to play with. Although the N800 is not built to support host or OTG mode
 and does not have a mini-B connector, you can still use it via some
 software hacks.
 
 The patches are from the linux-omap git tree at [2] with some extra
 patches to force N800 into host mode.
 
 The driver is still very much experimental and can cause file system
 corruption on USB drives, so YMMV :)
 
 Anyways, let me know of issues and fixes.

I've updated the patches for 2.6.18 below based on the linux-omap tree
snapshot. This udpate fixes a nasty bug with host mode TX fifo flushing,
so now all the Linux testusb testcases run reliably.

I've still seen some failures writing large files to USB sticks, that
does not seem to happen with 2.6.21 from linux-omap tree though...

Regards,

Tony

 [1] http://muru.com/linux/n800-usb-host/
 [2] 
 http://master.kernel.org/git/?p=linux/kernel/git/tmlind/linux-omap-2.6.git;a=summary

___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


Re: N800 experimental host mode patches available

2007-04-23 Thread tony
Hi,

* Andreas Hubel [EMAIL PROTECTED] [070420 14:56]:
 
 do you or somebody else here know if the 770 also has this host
 detection via the ID pin feature?

I don't think it has, but you can try it out yourself and see if you
get an interrupt. The handling would be in drivers/cbus/tahvo-usb.c.

 And why does the USB chip of the N800 don't need this 5V from external?
 I thougt it also need it, because there is only 3V and no 3 to 5V
 converter inside the device.

That's because N800 has the tps65030 chip to generate VBUS.

Regards,

Tony
___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


Re: N800 experimental host mode patches available

2007-04-20 Thread Andreas Hubel
Hi,

do you or somebody else here know if the 770 also has this host
detection via the ID pin feature?

And why does the USB chip of the N800 don't need this 5V from external?
I thougt it also need it, because there is only 3V and no 3 to 5V
converter inside the device.

Regards,
Andi

Tony Lindgren schrieb:
 Hi all,
 
 I've been meaning to do this for a while, but only now got into it after
 sorting out one more issue with the N800 USB DMA.
 
 I've posted some experimental N800 host mode patches to [1] for people
 to play with. Although the N800 is not built to support host or OTG mode
 and does not have a mini-B connector, you can still use it via some
 software hacks.
 
 The patches are from the linux-omap git tree at [2] with some extra
 patches to force N800 into host mode.
 
 The driver is still very much experimental and can cause file system
 corruption on USB drives, so YMMV :)
 
 Anyways, let me know of issues and fixes.
 
 Regards,
 
 Tony
 
 [1] http://muru.com/linux/n800-usb-host/
 [2] 
 http://master.kernel.org/git/?p=linux/kernel/git/tmlind/linux-omap-2.6.git;a=summary
 ___
 maemo-developers mailing list
 maemo-developers@maemo.org
 https://maemo.org/mailman/listinfo/maemo-developers




signature.asc
Description: OpenPGP digital signature
___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


Re: N800 experimental host mode patches available

2007-04-20 Thread Larry Battraw

On 4/20/07, Andreas Hubel [EMAIL PROTECTED] wrote:

Hi,

do you or somebody else here know if the 770 also has this host
detection via the ID pin feature?

And why does the USB chip of the N800 don't need this 5V from external?
I thougt it also need it, because there is only 3V and no 3 to 5V
converter inside the device.


Actually there is 5V 100 mA charge pump included in the chipset.  It
includes native OTG support  and it's just a matter of turning on host
(OTG) mode and the 5V source on.  This will of course affect battery
life, but your average USB key, keyboard, or mouse shouldn't draw too
much.

Larry



Regards,
Andi

Tony Lindgren schrieb:
 Hi all,

 I've been meaning to do this for a while, but only now got into it after
 sorting out one more issue with the N800 USB DMA.

 I've posted some experimental N800 host mode patches to [1] for people
 to play with. Although the N800 is not built to support host or OTG mode
 and does not have a mini-B connector, you can still use it via some
 software hacks.

 The patches are from the linux-omap git tree at [2] with some extra
 patches to force N800 into host mode.

 The driver is still very much experimental and can cause file system
 corruption on USB drives, so YMMV :)

 Anyways, let me know of issues and fixes.

 Regards,

 Tony

 [1] http://muru.com/linux/n800-usb-host/
 [2] 
http://master.kernel.org/git/?p=linux/kernel/git/tmlind/linux-omap-2.6.git;a=summary
 ___
 maemo-developers mailing list
 maemo-developers@maemo.org
 https://maemo.org/mailman/listinfo/maemo-developers



___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers




___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


Re: N800 experimental host mode patches available

2007-04-20 Thread Frantisek Dufka

Larry Battraw wrote:

 This will of course affect battery
life, but your average USB key, keyboard, or mouse shouldn't draw too
much.


Not sure how you can get it in linux but at least in XP you can check 
usb hub properties in device manager and see power requirements reported 
by connected devices. My usb key reports 100mA, sd/mmc card reader 
250mA. Don't have usb keyboard around to check. The values should be 
maximal, i.e. device may in fact consume less. I hope it should not 
consume more.

___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


Re: N800 experimental host mode patches available

2007-04-20 Thread Andrew J. Barr
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Frantisek Dufka wrote:
 Larry Battraw wrote:
  This will of course affect battery
 life, but your average USB key, keyboard, or mouse shouldn't draw too
 much.
 
 Not sure how you can get it in linux but at least in XP you can check
 usb hub properties in device manager and see power requirements reported
 by connected devices. My usb key reports 100mA, sd/mmc card reader
 250mA. Don't have usb keyboard around to check. The values should be
 maximal, i.e. device may in fact consume less. I hope it should not
 consume more.

This information is available from /proc/bus/usb/devices in Linux.

- --
Andrew J. Barr
Thunderbird/1.5.0.10 (compatible; Icedove 1.5; X11; en-US; Linux
2.6.21-rc7 ppc) (Debian/1.5.0.10dfsg.1)

Why must I fail at every attempt at masonry?
-- Homer Simpson, Mom and Pop Art [AABF15]
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGKRgahuM+Z62a52oRAjguAJ9PXsg/tSgux941fyQ5gDgCvgNaiACguAgr
BlwJi8BPn3K0QSq70EB9am0=
=LP9h
-END PGP SIGNATURE-
___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


RE: N800 experimental host mode patches available

2007-04-19 Thread Karoliina.T.Salminen
Tony Lindgren
I've posted some experimental N800 host mode patches to [1] 
for people to play with.

Cool stuff! Our EFIS and engine monitor projects are depending on this
and
this is extremely good news in that light!

Best Regards,
Karoliina Salminen
___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers