Embedded Linux Device Drivers Aleksandar Peji Andrija Pri Balkan - - PowerPoint PPT Presentation

embedded linux device drivers
SMART_READER_LITE
LIVE PREVIEW

Embedded Linux Device Drivers Aleksandar Peji Andrija Pri Balkan - - PowerPoint PPT Presentation

Embedded Linux Device Drivers Aleksandar Peji Andrija Pri Balkan Computer Congress 2014 September 7 th , Novi Sad, Serbia Agenda About Embedded Systems Hardware Specifics of Embedded Systems Embedded Linux Linux Device


slide-1
SLIDE 1

Aleksandar Pejić Andrija Prčić

Embedded Linux Device Drivers

Balkan Computer Congress 2014 September 7th, Novi Sad, Serbia

slide-2
SLIDE 2

Agenda

  • About Embedded Systems
  • Hardware Specifics of Embedded Systems
  • Embedded Linux
  • Linux Device Driver Architecture
  • Workshop
slide-3
SLIDE 3

Embedded Systems

  • Dedicated function
  • Based on microcontrollers
  • Optimization
  • Variety of applications
slide-4
SLIDE 4

Hardware Specifics

  • On-Chip peripherials
  • Many CPU architectures
  • Word length 8 to 32 bit
  • Cheap development boards
  • SoC
slide-5
SLIDE 5

Peripherials

  • Serial Communication Interfaces
  • Synchronous Serial Communication
  • Universal Serial Bus
  • Networks
  • Fieldbuses
  • Timers
  • Discrete IO (GPIO)
  • Analog to Digital / Digital to Analog
slide-6
SLIDE 6

Embedded Linux

  • Purpose-built
  • Lightweight and optimized
  • Kernel and minimal userspace
  • Buildroot
  • Initramfs
slide-7
SLIDE 7

Linux Device Drivers

  • The Role of the Driver
  • Classes of Devices
  • Memory mapping
  • Interrupt Handling
  • Time routines

Physical device Device driver /dev/xxx User process User space Kernel space

slide-8
SLIDE 8

Workshop

  • Raspberry Pi
  • Protoboard

– Some LEDs – Push Buttons – 7 segment display

  • Buildroot (rpi-buildroot)
  • Custom Linux Kernel module
slide-9
SLIDE 9

Workshop sources

  • https://github/ICBTech
  • git clone https://github.com/icbtech/rpi-buildroot
  • git clone https://github.com/icbtech/BalCCon2k14
slide-10
SLIDE 10

Buildroot

  • make raspberrypi_defconfig
  • make nconfig
  • make
  • Internet connection required (first build)
  • Takes 15 minutes on Core i7 3770
slide-11
SLIDE 11

Questions?

Aleksandar Pejić aleksandar.pejic@icbtech.rs Andrija Prčić andrija.prcic@icbtech.rs