| Thread Tools |
30th March 2015, 21:28 | #1 |
[M] Reviewer Join Date: May 2010 Location: Romania
Posts: 153,514
| 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/ |
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 09:20 |
PQI Announces the PQI Air Card Wi-Fi Memory Card with Flexible Capacity | Stefan Mileschin | WebNews | 0 | 23rd May 2012 08:57 |
NVIDIA GEFORCE GTX 680 (Kepler) 2GB Reference Card Video Card Review | Stefan Mileschin | WebNews | 0 | 23rd March 2012 07:29 |
Sapphire demos 6GB Radeon HD 7970 card at CeBIT, might be the next Toxic card | Stefan Mileschin | WebNews | 0 | 7th March 2012 07:43 |
MSI Geminium-Go Graphic Card – the First MXM SLI Card in the World | jmke | WebNews | 3 | 3rd February 2006 12:37 |
ATOP – AGP card to PCIe Mainboard Bridge Card | jmke | WebNews | 0 | 1st July 2005 13:40 |
AGP riser card: Gigabyte warns GEAR can shorten AGP card's life | jmke | WebNews | 0 | 4th October 2004 11:32 |
Thread Tools | |
| |