Search

Resume and bio of the author Couple of articles related to my hobby - robotics
My impressions about immigration to Australia. In Russian only. Recipes for everyday problems solving
Linux-related posts Windows-related posts
Software-related posts A lot of info about hardware
Different tools you might find useful Posts about various web technologies
Everything that doesn't fit the rest of the menu RSS feed for this blog

Tag Cloud

Archives

Links

Andrey Mikhalchuk’s Blog

Technoblog about life

Jun 3, 2009 Solving libopenocd.so: undefined reference to `FT_GetLatencyTimer’ problem during openocd compilation

If you dare to build OpenOCD from svn trunk and lucky to have a USB JTAG adapter there is a good chance you will see something like

/bin/sh ../libtool --tag=CC --mode=link gcc -std=gnu99 -g -O2 -I/root/Distr/ftd2/libftd2xx0.4.16 -Wall -Wstrict-prototypes -Wformat-security -Wextra -Wno-unused-parameter -Wbad-function-cast -Wcast-align -Wredundant-decls -Werror -o openocd main.o libopenocd.la -ldl /root/Distr/ftd2/libftd2xx0.4.16/static_lib/libftd2xx.a.0.4.16 -lpthread
libtool: link: gcc -std=gnu99 -g -O2 -I/root/Distr/ftd2/libftd2xx0.4.16 -Wall -Wstrict-prototypes -Wformat-security -Wextra -Wno-unused-parameter -Wbad-function-cast -Wcast-align -Wredundant-decls -Werror -o .libs/openocd main.o /root/Distr/ftd2/libftd2xx0.4.16/static_lib/libftd2xx.a.0.4.16 ./.libs/libopenocd.so -ldl -lpthread
./.libs/libopenocd.so: undefined reference to `FT_GetLatencyTimer'
./.libs/libopenocd.so: undefined reference to `FT_Close'
./.libs/libopenocd.so: undefined reference to `FT_SetBitMode'
./.libs/libopenocd.so: undefined reference to `FT_GetDeviceInfo'
./.libs/libopenocd.so: undefined reference to `FT_OpenEx'
./.libs/libopenocd.so: undefined reference to `FT_Read'
./.libs/libopenocd.so: undefined reference to `FT_SetTimeouts'
./.libs/libopenocd.so: undefined reference to `FT_SetVIDPID'
./.libs/libopenocd.so: undefined reference to `FT_Write'
./.libs/libopenocd.so: undefined reference to `FT_SetLatencyTimer'
./.libs/libopenocd.so: undefined reference to `FT_ListDevices'
./.libs/libopenocd.so: undefined reference to `FT_Purge'

Here is how to fix that:

May 25, 2009 How to autologin root

This is a famous/popular question in many Linux forums. The typical answer to the question is “Login (especially autologin) into a system as root is bad”. That’s right, but WTH! The person is asking how to do that, not if it is good or bad! If you don’t know the answer, don’t answer the question you’re not asked about!!
Anyway, if you need to autologin as root for some reason here is the recipe for Open SuSE 11.1 KDE 4.2.2 that could work for other Linux/KDE combinations:

Sep 10, 2008 Updating BIOS on ALIX 2 series (fixing “NET: Registered protocol family 16″ boot freeze)

I recently tried to install voyage linux on an ALIX computer and found that versions 5.0 don’t run on it hanging with “NET: Registered protocol family 16″ message during the boot. After quick research I found that “MFGPT workaround” option should be disabled in the bios settings in order to fix the problem.

Unfortunately BIOS versions prior to 0.98d do not have that option, so I had to upgrade the BIOS. The instructions for the upgrade are available at http://pcengines.ch/freedos.htm. For some reason only “LBA Copy” method worked for me, though others report that “File Copy” is the most reliable method. By default LBA is turned off on ALIX, so make sure that you change the bios settings from CHS to LBA. To do so when you see the memory check during the boot press “S” then “L”, “Q”, “Y”. If you don’t do that you’ll be getting something like “.Error!.” or the system will just freeze after “FreeDOS” message, depending on the method you’re using for the FreeDOS installation.

Now format the flash card (For some reason the method didn’t work for me until I reformat the card), write the image, copy the new BIOS files, properly eject the card from the card reader (use the “Safely Remove Hardware” tray icon for that), insert the card into ALIX and boot from it.

I copied the new bios files into directory BIOS, so after boot I need to issue the following commands:

C:\>cd BIOS
C:\BIOS>dir
 Volume in drive C has no label
 Volume Serial Number is 4752-912D

 Directory of C:\BIOS

.                    <DIR>  09-10-08  2:11p
..                   <DIR>  09-10-08  2:11p
ALIX1    BIN       524,288  12-10-07  2:00p
ALIX2    BIN       524,288  12-10-07  2:00p
ALIXBIOS TXT         5,052  12-10-07  2:01p
SB       COM         1,648  08-30-07  2:36a
         4 file(s)      1,055,276 bytes
         2 dir(s)      14,086,144 bytes free
C:\BIOS>sb.com
ALIX flash update (C)2007 PC Engines GmbH
Flash ID = 1 FFFF GPI = FF
Flash ID = 0 9D37 GPI = 01
Reading 512KB flash image alix1.bin................
Compare Erase Program Verify - update OK.
C:\BIOS>


Now power ALIX off and replace the FreeDOS card with Voyage card and enjoy the problem gone.

May 25, 2008 Consolidating All Media Files With Archos 605 and Linux Media Server

Many people are dreaming about consolidating all media files (video, music, pictures etc) in a single place. For some it is a huge full of DVDs, CDs and photos. Others buy hardware media servers and store all files in them. I chose a solution based on Archos 605 WiFi and a Linux Server running UPnP Media Server. Here’s how it works …

Feb 12, 2008 How to automate fdisk (how to partition a lot of disks quickly)

Imagine you need to create say 10 disks with predefined partitions loaded with some software. The ideal solution would be automatic disk partitioning and copying the software to it. While copying files is an easy-to-do everyday procedure partitioning is a bit more tricky (really, just a little bit). Here is a quick trick that will allow you to partition disks quickly.

Jan 28, 2008 How to improve NFS performance (Linux, OpenSUSE 10.3)

When I used NFS first time 15 years ago on Sun it seemed to me the top of progress. And it really was at that time. So dealing mostly with samba during last few years I forgot how actually NFS works until a few days ago when I issued standard “mount server:/directory /mnt/subdir” and tried to compile a project. The performance was HORRIBLE. So I spent some time investigating how to improve NFS performance and found this solution:

Jan 26, 2008 How to configure master/slave DNS servers so they do not conflict with Plesk 8.2

When you need to implement a DNS master/slave relationship, you obviously can go ahead and edit named config files, but when you do next change to DNS configuration using Plesk most your changes will be lost. From the other side Plesk doesn’t provide slave server configuration at all! Here is the solution that works for me on Plesk 8.2. Versions 8.3 and above support the master/slave DNS configuration via web interface.

Site Map (c) Andrey Mikhalchuk, 2005-2008