Difference between revisions of "Odroid"

From Ghpsdr3 SDR project
Jump to: navigation, search
(A procedure for newbies to build their own Odroid system)
(A procedure for newbies to build their own Odroid system)
Line 69: Line 69:
 
[http://dev.odroid.com/projects/odroid-xq/  Can be found here.]
 
[http://dev.odroid.com/projects/odroid-xq/  Can be found here.]
  
= A procedure for newbies to build their own Odroid system =
+
= A procedure for newbies to build their own Odroid system or to download ready to work images for -X or -U2 =
  
http://www.lbp.fr/ham/Odroid-x/ODROID-U2_install-2.txt
+
[http://www.lbp.fr/ham/Odroid-x/ODROID-U2_install-2.txt /  See my notes on how to build here.]
 +
 
 +
[http://www.lbp.fr/ham/Odroid-x/note-odroid-x-v_ehp.txt /  See my notes on how to run an already built image here.]
 +
 
 +
[http://www.lbp.fr/ham/remote.html#sdcard/  See my complete page here.]

Revision as of 06:22, 8 June 2013

Odroid Wiki

Tutorials about kernel rebuild and step-by-step Ubuntu SD Card Setup

How to install on U2 a custom built stable kernel

Alas till today (2013, Jan 7) the official images for X2 and U2, as found on the HardKernel site, suffer from a fatal flaw that locks the whole system under heavy ethernet load.

Several users signaled the issue ( see this thread ).

The Hardkernel guys are actively investigating the problem; in the meanwhile a forum user (zehome) developed a patch of kernel config and provided on his web site a package for a new kernel that fixes the above problem.

The install procedure is as follows:

cd
wget http://odroid.zehome.com/odroidu2_ed_kernel_rel3.tar.gz
tar xzf odroidu2_ed_kernel_rel3.tar.gz
cd odroidu2_ed_kernel_rel3 && ./install.sh
sha1sum: b3e86718f69b9801097819a7250876cd0053b9cd  odroidu2_ed_kernel_rel3.tar.gz
md5sum: ba0088cb23e0be5a11012cd4acf3c844  odroidu2_ed_kernel_rel3.tar.gz

How to compile Qt5

In order to compile Qt5, is mandatory to start from a clean system, especially if you are using a 8 GB SD card. Moreover, you have to install the mesa packages:

sudo apt-get install mesa-utils mesa-common-dev libgl1-mesa-dev x11proto-xext-dev libxrender-dev

missing this step, the build will fail on unknown OpenGL symbols, even if the OpenGL build has been explicitly disabled.

Append to ~/.bashrc the following lines:

export CPPFLAGS='-O2 -fPIC'
export CXXFLAGS='-O2 -fPIC'
export CFLAGS='-O2 -fPIC'

See the bug #924726

Clone the base repository:

cd
git clone git://gitorious.org/qt/qt5.git qt5

this is only a template repository, it is almost empty, we need to download the whole code using the initialization script

cd qt5
perl init-repository --no-webkit

Next we have to configure, avoiding to compile examples and test programs, in order to shorten the build time:

./configure -developer-build -opensource -nomake examples -nomake tests -no-pch  -qt-xcb
make -j8

If the build ends successfully, there is no need to install the package, it is enough use includes and libraries as found in ~/qt5/qtbase directory.

export PATH=~/qt5/qtbase/bin:$PATH

Reference

Building Qt 5 from Git on Qt Project web site

Forcing all CPU's active

echo performance > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor


HardKernel documentation on ODROID X and Q

Can be found here.

A procedure for newbies to build their own Odroid system or to download ready to work images for -X or -U2

/ See my notes on how to build here.

/ See my notes on how to run an already built image here.

See my complete page here.