wiki:GSoC/2015/RaspberryPiUSBSupport

Version 2 (modified by Yurii Shevtsov, on Aug 25, 2015 at 9:19:10 AM) (diff)

--

Raspberry Pi USB Support

Raspberry Pi USB support via RTEMS-libbsd.

Mentors

Alan Cudmore, Gedare Bloom, Joel Sherrill

Student

Yurii Shevtsov

Introduction

Enabling USB Support is porting specific drivers from FreeBSD The first one is DWC OTG

Getting started

  • Raspberry Pi required
  • Configure and RTEMS with these args --enable-rtemsbsp=raspberrypi --enable-posix --disable-networking (you will need mailbox sources, if not yet merged, you can get them here)
  • Get libbsd sources with DWC OTG driver (if not yet merged, here)
  • Ensure testsuite app, you want to try, has these lines:
    #include <bsp/nexus-devices.h>
    SYSINIT_NEED_USB_CORE;
    SYSINIT_DRIVER_REFERENCE(bcm283x_dwcotg, nexus);
    
  • Configure and build libbsd
  • Run testsuites and enjoy!

References

Github
Blog