ODROID-X & X2 Schematics

Download ODROID-X_BASE_REV0.5.pdf

Download ODROID-X_schematics.zip

ODROID-X schematics has beed released now.
List of schematics above link is as below. The format of schematics is PDF.

 

– ODROID-X Baseboard
– USB-UART Board 
– LCD Module Board
– eMMC Module Board


Schematics of Exynos 4412 CPU Module will be available by email request to odroid@hardkernel.com with ODROID-X/X2 serial number which is printed on PCB. Please be noted that the serial number can be registered only once. We do not have any plan to open schematics with other format at this moment.

USB-UART Module Kit

There is a system console port in all of ODROID series to monitor the low-level information of target system.
This is very useful and important tool for platform software development.

The system console port uses UART(Universal asynchronous receiver/transmitter) of CPU for communication between your host PC and target board.
Protocol is 115200bps / no-parity / 8bit / 1-stop-bit / No-flowcontrol as usual.
You can use any tty terminal software such puTTY, minicom or hyperTerminal in your host PC.

The UART of CPU has simple 2 signals Tx and Rx with a ground level for communication.
Please note most of new comming mobile processors have 1.8V of IO voltage to minimize power consumption.

In traditional design, there should be a RS-232C level converter MAX232 or MAX3232 or MAX3218 on board.
Addtionally your Host PC must have a RS-232C port.
Note that all of modern PC / Laptop have no built-in RS-232C port you have to buy a USB-RS232 converter.
So this solution is expensive, uncomfortable and bigger footprint.

Fortunately, there are many IC makers have introduced USB-UART bridge ICs.

To meet the low voltage interface specification. we chose the CP2104 USB-UART bridge IC from the Silicon Labs.
You can find the datasheet of CP2104 and its drivers from this link.
http://www.silabs.com/products/interface/usbtouart/Pages/usb-to-uart-bridge.aspx

CP2104 has internal oscillator, LDO, Tx/Rx indicating LED drivers and 1.8Volt IO with reasonable price in 4mmx4mm package.


USB-UART Module kit contains below 3 items.

– Micro-USB cable
– USB-UART board with CP2104
– 4pin wire harness to connect to ODROID-X

 

Let’s look into USB-UART board.
You can find Micro-USB connector, 4-pin Wire-connector, USB-UART bridge IC CP2104 and 3 LED inticator on top side.
D1 is Tx LED, D2 is Rx LED and D3 is power indicator. Note this board is powered by USB of host PC.
On bottom side, there are some passive devices and USB signal conditioner of L1.

Place the 4pin wire harness between USB-UART board and your ODROID-X/X2/U2/U3/C1/XU3/XU as below picture.
And place the Micro-USB cable between your host PC and USB-UART board.

You can download proper device drivers for your host PC.
Click “Tools” tab to get drivers for Windows, Mac and Linux in this link.
http://www.silabs.com/products/interface/usbtouart/Pages/usb-to-uart-bridge.aspx

I want to let you know some information of CP2104 device driver for your host Linux PC.
If your host Linux PC runs Kernel 3.2 or higher, the CP2104 works without any addtional installation/compilation.
Note Ubuntu 12.04 is based on Kernel 3.2.

This is a USB-UART board for ODROID-Q model which also has CP2104.
We call it “Debug board” from time to time.

LCD Module Kits for ODROID-X

There are two different LCD module kits for ODROID-X.
One is 10.1inch and the other is 13.3inch.
Resolution and other characteristics are almost identical. Yes. The only difference is the dimension.

Please note the 10.1inch model was all sold out.

BTW, we have one news to whom have purchased 13.3 inch LCD Kit.
We have tested 13.3 inch and 14 inch LCD modules together. 13.3 inch LCD price is lower but it’s weak since the PCB is outside of LCD frame. 14 inch LCD price is higher but PCB is well located on the back side of LCD. So, we have decided to provide 14 inch upgrade version without any cost to whom purchase 13.3 inch LCD Kit.

LCD Module kit contains below items.

– LCD module
– LCD interface board
– LVDS cable
– DC Adaptor ( 9Volt / 1.5Amp )

If we assemble this kit….

You might want to look into the interface board more closely.

