COMPLETED Fusee-LEDE Dongle (6$ payload injector)

Discussion in 'Switch - Exploits, Custom Firmwares & Soft Mods' started by capitaineflam25, Jun 24, 2018.

  1. capitaineflam25
    OP

    capitaineflam25 Member

    Newcomer
    2
    Jun 23, 2018
    France
    David Buchanan already explained his great work on this thread but it is now mixed up with other projects so i created this dedicated thread.

    The router i bought is this one from AliExpress.

    IMG_4399 (1).JPG

    I followed David's instructions without any issues
    Find attached the already compiled binary file (firmware.bin) for those who want to save some time on compiling.

    The update method from the original router website failed (seems common), so i used the USB drive method explained here.
    (Only difference was my USB Flash drive popped on /dev/sda and not /dev/sda1)

    After rebooting it, the router IP is set to static as 192.168.1.1 so you may need to connect it with an ethernet cable to your computer and force its IP address to 192.168.1.2

    Then using WinSCP to connect to the new IP of the router, you can edited /etc/config/network to change it back to DHCP :

    Code:
    config interface 'lan'
        option type 'bridge'
        option ifname 'eth0'
        option proto 'dhcp'
    To change the payload (which is fusee by default), use WinSCP to connect to the router and replace /usr/share/fusee-nano/payload.bin

    IMG_4392.JPG

    Edit : Please find a new default firmware with WiFi enabled at startup (SSID is LEDE, no password), DHCP client enabled by default for ethernet, and SXOS payload as default

    Edit 2 : You'll find better images in the following topic that include USB key payload update.
     

    Attached Files:

    Last edited by capitaineflam25, Jul 13, 2018
    charlieb, x65943, vgmoose and 23 others like this.
  2. capitaineflam25
    OP

    capitaineflam25 Member

    Newcomer
    2
    Jun 23, 2018
    France
    Sorry, i will add links later (i'm a new member and i'm not allowed to write links now) :(

    Edit : link added.
     
    Last edited by capitaineflam25, Jun 24, 2018
  3. OkazakiTheOtaku

    OkazakiTheOtaku no thanks, I don't want a custom title

    Member
    6
    Jul 20, 2016
    Japan
    ~/
    Looks intriguing. Definitely want a link to the exact device you used so I can do this.
     
  4. capitaineflam25
    OP

    capitaineflam25 Member

    Newcomer
    2
    Jun 23, 2018
    France
    You may "base64 decode" this string until i'm allowed to post links (Type base64 decode on google and use the first site)

    Code:
    aHR0cHM6Ly9mci5hbGlleHByZXNzLmNvbS9pdGVtLzNHLTRHLVdpZmktUm91dGVyLU1pbmktV2lyZWxlc3MtUG9ydGFibGUtV2lmaS1Sb3V0ZXItNEctSG90c3BvdC1SSjQ1LTE1ME1icHMtV2lmaS1Ib3RzcG90LVN1cHBvcnQvMzI4MTcyNTk0NTEuaHRtbA==
     
    OkazakiTheOtaku likes this.
  5. OkazakiTheOtaku

    OkazakiTheOtaku no thanks, I don't want a custom title

    Member
    6
    Jul 20, 2016
    Japan
    ~/
    capitaineflam25 likes this.
  6. DayVeeBoi

    DayVeeBoi GBAtemp Fan

    Member
    4
    GBAtemp Patron
    DayVeeBoi is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    Aug 17, 2015
    Canada
    Ontario
    Almost all of those generic micro routers will do the trick as most of them are based on the same couple chipsets and use OpenWRT as a base or it's installable.
     
  7. Nemean

    Nemean Advanced Member

    Newcomer
    2
    May 16, 2018
    United Kingdom
    How difficult is this to do as I currently have a SX pro on order as I just want an easy method for payloads as I currently have an iPhone. Im not even bothered about SX OS tbh so this could save me some money.
     
  8. capitaineflam25
    OP

    capitaineflam25 Member

    Newcomer
    2
    Jun 23, 2018
    France
    Connect to the router with a telnet client (Like Putty) and check the amount of memory your router embeds (by typing free on the command line).
    If it's 32Mo you may put uboot_usb_256_03.img on a FAT formatted flash drive (if 16Mo, use uboot_usb_128_03.img)
    Add the LEDE firmware.bin image on the flash drive (available on the first post) and connect the flash drive to the router.

    Mount the USB flash drive with the following command:
    mount /dev/sda1 /mnt
    or in my case /dev/sda /mnt

    Wait a few seconds and verify that you see files
    ls /mnt
    You should see your files. Do not go further if you do not see files !​

    Upgrade uboot - be careful, do not reset router during and after this operation !
    mtd_write write /mnt/uboot_usb_256_03.img Bootloader
    You should see on console
    #Unlocking Bootloader …
    #Writing from /mnt/uboot256.img to Bootloader … [w]

    Upgrade firmware - do not reset router during this operation!
    mtd_write write /mnt/firmware.bin Kernel
    You should see on console
    #Unlocking Kernel …
    #Writing from /mnt/firmware.bin to Kernel … [w]

    Reboot router with the following command.
    reboot

    After rebooting, the router will automatically inject fusee.bin to your switch if connected with an USB C cable.
     
    Last edited by capitaineflam25, Jun 24, 2018
    PsiAeon, CymraegAce and TotalJustice like this.
  9. SexiestManAlive

    SexiestManAlive GBAtemp Expert

    Member
    3
    Apr 18, 2016
    United States
    so after i do this do i have to use the usb drive with the router everytime? or just the usb c cable?
     
  10. BlastedGuy9905

    BlastedGuy9905 Ace Bricker

    Member
    8
    Apr 13, 2017
    United States
    Outside your windows ᕙ(◔ᗜ◔)ᕗ
    This is extremely inconvenient due to having to carry a portable battery around.. Wouldn't it just be more convenient to reverse-engineer the SX PRO Dongle and build the same thing?
     
  11. Pacote

    Pacote GBAtemp Regular

    Member
    5
    Jan 30, 2007
    Brazil
    Sure, would you care to do it?
     
  12. capitaineflam25
    OP

    capitaineflam25 Member

    Newcomer
    2
    Jun 23, 2018
    France
    The flash drive is used once for setup. Then you only need the USB C cable to connect to the console, and a micro USB cable (it comes with the router) to power it with 5V (with a power bank on my picture)
     
  13. DayVeeBoi

    DayVeeBoi GBAtemp Fan

    Member
    4
    GBAtemp Patron
    DayVeeBoi is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    Aug 17, 2015
    Canada
    Ontario
    Is there any reason why ESP8266 based devices aren't the go to device for this? Seems a no brainer, AFAIK you can USB i/o and it has integrated wireless capability. Plus every Dev/hacker has one. I guess that means there must be a reason why it cant be used.
     
  14. Joshtech

    Joshtech Advanced Member

    Newcomer
    3
    Dec 1, 2014
    Queensland
    XC-3730C and capitaineflam25 like this.
  15. cearp

    cearp 瓜老外

    Member
    16
    May 26, 2008
    Tuvalu
    $6 is very cheap! and diy is fun.
    but for only about $17 more (sx pro, dongle+license compared to just the license), i get the dongle that works perfectly without a battery.


    and i believe it can load different payloads, it doesn't have to just be tx os? so that cool.

    so @Nemean - since you have already ordered the pro, i would say don't worry about this diy method.
    unless you really enjoy playing with unix, and have time to spend.

    i like playing with small devices, but just to use for exactly one function (hacking the switch) -- i'd rather just pay for the dongle that does it perfectly.
     
  16. BlastedGuy9905

    BlastedGuy9905 Ace Bricker

    Member
    8
    Apr 13, 2017
    United States
    Outside your windows ᕙ(◔ᗜ◔)ᕗ
    Your attitude sucks ass. Can you do it? I bet you can't. Just like most people here. I'm just giving an idea.

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

    Oh wow, that's nice! Thanks for that.
     
    tbb043, MartinTheBest and Joshtech like this.
  17. SexiestManAlive

    SexiestManAlive GBAtemp Expert

    Member
    3
    Apr 18, 2016
    United States
  18. weatMod

    weatMod GBAtemp Addict

    Member
    7
    Aug 24, 2013
    United States
    i like the pi zero better
    if only there were something on aliexpress that was really small line an inch with a USB type C male on one end and micro USB male on the other end
    i can usually find any kind of adapter on there but i couldn't find anything like that
    you could just stick it in the pi zero micro usb and it would only stick out an inch
    also couldn't find any small inch or half inch micro USB male to USB type C male cables either or of any length for that matter
    weird that i can find every other type of adapter imaginable but not that
    i'm not brave enough to attempt soldering a USB type C male connector directly to the pi zero
     
    Last edited by weatMod, Jun 24, 2018
  19. DayVeeBoi

    DayVeeBoi GBAtemp Fan

    Member
    4
    GBAtemp Patron
    DayVeeBoi is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    Aug 17, 2015
    Canada
    Ontario
    Yes

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

    This is what I use for PS4, it's not USB C but theres plenty of small adapters available

    [​IMG]

    It's available here for $4 USD --> https://www.aliexpress.com/item/ESP...337.html?spm=a2g0s.9042311.0.0.7b374c4d9NWJAL
     
    weatMod likes this.
  20. guily6669

    guily6669 GbaTemp is my Drug

    Member
    5
    Jun 3, 2013
    United States
    Doomed Island
    humm that last one looks pretty damn nice, then we just need to add a huge capacitor or a very tiny battery to it and a USB-A to USB-C small fitting so it excludes using cables and bam, a very nice small dongle for very cheap.
     
  21. DayVeeBoi

    DayVeeBoi GBAtemp Fan

    Member
    4
    GBAtemp Patron
    DayVeeBoi is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    Aug 17, 2015
    Canada
    Ontario
    Yeah I think it could have 3.3v available so you could use a small button cell (like a hearing aid battery?) since these ESP8266 can run directly from 3.3v although I haven't opened it yet to see if this particular device has anything exposed to the user. I haven't kept up on Switch hacking, theres no way to power the device from its USB-C?