Hacking Build your own dongle (Research and development thread)

Pacote

Well-Known Member
Member
Joined
Jan 30, 2007
Messages
243
Trophies
1
Website
Visit site
XP
632
Country
Brazil
I will order tomorrow the one I linked the picture and open to see the revision.

Then I will probably ask you guys for help cause I was reading the guide and I had no clue one how to even start.

My most advanced deal with openwrt (dd-wrt and tomato) was to simple flash a router with the .bin and that was it.

I have no idea how to setup that router and make it so when I connecto the switch it would just spill the code.

But then again Im on 2.3.0 so I think it wouldnt work for me, and only pegaswitch correct?
 

Wierd_w

Well-Known Member
OP
Member
Joined
May 12, 2018
Messages
406
Trophies
0
Age
41
XP
651
Country
United States
I will order tomorrow the one I linked the picture and open to see the revision.

Then I will probably ask you guys for help cause I was reading the guide and I had no clue one how to even start.

My most advanced deal with openwrt (dd-wrt and tomato) was to simple flash a router with the .bin and that was it.

I have no idea how to setup that router and make it so when I connecto the switch it would just spill the code.

But then again Im on 2.3.0 so I think it wouldnt work for me, and only pegaswitch correct?

I have not tried to build retr0id's GIT source yet. It looks lean when I looked at it. I expect it pulls the source tarballs for openwrt and pals on the fly, then applies the patch. Instructions would be similar to installing ordinary openwrt.

Looks like he wants you to pull the lede project source tarball, extract it, download his tarball/git, copy the contents of his git into the lede sources folder, then enter menuconfig, select his package as a module, then build.

Result is a stock firmware flashable image. You would tell the device's firmware updater that you have an "update" for it, then send that file. It will reprogram itself with the package, and bob's your uncle.
 
Last edited by Wierd_w,

Mrdx

Well-Known Member
Member
Joined
Dec 12, 2013
Messages
107
Trophies
0
XP
1,077
Country
Antigua and Barbuda
Guys, just wait for the SX release and shortly after we will see many chinese copies of the dongle to launch payloads, self powered, USB-C connector and half the price
 

Retr0id

Active Member
Newcomer
Joined
Apr 12, 2018
Messages
33
Trophies
0
Age
54
XP
441
Country
United Kingdom
Guys, just wait for the SX release and shortly after we will see many chinese copies of the dongle to launch payloads, self powered, USB-C connector and half the price
If you read the thread, you'd know that there are already cheap ($12) chinese "dongles" capable of launching payloads (you *do* need an A-to-C adapter, but that's only another ~$2). There is no need to "wait" for TX to do anything, since they aren't doing anything new and we already know exactly what their "dongle" does.

That said, cheaper SAMD21 (et al.) based devices are sure to pop up eventually, both for internal "modchip" and external "dongle" usage. However, I still don't see them going much below $12 (that's already less than the price of a basic SAMD21 dev board (~$13)...)
 
Last edited by Retr0id,

guily6669

GbaTemp is my Drug
Member
Joined
Jun 3, 2013
Messages
2,333
Trophies
1
Age
34
Location
Doomed Island
XP
2,105
Country
United States
If someone would make a FW hack for the CronusMAx or Titan one would also be cool... I have CM V1.

Anyway Kate said that she will give the info to build a DiY chip later, though most likely I will probably just try with my old smartphone to see if it works.
 

Wierd_w

Well-Known Member
OP
Member
Joined
May 12, 2018
Messages
406
Trophies
0
Age
41
XP
651
Country
United States
I have a spare Alcatel Linkzone 4g/wifi router. I can flash fusee-lede on it?

I can't find any information on this device, so probably not... Let me see if Alcatel has GPL source package.
I cannot find a vendor GPL sources package either. I see that it claims to have more than adequate flash and ram, but the SoC apparently is a bit wonky according to LEDE forums.
I would tentatively say "No", do to insufficient source packages to work with.
 
Last edited by Wierd_w,
  • Like
Reactions: hackotedelaplaqu

Hodorian

Well-Known Member
Newcomer
Joined
May 23, 2018
Messages
59
Trophies
0
Age
31
XP
350
Country
Germany
what about github/brandonlw/Psychson ?

That is a custom firmware for a usb flash drive. However since it has usb.h already implemented, it should be easy to modify the firmware/main.c to execute the fuse Gele: github/DavidBuchanan314/fusee-lede.

