<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hello Sven,<div><br><div><div>Am 20.07.2012 um 16:31 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">any hints which toolchain on which system
should be used in order to give building your MLO a chance...? ;-))</font>
<br></blockquote><div><br></div>Any gcc which creates working ARM code is sufficient. I.e. gcc 3.3 or later should work. I use a gcc 4.4.5.</div><div>U-Boot/MLO tries to be self-contained and not depend on any glibc or linux-headers. Not even the standard C-Runtime.</div><div><br></div><div>If you cross-compile, either add the gcc/bin to $PATH or </div><div><br></div><div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; ">export CROSS_COMPILE=arm-linux-gnueabi (or whatever the toolchain wants to see)</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; "><br></div></div><div>You should also be able to compile it natively on the GTA04 (using the Debian gcc package), but I have not tried.</div><div><br></div><div>BR,</div><div>Nikolaus</div><div><br><blockquote type="cite">
<br><font size="2" face="sans-serif">Best regards,</font>
<br><font size="2" face="sans-serif"> Sven</font>
<br><font size="2" face="sans-serif"> </font>
<br>
<br>
<br>
<br>
<br>
<br><font size="1" color="#5f5f5f" face="sans-serif">Von:
</font><font size="1" face="sans-serif">"Dr. H. Nikolaus
Schaller" <<a href="mailto:hns@goldelico.com">hns@goldelico.com</a>></font>
<br><font size="1" color="#5f5f5f" face="sans-serif">An:
</font><font size="1" face="sans-serif">List for communicating
with real GTA04 owners <<a href="mailto:gta04-owner@goldelico.com">gta04-owner@goldelico.com</a>></font>
<br><font size="1" color="#5f5f5f" face="sans-serif">Datum:
</font><font size="1" face="sans-serif">20.07.2012 15:35</font>
<br><font size="1" color="#5f5f5f" face="sans-serif">Betreff:
</font><font size="1" face="sans-serif">Re: [Gta04-owner]
Switching from RS232 to IrDA for debugging</font>
<br><font size="1" color="#5f5f5f" face="sans-serif">Gesendet von:
</font><font size="1" face="sans-serif"><a href="mailto:gta04-owner-bounces@goldelico.com">gta04-owner-bounces@goldelico.com</a></font>
<br>
<hr noshade="">
<br>
<br>
<br>
<br><font size="3">Am 20.07.2012 um 14:52 schrieb Sven Dyroff:</font>
<br>
<br><font size="2" face="sans-serif">Hello Nikolaus,</font><font size="3">
<br>
</font><font size="2" face="sans-serif"><br>
thanks for reply. As far as I understood the TFDU6301 it's just a simple
converter from TTL to IrDA and vice versa. </font>
<br>
<br><font size="3">Not exactly. If I remember correctly the LED makes a short
impulse for each (positive) edge it receives. I.e. if you send 11110010000011111
- which would be a start bit and 0x41 = 'A' some logic must generate individual
impulses for each 0 to be sent or the LED would not pulse in the correct
pattern. This is what I mean switching the UART3 to IrDA mode (there is
a control bit described somewhere in the OMAP3 TRM).</font>
<br>
<br><font size="2" face="sans-serif">So we don't need any IrDA protocol or
drivers or other stuff like that. We just solder a cable that connects
another TFDU6301 to a TRS3386E and then plug this into a common serial
port of our PC. Add some power supply and that's all.</font><font size="3">
</font>
<br>
<br><font size="3">Here, you also need some pulse shaping because the TFDU6301
isn't just a LED and a photo transistor allowing for permanent opertation.
This pulse limitation thing is to reduce power dissipation and enhance
life-time of the LED...</font>
<br>
<br><font size="2" face="sans-serif"><br>
And because a) I remember having read within this list about the trouble
of someone other who wanted to try to build his own MLO and b) still haven't
managed to come to the end with building QtMoko, I hoped that you could
provide the binary...</font><font size="3"> </font>
<br>
<br><font size="3">I think building his own MLO finally worked. There was
a git push missing to the server, i.e. the tree wasn't up to date. Please
give it a try. Instructions:</font>
<br>
<br><a href="http://projects.goldelico.com/p/gta04-xloader/source/tree/master/README-GTA04"><font size="3" color="blue"><u>http://projects.goldelico.com/p/gta04-xloader/source/tree/master/README-GTA04</u></font></a>
<br>
<br><font size="3">BR,</font>
<br><font size="3">Nikolaus</font>
<br>
<br><font size="2" face="sans-serif"><br>
Best regards,</font><font size="3"> </font><font size="2" face="sans-serif"><br>
Sven</font><font size="3"> </font><font size="2" face="sans-serif"><br>
</font><font size="3"><br>
<br>
<br>
<br>
</font><font size="1" color="#5f5f5f" face="sans-serif"><br>
Von: </font><font size="1" face="sans-serif">"Dr.
H. Nikolaus Schaller" <</font><a href="mailto:hns@goldelico.com"><font size="1" color="blue" face="sans-serif"><u>hns@goldelico.com</u></font></a><font size="1" face="sans-serif">></font><font size="3">
</font><font size="1" color="#5f5f5f" face="sans-serif"><br>
An: </font><font size="1" face="sans-serif">List
for communicating with real GTA04 owners <</font><a href="mailto:gta04-owner@goldelico.com"><font size="1" color="blue" face="sans-serif"><u>gta04-owner@goldelico.com</u></font></a><font size="1" face="sans-serif">></font><font size="3">
</font><font size="1" color="#5f5f5f" face="sans-serif"><br>
Datum: </font><font size="1" face="sans-serif">20.07.2012
13:55</font><font size="3"> </font><font size="1" color="#5f5f5f" face="sans-serif"><br>
Betreff: </font><font size="1" face="sans-serif">Re:
[Gta04-owner] Switching from RS232 to IrDA for debugging</font><font size="3">
</font><font size="1" color="#5f5f5f" face="sans-serif"><br>
Gesendet von: </font><a href="mailto:gta04-owner-bounces@goldelico.com"><font size="1" color="blue" face="sans-serif"><u>gta04-owner-bounces@goldelico.com</u></font></a><font size="3">
<br>
</font>
<hr noshade=""><font size="3"><br>
<br>
<br>
Hi Sven, <br>
<br>
Am 20.07.2012 um 13:36 schrieb Sven Dyroff: <br>
</font><font size="2" face="sans-serif"><br>
Hello Nikolaus,</font><font size="3"> </font><font size="2" face="sans-serif"><br>
<br>
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><font size="3"> </font><font size="2" face="sans-serif"><br>
<br>
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><font size="3">
<br>
<br>
Yes, changing the GPIO is definitively possible. It should be done in this
file: <br>
</font><font size="3" color="blue"><u><br>
</u></font><a href="http://git.goldelico.com/?p=gta04-xloader.git;a=blob;f=board/omap3530gta04/omap3530gta04.c;h=04f310d14e91276f207a524f9ea96b6d12715b9f;hb=HEAD"><font size="3" color="blue"><u>http://git.goldelico.com/?p=gta04-xloader.git;a=blob;f=board/omap3530gta04/omap3530gta04.c;h=04f310d14e91276f207a524f9ea96b6d12715b9f;hb=HEAD</u></font></a><font size="3">
<br>
<br>
around line 1100. Maybe, changing the pull-up/down may be sufficient. <br>
<br>
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. <br>
</font><font size="2" face="sans-serif"><br>
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><font size="3"> </font><font size="2" face="sans-serif"><br>
<br>
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><font size="3"> <br>
<br>
Well, the MLO could also check the AUX button being pressed, since it is
also a GPIO. <br>
<br>
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. <br>
<br>
One other aspect to consider is that it is not possible to run the full
IrDA protocol. Just the lowest level stuff. <br>
I.e. there is no error correction so you may garble u-boot commands you
send to the device... <br>
<br>
So you need a special driver on your host-pc as well, that bypasses the
IrDA protocol stack. <br>
</font><font size="2" face="sans-serif"><br>
Of couse I hope that currently the kernel doesn't set this GPIO. Am I right
in this assumption?</font><font size="3"> <br>
<br>
The current kernel doesn't touch the GPIO, but there should be a driver
to enable IrDA from user space... <br>
<br>
Nikolaus </font><tt><font size="2"><br>
_______________________________________________<br>
Gta04-owner mailing list</font></tt><tt><font size="2" color="blue"><u><br>
</u></font></tt><a href="mailto:Gta04-owner@goldelico.com"><tt><font size="2" color="blue"><u>Gta04-owner@goldelico.com</u></font></tt></a><font size="3" color="blue"><u><br>
</u></font><a href="http://lists.goldelico.com/mailman/listinfo/gta04-owner"><tt><font size="2" color="blue"><u>http://lists.goldelico.com/mailman/listinfo/gta04-owner</u></font></tt></a><font size="3"><br>
<br>
_______________________________________________<br>
Gta04-owner mailing list</font><font size="3" color="blue"><u><br>
</u></font><a href="mailto:Gta04-owner@goldelico.com"><font size="3" color="blue"><u>Gta04-owner@goldelico.com</u></font></a><font size="3"><br>
</font><a href="http://lists.goldelico.com/mailman/listinfo/gta04-owner"><font size="3">http://lists.goldelico.com/mailman/listinfo/gta04-owner</font></a>
<br><tt><font size="2">_______________________________________________<br>
Gta04-owner mailing list<br>
<a href="mailto:Gta04-owner@goldelico.com">Gta04-owner@goldelico.com</a><br>
</font></tt><a href="http://lists.goldelico.com/mailman/listinfo/gta04-owner"><tt><font size="2">http://lists.goldelico.com/mailman/listinfo/gta04-owner</font></tt></a><tt><font size="2"><br>
</font></tt>
<br>_______________________________________________<br>Gta04-owner mailing list<br><a href="mailto:Gta04-owner@goldelico.com">Gta04-owner@goldelico.com</a><br>http://lists.goldelico.com/mailman/listinfo/gta04-owner<br></blockquote></div><br></div></body></html>