It appears you have not yet registered with our community. To register please click here...

 
Go Back [M] > Madshrimps > WebNews
Injecting SD Card Bootloaders Injecting SD Card Bootloaders
FAQ Members List Calendar Search Today's Posts Mark Forums Read


Injecting SD Card Bootloaders
Reply
 
Thread Tools
Old 30th March 2015, 20:28   #1
[M] Reviewer
 
Stefan Mileschin's Avatar
 
Join Date: May 2010
Location: Romania
Posts: 148,553
Stefan Mileschin Freshly Registered
Default Injecting SD Card Bootloaders

[Frank] has a Ultimaker2 and wanted to install a new bootloader for the microcontroller without having physical access to the circuitry. That means installing a new bootloader for the ATMega2560 without an In System Programmer, and as is usual on AVRs, the bootloader can only be edited with an ISP. Additionally, modifying the bootloader in any way runs the risk of corruption and a bricked circuit. That’s okay, because [Frank] knows how to do it, and he’s here to show you how.

You can think of the memory layout of the ATMega in the Ultimaker as being split in half, with the printer firmware in the first half and the bootloader in the second half. There’s extra space in both halves, and that’s something that comes in very useful. When the circuit powers up, it jumps to the bootloader, does it’s thing, then jumps to the very beginning of the application code – a vector table – that starts up the actual firmware.

[Frank]’s trick to adding on to the bootloader is to place the SD card bootloader in the space normally reserved for applications, not where you would expect to find a bootloader. This code is accessed by the stock bootloader jumping into a modified vector table at the beginning of the application data that points to new executable code. That code is the actual SD card bootloader, but because it is in the application part of the memory, it can’t perform Flash writing or erasing. To fix that, a tiny bit of code is tacked onto the end of the bootloader for performing Flash writes and jumps back to the application part of memory.

http://hackaday.com/2015/03/30/injec...d-bootloaders/
Stefan Mileschin is offline   Reply With Quote
Reply


Similar Threads
Thread Thread Starter Forum Replies Last Post
PayPal buys Card.io visual credit card scanner platform, is neither Here nor there Stefan Mileschin WebNews 0 18th July 2012 08:20
PQI Announces the PQI Air Card Wi-Fi Memory Card with Flexible Capacity Stefan Mileschin WebNews 0 23rd May 2012 07:57
NVIDIA GEFORCE GTX 680 (Kepler) 2GB Reference Card Video Card Review Stefan Mileschin WebNews 0 23rd March 2012 06:29
Sapphire demos 6GB Radeon HD 7970 card at CeBIT, might be the next Toxic card Stefan Mileschin WebNews 0 7th March 2012 06:43
MSI Geminium-Go Graphic Card – the First MXM SLI Card in the World jmke WebNews 3 3rd February 2006 11:37
ATOP – AGP card to PCIe Mainboard Bridge Card jmke WebNews 0 1st July 2005 12:40
AGP riser card: Gigabyte warns GEAR can shorten AGP card's life jmke WebNews 0 4th October 2004 10:32

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


All times are GMT +1. The time now is 04:23.


Powered by vBulletin® - Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO