Presentation is loading. Please wait.

Presentation is loading. Please wait.

Embedded Linux By Gus Wirth. What makes it embedded? ● Rather nebulous, line has blurred over the years ● Limited purpose ● Small resources compared to.

Similar presentations


Presentation on theme: "Embedded Linux By Gus Wirth. What makes it embedded? ● Rather nebulous, line has blurred over the years ● Limited purpose ● Small resources compared to."— Presentation transcript:

1 Embedded Linux By Gus Wirth

2 What makes it embedded? ● Rather nebulous, line has blurred over the years ● Limited purpose ● Small resources compared to regular system, e.g. no hard drive, MB vs GB of RAM ● Limited user interface, for example no monitor or keyboard

3 Things an embedded system may have not seen in a regular PC ● General Purpose Input/Output (GPIO) ● Inter-Integrated Circuit (I2C) bus ● Serial Peripheral Interface bus ● Controller Area Network bus ● Watchdog timers ● Analog/Digital and Digital/Analog (A/D and D/A) converters

4 Where do you find embedded Linux? ● Routers ● TV set top boxes ● Media players ● Industrial Control ● Home Automation ● Cell Phones

5 Embedded Platforms ● MIPS ● ARM ● x86

6 Making Linux embedded ● Remove everything that you don't absolutely need ● Kernel – minimalist, compress with LZMA (Lempel-Ziv-Markov chain algorithm) ● uLibc or dietLibc ● Use small, alternative commands/utilities ● Busybox – Most command commands/utilities ● dnsmasq -DNS and DHCP ● dropbear - SSH

7 ● Filesystems ● SquashFS – compressed filesystem ● JFFS2 – Journaled Flash File System uses mtd (memory technology device) driver designed for direct use with flash memory (EEPROM) Making Linux embedded (cont)

8 Embedded Linux distributions ● Debian http://www.debian.orghttp://www.debian.org ● Angstrom Linux http://www.angstrom- distribution.orghttp://www.angstrom- distribution.org ● OpenWrt http://www.openwrt.org

9 Building a new firmware ● Get the tools a.k.a tool-chain ● Cross-compilers ● Assemblers ● Compression utilities ● File utils ● Misc utils ● Design your image ● Get source code ● Configure and compile code for target

10 Building a new firmware ● Assemble compiled code into firmware image ● Install firmware into target

11 Building a new firmware ● De-brick and try again

12 Building firmware with OpenWrt ● Check out OpenWrt source code ● Run “make menuconfig” ● Select platform and options ● Run “make” ● Install firmware into target ● Reboot embedded system

13 What makes OpenWRT so good for embedded systems? ● Someone else has done all the work ● OpenWrt does everything for you -downloads and compiles full tool chain plus firmware sources, builds and assembles images ready for installation ● Large number of supported platforms ● Paid developers ● Active community ● Good bug tracking

14 What makes OpenWRT so good for embedded systems? (cont) ● Package system (opkg) – only install what you want, allows installation of new/updated packages without re-imaging entire system ● Large number of packages

15 Demo Examples ● Ubiquiti Bullet2 ● SoC Atheros AR2317 ● MIPS 4KC core, 180 MHz ● 4MB Flash, 16MB RAM ● Ethernet ● Serial port, 3.3V ● Built-in WiFi Atheros, uses madwifi driver

16 Demo Examples ● Ubiquiti RouterStation ● SoC Atheros AR7161 ● MIPS 24K core, 680MHz ● 16MB Flash, 64MB RAM ● miniPCI bus ● USB 2.0 ● GPIO ● Ethernet switch ● Serial port, 3.3V

17 Demo Examples ● Wiliboard WBD-111 ● SoC Cortina Systems (StorLink) Gemini SL3512 ● ARM920 core, 400MHz ● 8MB Flash, 32MB RAM ● miniPCI bus ● USB 2.0 (but no power) ● GPIO ● Ethernet ● Serial port, 3.3V

18 Demo: Build and install firmware ● RouterStation ● “make menuconfig” ● Select target ● Select options ● “make” ● Install with tftp ● Install package with opkg ● Monitor with serial port ● Show LED's blinken

19 When installs fail: De-bricking ● Procedures vary by board ● Most reasonable boards separate firmware from loader – CFE – uBoot – RedBoot ● Reset button ● boot-wait ● Serial port

20 JTAG – Joint Test Automation Group ● Serial data in/out at pin boundaries ● Can be used as a last resort to recover a device ● Simple parallel port cable ● May need to solder board header ● Software for common routers is Windows based


Download ppt "Embedded Linux By Gus Wirth. What makes it embedded? ● Rather nebulous, line has blurred over the years ● Limited purpose ● Small resources compared to."

Similar presentations


Ads by Google