Difference between revisions of "Bootloader"

From Gamebuino Wiki
Jump to: navigation, search
Line 1: Line 1:
The bootloader is what makes you able to load games from USB or SD card. Or at least will, maybe, one day.
+
The bootloader is what allows you to load games from a computer with the USB port, or directly from the SD card without a computer. Or at least will, maybe, one day. For now, only the USB part is working.
 +
 
 +
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.
  
 
Useful links :
 
Useful links :
* [http://arduino.cc/en/Hacking/Bootloader?from=Main.Bootloader Arduino bootloader]
+
* [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
+
* [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], someone who made 2boots work
+
* [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
 +
 
 +
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.
 +
 
 +
Good luck !

Revision as of 2014-02-28T11:32:01

The bootloader is what allows you to load games from a computer with the USB port, or directly from the SD card without a computer. Or at least will, maybe, one day. For now, only the USB part is working.

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.

Useful links :

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.

Good luck !