Nexos: a Next Generation Embedded Systems Laboratory

Nexos: a Next Generation Embedded Systems Laboratory

Nexos: A Next Generation Embedded Systems Laboratory Dennis Brylow Bina Ramamurthy MSCS Department CS&E Department Marquette University SUNY at Buffalo 1313 W. Wisconsin Ave., 201 Bell Hall, Milwaukee, WI 53226 Buffalo, NY 14260-2000 [email protected] [email protected] ABSTRACT include everything in between. In short, the diversity of em- The Nexos Project is a joint effort at Marquette Univer- bedded systems dwarfs the variation found in desktop and sity (MU) and University of Buffalo (UB) to build cur- server computing, and this enormous divergence can impact riculum materials and a supporting experimental laboratory every aspect of system development. for hands-on projects in embedded systems courses. Our Second, embedded systems traditionally cannot make use approach focuses on inexpensive, flexible, commodity em- of the most powerful compilation, debugging and automated bedded hardware, (the Linksys WRT54GL wireless router,) testing tools available for production desktop systems. Their freely available development and debugging tools, and a input/output channels are comparatively narrow, they often fresh implementation of a classic operating system that is lack sufficient spare resources to support costly profiling or now ideal for embedded system exploration. The prototype instrumentation, and their design budgets cannot support laboratory environment is being used in multiple courses at large virtual machines or elaborate software runtimes. our respective Universities, with excellent results. We report Third, computer science and engineering degree programs on the infrastructure we have developed, our initial course are already well-established at many institutions, and often offerings at both schools, and an evaluation of our success do not have room for entirely new courses in the core. thus far. Finally, many schools lack the financial resources, labo- ratory space, or faculty expertise to commit to dedicated embedded instructional equipment. With a few notable ex- Categories and Subject Descriptors ceptions, many of the most popular commercial embedded C.3 [Special-Purpose and Application-Based Systems]: platforms do not provide inexpensive evaluation boards, are Real-time and embedded systems; K.3.2 [Computer and supported only by proprietary development tools, and lack Info Science Education]: Curriculum the kinds of useful peripherals that would naturally lead to a body of general purpose laboratory assignments. While it is certainly daunting to face all of these problems, Keywords the need for inexpensive, flexible, hands-on laboratory expe- Embedded systems education, Nexos, Embedded Xinu riences with embedded systems is most pressing. This paper describes initial results from joint efforts by Marquette Uni- versity (MU) and University of Buffalo (UB) to develop a 1. INTRODUCTION curriculum and support infrastructure to address several of Embedded systems comprise a large and growing segment these pressing challenges. of the computing sphere, but efforts to prepare students for The Nexos project aims to provide effective, duplicable, work on design and implementation in an embedded context modern curriculum assistance to schools looking to incor- face a number of important obstacles. porate embedded systems components into core computer First, embedded systems are by their nature quite diverse, science and engineering courses throughout the curriculum. both in scope and in function. Typical embedded systems Our approach focuses on inexpensive, commodity hardware| can range from 4- and 8-bit microcontrollers, with hundreds the Linksys WRT54GL wireless router family|readily avail- or a few thousand bytes of storage, to full-fledged high-end able to both students and faculty. We are developing hard- processors with multiple cores and gigabytes of storage. Sys- ware and software to support both small- and medium-scale tem requirements can range from low-power, event-driven laboratory installations centered around the WRT54GL. Our operation, to gigabit-speed hard real-time deadlines, and can curriculum development efforts have concentrated on devel- oping laboratory assignments, teaching materials, and a sup- porting web portal to assist other departments interested in adoption. A textbook / laboratory manual is in progress. Permission to make digital or hard copies of all or part of this work for The remainder of this paper is organized as follows: a personal or classroom use is granted without fee provided that copies are brief outline of prior and related work; a description of the not made or distributed for profit or commercial advantage and that copies Embedded Xinu operating system at the core of our labora- bear this notice and the full citation on the first page. To copy otherwise, to tory environment and its related tools; a description of the republish, to post on servers or to redistribute to lists, requires prior specific content in prototype courses taught at both UB and MU; permission and/or a fee. WESE ’08 Atlanta, GA USA and evaluations of our efforts thus far. Copyright 2008 ACM X-XXXXX-XX-X/XX/XX ...$5.00. Figure 1: From Student Source Code to Operating System Output 1.1 Prior and Related Work ing [11]. Our project includes automated testing tools both There has been much recent work on embedded systems to assist student development and faculty assessment. education. Koopman et al. of Carnegie Mellon University The Embedded Xinu kernel is based upon groundbreak- (CMU) presents an extensive study of the status of embed- ing experimental operating system work by Comer in the ded system education in [10]. The CMU group discusses 1980's [6]. The Nexos Project is based upon MU's own prior the diverse approaches in twelve different embedded appli- work on integrating embedded systems components into ex- cation areas, including cross-cutting embedded skills areas isting core courses [4, 3], and UB's prior development of an such as real-time systems and energy-aware computing, and embedded systems course. concludes with a list of lesson learned. The guiding prin- ciples for Project Nexos closely follow this list of lessons 2. LABORATORY ENVIRONMENT learned. This section describes the Embedded Xinu laboratory en- Wolf and Madsen [14] discuss embedded systems educa- vironment we have developed to support the experimental tion for the future and provide a detailed description of emphasis on embedded systems in the new curricula at MU their experiences at Princeton University. This paper clearly and UB. brings out the importance of hardware-software co-design concepts, recommending C-like languages over an assem- 2.1 Hardware bly language approach. We concur with Wolf and Mad- As our target platform, we have chosen the ubiquitous sen that, \next-generation courses in embedded computing Linksys WRT54GL family of wireless routers. These routers should move away from the discussion of components and devices are readily available at inexpensive prices, and can toward the discussion of analysis and design of systems." already be found in homes, small businesses, and college Hamrita et al from University of Georgia [8] reports an in- dorm rooms. They contain a little-endian embedded MIPS terdisciplinary approach that comprises four different courses 32 processor, operating in the 200-300 MHz range, with 16 in robotics, embedded systems, and two courses on micro- MB of RAM, and 4MB FlashROM. Several versions of the controllers. This is an intensive curriculum in embedded router are available, but all have easily accessible serial port systems and would be very hard to adopt for a liberal arts de- connections on the main board that allow direct access to gree in computer science. A summary of the 2005 Workshop the device firmware. on Embedded System Education (WESE 2005) [9] covers a With only minor modifications to the casing and the ad- list of presentations on existing embedded systems courses dition of an RS-232/TTL serial transceiver circuit, the serial from all over the world. Most of these presentations refer to console of the WRT54GL becomes accessible to the student. quite traditional courses. From the serial console, a user can interrupt the normal A variety of platforms have been proposed for embedded boot sequence from FlashROM, and substitute an uploaded systems curricula. Ricks et. al [13] use an aerospace pro- kernel image from over the local area network (LAN) port. cessor to pursue substantially similar teaching goals to our Thus, students can quickly find themselves running their own. Others have focused on robotics platforms [8], dedi- own embedded O/S kernel on the raw hardware, with no cated digital signal processors [1, 7], and more familiar mi- emulation or simulation involved. An overview of this pro- crocontroller systems [5]. We believe that a consumer-grade cess is shown in Figure 1. networking applicance like the WRT54GL presents a plat- WRT54GL routers are on the upper end of the enormous form of comparable or better flexibility at a lower cost than spectrum of embedded devices available to us; their specifi- much of this prior work, and with a clear path toward reuse cations are roughly equivalent to desktop PCs from the early for its intended purpose. 1990's. Yet, while they are not as resource-constrained as 4- Other previous work has emphasized the use of test-driven and 8-bit embedded microcontrollers, they are true embed- development (TDD) in embedded systems courses [12], or ded systems in the modern context. Processor speed and have presented tools for facilitating embedded system test- RAM size are orders of magnitude less than typical desktop PCs, and input/output channels to the processor are narrow. They are missing major components that would be found in non-embedded contexts { no hard disk or optical storage, no video adapter, mouse, or keyboard. They provide a variety of interesting peripherals (wireless and wired network in- terfaces, Flash ROM storage, LED and general purpose I/O pins,) but present realistic obstacles to traditional debugging techniques. The highly resource-constrained operating sys- tems they contain are event-driven systems expected to run indefinitely with no direct interaction from users or admin- istrators.

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    8 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us