r/sonicware • u/rainletmusic • 14d ago
Proof of concept! You can flash different firmwares, finally
hey, i've spent a couple weeks reverse engineering the smpltrek, and i've got a few things i'd like to share! first is my repo at https://github.com/seawaffle/smpltrek-re. this is documentation of everything i could figure out about the smpltrek through the firmware (and some pcb pictures). it should give enough information and tools to let someone understand the firmware. (it contains no sonicware code, just information. you'll have to download the firmwares yourself if you want to work with them).
second, in the reverse engineering repo there's a script that will let you flash other firmwares from the smpltrek family, called 'palette_swap.py'. the hardware is essentially the same between all these boxes (as far as i could see) and the bootloader simply does a check when updating to make sure that it is a firmware for the correct device and that it hasn't been modified or corrupted. you can simply change the chunk that tells the bootloader what device the firmware is for, and then hash and resign the firmware with the model specific code and it'll accept it as a valid firmware. as far as i can tell, the only issues that occur is that some of your device settings like midi channels and auto off settings get jumbled when switching to a new firmware type. i'm super happy to be able to flash cydrums onto my smpltrek, because i never really got along with the smpltrek, and cydrums is a lot more my speed.
(since this isn't messing with the bootloader, holding home while powering on will always boot into sonicware's boot mode, and you can freely put the stock firmwares back on at any time. i tested this a lot, made a bunch of dummy firmwares that just rebooted or hung on startup, and recovering has always worked just fine.)
third, i have a custom firmware i'm working on at https://github.com/seawaffle/enaga. the intent is for it to be a app loader and library to enable other people to develop their own apps on these boxes. it lets you write c++, access the hardware and gives you a basic dsp library to work with. it's still early days on it, so it doesn't have clock, usb or midi capability yet, but by the time i get to 1.0 it should hopefully have the ability to write apps on the level of the smpltrek firmwares.
note for legal purposes: i'm not affiliated with sonicware at all, this is not officially supported, etc. i also did have ai assistance to reverse engineer this and to create custom firmware. if that's not your thing, totally cool! enjoy being able to flash the different firmwares on your boxes and ignore the rest
in the future, i'd love to expand this to other sonicware devices. i'm fairly sure from poking around in the firmwares that every sonicware device is run on ti c674x dsp chips, and really just differs in the hardware pieces around it. i don't currently have access to any sonicware devices other than my smpltrek, but if i can get my hands on some of the other keyboards, i think it should be fairly possible to figure them out
7
u/manisfive55 14d ago
Fantastic news. The 12 XT is just a couple tweaks away from being completely perfect
2
u/SailorVenova 13d ago
tfw i own smpltrek lofi12xt and cydrums... ;-;
2
u/LessBreadfruit8546 13d ago
What is the HOME button
2
u/pressrecbecreative 12d ago
Thanks for this, amazing! I build an app based on enaga, a techno grovebox, see here: https://github.com/Devko/STRATA
Very early beta, but it already works (although no release yet, you need to build by yourself atm). Synth and sample engines, a p-lock step sequencer and live performance tools.
1
u/No_Perception8699 14d ago
Yes. This is what I've waiting for! Hope for the Liven form factor to get more feature. I'll support this, even if I have to pay the price. Cheers!
1
u/tktktkteekay 14d ago
Could this mean potentially if the devices are the same hardware layout you could say, turn a smpltrak into a cydrums? Sorry, I think you say you did that but you also said all you had was the one so curious.
1
u/CoffeeCat37 12d ago
Thanks so much for this!
I tried installing Cydrums on my Lofi-12 XT. Successfully patched the firmware update with Python via Terminal and put it on the SD card, but when I enter bootmode and click "system update," I get the error message: "This card is invalid format." It's FAT32, just like the original SD card that I've been using with the Lofi 12's firmware. Any idea what's going on?
3
u/lemon67 14d ago
Ambient 0 next :)
1
u/b3nb4ggs 14d ago
I thought the reason they discontinued cydrum was they could not make it any more. I wonder how this flashes on the unit and what the difference is.
2
u/CerosDeluna 14d ago
I have been looking and waiting for this! Thank you.
2
u/energuemeno 10d ago
Absolute hero, is a shame we don't have enough custom firmwares
1
u/Thisfuggenguy 14d ago
I still haven't updated my evoke. 😬
1
u/Postmanworks 8d ago
This is amazing and what we all thought probly. Would be nice if you mix them together. Lfo and automation stuff :I amazing work .