FreeCalypso > hg > freecalypso-sw
comparison gsm-fw/sysglue/flashboot.S @ 934:a8fc7526935e
gsm-fw/sysglue/flashboot.S, C139 configuration: the interface between the
hacked-up bootloader and the main fw has been changed to match TCS211.
author | Mychaela Falconia <falcon@ivan.Harhan.ORG> |
---|---|
date | Sat, 31 Oct 2015 03:47:18 +0000 |
parents | 06ecb305f650 |
children | c7ca69bf84f3 |
comparison
equal
deleted
inserted
replaced
933:8eb7cb176a70 | 934:a8fc7526935e |
---|---|
45 /* provide the necessary magic words for the boot ROM */ | 45 /* provide the necessary magic words for the boot ROM */ |
46 .word 0 | 46 .word 0 |
47 .word _Flash_boot_entry | 47 .word _Flash_boot_entry |
48 #elif CONFIG_TARGET_C139 | 48 #elif CONFIG_TARGET_C139 |
49 /* | 49 /* |
50 * On this target we are going to put a special flash boot stage at 0x2000, | 50 * On this target we'll put a patched version of Compal's boot code in |
51 * and then the actual gsm-fw image at the flash erase block boundary | 51 * flash sector 0 (the brickable one); the main fw images will then be |
52 * at 0x10000. The following bits will be read by our intermediate | 52 * flashed starting at 0x10000, which is where our modified boot code |
53 * flash boot stage. | 53 * expects them to be. The interface between our hacked boot code and |
54 * the main fw has been made to mimic TI's TCS211 reference fw. | |
54 */ | 55 */ |
55 .asciz "FreeCalypso" | 56 #include "vectors.S" |
56 .word _Flash_boot_entry | 57 .org 0x58 /* put _Flash_boot_entry at 0x10058 */ |
57 #elif CONFIG_TARGET_C155 | 58 #elif CONFIG_TARGET_C155 |
58 /* | 59 /* |
59 * On this target the hand-off point between the bootloader and the main | 60 * On this target the hand-off point between the bootloader and the main |
60 * fw image coincides with a flash erase block boundary, thus no need | 61 * fw image coincides with a flash erase block boundary, thus we can reuse |
61 * for an intermediate flash boot stage. The following bits will appear | 62 * the original bootloader without having to reflash the brickable sector |
62 * at 0x20000. | 63 * at all. The following bits will appear at 0x20000. |
63 */ | 64 */ |
64 .asciz "FreeCalypso firmware for C155/156 target" | 65 .asciz "FreeCalypso firmware for C155/156 target" |
65 .org 0xE0 | 66 .org 0xE0 |
66 /* C155/156 bootloader jumps here */ | 67 /* C155/156 bootloader jumps here */ |
67 b _Flash_boot_entry | 68 b _Flash_boot_entry |