The hardware would be just a normal usb dongle (e.g. Kingston DataTraveler 3.0 T111 8GB ~~7€).


I'm not sure about the power over usb-otg. Is the xecuter dongle running on battery power?
 

sweetlilmre

Active Member
Newcomer
Joined
Aug 15, 2010
Messages
43
Trophies
0
XP
440
Country
what about github/brandonlw/Psychson ?

That is a custom firmware for a usb flash drive. However since it has usb.h already implemented, it should be easy to modify the firmware/main.c to execute the fuse Gele: github/DavidBuchanan314/fusee-lede.

The hardware would be just a normal usb dongle (e.g. Kingston DataTraveler 3.0 T111 8GB ~~7€).


I'm not sure about the power over usb-otg. Is the xecuter dongle running on battery power?
Wouldn't this be USB device only though? I'd be impressed if you could get host mode out of a flash drive.

-(e)
 

Retr0id

Active Member
Newcomer
Joined
Apr 12, 2018
Messages
33
Trophies
0
Age
54
XP
441
Country
United Kingdom
I can't find any information on this device, so probably not... Let me see if Alcatel has GPL source package.
I cannot find a vendor GPL sources package either. I see that it claims to have more than adequate flash and ram, but the SoC apparently is a bit wonky according to LEDE forums.
I would tentatively say "No", do to insufficient source packages to work with.

If you can get a root shell on it, in theory you can still run fusee-nano - no real need to actually replace the entire firmware. You'd have to do the EHCI patch in-memory, but that can be done. If the rootfs is not writable, that would be a bit annoying since you wouldn't be able to install permanently.
 

Wierd_w

Well-Known Member
OP
Member
Joined
May 12, 2018
Messages
406
Trophies
0
Age
41
XP
651
Country
United States
If you can get a root shell on it, in theory you can still run fusee-nano - no real need to actually replace the entire firmware. You'd have to do the EHCI patch in-memory, but that can be done. If the rootfs is not writable, that would be a bit annoying since you wouldn't be able to install permanently.

Often times if you have root shell, you can remount rootfs as rw on such hardware. Getting root shell is the trick.
 

Wierd_w

Well-Known Member
OP
Member
Joined
May 12, 2018
Messages
406
Trophies
0
Age
41
XP
651
Country
United States

Those look like the "Without battery" and "With battery", respectively. Again, remember that this hardware is highly variable, so there is a chance it will work, not a guarantee.

--------------------- MERGED ---------------------------

Oh it's coming alright... Internals are in the works! ;)

Which hardware did you settle on? Inquiring mind wishes to know.
 

Hodorian

Well-Known Member
Newcomer
Joined
May 23, 2018
Messages
59
Trophies
0
Age
31
XP
350
Country
Germany
Wouldn't this be USB device only though? I'd be impressed if you could get host mode out of a flash drive.

-(e)
You are right. I've somehow misunderstood the concept of usb device and host with an otg adapter.


Back to the power question:

Does the "Without battery"-china router need an external power source?

Because i'm experimenting around with the pi zero. My problem is, connected as an host, it' doesn't receive any power.
 

Wierd_w

Well-Known Member
OP
Member
Joined
May 12, 2018
Messages
406
Trophies
0
Age
41
XP
651
Country
United States
You are right. I've somehow misunderstood the concept of usb device and host with an otg adapter.


Back to the power question:

Does the "Without battery"-china router need an external power source?

Because i'm experimenting around with the pi zero. My problem is, connected as an host, it' doesn't receive any power.

It does. It is powered over the micro-usb connector on the side. I asked Retr0id if his model can be backfed through the host port (as cheap hardware like this often takes shortcuts, and wiring the power rails of both ports together would cut down on component costs at the expense of being unsound electronics design-- but that does not really seem to be a major concern with many chinese brandless devices) but he did not give a reply yet. Regardless, I hear from multiple sources that RCM mode disables power output through the NX's USB-C port. That means either internal battery or external power pack/charger.
 
  • Like
Reactions: Hodorian

Red1Reaper

