Skip to content

Commit

Permalink
Patching the official firmware Sep-2019
Browse files Browse the repository at this point in the history
  • Loading branch information
Cleric-K committed Oct 23, 2019
1 parent 0ead63a commit d08948c
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
Binary file modified build/FS-I6X.bin
Binary file not shown.
Binary file modified build/FS-I6X_with_bootloader.bin
Binary file not shown.
8 changes: 4 additions & 4 deletions src/fs-i6x.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

# Script taken from https://github.com/qba667/FlyPlusI6X/blob/master/src/builid/fs-i6x.py
# and slightly modified
VERSION = (1, 0, 46, 1429)
VERSION = (1, 0, 51, 1441)


def saveFile (name, data):
Expand Down Expand Up @@ -40,9 +40,9 @@ def patch(offset, pbytes):
data[offset:offset+len(pbytes)] = pbytes


patch(0x12028, timeArray)
patch(0x1200C, dateArray)
patch(0x11FE0, dateVersionArray)
patch(0x120AC, timeArray)
patch(0x12090, dateArray)
patch(0x12064, dateVersionArray)
patch(0x4500, struct.pack('<4H', *reversed(VERSION)))

saveFile(destFile, data)
8 changes: 4 additions & 4 deletions src/link.ld
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,17 @@ SECTIONS {
. = . ;
} >FLASH

.text 0x0801DDD0 : {
.text 0x0801DF30 : {
*(.text)
} > FLASH

.hook_send_frame 0x0800866C : {
.hook_send_frame 0x08008688 : {
*(.hook_send_frame)
} >FLASH



spi_send = 0x08008F58;
spi_send = 0x08008F74;
memcpy0 = 0x0800426A;
channel_buffer = 0x200023A8;
channel_buffer = 0x200023B8;
}
Binary file modified src/org.bin
Binary file not shown.

0 comments on commit d08948c

Please sign in to comment.