<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi Sven,<div><br><div><div>Am 20.07.2012 um 13:36 schrieb Sven Dyroff:</div><br class="Apple-interchange-newline"><blockquote type="cite"><font size="2" face="sans-serif">Hello Nikolaus,</font>
<br>
<br><font size="2" face="sans-serif">I finally want to make my first steps
in looking deeper into the GTA04 and therefor I need access to the serial
port. After having taken a look into the schematics I still don't intend
to open my GTA04 for this reason, because it seems that only one GPIO is
to be toggled, so that we can connect _WIRELESS_ over IrDA to the UART
of the OMAP.</font>
<br>
<br><font size="2" face="sans-serif">Is it possible that you build a new
MLO that sets this GPIO to zero? So we only need to replace this new MLO
with the current one on the SD card and then can debug over IrDA. Whenever
we don't want</font></blockquote><div><br></div>Yes, changing the GPIO is definitively possible. It should be done in this file:</div><div><br></div><div><a href="http://git.goldelico.com/?p=gta04-xloader.git;a=blob;f=board/omap3530gta04/omap3530gta04.c;h=04f310d14e91276f207a524f9ea96b6d12715b9f;hb=HEAD">http://git.goldelico.com/?p=gta04-xloader.git;a=blob;f=board/omap3530gta04/omap3530gta04.c;h=04f310d14e91276f207a524f9ea96b6d12715b9f;hb=HEAD</a></div><div><br></div><div>around line 1100. Maybe, changing the pull-up/down may be sufficient.</div><div><br></div><div>But to make it work, I think it is also needs to configure the UART a little differently since the IrDA protocol uses impulse patterns to indicate 0 and 1 states of the serialized data bytes. I.e. just adding a LED to a TX line and switching it on if a 0 is transmitted, doesn't make it IrDA receivable.</div><div><br><blockquote type="cite"><font size="2" face="sans-serif"> anymore to widespread our internal data into our environment
for everyone, but want to save some battery power, we just need to replace
the MLO again...  ;-))</font> </blockquote><blockquote type="cite">
<br><font size="2" face="sans-serif">This idea only as a first step. The
more better solution would be, that the bootloader switches this GPIO according
to the existence of a flag-file like "IrDa.flag" within the FAT
filesystem. And of course the best solution would be to have the possibility
to set or remove this flag-file with a button, presented by the bootloader...</font>
<br></blockquote><div><br></div>Well, the MLO could also check the AUX button being pressed, since it is also a GPIO.</div><div><br></div><div>But I better like your idea of a special MLO variant, so that you can put it in a SD card you use for kernel work. So it is not necessary to add this feature to any MLO.</div><div><br></div><div>One other aspect to consider is that it is not possible to run the full IrDA protocol. Just the lowest level stuff.</div><div>I.e. there is no error correction so you may garble u-boot commands you send to the device...</div><div><br></div><div>So you need a special driver on your host-pc as well, that bypasses the IrDA protocol stack.</div><div><br><blockquote type="cite"><font size="2" face="sans-serif">Of couse I hope that currently the kernel
doesn't set this GPIO. Am I right in this assumption?</font>
<br></blockquote><div><br></div>The current kernel doesn't touch the GPIO, but there should be a driver to enable IrDA from user space...</div><div><br></div></div><div>Nikolaus</div><div><br></div></body></html>