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
130
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
Laravel Boostに学ぶ、AIにPHPを書かせる技術 〜OSSの実装から蒸留するエージェント制御の王道〜
kentaroutakeda
3
690
AI時代のPHPer生存戦略 ~「言語、もうなんでもよくない?」に本気で向き合う~
vivion
0
360
AI Readyの正体はデータマネジメントだ メダリオン2.0の最前線
freee
PRO
0
220
freee が目指す データ マネジメント戦略 AI-Ready 時代を支える 攻めのガバナンスとは
freee
PRO
0
360
そこに3びきプロダクトがいるじゃろう——生成AI時代における“価値が届かない理由”の構造
kosuket
0
480
使いながら育てる Claude Code — 開発フローの1コマンド化 × 繰り返し指摘の自動仕組み化
shiki_kakaku
0
1.8k
20260722_microCMSで考える、AI時代のコンテンツ運用設計
yosh1
0
400
為什麼你並不需要ViewModel / No, you don't need a ViewModel
lovee
1
490
ソフトウェアエンジニアにとっての生成AI - 特性を知って使い倒す / generative ai for software enginner
kishida
2
310
Cloudflare is Agents
chimame
0
160
Claude Code全社展開のためにやったことn選~プラグイン302個・コミッター271人を支えるために~
kenchan
5
1.5k
数百円から始めるRuby電子工作
tarosay
0
150
Featured
See All Featured
Optimising Largest Contentful Paint
csswizardry
37
3.9k
AI: The stuff that nobody shows you
jnunemaker
PRO
9
910
Stewardship and Sustainability of Urban and Community Forests
pwiseman
0
460
Imperfection Machines: The Place of Print at Facebook
scottboms
270
14k
A better future with KSS
kneath
240
18k
Art, The Web, and Tiny UX
lynnandtonic
304
22k
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
508
140k
Color Theory Basics | Prateek | Gurzu
gurzu
0
410
Evolving SEO for Evolving Search Engines
ryanjones
0
250
Why You Should Never Use an ORM
jnunemaker
PRO
61
10k
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
49
3.5k
Google's AI Overviews - The New Search
badams
0
1.1k
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