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
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
oshlumh
July 13, 2014
Programming
110
0
Share
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
ルールルルルルRubyの中身の予備知識 ── RubyKaigiの前に予習しなイカ?
ydah
1
180
実践CRDT
tamadeveloper
0
570
mruby on C#: From VM Implementation to Game Scripting (RubyKaigi 2026)
hadashia
2
530
JAWS-UG横浜 #100 祝・第100回スペシャルAWS は VPC レスの時代へ
maroon1st
0
150
Coding at the Speed of Thought: The New Era of Symfony Docker
dunglas
0
5k
おれのAgentic Coding 2026/03
tsukasagr
1
150
2026-03-27 #terminalnight 変数展開とコマンド展開でターミナル作業をスマートにする方法
masasuzu
0
340
YJITとZJITにはイカなる違いがあるのか?
nakiym
0
220
CursorとClaudeCodeとCodexとOpenCodeを実際に比較してみた
terisuke
1
470
SkillがSkillを生む:QA観点出しを自動化した
sontixyou
6
3.4k
AIエージェントで業務改善してみた
taku271
0
530
Back to the roots of date
jinroq
0
110
Featured
See All Featured
Leveraging Curiosity to Care for An Aging Population
cassininazir
1
220
End of SEO as We Know It (SMX Advanced Version)
ipullrank
3
4.1k
Rebuilding a faster, lazier Slack
samanthasiow
85
9.5k
Site-Speed That Sticks
csswizardry
13
1.2k
Navigating Weather and Climate Data
rabernat
0
170
Tell your own story through comics
letsgokoyo
1
900
Joys of Absence: A Defence of Solitary Play
codingconduct
1
350
Documentation Writing (for coders)
carmenintech
77
5.3k
Noah Learner - AI + Me: how we built a GSC Bulk Export data pipeline
techseoconnect
PRO
0
160
Building Better People: How to give real-time feedback that sticks.
wjessup
370
20k
Fantastic passwords and where to find them - at NoRuKo
philnash
52
3.6k
Breaking role norms: Why Content Design is so much more than writing copy - Taylor Woolridge
uxyall
0
260
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