Hi all,
i just recently joined the h2200-port list, i have an h2210 and would
like to help porting... i have some experience in programming for an ARM
based CPU under pSOS... other than that mostly Windows application
programming. I started looking at the handhelds. org website and wanted
to try the support thus far.
Since my laptop does not have a serial port, i would like to get started
seeing the boot via my IR port, i followed the setup instructions i
found in the wiki and also in the h2200-port list...
So far i have gotten the following to work:
I have downloaded the toolchain, kernel, starterkit, built the kernel
using Michael's h2200_config_jan29a, and installed haret and booted the
kernel on my h2210, it doesnt always boot (thermometer doesnt turn red)
but after hard reset it does most of the times, however, i dont see
anything on the IR console...
I followed the instructions i found:
- made sure CONFIG_SERIAL_PXA_SIR is set
- changed startup.txt to "console=ttyS2,115200n8"
- on my laptop unloaded all ir* drivers
if i do cat /dev/ttyS1 on my laptop and try to send a contact from the
PDA via infrared, i see characters coming out of ttyS1, same with
minicom, i also tried Andrews suggestion with my digital video camera, i
can see the diode blinking when sending the contact, but when booting
the kernel it stays dark... so i suppose its not sending anything...
I saw a warning when building the kernel:
in file drivers/serial/pxa.c, line 64
#warning "PLATFORM_SIR_ON/OFF not defined, SIR must be enabled in
platform initialization code!"
but investigating that, i only found PLATFORM_SIR_ON/OFF defined in
asm/arch/aximx5-gpio.h, and there only in an #if 0...#endif, so its
never defined...
(btw, there seems to be an error in line 61, same file which says:
#if !defined PLATFORM_SIR_OFF || !defined PLATFORM_SIR_OFF
the second PLATFORM_... should be PLATFORM_SIR_ON, i guess...)
Any suggestions what else i might try? I saw that in the config file
CONFIG_IRDA is set, as well as CONFIG_IRTTY_SIR and CONFIG_IRPORT_SIR,
is it possible, that these somehow disturb the raw access to the IR
serial port? I might try unsetting them when i have time...
Anyway, i really hope to be of some help to the project, even with my
limited experience and time...
Greetings,
Patty
Andrew Zabolotny wrote:
>On Tue, 3 Feb 2004 13:54:06 +1100
>Marcus Brown <marcusbrutus_at_internode.on.net> wrote:
>
>
>
>>I'd like to be able to have something similar to irdadump as a
>>sanity check. My old method of testing serial mice didn't work
>>(ie. cat /dev/ttyS1) with a "cat: /dev/ttyS1: Input/output error".
>>
>>
>This means either a) somebody already uses ttyS1 (try as root:
>fuser -v /dev/ttyS1), or your computer simply has no ttyS1 (AKA COM2).
>What kind of IrDA dongle are you using? A real serial dongle? Or some
>USB gadget? If it is in a laptop perhaps it uses some other kind of
>serial connection... try all serial ports, look in dmesg file which
>serial ports there are, or in /dev/tts/*.
>
>
>
>>Any easy way of passively watching the comm in tandem with minicom?
>>Do I need to initiate anything in minicom?
>>
>>
>If you have a hand camera, you can try to look through the visor at the
>IR transmitter. With my Sony Handicam I have easily debugged such
>problems in the past - only the data sequence has to be relatively long,
>e.g. send some file with minicom and you should see the IR diode bright.
>Same from PDA side - run linux to start booting and look through the
>visor at it's IR diode - it should flash.
>
>--
>Greetings,
> Andrew
>
>
Received on Mon Feb 16 2004 - 13:05:22 EST
This archive was generated by hypermail 2.2.0 : Mon Jul 25 2005 - 17:19:25 EDT