It has a RGB-LVDS converter IC and 3.3Volt step-down DCDC converter.
We used TI’s SN75LVDS83BZ and Ricoh’s R1240K003B respectively.
Here is a picture of top-side.

 

This picture shows bottom-side and LCD connection.

 

It’s time to plug the LCD interface board into ODROID-X 50-pin connector.

 

Another shot !

 

You can find the datasheed of LCD in this link.
10.1 inch LCD <== Click this.

Note: The LCD module may be a compatible product due to market condition.

ODROID-X & ODROID-Q Shipment Ready

ODROID-X and ODROID-Q production has started this week. We will start the shipment from next week. Please refer to the below for the shipment schedule.

– 1st batch from 30th of July : your order between 1st of July and 11th of July : Shipped out 
– 2nd batch from 6th of August : your order between 12th of July and 15th of July : Shipped out 
– 3rd batch from 13th of August : your order between 16th of July and 31st of July :  Shipped out 
– 4th batch from 27th of August : your order between 1st of August and 6th of August : Shipped out
– 5th batch from 3rd of September : your order between 7th of August and 17th of August : Shipped out
– 6th batch from 10th of September : your order between 18th of August and 31th of August : Shipped out

– After all :  in two weeks after your purchasing!
 
The delivery takes around 3-5 days after you receive the tracking number. But, it depends on your country’s customs process. The tracking number will be sent via paypal linked email or Fedex system. Please check your order’s delivery status after you get the tracking number here. 
Fedex : http://www.fedex.com/
The pictures of production line are below. 
 
1. First stage of  process. The machine is “Solder cream printer”.

 

2. SMT machine: Mouting devices on the PCB.

 

3. Entering into reflow soldering machine.

 

4. SMT soldering is done. Ready to inpection process.

* Note: Each board has 2×2 array of actual PCB to increase the production efficiency.

5. X-ray inspection to check soldering quality.

 

6. Factory Lines

The PCBs will move to another soldering machine for various connectors after inspection process.
And then we will perform all the functionality tests.

High-Definition Games on ODROID-X

Many users requested us to make a video of game play.
Please remember the ODROID-X was designed for developers.
But we also really want to enjoy exciting games too. 🙂

I heard some games support USB joystick input-event handler in Android platform.
So I got a Xbox 360 Wired Controller from my house. My kids may be crying now. 🙂

Anyway, we must configure Kernel options to activate the Xbox contoller for Android USB interface.
Search with ‘xpad’ in Kerenl menuconfig screen and enable all the related items. Recompile the Kernel and just transfer the zImage into ODROID-X.
We will set this configuration as a default when we ship the ODROID-X.

The first game we tried is “SHADOW GUN”. It is one of the best shooting game for Android.
It ain’t just pretty—it’s gorgeous! Advanced lighting effects, beautifully rendered environments, and pro voices make
this one of the most advanced games for your Android device!

 

The second game is “DEAD TRIGGER THD”. Origianlly the ‘THD’ suffix means this game requires nvidia’s Tegra3 GPU.
But after simple modification of configuration file in this game, we could see exactly same graphical effects with Mali-400 Quad-GPU in ODROID-X.
Visually Stunning First Person Zombie Shooter Arcade !!!

It’s time to enjoy video again. 🙂
Please note we used the eMMC module to get faster loading time of game and its data.

 

XBMC on the ODROID-X

We had lots of questions on XBMC on ODROID-X from ODROID Forum members. We finally had a chance to test it. 

