Difference between revisions of "User:Pmcg521"

From REU@MU
Jump to: navigation, search
(Logs)
 
(172 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
+
==Patrick J. McGee==
== '''Patrick J. McGee''' ==
+
<table style= "border: 40px solid #212B60; background: #edb52a;-webkit-border-radius:10px cellpadding=2px">
<table bgcolor="#ED702D" border=1>
+
 
<tr>
 
<tr>
 
<td>[[File:Patrick_pro_pic_png.png]]</td>
 
<td>[[File:Patrick_pro_pic_png.png]]</td>
Line 7: Line 6:
 
<td>
 
<td>
  
<table style="border: 1px; height:100px;" bgcolor="#fffced">
+
<table style= "border: 1px solid black; font-family:tahoma; background: #fffced;" cellpadding=15px>
 
<tr>
 
<tr>
<td>'''Personal Information'''</td>
+
<th style="font-family:verdana; border-bottom: 1px solid #000000">''' Personal Information'''</th>
 
</tr>
 
</tr>
  
 
<tr>
 
<tr>
<td>* Incoming Junior | Computer Science Major at Marquette</td>
+
<td style="border-bottom: 1px solid #ddd"> Graduate Student | Computer Science Department at Marquette</td>
 
</tr>
 
</tr>
  
 
<tr>
 
<tr>
<td>* Working with Dr. Dennis Brylow on the concept of Embedded Systems ([http://reu.mscs.mu.edu/index.php/Upgrading_Embedded_Xinu_for_the_Multi-Core_Raspberry_Pi_3 Upgrading Embedded Xinu for the Multi-Core Raspberry Pi 3])</td>
+
<td style="border-bottom: 1px solid #ddd"> Working with [[User:Brylow|Dr. Dennis Brylow]] on the Embedded Xinu O/S: ([http://reu.mscs.mu.edu/index.php/Upgrading_Embedded_Xinu_for_the_Multi-Core_Raspberry_Pi_3 Upgrading Embedded Xinu for the Multi-Core Raspberry Pi 3])</td>
</tr>
+
 
+
<tr>
+
<td>* [http://www.mscs.mu.edu/~upsilon/ Upsilon Pi Epsilon] member</td>
+
</tr>
+
 
+
<tr>
+
<td>* [http://acm.mscs.mu.edu/wiki/Main_Page ACM] At-Large Member</td>
+
</tr>
+
 
+
<tr>
+
<td>* President of [https://marquette.collegiatelink.net/organization/bestbuddies Best Buddies Marquette Chapter]</td>
+
 
</tr>
 
</tr>
  
Line 36: Line 23:
  
 
==Logs==
 
==Logs==
<table bgcolor="#fffced" border=1>
+
<h2>REU 2019:</h2>
<tr><td>'''Week 1: May 30-June 2'''</td></tr>
+
<h3>Week 1:</h3>
 +
<p>
 +
* Establish goals for the summer: develop Embedded Xinu's serial port, Ethernet driver, HDMI driver, keyboard driver, and USB storage driver.
 +
* Look into logistics of a formal XinuPi3 release (separate branch on our GitHub to prevent single-core assumption conflicts)
 +
* Make note of MU courses that may benefit from Xinu (possible changes necessary depending on the course)
 +
* Clean working branch of our repository to exclude unnecessary single-core platforms and #ifdef statements. Fix outstanding compiler warnings. Goal: arm-rpi3 is single platform for new "multicore" branch of formal xinu-os release.
 +
</p>
 +
<h3>Week 2:</h3>
 +
<p>
 +
* Complete framebuffer driver port for XinuPi3.
 +
* Evaluate USB subsystem for storage device (file system capability).
 +
</p>
 +
<h3>Week 3:</h3>
 +
<p>
 +
* Look into Power-over-Ethernet (PoE) additions for the O/S. Troubleshoot PoE-capable network switch
 +
* Begin cleaning up ethernet driver code (LAN7800)
 +
* Begin docs (Doxygen)
 +
</p>
 +
<h3>Week 4:</h3>
 +
<p>
 +
* Begin designing cache maintenance for the kernel, so that DMA buffers will work for transfers such as USB.
 +
* Create an account for our Monday.com page (to stay organized and share progress with the team)
 +
</p>
 +
<h3>Week 5:</h3>
 +
<p>
 +
* Continue design and assessment. Close to initializing all devices --> looking into other possible issues.
 +
* Realize that enabling L1 cache also breaks the frame buffer (as well as USB xfers)
 +
* Update our page on Monday.com
 +
</p>
 +
<h3>Week 6:</h3>
 +
<p>
 +
* Work on Doxygen
 +
* Update our page on Monday.com
 +
</p>
 +
<h3>Week 7:</h3>
 +
<p>
 +
* Assist team members with issues related to USB transfers and Xinu's I/O devices.
 +
* Begin documentation by fixing Doxygen structural issues
 +
</p>
 +
<h3>Week 8:</h3>
 +
<p>
 +
* Resolve Doxygen issues, updated all documentation
 +
* Work on README updates to include Pi 3 setup required
 +
* Resolve printf() asynchronous I/O calls so the testsuite works
 +
</p>
 +
<h3>Week 9:</h3>
 +
<p>
 +
* Merge testsuite branch into doxygen branch. Will leave doxygen branch alone until all documentation has been verified for the final release
 +
* TODO for the rest of the summer: resolve MMU cache, minor scheduler updates (putting Amy H. in charge of this), documentation, minor cleanup of system changes for multicore release.
 +
* New angle for solving MMU cache coherency: since maintenance operations are not solving our USB transfer over DMA, we will force unaligned buffers so we can use memcpy(). Then, we will keep the DMA buffer area in memory uncached (through 1MB MMU sections), and all other memory space cached. In theory, this will prevent DMA issues with USB xfers.
 +
</p>
 +
<h3>Week 10:</h3>
 +
<p>
 +
*
 +
</p>
 +
 
 +
<h2>REU 2017:</h2>
 +
Specific progress can be viewed on our [https://github.com/tomlazar/xinu/tree/feature/multicore GitHub] repository (commits across multiple branches).
 +
<table style="border: 70px solid #212B60; border-collapse: collapse; font-family:tahoma" bgcolor="#fffced" border=1 cellpadding=2px>
 +
<tr><th style="font-family:verdana; border-bottom: 2px solid #000000; border-top: 2px solid #000000; background: #edb52a">'''Week 1: May 30-June 2'''</th></tr>
 
<tr><td> Began attempts to boot the full version of Embedded Xinu kernel with Raspberry Pi 3</td></tr>
 
<tr><td> Began attempts to boot the full version of Embedded Xinu kernel with Raspberry Pi 3</td></tr>
 
<tr><td> Researched a Linaro Cross-Compiler to use for its Cortex A-53 ARM processor with ARMv8 architecture</td></tr>
 
<tr><td> Researched a Linaro Cross-Compiler to use for its Cortex A-53 ARM processor with ARMv8 architecture</td></tr>
 +
<tr><td> Drew diagrams of the boot sequence and compilation for better understanding of the Pi 3's mechanisms</td></tr>
 +
<tr><td> Traced through the dynamics of written Assembly code in the full research version of Xinu</td></tr>
 +
<tr><th style="font-family:verdana; border-bottom: 2px solid #000000; border-top: 2px solid #000000; background: #edb52a">'''Week 2: June 5-9'''</th></tr>
 +
<tr><td> Tested the LED program in updated Assembly code. Began testing the Serial Port Transceiver driver for the Pi 3</td></tr>
 +
<tr><td> Read about Raspberry Pi bare metal programming via online sources</td></tr>
 +
<tr><td> Read about how the Raspberry Pi 3 controls the frequency of its UART pins</td></tr>
 +
<tr><td> Read ARM processor documentation about configuring UART clock frequency</td></tr>
 +
<tr><td> Used the oscilloscope in attempt to obtain the clock frequency of the UART pin</td></tr>
 +
<tr><th style="font-family:verdana; border-bottom: 2px solid #000000; border-top: 2px solid #000000; background: #edb52a">'''Week 3: June 12-16'''</th></tr>
 +
<tr><td> Read an online textbook about the ARM processor of the Pi 3. </td></tr>
 +
<tr><td> Successfully controlled the PL011 UART with a 48MHz frequency. Began porting full version of Xinu.</td></tr>
 +
<tr><td> Read ARM64 documentation on registers to use with process interrupt handling.</td></tr>
 +
<tr><td> Began working on the context switch for the 64-bit architecture.</td></tr>
 +
<tr><td> Finishing work on the files necessary for context switching and rescheduling.</td></tr>
 +
<tr><th style="font-family:verdana; border-bottom: 2px solid #000000; border-top: 2px solid #000000; background: #edb52a">'''Week 4: June 19-23'''</th></tr>
 +
<tr><td> Continue working on the boot functions of our implementation. Finished the Research Conduct course.</td></tr>
 +
<tr><td> Read about register manipulation in the ARM guide. Continue working on process creation.</td></tr>
 +
<tr><td> Begin researching physical memory space in the Pi 3.</td></tr>
 +
<tr><td> Read guides to porting from ARM32 to ARM64. Digging deep for a solution to a memory allocation problem.</td></tr>
 +
<tr><td> Read about ATAGS and what steps need to be taken to ensure the proper accessible RAM amount.</td></tr>
 +
<tr><th style="font-family:verdana; border-bottom: 2px solid #000000; border-top: 2px solid #000000; background: #edb52a">'''Week 5: June 26-30'''</th></tr>
 +
<tr><td> Narrowed down the memory issue to an Aarch64-specific register-load requirement. Working on the fix.</td></tr>
 +
<tr><td> Fixed memory issue - now allocating nearly all available memory.</td></tr>
 +
<tr><td> Presentation by Dr. Kim Factor on tips to create a good research poster.</td></tr>
 +
<tr><td> Began formulating research poster. Working on process queue structure.</td></tr>
 +
<tr><td> Continue outlining research paper for submission to EWiLi Embedded Systems conference.</td></tr>
 +
<tr><th style="font-family:verdana; border-bottom: 2px solid #000000; border-top: 2px solid #000000; background: #edb52a">'''Week 6: July 3-7'''</th></tr>
 +
<tr><td> Major change of working state: switch from 64-bit to 32-bit for compatibility and teachability reasons.</td></tr>
 +
<tr><td> Migrating all code from non-working 64-bit to working 32-bit.</td></tr>
 +
<tr><td> Processes create and context switch among one core. Push to resolve multiple cores.</td></tr>
 +
<tr><th style="font-family:verdana; border-bottom: 2px solid #000000; border-top: 2px solid #000000; background: #edb52a">'''Week 7: July 10-14'''</th></tr>
 +
<tr><td> Expanding startup code to include change in privilege level.</td></tr>
 +
<tr><td> Finished outlining poster. Tested ethernet driver and multiple core threading throughout the week.</td></tr>
 +
<tr><th style="font-family:verdana; border-bottom: 2px solid #000000; border-top: 2px solid #000000; background: #edb52a">'''Week 8: July 17-21'''</th></tr>
 +
<tr><td> Studied simple Linux-style multi-core scheduling algorithms using mutual exclusion.</td></tr>
 +
<tr><td> Created a method of scheduling across multiple cores with Xinu.</td></tr>
 +
<tr><td> Tested multicore synchronization with atomic instructions.</td></tr>
 +
<tr><th style="font-family:verdana; border-bottom: 2px solid #000000; border-top: 2px solid #000000; background: #edb52a">'''Week 9: July 24-28'''</th></tr>
 +
<tr><td> Studied technical documentation on how Raspberry Pi CPU mailboxes have worked in the past.</td></tr>
 +
<tr><td> Test core mailboxes and work out kinks corresponding to core setup.</td></tr>
 +
<tr><td> Finished final version of research poster: Utilizing Multi-core threading on Embedded Xinu.</td></tr>
 +
<tr><td> Finished research paper and submitted it to EWiLi conference.</td></tr>
 +
<tr><th style="font-family:verdana; border-bottom: 2px solid #000000; border-top: 2px solid #000000; background: #edb52a">'''Week 10: July 31-August 4'''</th></tr>
 +
<tr><td> Expanded material of final presentation.</td></tr>
 +
<tr><td> Presented my research poster alongside colleagues. Viewed and discussed posters outside my discipline.</td></tr>
 +
<tr><td> Watched my fellow researchers' presentations and continued making notes of guidelines.</td></tr>
 +
<tr><td> Gave my final formal research presentation on the final day of the REU.</td></tr>
 
</table>
 
</table>

Latest revision as of 20:44, 22 July 2019

Patrick J. McGee

Error creating thumbnail: Unable to save thumbnail to destination
Personal Information
Graduate Student | Computer Science Department at Marquette
Working with Dr. Dennis Brylow on the Embedded Xinu O/S: (Upgrading Embedded Xinu for the Multi-Core Raspberry Pi 3)

Logs

REU 2019:

Week 1:

  • Establish goals for the summer: develop Embedded Xinu's serial port, Ethernet driver, HDMI driver, keyboard driver, and USB storage driver.
  • Look into logistics of a formal XinuPi3 release (separate branch on our GitHub to prevent single-core assumption conflicts)
  • Make note of MU courses that may benefit from Xinu (possible changes necessary depending on the course)
  • Clean working branch of our repository to exclude unnecessary single-core platforms and #ifdef statements. Fix outstanding compiler warnings. Goal: arm-rpi3 is single platform for new "multicore" branch of formal xinu-os release.

Week 2:

  • Complete framebuffer driver port for XinuPi3.
  • Evaluate USB subsystem for storage device (file system capability).

Week 3:

  • Look into Power-over-Ethernet (PoE) additions for the O/S. Troubleshoot PoE-capable network switch
  • Begin cleaning up ethernet driver code (LAN7800)
  • Begin docs (Doxygen)

Week 4:

  • Begin designing cache maintenance for the kernel, so that DMA buffers will work for transfers such as USB.
  • Create an account for our Monday.com page (to stay organized and share progress with the team)

Week 5:

  • Continue design and assessment. Close to initializing all devices --> looking into other possible issues.
  • Realize that enabling L1 cache also breaks the frame buffer (as well as USB xfers)
  • Update our page on Monday.com

Week 6:

  • Work on Doxygen
  • Update our page on Monday.com

Week 7:

  • Assist team members with issues related to USB transfers and Xinu's I/O devices.
  • Begin documentation by fixing Doxygen structural issues

Week 8:

  • Resolve Doxygen issues, updated all documentation
  • Work on README updates to include Pi 3 setup required
  • Resolve printf() asynchronous I/O calls so the testsuite works

Week 9:

  • Merge testsuite branch into doxygen branch. Will leave doxygen branch alone until all documentation has been verified for the final release
  • TODO for the rest of the summer: resolve MMU cache, minor scheduler updates (putting Amy H. in charge of this), documentation, minor cleanup of system changes for multicore release.
  • New angle for solving MMU cache coherency: since maintenance operations are not solving our USB transfer over DMA, we will force unaligned buffers so we can use memcpy(). Then, we will keep the DMA buffer area in memory uncached (through 1MB MMU sections), and all other memory space cached. In theory, this will prevent DMA issues with USB xfers.

Week 10:

REU 2017:

Specific progress can be viewed on our GitHub repository (commits across multiple branches).

Week 1: May 30-June 2
Began attempts to boot the full version of Embedded Xinu kernel with Raspberry Pi 3
Researched a Linaro Cross-Compiler to use for its Cortex A-53 ARM processor with ARMv8 architecture
Drew diagrams of the boot sequence and compilation for better understanding of the Pi 3's mechanisms
Traced through the dynamics of written Assembly code in the full research version of Xinu
Week 2: June 5-9
Tested the LED program in updated Assembly code. Began testing the Serial Port Transceiver driver for the Pi 3
Read about Raspberry Pi bare metal programming via online sources
Read about how the Raspberry Pi 3 controls the frequency of its UART pins
Read ARM processor documentation about configuring UART clock frequency
Used the oscilloscope in attempt to obtain the clock frequency of the UART pin
Week 3: June 12-16
Read an online textbook about the ARM processor of the Pi 3.
Successfully controlled the PL011 UART with a 48MHz frequency. Began porting full version of Xinu.
Read ARM64 documentation on registers to use with process interrupt handling.
Began working on the context switch for the 64-bit architecture.
Finishing work on the files necessary for context switching and rescheduling.
Week 4: June 19-23
Continue working on the boot functions of our implementation. Finished the Research Conduct course.
Read about register manipulation in the ARM guide. Continue working on process creation.
Begin researching physical memory space in the Pi 3.
Read guides to porting from ARM32 to ARM64. Digging deep for a solution to a memory allocation problem.
Read about ATAGS and what steps need to be taken to ensure the proper accessible RAM amount.
Week 5: June 26-30
Narrowed down the memory issue to an Aarch64-specific register-load requirement. Working on the fix.
Fixed memory issue - now allocating nearly all available memory.
Presentation by Dr. Kim Factor on tips to create a good research poster.
Began formulating research poster. Working on process queue structure.
Continue outlining research paper for submission to EWiLi Embedded Systems conference.
Week 6: July 3-7
Major change of working state: switch from 64-bit to 32-bit for compatibility and teachability reasons.
Migrating all code from non-working 64-bit to working 32-bit.
Processes create and context switch among one core. Push to resolve multiple cores.
Week 7: July 10-14
Expanding startup code to include change in privilege level.
Finished outlining poster. Tested ethernet driver and multiple core threading throughout the week.
Week 8: July 17-21
Studied simple Linux-style multi-core scheduling algorithms using mutual exclusion.
Created a method of scheduling across multiple cores with Xinu.
Tested multicore synchronization with atomic instructions.
Week 9: July 24-28
Studied technical documentation on how Raspberry Pi CPU mailboxes have worked in the past.
Test core mailboxes and work out kinks corresponding to core setup.
Finished final version of research poster: Utilizing Multi-core threading on Embedded Xinu.
Finished research paper and submitted it to EWiLi conference.
Week 10: July 31-August 4
Expanded material of final presentation.
Presented my research poster alongside colleagues. Viewed and discussed posters outside my discipline.
Watched my fellow researchers' presentations and continued making notes of guidelines.
Gave my final formal research presentation on the final day of the REU.