Embedded Freaks..

November 25, 2010

Cross-Compiling ‘Disko-Demos’ for ARM926EJ-S

Filed under: ARM9, arm926ej-s, embedded-linux — Tags: , — kunilkuda @ 10:04 am

Yes..here we go again with disko-demos application to demonstrate Disko’s capability (See how it looks like for other platforms here, here, and here). Let’s build the ‘disko-demos’ using our cross-compiled libraries.

First download the ‘disko-demos’ application from disko’s GIT repository:

# git clone git://git.diskohq.com/disko-demos.git



November 23, 2010

Cross Compiling OpenSSL-1.0.0b for ARM926EJ-S

Filed under: ARM9, embedded-linux — Tags: , — kunilkuda @ 10:30 pm

Well, I forgot to put OpenSSL into my Disko cross compilation (here). Hence, I need to download the latest OpenSSL and cross compile it too.

OpenSSL uses different configuration script (not the standard autoconf script..), and run by Perl. After working almost one night non-stop, I finally figure out how to configure OpenSSL-1.0.0b for cross compilation

# tar xvjf openssl-1.0.0b.tar.gz

# cd openssl-1.0.0b

# ./Configure --prefix=$(HOST_DIR) zlib-dynamic "linux-arm926ej-s":"arm-none-linux-gnueabi-gcc:-DTERMIO -O3 -Wall -I../../host/include::-D_REENTRANT::-L../../host/lib -ldl:BN_LLONG RC4_CHAR RC4_CHUNK DES_INT DES_UNROLL BF_PTR::bn_asm.o armv4-mont.o::aes_cbc.o aes-armv4.o:::sha1-armv4-large.o sha256-armv4.o sha512-armv4.o:::::::void:dlfcn:linux-shared:-fPIC::.so.1.0.0":arm-none-linux-gnueabi-ranlib::

# make

# make install

No sed, no awk, no regex to change the Configure script. Just change the $CC according to your cross-compiler-gcc and $CROSS_RANLIB with your cross-compiler-ranlib. The $(HOST_DIR)/include and $(HOST_DIR)/lib must have ARM’s zlib library and header files.

Now I need to update my Disko cross compile Makefile script..

November 22, 2010

Understanding NXP LPCxxxx Series Timer

Filed under: ARM9, Cortex-M, embedded-tips — Tags: , , , — kunilkuda @ 10:24 am

Not very sure about how the NXP LPCxxxx timer works ? Well, so do I =)

But after working with few of LPCxxxx series, I finally can get a good view of how the Timer works. Here’s a block diagram of how the Timer works (at least in LPC23xx, LPC24xx, LPC31xx, LPC32xx, LPC111x, LPC176x)

LPCxxxx Timer Diagram


« Newer PostsOlder Posts »