Build your own dongle (Research and development thread)

Discussion in 'Switch - Backup Loaders & Modchips' started by Wierd_w, May 19, 2018.

  1. ben nahalewski

    ben nahalewski Member

    Newcomer
    1
    Mar 17, 2013
    United States
    Lawndale, North Carolina
    Would a tplink mr3020 be possible to use as a dongle with openwrt?
     
  2. sweetlilmre

    sweetlilmre Member

    Newcomer
    3
    Aug 15, 2010
  3. Porkypigs

    Porkypigs Newbie

    Newcomer
    1
    Jun 30, 2018
    Australia
    You can use any arduino m0 to deliver payload as it has usb host capabilities
     
  4. tecfreak

    tecfreak GBAtemp Regular

    Member
    2
    Apr 24, 2018
    Germany
    Berlin
    Not every Cortex M0 MCU has usb host support.
     
    Gianga likes this.
  5. Porkypigs

    Porkypigs Newbie

    Newcomer
    1
    Jun 30, 2018
    Australia
  6. tecfreak

    tecfreak GBAtemp Regular

    Member
    2
    Apr 24, 2018
    Germany
    Berlin
  7. yyoossk

    yyoossk Member

    Newcomer
    1
    Oct 18, 2017
    Japan
  8. Spy Pirate Shado

    Spy Pirate Shado Member

    Newcomer
    1
    Jun 15, 2007
    United States
    Trying to keep this short, does anyone have any tips on what exactly to make OpenWRT on a portable powerbank+router run that will automatically send a payload during boot to a connected APX usb host?

    I have gotten raspbian to send a payload "automatically" using watch but I stopped with that after thinking there's no way people are setting these super small routers to do something like that to run forever during boot and calling it a day.

    I'm hoping in the end that I can set something up with my router+powerbank that runs something during boot to function as fusee delivery but despite that functions fine as a portable hotspot with openWRT.
     
  9. sweetlilmre

    sweetlilmre Member

    Newcomer
    3
    Aug 15, 2010
    @Retr0id I found a TP-Link TL-WR703N lying in a cupboard and used your instructions to build a LEDE image for it.
    After flashing and connecting the switch I get messages like this (similar to other users):

    Code:
    usb 1-1: new high-speed USB device number 14 using ehci-platform
    usb 1-1: device descriptor read/64, error -145
    usb 1-1: device descriptor read/64, error -71
    usb 1-1: new high-speed USB device number 15 using ehci-platform
    usb 1-1: device descriptor read/64, error -145
    usb 1-1: device descriptor read/64, error -71
    usb usb1-port1: attempt power cycle
    usb 1-1: new high-speed USB device number 16 using ehci-platform
    usb 1-1: device not accepting address 16, error -71
    usb 1-1: new high-speed USB device number 17 using ehci-platform
    usb 1-1: device not accepting address 17, error -71
    usb usb1-port1: unable to enumerate USB device
    
    Plugging in USB stick does not generate these errors, just this:
    Code:
    usb 1-1: new high-speed USB device number 18 using ehci-platform
    
    Any suggestions?

    Thanks
    -(e)
     
  10. Wierd_w
    OP

    Wierd_w GBAtemp Fan

    Member
    3
    May 12, 2018
    United States

    Did you enable the ehci patch? Without the patch, the driver throws an error if a large control frame is passed.
     
  11. sweetlilmre

    sweetlilmre Member

    Newcomer
    3
    Aug 15, 2010
    I thought the patch was automatically enabled? Do I have to enable it in kernel options or something?

    -(e)
     
  12. sweetlilmre

    sweetlilmre Member

    Newcomer
    3
    Aug 15, 2010
    Double post due to dodgy WiFi.
     
    Last edited by sweetlilmre, Jul 9, 2018
  13. BL4Z3D247

    BL4Z3D247 GBAtemp Stoner

    Member
    6
    Oct 22, 2008
    United States
    I'm so high, I don't even know!
    eBay has them for a few dollars more.

    http://m.ebay.com/sch/i.html?_from...084.l1313.TR1.TRC0.A0.H0.Xzsun.TRS0&_nkw=zsun
     
  14. bajul

    bajul Advanced Member

    Newcomer
    2
    Aug 26, 2015
    Indonesia
    How to flash sx payload to zsun wifi?
     
  15. stewacide

    stewacide Member

    Newcomer
    1
    Jun 22, 2018
    Canada
    Wouldn't be possible as no way to power it.
     
  16. RazorX2014

    RazorX2014 GBAtemp Advanced Fan

    Member
    3
    Mar 18, 2014
    for anyone who wants to know, the 2 super capacitors used in the sx pro dongle are:
    KAMCAP 2.7V 0.35F Farad Super Capacitor Ultra Capacitor
     
  17. RazorX2014

    RazorX2014 GBAtemp Advanced Fan

    Member
    3
    Mar 18, 2014
    is anyone planning on writing up an easy to follow guide for flashing the zsun or is there already one out there?
    or was it decided this wasn't the way to go.
     
    Last edited by RazorX2014, Jul 11, 2018
  18. Akira

    Akira I'm not a SHRIMP!!!!

    Member
    4
    Apr 28, 2013
    United States
    It seems the one with built in battery’s price went up. It was $10 previously in aliexpress(4days ago), now it’s $19.
     
  19. xyqkent

    xyqkent Newbie

    Newcomer
    1
    Jul 12, 2018
    China
    I have a problem with my Hame A1, cpu model is RT53050F.
    Compile the openwrt of DavidBuchanan314/fusee-lede and write it to my router.
    github->DavidBuchanan314/fusee-lede

    Then run /usr/bin/fusee-nano /usr/share/fusee-nano/payload.bin to crack my switch.But failed.
    Information:
    [Debug]payload_idx:0,low_buffer:1
    [Debug]payload_idx:4096,low_buffer:0
    [Debug]payload_idx:8192,low_buffer:1
    [Debug]payload_idx:12288,low_buffer:0
    [Debug]payload_idx:16384,low_buffer:1
    [Debug]payload_idx:20480,low_buffer:0
    [Debug]payload_idx:24576,low_buffer:1
    [Debug]payload_idx:28672,low_buffer:0
    [Debug]payload_idx:32768,low_buffer:1
    [Debug]payload_idx:36864,low_buffer:0
    [Debug]payload_idx:40960,low_buffer:1
    [Debug]payload_idx:45056,low_buffer:0
    [Debug]payload_idx:49152,low_buffer:1
    [Debug]payload_idx:53248,low_buffer:0
    [Debug]payload_idx:57344,low_buffer:1
    [Debug]payload_idx:61440,low_buffer:0
    [-] Sending payload failed: Operation timed out

    Check the source code and find that the error comes from usb.c->ep_write->return IOCTL (FD, USBDEVFS_BULK, &bulkt).
    It return -1

    And check the source code(ehci_hcd.c), The 862nd line has been deleted.
    ------------------------------------------------------------
    - case PIPE_CONTROL:
    - /* qh_completions() code doesn't handle all the fault cases
    - * in multi-TD control transfers. Even 1KB is rare anyway.
    - */
    - if (urb->transfer_buffer_length > (16 * 1024))
    - return -EMSGSIZE;
    - /* FALLTHROUGH */
    - /* case PIPE_BULK: */
    -------------------------------------------------------------

    Who knows what's the problem? Is there a way to solve it? Thanks alot.
     
    Last edited by xyqkent, Jul 12, 2018
  20. Wierd_w
    OP

    Wierd_w GBAtemp Fan

    Member
    3
    May 12, 2018
    United States
    I have finally gotten around to updating the first post of this thread to better reflect the current status of this area of work. I will update it again with direct links to projects and posts later.
     
    BL4Z3D247 and hippy dave like this.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice