Code Monkey home page Code Monkey logo

Comments (5)

Cleric-K avatar Cleric-K commented on June 27, 2024

Hi,
actually I posted PR an year ago: qba667/FlyPlusI6X#7
but seems @qba667 didn't have time to work on the project.

Since then FlySky released two more firmware updates (they don't solve the problem but introduce some new minor features, like fixing the USB joystick). Yet the FlyPlus fw is still based on the original 2017 firmware. It will require more work to rebase it on the latest official firmware.

So if you want to have FlyPlus with the bugfix you can compile the above PR or I can compile it for you. Just remember that it is based on the 2017 fw, which is not necessarily a problem.

from flysky-i6x_firmware_bugfix.

007hacky007 avatar 007hacky007 commented on June 27, 2024

Firstly, thank you for your response!

I see, I've missed your PR. FlyPlusI6X seems to be abandoned. I probably don't want to run on old 2017 firmware, so rebase is definitely required. Unfortunately my C and ASM skills are definitely not on such level - so I would not feel comfortable doing so on my own (and potentially bricking my transmitter). :(

Anyway, maybe I'll take a look on this and try to rebase & merge it by myself if I find enough free time... In the meantime I'm gonna use your latest patched FW.

Thanks again for all your work!

from flysky-i6x_firmware_bugfix.

Cleric-K avatar Cleric-K commented on June 27, 2024

By rebase I didn't mean git rebase. When FlySky compile their firmware from source, all the functions, variables, constants land in different addresses in the memory image.

Patches like FlyPlus and my bugfix depend on identifying the addresses of some functions and data and injecting some additional code at these key places. This means that when FlySky release a new firmware, the compiled image most certainly have all functions and variables shifted at some other places in the image. Thus the image has to be disassembled anew and all the places where the code must be injected must be identified once again.
It's easier with my bugfix because I have to identify only a couple of things in the firmware and to inject the patch, but FlyPlus depends on hooking at many more functions in order to achieve it's complex results. That's why migrating FlyPlus to the newer firmwares requires more work.

from flysky-i6x_firmware_bugfix.

007hacky007 avatar 007hacky007 commented on June 27, 2024

That sounds like ton of work. Even traditional merge conflicts between 2017 and 2019 sounds like quite a bit of work, but now it sounds crazy. I did not realize the patches are built on top of decompiled source code instead of the original src. It's shame Flysky did not opened their code for others to improve it. Would be a hell lot easier to maintain all these great patches from the community.

edit: "decompiled" is wrong word. The correct description of the work done may be: hooking around the original firmware with new functions... Sounds like lot of ASM work actually - to understand where to put the hooks and fuctions. Doh.

from flysky-i6x_firmware_bugfix.

DG9BFC avatar DG9BFC commented on June 27, 2024

hmmm ... can we get one fw that has all bings and boings??

from flysky-i6x_firmware_bugfix.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.