Asperger Dude
Member
Joined
Feb 5, 2017
Messages
339
Trophies
0
Age
27
Location
Valencia, Rafelbuñol
XP
661
Country
Spain
It does. It is powered over the micro-usb connector on the side. I asked Retr0id if his model can be backfed through the host port (as cheap hardware like this often takes shortcuts, and wiring the power rails of both ports together would cut down on component costs at the expense of being unsound electronics design-- but that does not really seem to be a major concern with many chinese brandless devices) but he did not give a reply yet. Regardless, I hear from multiple sources that RCM mode disables power output through the NX's USB-C port. That means either internal battery or external power pack/charger.
Maybe this can provite battery enought time to load a payload: https://hackaday.io/project/25107-single-supercapacitor-ups-for-raspberry-pi
 

Wierd_w

Well-Known Member
OP
Member
Joined
May 12, 2018
Messages
406
Trophies
0
Age
41
XP
651
Country
United States
Maybe this can provite battery enought time to load a payload: https://hackaday.io/project/25107-single-supercapacitor-ups-for-raspberry-pi

Something similar should be possible with a teensie, or other compact and low power micro. That implementation is a bit too large for living inside the switch, (or even inside the cited 'without battery' router.)

I suggested as such on the dischord chat. Premise would be a bit like this:

NX powers on, power to USB rails is active. This powers on the micro, and charges the capacitor.

Early in the boot cycle, the micro executes the first stage of its program, which sends signals out of its gpio pins that cause the NX to panic, and go into RCM. (say, shorting one of the data leads to the eMMC, causing a faulted read-- doing the exact thing that autoRCM does, but without actually overwriting the eMMC-- The NX gets a "corrupt read", and panics, going into RCM, or shorting the two pins on the joycon and the volume button, or whatever.).

The NX then disables power to the USB port, and the micro continues running on the capacitor.

It waits for the NX to present its Ven and Unit IDs in RCM mode over the usb port's data pins. It then sends the injected payload after putting its GPIO pins back low (re-enabling the eMMC, or however else you want to trigger RCM being disabled), and the NX boots.

This turns power on USB back on, and the micro stays powered until you cold boot it again, executing a no-op loop eternally.

A very custom dongle version might be possible to build using a piezo crystal "clicker" (the kind of thing that makes the spark on electric ignition lighters) that jabs voltage at the capacitor to charge it, prior to powering on the switch, and the software autoRCM solution. (you would click the button on top of the dongle a few times to give it a charge and turn on the micro controller prior to inserting it into the port and turning on the NX) I would be afraid of it nuking the NX though.

A battery backed dongle seems the most sane and sensible solution.
 
  • Like
Reactions: Red1Reaper

DeoNaught

I'm here to steal memes and break dreams
Member
Joined
Aug 22, 2016
Messages
2,260
Trophies
0
Location
Constant Fear
Website
Gbatemp.net
XP
2,258
Country
United States
Something similar should be possible with a teensie, or other compact and low power micro. That implementation is a bit too large for living inside the switch, (or even inside the cited 'without battery' router.)

I suggested as such on the dischord chat. Premise would be a bit like this:

NX powers on, power to USB rails is active. This powers on the micro, and charges the capacitor.

Early in the boot cycle, the micro executes the first stage of its program, which sends signals out of its gpio pins that cause the NX to panic, and go into RCM. (say, shorting one of the data leads to the eMMC, causing a faulted read-- doing the exact thing that autoRCM does, but without actually overwriting the eMMC-- The NX gets a "corrupt read", and panics, going into RCM, or shorting the two pins on the joycon and the volume button, or whatever.).

The NX then disables power to the USB port, and the micro continues running on the capacitor.

It waits for the NX to present its Ven and Unit IDs in RCM mode over the usb port's data pins. It then sends the injected payload after putting its GPIO pins back low (re-enabling the eMMC, or however else you want to trigger RCM being disabled), and the NX boots.

This turns power on USB back on, and the micro stays powered until you cold boot it again, executing a no-op loop eternally.

A very custom dongle version might be possible to build using a piezo crystal "clicker" (the kind of thing that makes the spark on electric ignition lighters) that jabs voltage at the capacitor to charge it, prior to powering on the switch, and the software autoRCM solution. (you would click the button on top of the dongle a few times to give it a charge and turn on the micro controller prior to inserting it into the port and turning on the NX) I would be afraid of it nuking the NX though.

A battery backed dongle seems the most sane and sensible solution.
Why do we need battery powered?

and if we go with the Piezo method, you would want it in a dongle ofc, and then have shitton of stuff making sure voltage is alright, and then putting it in the switch. I honestly think just a small ass battery, like ones inside Ipod nano would be fine, and then just have a micro usb to charge it when need be.


