http://openmoko.org/api.php?action=feedcontributions&user=Preben&feedformat=atomOpenmoko - User contributions [en]2024-03-29T10:27:41ZUser contributionsMediaWiki 1.19.24http://openmoko.org/wiki/User:PrebenUser:Preben2008-01-31T14:25:46Z<p>Preben: </p>
<hr />
<div>'''About'''<br />
<br />
Name: Preben Ulltang<br />
<br />
Location: Førde, Norway<br />
<br />
<br />
'''Interest in OpenMoko/Neo 1973'''<br />
<br />
Making applications for the cell phone and get experience for later</div>Prebenhttp://openmoko.org/wiki/User:PrebenUser:Preben2008-01-31T14:25:14Z<p>Preben: </p>
<hr />
<div>'''About'''<br />
Name: Preben Ulltang<br />
<br />
Location: Førde, Norway<br />
<br />
<br />
'''Interest in OpenMoko/Neo 1973'''<br />
Making applications for the cell phone and get experience for later</div>Prebenhttp://openmoko.org/wiki/User:PrebenUser:Preben2008-01-31T14:24:51Z<p>Preben: </p>
<hr />
<div>'''About'''<br />
Name: Preben Ulltang<br />
Location: Førde, Norway<br />
<br />
'''Interest in OpenMoko/Neo 1973'''<br />
Making applications for the cell phone and get experience for later</div>Prebenhttp://openmoko.org/wiki/Debug_Board_v2Debug Board v22007-10-18T23:01:55Z<p>Preben: /* Flashing with Linux */</p>
<hr />
<div>The [[Debug Board | Debug Board page]] provides information on the architecture of the second version of the [[Debug Board | Neo1973 debug board]].<br />
<br />
[[Image:Debugboard v2 diagram.png|left|500px|Architecture Diagram]]<br />
<br />
[[Image:Neo1973 debugboard v2 top annotated.jpg|left|500px|Annotated PCB Photograph]]<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
== Overview ==<br />
<br />
The [[Debug Board | debug board]] provides these key components.<br />
<br />
* [[Debug Board#USB Hub | USB Hub]]<br />
* [[Debug Board#JTAG using FT2232 | JTAG using FT2232]]<br />
* [[Debug Board#Serial Port | Serial Port]]<br />
<br />
=== Schematics ===<br />
<br />
The Schematics of this board can be found at http://people.openmoko.org/laforge/doc/hardware/neo1973_debug_board/neo1973_debugboard_v2_schematics.pdf<br />
<br />
=== USB Hub ===<br />
<br />
This bus-powered hub <br />
* attaches to the laptop using its upstream port<br />
* attaches to the FT2232D for JTAG and serial console on downstream port 1<br />
* attaches to a free USB-A connector using downstream port 2<br />
* attaches to the phone using downstream port 3<br />
<br />
Using the hub, you can have access to the phone, JTAG and serial simultaneously, through a single USB cable.<br />
<br />
You can actually even charge the phone (100mA slow charge) using that downstream port.<br />
<br />
For the ISB hub function, we use the TUSB2046B chip.<br />
<br />
=== JTAG using FT2232 ===<br />
<br />
Basically, we integrate a USB-JTAG adaptor similar to the [Amontec JTAGkey-tiny]. The actual reference design that we used (Thanks to Joern!) can be found at http://www.oocdlink.com<br />
<br />
This provides us full JTAG debugging, at about 150times the speed of the [[wiggler]]<br />
<br />
The actual JTAG port is connected with<br />
* the phone (via debug flex cable)<br />
* A separate 20-pin header using standard ARM-JTAG pinout<br />
** this allows the user to use this device as JTAG adaptor even for other arm-based devices<br />
<br />
=== Serial Port ===<br />
<br />
Instead of replicating a true RS232 port, we wanted to use a USB serial converter chip,<br />
such as the FT232 or the PL2303. <br />
<br />
As it turns out, we can even use the second port of the FT2232 simultaneously with the JTAG. So no extra FT232 or PL2303 is required.<br />
<br />
==== Tri-State Serial Port ====<br />
<br />
The serial port needs a tri-state driver, since it is both connected to the GSM modem AND to the debug board. We drive the tri-state driver by an inverted GSM_EN signal (pin 7 on FPC connector).<br />
<br />
== Usage Instructions ==<br />
<br />
=== Preconditions ===<br />
<br />
==== FT2232D EEPROM ====<br />
<br />
Your Debug Board contains a small serial EEPROM which should be flashed correctly during production. However, some boards have received incorrect/incomplete programming during production and thus you should verify this.<br />
<br />
If the board shows up as USB ID 1457:5118, then everything is correct.<br />
<br />
Only if your board shows up as USB ID 0403:6010, then you will need to flash the board!<br />
<br />
===== Flashing with Linux =====<br />
<br />
{{note|FIC has done that for you, in case you have officially been supplied with the board. However, if you are one of the early adopters, the configuration and USB vendorID / productID might have not yet been set correctly.}}<br />
<br />
In order to do so, you can use the ftdi_eeprom program from <br />
http://www.intra2net.com/de/produkte/opensource/ftdi/. Unfortunately, the latest version (0.2) doesn't yet contain support for our FT2232D, so you need the patch from http://people.openmoko.org/laforge/misc/debug_board_v2/ftdi_eeprom/ftdi_eeprom-0.2-moko.patch<br />
<br />
You may also need to apply the following patch to libftdi:<br />
http://people.openmoko.org/werner/libftdi-c56-strings-dirty-hack.patch<br />
(See http://bugzilla.openmoko.org/cgi-bin/bugzilla/show_bug.cgi?id=321 for additional details.)<br />
<br />
Furthermore, you will need the EEPROM config:<br />
http://people.openmoko.org/laforge/misc/debug_board_v2/ftdi_eeprom/neo1973_debug_board_v2.ftdi<br />
<br />
Once you have compiled ftdi_eeprom, you can run<br />
ftdi_eeprom --flash-eeprom neo1973_debug_board_v2.ftdi<br />
<br />
{{warning|Make sure you don't have any other FTDI FT232 / FT2232 based devices attached to the USB while running ftdi_eeprom. It might be wise to disconnect everything but the debug board}}<br />
<br />
You should get something like the following printout if everything was successful:<br />
<pre><br />
FTDI eeprom generator v0.2<br />
(c) Intra2net AG <opensource@intra2net.com><br />
FTDI init: 0<br />
Unable to find FTDI devices under given vendor/product id: 0x1457/0x5118<br />
Retrying with default FTDI id.<br />
Used eeprom space: 102 bytes<br />
FTDI write eeprom: 0<br />
Writing to file: neo1973_debug_board_v2.eeprom<br />
FTDI close: 0<br />
</pre><br />
<br />
Once the flashing has finished, just disconnect and reconnect, and you should see<br />
<pre><br />
$ lsusb -v -d 0x1457: <br />
Bus 005 Device 009: ID 1457:5118<br />
Device Descriptor:<br />
bLength 18<br />
bDescriptorType 1<br />
bcdUSB 2.00<br />
bDeviceClass 0 (Defined at Interface level)<br />
bDeviceSubClass 0 <br />
bDeviceProtocol 0 <br />
bMaxPacketSize0 8<br />
idVendor 0x1457 <br />
idProduct 0x5118 <br />
bcdDevice 5.00<br />
iManufacturer 1 OpenMoko<br />
iProduct 2 Debug Board for Neo1973<br />
iSerial 0 <br />
bNumConfigurations 1<br />
[...]<br />
</pre><br />
<br />
===== Flashing with Windows =====<br />
{{note|FIC has done that for you, in case you have officially been supplied with the board. However, if you are one of the early adopters, the configuration and USB vendorID / productID might have not yet been set correctly.}}<br />
<br />
In order to do so, you can use the FTDI Mprog program from http://www.ftdichip.com/Resources/Utilities/MProg3.0_Setup.exe<br />
<br />
You will need<br />
* The EEPROM Template http://people.openmoko.org/laforge/misc/debug_board_v2/mprog_template/neo1973_debugboard_v2.ept<br />
<br />
==== Drivers ====<br />
<br />
===== Linux =====<br />
<br />
Please make sure you have libftdi-0.8 or later. Earlier versions are known to cause problems<br />
<br />
Furthermore, you will need to do the following:<br />
<br />
====== ftdi_sio module option ======<br />
<br />
rmmod ftdi_sio<br />
modprobe ftdi_sio vendor=0x1457 product=0x5118<br />
<br />
or the equivalent in your modules.conf<br />
<br />
====== udev rule ======<br />
<br />
Please install the rules from http://people.openmoko.org/laforge/misc/debug_board_v2/udev_rules/<br />
<br />
===== Windows =====<br />
<br />
Please use the driver from http://people.openmoko.org/laforge/misc/debug_board_v2/windows_drivers/<br />
<br />
=== Hardware connection ===<br />
<br />
* [[Connecting Neo1973 with Debug Board v2]]<br />
* Connect your favorite embedded project to the Debug Board v2:<br />
<br />
==== Pinouts ====<br />
<br />
* J1 - is a regular 20 pin ARM JTAG at 3.3V level with 5V tolerance<br />
<br />
* J10 - is a 3.3V serial connected to portB of the FTDI2232D<br />
<pre><br />
pin name<br />
1 TXD<br />
2 RXD<br />
3 RTS<br />
4 CTS<br />
5 DSR<br />
6 DTR<br />
7 DCD<br />
8 RI<br />
9 GND<br />
10 VCC (3.3V)<br />
</pre><br />
<br />
=== Actually using it ===<br />
<br />
==== On Linux ====<br />
<br />
===== Serial Port =====<br />
<br />
The Linux kernel of your host system will create a virtual serial device called '''/dev/ttyUSBx''' where 'x' is a sequentially assigned number. If you don't have any other USB serial converters attached to your machine, the device name will be '''/dev/ttyUSB0'''.<br />
<br />
You can use your favourite terminal emualtor (minicom, cu, zc, ...) just like for any other/real serial port. You may use gdb as well (eg. target remote /dev/ttya).<br />
<br />
bdb - My experience with the debug board shipped with GTA01B (v3??) was that the serial port eventually came out as /dev/ttyUSB1. I assume ttyUSB0 was the jtag. I also couldn't get the serial to work at all until after I had fired up openocd to take over the jtag. (Which disappears ttyUSB0) That could have been coincidence of course... I had also removed all flow control on the serial port settings - maybe that was the key. PS - 115200 baud.<br />
<br />
===== JTAG =====<br />
<br />
Once you have installed libftdi >= 0.8 and configured [[OpenOCD]] with the correct openocd.cfg from [[OpenOCD#openocd.cfg]], it should work just fine.<br />
<br />
Please see [[OpenOCD#OpenOCD_and_Debug_Board]] for some more information.<br />
<br />
== History ==<br />
<br />
We previously had [[Neo1973 Debug Board v1]] (inherited from some weird engineers who must have seen Brazil too often).<br />
Version 1 was never shipped to phase-0 or phaes-1, and not sold to anyone.<br />
<br />
=== Changes from v1 to v2 ===<br />
<br />
* get rid of ethernet<br />
** we don't need it, and<br />
** we especially don't want a 40pin parallel 66MHz bus going between two pcb's<br />
* get rid of 7-segment LED displays<br />
** not really needed. We have a serial port<br />
** could be replaced by one or two GPIO LED's<br />
* get rid of built-in [[wiggler]]<br />
** nobody has a parallel port on the laptop these days<br />
* get rid of li-ion battery (including charger)<br />
** the device can be fully usb powered by the laptop<br />
<br />
<span id="bottom"></span><br />
{{Languages|Debug_Board}}<br />
<br />
[[Category:Neo1973 Hardware Debugging]]</div>Prebenhttp://openmoko.org/wiki/Openmoko_Local_Groups:_NorwayOpenmoko Local Groups: Norway2007-10-17T19:16:55Z<p>Preben: Added user 'Preben Ulltang' to the wiki.</p>
<hr />
<div>This page is supposed to be a gathering point for all OpenMoko interested people in Norway.<br />
<br />
See [[Talk:OpenMoko_Local_Groups:_Norway|discussion]].<br />
<br />
Currently there have been created local groups for the following cities/regions in Norway:<br />
* [[OpenMoko_Local_Groups:_Oslo|Oslo]]<br />
* [[OpenMoko_Local_Groups:_Trondheim|Trondheim]]<br />
<br />
Please sign up on this national list below (especially) if you can't find a local group near you; this national page should also be used to map the need/interest of creating more local groups. Some overlapping info may occur.<br />
<br />
'''Note:''' You can now find some of us on IRC channel #openmoko-no @ Freenode (irc.freenode.net).<br />
<br />
<br />
{|border=1<br />
!Name<br />
!Skills<br />
!Level of Interest<br />
!Location<br />
!Other<br />
|-<br />
|[[User:Senikk|Terje Pedersen]]<br />
|Linux, Embedded Linux (Etrax), Electronics, Programming<br />
|User and developer, waiting for GTA02<br />
|Haugesund<br />
|<br />
|-<br />
|[[User:Henrikw|Henrik Width]]<br />
|Linux, electronics<br />
|Awaiting GTA01Bv4, Neo Basic <br />
|Trondheim<br />
|Runs the www.mokoapps.org site<br />
|-<br />
|[[User:aevin|Eivind S]]<br />
|Linux, programming<br />
|User and developer, waiting for GTA02<br />
|Oslo<br />
|<br />
|-<br />
|[[User:JørgenTjernø | Jørgen Tjernø]]<br />
|Linux, programming (studying electronics)<br />
|GTA01Bv4 (Neo Basic) Owner<br />
|Trondheim<br />
|<br />
|-<br />
|[[User:Vegar|Vegar]]<br />
|GNU/Linux, programming<br />
|User and developer, waiting for GTA02<br />
|Alta<br />
|<br />
|-<br />
|[[User:hakonaj | Håkon Andreas Jensen]]<br />
|GNU/Linux, programming<br />
|Awaiting GTA01Bv4, Neo Basic<br />
|Oslo<br />
|<br />
|-<br />
|[[User:terje | Terje Sannum]]<br />
|Linux, programming, electronics<br />
|GTA01Bv4 owner <br />
|Oslo<br />
|<br />
|-<br />
|[[User:Goxboxlive | Goxboxlive]]<br />
|User, bug-finder<br />
|Make Linux run on HTC devices<br />
|Oslo<br />
|Maintaining [http://www.linuxtogo.org/~htcpxa htcpxa] and make various Linux images for HTC devices]<br />
|-<br />
|[[User:meus| Bjarte Stien Karlsen]]<br />
|GNU/Linux, programming<br />
|User and developer, waiting for GTA02 Advanced<br />
|Kristiansand<br />
|<br />
|-<br />
|[[User:Canute| Knut Saua Mathiesen]]<br />
|GNU/Linux, programming<br />
|User and developer, waiting for GTA02<br />
|Stavanger<br />
|<br />
|-<br />
|[[User:Preben | Preben Ulltang]]<br />
|GNU/Linux, programming<br />
|GTA01Bv4, Neo Advanced (Owner)<br />
|Førde<br />
|<br />
|-<br />
|}<br />
[[Category:Community]]</div>Prebenhttp://openmoko.org/wiki/User:PrebenUser:Preben2007-10-17T18:34:32Z<p>Preben: </p>
<hr />
<div>My name is Preben, I am 18 years old and I have about 3 years with Linux/Unix experience. My Primary computer system is OSX, but Gentoo and OpenSUSE are both very nice and lovely.<br />
<br />
I've joined openmoko because I think this is a good project.</div>Preben