Difference between revisions of "Bootloader"

From Gamebuino Wiki
Jump to: navigation, search
Line 1: Line 1:
 +
__NOTOC__
 +
<div style="width:45%;min-width:20em;float:left;margin-right:5%">
 +
=== Get a free Gamebuino ===
 
For now, Gamebuino uses the Arduino UNO bootloader. It works great, but you need a computer every time you want to load a new game. With hybrid USB/SD card bootloader, you could switch between games just by restarting your Gamebuino !
 
For now, Gamebuino uses the Arduino UNO bootloader. It works great, but you need a computer every time you want to load a new game. With hybrid USB/SD card bootloader, you could switch between games just by restarting your Gamebuino !
  
<div style="width:45%;min-width:20em;float:left;margin-right:5%">
+
That's why I need YOU, a bad-ass developer, to make it work. A guy already did that, but I didn't manage to compile the source yet. If you manage to compile it and make it work as described below, you'll '''GET A FREE GAMEBUINO BEFORE EVERYBODY !'''
That's why I need YOU, a bad-ass developer, to make it work. A guy already did that, but I didn't manage to compile the source yet. If you manage to compile it and make it work as described below, you'll get a '''FREE GAMEBUINO BEFORE EVERYBODY !'''
 
  
 +
=== Sources ===
 
* [http://arduino.cc/en/Hacking/Bootloader?from=Main.Bootloader Arduino bootloader]: for the ones who don't know what a bootloader is
 
* [http://arduino.cc/en/Hacking/Bootloader?from=Main.Bootloader Arduino bootloader]: for the ones who don't know what a bootloader is
 
* [https://github.com/thseiler/embedded/tree/master/avr/2boots 2boots], a SD-enabled bootloader source code
 
* [https://github.com/thseiler/embedded/tree/master/avr/2boots 2boots], a SD-enabled bootloader source code
 
* [http://harizanov.com/2013/01/2boots-bootloader-on-the-uiot-serial-mmc-bootloader-in-2kb/ 2boots variant], a tweaked version that is ''supposed'' to be compilable
 
* [http://harizanov.com/2013/01/2boots-bootloader-on-the-uiot-serial-mmc-bootloader-in-2kb/ 2boots variant], a tweaked version that is ''supposed'' to be compilable
  
 +
=== Principle ===
 
My goal is first to compile and get it to work, obviously. Then, it has to be slightly modified to be easily usable on a Gamebuino. Here is how I picture it:
 
My goal is first to compile and get it to work, obviously. Then, it has to be slightly modified to be easily usable on a Gamebuino. Here is how I picture it:
 
* The SD card contains a program named "LOADER" which is loaded when the Gamebuino is turned on while pressing "C". This program allow you to navigate in the SD card and select a game. Then, it writes the game file's name in the EEPROM
 
* The SD card contains a program named "LOADER" which is loaded when the Gamebuino is turned on while pressing "C". This program allow you to navigate in the SD card and select a game. Then, it writes the game file's name in the EEPROM
Line 15: Line 19:
 
All the EEPROM part is already included in 2boots, you just have to compile it and add the C button feature.
 
All the EEPROM part is already included in 2boots, you just have to compile it and add the C button feature.
  
Pin mapping :
+
=== Pin mapping ===
 
* Button C : A3 (PC3)
 
* Button C : A3 (PC3)
 
* SD enable : 10 (PB2)
 
* SD enable : 10 (PB2)
 
* See the schematics in [[Hardware]] for more details
 
* See the schematics in [[Hardware]] for more details
  
 +
=== Questions ? ===
 
If you have any questions, ask them the in [http://gamebuino.com/forum/viewtopic.php?f=12&t=109 this thread].
 
If you have any questions, ask them the in [http://gamebuino.com/forum/viewtopic.php?f=12&t=109 this thread].
  

Revision as of 2014-02-28T12:47:16

Get a free Gamebuino

For now, Gamebuino uses the Arduino UNO bootloader. It works great, but you need a computer every time you want to load a new game. With hybrid USB/SD card bootloader, you could switch between games just by restarting your Gamebuino !

That's why I need YOU, a bad-ass developer, to make it work. A guy already did that, but I didn't manage to compile the source yet. If you manage to compile it and make it work as described below, you'll GET A FREE GAMEBUINO BEFORE EVERYBODY !

Sources

Principle

My goal is first to compile and get it to work, obviously. Then, it has to be slightly modified to be easily usable on a Gamebuino. Here is how I picture it:

  • The SD card contains a program named "LOADER" which is loaded when the Gamebuino is turned on while pressing "C". This program allow you to navigate in the SD card and select a game. Then, it writes the game file's name in the EEPROM
  • Turn the Gamebuino off then back on
  • The boot-loader loads the game selected by reading its name in the EEPROM

All the EEPROM part is already included in 2boots, you just have to compile it and add the C button feature.

Pin mapping

  • Button C : A3 (PC3)
  • SD enable : 10 (PB2)
  • See the schematics in Hardware for more details

Questions ?

If you have any questions, ask them the in this thread.

Good luck !

Error creating thumbnail: Unable to save thumbnail to destination