Realtime streaming channel played well. But mouse click event was ignored by the app:(. So we controlled the UI with a USB keyboard. We will test more contents’ compatibility. 

ODROID-X Pre-Production

We have started the pre-production this week. Here is the latest picture of ODROID-X.

The background history of adding a heat sink is this. We have performed Full-HD video decoding test only with software. Which was awesome that small embedded quad-core ARM board can decode Full-HD video. But there was a side effect of heat. It is not the normal use environment. But, some heavy users might try. So we have discussed about adding heat sink with ODROID Forum members. They all loved it. So we have decided to add the heat sink without any extra cost.  
It doesn’t affect shipment schedule. Don’t worry. 


Thanks, 

Full-HD Video play with Quad-Core Exynos.

A lot of people inquired about the performance of ARM Cortex A9 1.4Ghz Quad-core.

So we decided to show it with high definition video play ability.
Even the Exynos contains hardwired MPEG4/H.264/WMV decoder inside, we tried pure software driven media decoder.

We’ve tested several different 720p(HD) and 1080p(Ful-HD) video clips with MX player on ODROID-X which has Android 4.0.4.
MX player is one of the best video player in Google Play(Android Market) which is based on the famous FFMPEG media decoder.
They support Multi-core decoding with ARMv7 NEON SIMD feature. It means they utilize the 4 cores in parallel to decode video.

Most of clips could play well with ARMv7 NEON + Multi-core enabled FFMPEG codec library. It is really amazing.
The quad-core can decode Full-HD video even in a small ARM embedded board.
Seek and Sub-title functions are also working well.

Note that most clips contains H.264 video and we could use the hardware accelerated codec too in Android.
But, we performed this test without the hardware accelerator.

Please look into this video.

BTW, we have two issues.
1. Software driven video decoding makes a lot of heat due to heavy computing.
We may need to add a small heatsinks. We will measure the temperature more carefully.

2. 1080p contents in SDHC card doesn’t play well due to limited data transfer rate.
720p contents in SDHC are not a problem.
The eMMC storage has no problem because it is fast enough.

So we need more investigation the HW and SW codecs as well as burden of flash strorage access time.

Exynos-4412 ARM Cortex-A9 Quad-Core

Hardkernel has just announced new development boards ODROID-Q and ODROID-X which are powered by Samsung Exynos-4412 1.4Ghz processor.

ODROID-Q    Slim, Light, Mobile and Smart soluntion for professional developers.
First shipping will be end of July.

ODROID-X    Affordable and attractive platform with 6-ports USB 2.0 host !
First shipping will be end of July.

Here is a simple benchmarking result of ODROID-Q with Exynos-4412. We used the Quadrant app.
It is much faster than OMAP/Tegra/Snapdragon series. How amazing!  

 

We made interesting videos of ODROID-Q and ODROID-X for the developers.
If you want to enjoy the powerful quad-core processor, dive deep into ODROID!




Application source code for Embedded Android Platform based on ODROID-A4

Hardkernel has released guide book of Android platform development.

–   Basic ( Android/Bootloader/Kernel Build and Installation )
–   Intermediate ( Driver / HAL Development )
–   Advanced (GPIO/UART/I2C/ADC access from Android application )

Kernel source code can be downloaded from this link.

< Kernel source code IO board >

There are also many useful Android application source code to access hardware in Android devices.

Sensor API   < Source code >

Sensor e-Compass API < Source code >

Camera API (preview)   < Source code >

Camera Application (Barcode & QR code reader)   < Source code > taken from ZXing project.

Battery gauge API < Source code >

Audio API <Source code >

WiFi & Bluetooth API < Source code >

GPIO / IRQ access <Source code >

ADC access <Source code >

ADC access (Oscilloscope) < Source code >

UART access (GSP system)  < Source code >

I2C access (Pressure & Barometer) < Source code >

I2C access (GPIO expansion) < Source code >

OpenMP test with ODROID-A4.

An example of 40 pieces of Fibonacci numbers(sequences).
If you want to know about Fibonacci sequences, refer this link.

1
2
3
5
8
13
21
34
55
89
144
233
377
610
987
1597
2584
4181
6765
10946
17711
28657
46368
75025
121393
196418
317811
514229
832040
1346269
2178309
3524578
5702887
9227465
14930352
24157817
39088169
63245986
102334155

To find 40 pieces of Fibonacci sequence, we used this code with OpenMP library on ODROID-A4.
fibonacci_omp.c
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <omp.h>
#include <unistd.h>        /* for open/close.. */
#include <fcntl.h>           /* for O_RDONLY */
#include <sys\ioctl.h>   /* for ioctl*/
#include <sys\types.h>  /* for lseek() */


int Fibonacci(int n)
{
    int x, y;
    if (n < 2)
        return n;
    else {
        x = Fibonacci(n - 1);
        y = Fibonacci(n - 2);
        return (x + y);
    }
}

int FibonacciTask(int n)
{
    int x, y;
    if (n < 2)
        return n;
    else {
#pragma omp task shared(x)
        x = Fibonacci(n - 1);
#pragma omp task shared(y)
        y = Fibonacci(n - 2);
#pragma omp taskwait
        return (x + y);
    }
}

#define MAX 41
int main(int argc, char * argv[])
{
    int FibNumber[MAX] = {0};
    struct timeval time_start, time_end;

    int i = 0;

    // omp 관련 출력
    printf(\"Number of CPUs=%d\n\", omp_get_num_procs());
    printf(\"Number of max threads=%d\n\", omp_get_max_threads());


    gettimeofday(&time_start, NULL);
#pragma omp parallel
    {
#pragma omp single private(i)
        for(i = 1; i < MAX; i++) {
            FibNumber[i] = FibonacciTask(i);
        }
    }
    gettimeofday(&time_end, NULL);

    time_end.tv_usec = time_end.tv_usec-time_start.tv_usec;
    time_end.tv_sec = time_end.tv_sec-time_start.tv_sec;
    time_end.tv_usec += (time_end.tv_sec*1000000);
    printf(\"Time of Fibonacci with OpenMP : %lf sec\n\", time_end.tv_usec / 1000000.0);

    for(i = 0; i < MAX; i++)
        printf(\"%d \", FibNumber[i]);

    printf(\"\n--------------------------------------\n\");

    return 0;

Here is a Makefile example!

GCC = /usr/local/arm/ktoolchain-cortexa9-ver2.1-20110815/bin/arm-none-linux-gnueabi-gcc 

#Fibonacci: Fibonacci.c
#    $(GCC) -o Fibonacci $< -lgomp -lpthread -fopenmp -lm -static 
Fibonacci_omp: Fibonacci_omp.c
    $(GCC) -o Fibonacci_omp $< -lgomp -lpthread -fopenmp -lm -static -O3

Please note the toolchain for OpenMP could be downloadable via in this link.
http://www.kandroid.org/board/board.php?board=toolchain&command=body&no=15

You also need to change the kernel option to activate dual-core all the time, refer Page16~17 of this document.
http://com.odroid.com/sigong/nf_file_board/nfile_board_view.php?keyword=&tag=&bid=96

Test result !
We could know the dual-core utilized calculation of Fibonacci is 1.6 times faster than single-core.

root@android:/system/bin
# ./Fibonacci                                         
Time of Fibonacci with recursion : 7.862591 sec
0 1 1 2 3 5 8 13 21 34 55 89 144 233 377 610 987 1597 2584 4181 6765
10946 17711 28657 46368 75025 121393 196418 317811 514229 832040 1346269
2178309 3524578 5702887 9227465 14930352 24157817 39088169 63245986
102334155
--------------------------------------
root@android:/system/bin
# ./Fibonacci_omp                                     
Number of CPUs=2
Number of max threads=2
Time of Fibonacci with OpenMP : 4.878260 sec
0 1 1 2 3 5 8 13 21 34 55 89 144 233 377 610 987 1597 2584 4181 6765
10946 17711 28657 46368 75025 121393 196418 317811 514229 832040 1346269
2178309 3524578 5702887 9227465 14930352 24157817 39088169 63245986
102334155
--------------------------------------

Multi-core programming (Parallel computing)

Hi everyone,

As you know well, Samsung Exynos-4210 contains TWO Cortex-A9 processors.
So all of ODROID-A, ODROID-PC and ODROID-A4 has dual-core powered computing performance.

To utilize full computing power of dual-core in Android, you need to learn Multi-thread programming.

This document explains the multi-threading in JAVA as well as Native C/C++(NDK) code.
Please note this great article has been written by Alvaro.

There are two source code packages for Java and NDK example.

labbok-Multithreading.rar contains modified graphical interface with an asynchronous task in JAVA.

labbok-NDKMultithreading.rar contains Fibonacci calculation in NDK.

Enjoy the document and example codes for your programming in multi-core world.

This screen shot shows the result of Fibonacci sequence calculation. He tried 30 numbers of sequence with ODROID-A4 ICS build.
It took 420msec with single-core and 230msec with dual-core.
So we can say the dual-core has significant boosted speed about 180% of the single-core.

Once again, really appreciate Alvaro’s sharing.

Another news!
We will release an example code with OpenMP to show you alternative approach of multi-core programming by this weekend.
So stay tuned!