Difference between pages "Upgrading Embedded Xinu for the Multi-Core Raspberry Pi 3" and "Data Assimilation of High Dimensional, Nonlinear Dynamic Systems"

From REU@MU
(Difference between pages)
Jump to: navigation, search
 
(Created page with "'''Researcher:''' Louis Nass '''Mentor: '''[http://www.marquette.edu/mscs/facstaff-spiller.shtml/ Dr. Elaine Spiller] ==General Overview== Data Assimilatio...")
 
Line 1: Line 1:
'''Researchers:''' [[User:Tlazar|Tom Lazar]], [[User:Pmcg521|Patrick J. McGee]], [[User:Rlatinov|Rade Latinovich]] and [[User:Pbansal|Priya Bansal]].
+
'''Researcher:''' [[User:lnass|Louis Nass]]
 +
'''Mentor: '''[http://www.marquette.edu/mscs/facstaff-spiller.shtml/ Dr. Elaine Spiller]
  
'''Mentor:''' [[User:Brylow|Dr. Dennis Brylow]].
+
==General Overview==
==Background && Motivation==
+
[[Data Assimilation For Fluid Dynamic Models]]
  
The [http://xinu.mscs.mu.edu Embedded Xinu infrastructure] is a simple operating system designed to introduce students to many low level computing concepts, including Driver Creation, Exception and Interrupt Handling, and much more. Many universities have created Xinu Labs, classrooms running Xinu on multiple embedded devices (either Raspberry Pis or Linksys Routers).  Marquette University uses one such Xinu Lab to teach its Operating Systems course.
+
==Project Specifications==
 
+
Using information obtained from past studies, we expand on the current Xinu infrastructure.  One of the main goals of this project is to modify Xinu to run on new multi-core Raspberry Pi 3s while still maintaining support for previous platforms.  Another goal of this project is to create structures within Xinu which effectively and efficiently use multiple cores.
+
 
+
==Milestones==
+
===Understanding the Pi 3===
+
In order to begin porting Xinu onto the new architecture of the Raspberry Pi 3, we first needed to understand the fundamental differences between the Pi 3 and its simpler predecessor, the Pi 1 (which currently runs Xinu in Marquette's Systems Lab). Here is a table of distinctions between the two:
+
<table align="center" bgcolor="#fffced" border=1>
+
<tr>
+
<td></td>
+
<td align = "center">'''RPi 1 (Model B)'''</td>
+
<td align = "center">'''RPi 3'''</td>
+
</tr>
+
 
+
<tr>
+
<td align = "center">'''CPU'''</td>
+
<td align = "center">ARM 1176JZF-S</td>
+
<td align = "center">ARM Cortex-A53</td>
+
</tr>
+
 
+
<tr>
+
<td align = "center">'''Architecture'''</td>
+
<td align = "center">ARMv6 (32-bit)</td>
+
<td align = "center">ARMv8 (64-bit)</td>
+
</tr>
+
 
+
<tr>
+
<td align = "center">'''Cores'''</td>
+
<td align = "center">One</td>
+
<td align = "center">Four</td>
+
</tr>
+
 
+
<tr>
+
<td align = "center">'''Registers'''</td>
+
<td align = "center">16</td>
+
<td align = "center">32</td>
+
 
+
<tr>
+
<td align = "center">'''RAM'''</td>
+
<td align = "center">512MB</td>
+
<td align = "center">1GB</td>
+
 
+
<tr>
+
<td align = "center">'''SoC'''</td>
+
<td align = "center">BCM2835</td>
+
<td align = "center">BCM2837</td>
+
 
+
</table>
+
 
+
Unfortunately, the documentation for the Raspberry Pi 3's System on Chip is sparse. However, deeper digging yielded more knowledge on how past Raspberry Pi systems have worked. With such information, it is safe to infer that the Pi 3's SoC is most likely similar to that of its predecessors. Below is a diagram of the Pi's boot order and compilation:
+
 
+
<center>[[File:rpi3_boot_order.png]][[File:placeholder.png]][[File:compilation_diagram_pi3(2).png]]</center>
+
 
+
===Hello World!===
+
*Got a bare metal program to run on our Raspberry Pi 3
+
*:- Using C programming: Turned on an LED light using GPIO pin 16 on our Pi
+
<center>[[File:GPIO_key.png]]</center>
+
*:- Reprocessed the C code into ARM64 Assembly code, and used it to turn on an LED using the same pins as before.
+
<center>[[File:pi_LED.png]][[File:pi_LED2.png]]</center>
+
<center>[[File:AmazingXINU3.0.gif]]</center>
+
 
+
This proved that the boot process was indeed reaching the ARM64 Assembly code, but we grew skeptical that upon compilation, the Assembly code may have been the only code reached. We performed additional testing to pinpoint where exactly our program was reaching.
+
<table align="center" bgcolor="#fffced" border=1>
+
<tr>
+
<td>'''Tested for:'''</td>
+
<td>'''Did it reach?'''</td>
+
</tr>
+
 
+
<tr>
+
<td>Busy wait in our Assembly code</td>
+
<td>Yes</td>
+
</tr>
+
 
+
<tr>
+
<td>Assembly branch to working C "hello world" code</td>
+
<td>Yes</td>
+
</tr>
+
 
+
<tr>
+
<td>Assembly branch to our own C code</td>
+
<td>No</td>
+
</tr>
+
 
+
</table>
+
 
+
:- These results show that there is something incorrect with how our C code is turning on the LED. It could be that the Pi simply does not reach our C code branch, or our C code could contain a mistake.
+

Revision as of 19:36, 7 June 2017

Researcher: Louis Nass Mentor: Dr. Elaine Spiller

General Overview

Data Assimilation For Fluid Dynamic Models

Project Specifications