Original: http://www.shadowandy.net/2012/03/asus-rt-n66u-tomatousb-firmware-flashing-guide.htm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define SPIFbit 7 | |
#define SPR (1<<0) | |
#define kSpmCsr 0x37 | |
#define kSpmCsrMem (kSpmCsr+0x20) | |
#define IOAddrInsMask(aPort) (((aPort&0x30)<<5)|(aPort&7)) | |
#define kBootloaderStart 0x7800 | |
#define kMicroBootStart 0x7f80 | |
#define kBootloaderEnd 0x8000 |