Sign in Join
Wiki copytemporary

Odroid: what changed

Revision 0 to 1. Removed lines have a minus sign; added lines have a plus sign.

Title: Odroid

OldNewLine
1+## Overview
2+
3+Odroid are ARM devices manufactured by HardKernel.
4+
5+### U2, U3
6+
7+These devices contain a Samsung ARM chip
8+
9+ * instruction set: ARMv7A
10+ * floating point coprocessor (FPU): VFPv3
11+
12+Operating systems: Xubuntu (ARMHF; hardfloat), Android.
13+
14+#### Installing FPC/Lazarus using fpcup
15+
16+This section focuses on using Linux on the Odroids.
17+
18+ * FPC 2.6.x
19+
20+As the provided Linux is ARMHF, standard FPC 2.6.x is not suitable (insufficient ARMHF support0. The included Xubuntu Linux probably supplies modified FPC 2.6.x+Lazarus (much like the Raspbian distribution).
21+
22+ * FPC trunk
23+
24+The easiest way to install FPC trunk and Lazarus is to run [[fpcup]] which will use a 2.6.x bootstrap compiler to build a trunk ARMHF intermediate compiler. Now the regular FPC and Lazarus environments are built by fpcup.
25+
26+Note that fpcup is a thin wrapper around the regular svn/make FPC/Lazarus install process, so if you're uncomfortable with this process, it may not be for you.
27+
28+Instructions - to be run as a regular user:
29+
30+ * Install prerequisites for Lazarus and subversion, e.g. something like:
31+
32+```
33+sudo apt-get install build-essential libgtk2.0-dev libgdk-pixbuf2.0-dev libpango1.0-dev subversion
34+```
35+
36+ * Download fpcup_linux_armhf (or perhaps fpcup_linux_arm) and fpcupodroid.ini into a directory (say ~)
37+
38+```
39+cd ~
40+ wget https://bitbucket.org/reiniero/fpcup/downloads/fpcup_linux_armhf
41+ wget https://bitbucket.org/reiniero/fpcup/downloads/fpcupodroid.ini
42+```
43+
44+Note: you may need to edit fpcupodroid.ini. Please see warning below about what FPC/Lazarus revisions work.
45+
46+ * Make fpcup executable:
47+
48+```
49+chmod ug+rx fpcup_linux_armhf #replace filename with proper name if different
50+```
51+
52+ * Run fpcup, telling it to use the [General] profile in fpcupodroid.ini:
53+
54+```
55+./fpcup_linux_armhf --inifile=fpcupodroid.ini #replace filename with proper name if different
56+```
57+
58+For a full make distclean/install etc session:
59+```
60+./fpcup_linux_armhf --inifile=fpcupodroid.ini --inisection=full #replace filename with proper name if different
61+```
62+
63+fpcup will create desktop shortcuts etc. For more details, please see the [[fpcup]] wiki page.
64+
65+You can also download and run fpcupgui next to fpcup in order to run fpcup via a GUI.
66+
67+#### Notes
68+
69+[![Warning-icon.png](/wiki-images/b/b2/Warning-icon.png)](</File:Warning-icon.png>)
70+
71+**Warning:** Serious problems compiling with current (March 2014) FPC trunk.
72+
73+ * Please see e.g. <http://www.mail-archive.com/fpc-pascal@lists.freepascal.org/msg36074.html>
74+ * FPC revision r26550 together with Lazarus revision 43823 seems to work. Other versions may also work. Please use fpcrevision and lazrevision options; both when compiling fpcup and when using fpcup to compile FPC/Lazarus
75+
76+* currently fpcup will do a make distclean before installing/updating, which may stress your memory card. Experimental fix in [update] section (see above)... however, the creation of an intermediate ARMHF compiler in fpcup will probably still clean out e.g. the units directory (make cycleclean or something is called in the make script for the cross compiler).
77+* (general fpcup problem) you may have to rebuild Lazarus yourself (Tools/Build Lazarus) to get all packages/controls fpcup installed for you.
78+
79+## XU
80+
81+The Odroid XU can run e.g. Ubuntu.
82+
83+Michel Catudal provides Ubuntu images that include Lazarus/FPC; see <http://home.comcast.net/~mcatudal/>
84+
85+_more details welcome_
86+
87+## See also
88+
89+ * [[fpcup]] Main fpcup page. Details on settings, troubleshooting, bug reporting, cross compilers etc.
90+ * [[Lazarus on Raspberry Pi]] Raspbian also is ARMHF but has an older ARM processor architecture.
91+
92+---
93+*From the Free Pascal wiki, page "Odroid", as the Internet Archive kept it on 2025-06-16, last changed on 2022-01-23. Copyright stays with the author who wrote it, according to the old wiki's [[Licensing]] page. If you have concerns about this material, [message the admin](/wiki-contact).*

Back to history