Question How to compile .bin payloads to .uf2?

Discussion in 'Switch - Exploits, Custom Firmwares & Soft Mods' started by Akira, Sep 19, 2018.

  1. Akira
    OP

    Akira I'm not a SHRIMP!!!!

    Member
    7
    Apr 28, 2013
    United States
    I'm asking mainly because I have those chinese dongles(the $16 ones) and they don't have all the .uf2's of some of the payloads I want to try. For example, I want to try and compile briccmii to .uf2(don't ask me why, I just want to lol) I just want to learn instead of relying on downloading it on some random github page. I'm using a Mac, Xcode installed, homebrew. There might be more to be installed for sure.
     
  2. tom2199

    tom2199 GBAtemp Regular

    Member
    3
    Apr 23, 2015
    Gambia, The
    Last edited by tom2199, Sep 19, 2018
    Akira likes this.
  3. itsjch

    itsjch GBAtemp Regular

    Member
    5
    Feb 22, 2016
    Australia
    Sydney
    Im having trouble with this im not sure what to do after installing the program and downloading the requisites im trying to build hekate 4.1
     
  4. tom2199

    tom2199 GBAtemp Regular

    Member
    3
    Apr 23, 2015
    Gambia, The
    just open the build.ino file with the arduino ide, change the include line to the hekate 4.1 .h file and export the compiled binary. this build .bin file has to be converted to uf2 with the script.
     
  5. itsjch

    itsjch GBAtemp Regular

    Member
    5
    Feb 22, 2016
    Australia
    Sydney

    I cant find the 4.1.h file from the sourcecode material from hekate latest release?
     
  6. tom2199

    tom2199 GBAtemp Regular

    Member
    3
    Apr 23, 2015
    Gambia, The
     
  7. BillyJo

    BillyJo Member

    Newcomer
    4
    Jan 8, 2017
    Canada
    i've build a file .h from hekate4_1.bin and convert it to UF2 but doesnt seem to boot Hekate... maybe i've done something wrong when i convert it... i do some test and try to make it public when it will work !
     
  8. tom2199

    tom2199 GBAtemp Regular

    Member
    3
    Apr 23, 2015
    Gambia, The
    you dont convert the .h file, you have to compile the code in the arduino ide with the .h file included
    here is my hekate 4.1 .uf2 file, but remember:
     

    Attached Files:

    itsjch likes this.
  9. BillyJo

    BillyJo Member

    Newcomer
    4
    Jan 8, 2017
    Canada
    same problem as my file, it did not boot hekate

    — Posts automatically merged - Please don't double post! —

    files need to have 512ko and the one generated with hekate4.1 have around 266Ko so the trinket didnt accept it as a boot file
     
  10. tom2199

    tom2199 GBAtemp Regular

    Member
    3
    Apr 23, 2015
    Gambia, The
    itsjch likes this.
  11. BillyJo

    BillyJo Member

    Newcomer
    4
    Jan 8, 2017
    Canada
    nop this is one that i've done myself with an original trinket M0
     
  12. Mthodmn101

    Mthodmn101 GBAtemp Advanced Fan

    Member
    6
    Jan 31, 2008
    United States
     

    Attached Files:

  13. tom2199

    tom2199 GBAtemp Regular

    Member
    3
    Apr 23, 2015
    Gambia, The
    that's the problem then, it's just for this dongle i think
     
  14. BillyJo

    BillyJo Member

    Newcomer
    4
    Jan 8, 2017
    Canada
    works fine ! thanks
    how did you compile your files ? if its not a problem for you to explain ? did you use python script ? or arduino software ? thanks !
     
  15. Mthodmn101

    Mthodmn101 GBAtemp Advanced Fan

    Member
    6
    Jan 31, 2008
    United States
    me or tom?
     
  16. BillyJo

    BillyJo Member

    Newcomer
    4
    Jan 8, 2017
    Canada
  17. Mthodmn101

    Mthodmn101 GBAtemp Advanced Fan

    Member
    6
    Jan 31, 2008
    United States
  18. BillyJo

    BillyJo Member

    Newcomer
    4
    Jan 8, 2017
    Canada
    your files is the one who work fine.
     
  19. Kubas_inko

    Kubas_inko "Something funny goes here."

    Member
    14
    Feb 3, 2017
    Czech Republic
    I gues on earth.
    Sx payload has 16kb and works fine.
    Never mind. This is about dongle, not modchip.
     
    Last edited by Kubas_inko, Sep 20, 2018
    tom2199 likes this.
  20. Akira
    OP

    Akira I'm not a SHRIMP!!!!

    Member
    7
    Apr 28, 2013
    United States
    :rofl2:thanks for the response guys, though Im having problems converting the .bin to .h. Im getting this error whenever I try to use the script

    I used windows and i managed to convert it to .h. Now that im trying to compile the .h into a .bin using Arduino IDE, Im getting this error

    I managed to compile the .bin using arduino ide. Now im having problems converting it to uf2:rofl2: i downloaded the script and run it but its asking for a drive to deploy.

    Edit: Upon inspection of the code, there are commands on just to convert it to uf2. Profit! Now to check if it works.

    All are working properly. Managed to run it both in Windows and Mac. Thanks guys. I could write a tutorial if anyone wants it.
     
    Last edited by Akira, Sep 20, 2018
Quick Reply
Draft saved Draft deleted
Loading...