Which discord chat might I ask?
 
  • Like
Reactions: aut0mat3d

wicksand420

Well-Known Member
Member
Joined
Nov 13, 2016
Messages
2,787
Trophies
1
Age
39
XP
2,296
Country
United States
Hi all, I have a adafruit Trinket M0 and was wondering if anybody could point me to a tutorial on how to load fusee with it.

I know I have to use sam-fusee-launcher but cant find any instructions. Thanks
 
Last edited by wicksand420,

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • BakerMan @ BakerMan:
    as to you
  • K3Nv2 @ K3Nv2:
    How do you know if the night will be good when you're asleep
  • BakerMan @ BakerMan:
    because i didn't say i was asleep
  • BakerMan @ BakerMan:
    i said i was sleeping...
  • BakerMan @ BakerMan:
    sleeping with uremum
  • K3Nv2 @ K3Nv2:
    Even my mum slept on that uremum
  • TwoSpikedHands @ TwoSpikedHands:
    yall im torn... ive been hacking away at tales of phantasia GBA (the USA version) and have so many documents of reverse engineering i've done
  • TwoSpikedHands @ TwoSpikedHands:
    I just found out that the EU version is better in literally every way, better sound quality, better lighting, and there's even a patch someone made to make the text look nicer
  • TwoSpikedHands @ TwoSpikedHands:
    Do I restart now using what i've learned on the EU version since it's a better overall experience? or do I continue with the US version since that is what ive been using, and if someone decides to play my hack, it would most likely be that version?
  • Sicklyboy @ Sicklyboy:
    @TwoSpikedHands, I'll preface this with the fact that I know nothing about the game, but, I think it depends on what your goals are. Are you trying to make a definitive version of the game? You may want to refocus your efforts on the EU version then. Or, are you trying to make a better US version? In which case, the only way to make a better US version is to keep on plugging away at that one ;)
  • Sicklyboy @ Sicklyboy:
    I'm not familiar with the technicalities of the differences between the two versions, but I'm wondering if at least some of those differences are things that you could port over to the US version in your patch without having to include copyrighted assets from the EU version
  • TwoSpikedHands @ TwoSpikedHands:
    @Sicklyboy I am wanting to fully change the game and bend it to my will lol. I would like to eventually have the ability to add more characters, enemies, even have a completely different story if i wanted. I already have the ability to change the tilemaps in the US version, so I can basically make my own map and warp to it in game - so I'm pretty far into it!
  • TwoSpikedHands @ TwoSpikedHands:
    I really would like to make a hack that I would enjoy playing, and maybe other people would too. swapping to the EU version would also mean my US friends could not legally play it
  • TwoSpikedHands @ TwoSpikedHands:
    I am definitely considering porting over some of the EU features without using the actual ROM itself, tbh that would probably be the best way to go about it... but i'm sad that the voice acting is so.... not good on the US version. May not be a way around that though
  • TwoSpikedHands @ TwoSpikedHands:
    I appreciate the insight!
  • The Real Jdbye @ The Real Jdbye:
    @TwoSpikedHands just switch, all the knowledge you learned still applies and most of the code and assets should be the same anyway
  • The Real Jdbye @ The Real Jdbye:
    and realistically they wouldn't

    be able to play it legally anyway since they need a ROM and they probably don't have the means to dump it themselves
  • The Real Jdbye @ The Real Jdbye:
    why the shit does the shitbox randomly insert newlines in my messages
  • Veho @ Veho:
    It does that when I edit a post.
  • Veho @ Veho:
    It inserts a newline in a random spot.
  • The Real Jdbye @ The Real Jdbye:
    never had that i don't think
  • Karma177 @ Karma177:
    do y'all think having an sd card that has a write speed of 700kb/s is a bad idea?
    trying to restore emunand rn but it's taking ages... (also when I finished the first time hekate decided to delete all my fucking files :wacko:)
  • The Real Jdbye @ The Real Jdbye:
    @Karma177 that sd card is 100% faulty so yes, its a bad idea
  • The Real Jdbye @ The Real Jdbye:
    even the slowest non-sdhc sd cards are a few MB/s
    Psionic Roshambo @ Psionic Roshambo: https://www.youtube.com/watch?v=SjCivnt5t50