Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Egle Systems
Search
oshlumh
July 13, 2014
Programming
120
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Egle Systems
Desarrollo de Hardware y Software para ARM, Sistemas embebidos y Smart Devices
oshlumh
July 13, 2014
Other Decks in Programming
See All in Programming
生成AI時代にこそ効くGo | Why Go Works in the Age of Generative AI
mom0tomo
8
3.2k
Signal Forms: Beyond the Basics @ngBaguette 2026 in Paris
manfredsteyer
PRO
0
240
AIで効率化できた業務・日常
ochtum
0
120
「エンジニアインターン、どうやって取った?」準備のリアルを語るLT会 Progate BAR
akiomatic
0
130
Language Server 使ってる? 〜VSCode と Zed の場合〜 / Are you using a Language Server? ~For VS Code and Zed~
handlename
0
780
AIチームを指揮するOSS「TAKT」活用術 / How to Use “TAKT,” an OSS Tool for Orchestrating AI Teams
nrslib
6
880
並列実装の現場、2ヶ月間実務でAIを使い倒したAIもPCも私も限界が近い
ming_ayami
0
120
LLM本来の能力を解き放つサンドボックス技術とAI民主化への適用
yukukotani
3
3.6k
TAKTでAI駆動開発の品質を設計する
j5ik2o
6
1.2k
JJUG CCC 2026 Spring: JSpecify で実現する Kotlin フレンドリーな Java API 設計
ternbusty
1
160
例外の正しい扱い方 そのエラー try-catchして大丈夫?
jinwatanabe
0
210
AIとASP.NET Coreで雑Webアプリを作った話
mayuki
0
510
Featured
See All Featured
VelocityConf: Rendering Performance Case Studies
addyosmani
333
25k
Test your architecture with Archunit
thirion
1
2.3k
Money Talks: Using Revenue to Get Sh*t Done
nikkihalliwell
0
250
Code Review Best Practice
trishagee
74
20k
Joys of Absence: A Defence of Solitary Play
codingconduct
1
390
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
49
3.5k
ラッコキーワード サービス紹介資料
rakko
1
3.6M
Game over? The fight for quality and originality in the time of robots
wayneb77
1
200
Impact Scores and Hybrid Strategies: The future of link building
tamaranovitovic
0
310
Why You Should Never Use an ORM
jnunemaker
PRO
61
9.9k
Why Your Marketing Sucks and What You Can Do About It - Sophie Logan
marketingsoph
0
170
Reality Check: Gamification 10 Years Later
codingconduct
0
2.2k
Transcript
http://www.eglesys.com
Desarrollo de hardware/software para ARM Sistemas embebidos Smart devices
Es28-SOM ARM926EJ-S™ 454MHz 256MB RAM NAND + MMC 2xCAN-Bus, 2xEthernet,
5xUART, USB Host + OTG
Es335-SOM Cortex-A8™ 1000MHz 1024MB RAM GPU NAND + MMC 2xCAN-Bus,
Ethernet, EtherCAT, PROFINET, PROFIBUS, 6xUART, USB 2xOTG
Es6-SOM 4xCortex-A9™ 1200MHz 4096MB RAM GPU + VPU (4 pantallas)
NAND + MMC + SATA + PCIe 2xCAN-Bus, Ethernet GBit, 5xUART, USB Host + OTG
Sistemas operativos para Es6-SOM Linux embebido Ubuntu 12.04 LTS Android
4.2 Todos usan bootloaders y kernels adaptados al hardware
Linux embebido Sistema base con todo el soporte hardware y
lo mínimo para arrancar. Sin sistema de gestión de software. Las bibliotecas adicionales se instalan en /opt/<nombre> SDK de desarrollo.
None
SDK cross-toolchain + sysroot
Toolchain: Utilidades para crear un programa: gcc, ld, gdb, etc...
Host: Máquina donde trabajamos. Target: Máquina que ejecutará el software. Compilador cruzado: Compilador que se ejecuta en el host y crea ejecutables para el target.
El prefijo indica el tipo de binario que crea. No
es standard. arm-fsl-linux-gnueabi-gcc
Utilizando un compilador nativo: /usr/include para cabeceras /usr/lib bibliotecas compartidas
(*.so) Compilación cruzada: <sysrootdir>/usr/include cabeceras <sysrootdir>/usr/lib bibliotecas compartidas (*.so)
$ export SDKDIR=/opt/egle/es6/2013.10 $ export SYSROOT=${SDKDIR}/sysroot $ export TOOLCHAINDIR=${SDKDIR}/fsl-linaro-toolchain/bin $
export PATH=${PATH}:${TOOLCHAINDIR} $ arm-fsl-linux-gnueabi-gcc \ -I${SYSROOT}/usr/include \ -I${SYSROOT}/opt/xenomai2/include \ -L${SYSROOT}/usr/lib \ -L${SYSROOT}/opt/xenomai2/lib \ -lxenomai -lnative \ -Wl,-rpath,/opt/xenomai2/lib \ rttest.c -o rttest
El parámetro remote path para el linker: -Wl,-rpath,[libdir] permite incluir
en el binario rutas adicionales de búsqueda de bibliotecas en runtime.
$ file rttest rttest: ELF 32-bit LSB executable, ARM, EABI5
version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.31, not stripped
Compilación de bibliotecas Autotools, Cmake, etc... Depende del proyecto.
$ cd linux $ export SDKDIR=/opt/egle/es6/2013.10 $ export TOOLCHAINDIR=${SDKDIR}/fsl-linaro-toolchain/bin $
export PATH=${PATH}:${TOOLCHAINDIR} $ export ARCH=arm $ export CROSS_COMPILE=arm-fsl-linux-gnueabi- $ make <target>
Vale, ¿pero como depuro?: JTAG gdbserver
JTAG
$ scp rttest
[email protected]
:/root/rttest $ ssh
[email protected]
"gdbserver :5000 /root/rttest"
$ gdb (gdb) target remote 192.168.1.110:5000 (gdb) b main (gdb) continue
$ scp rttest
[email protected]
:/root/rttest $ gdb (gdb) target remote |
ssh -T 192.168.1.110 gdbserver - /root/rttest (gdb) b main (gdb) continue
IDEs: Eclipse CDT, qtcreator, Code::Blocks... La mayoria permite seleccionar el
compilador, sysroot, etc... También suelen permitir sesiones de depuración remotas.
FIN