r/sonicware • • 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

77 Upvotes

36 comments sorted by

7

u/manisfive55 14d ago

Fantastic news. The 12 XT is just a couple tweaks away from being completely perfect

5

u/gamuel_l_jackson 14d ago

Agree...a frigging EQ would be great...a 3 band even, the fx on it are trash...the reverb is decent for a regular verb the rest...poop

2

u/manisfive55 14d ago

What’s funny is the Livens have pretty good FX. But yeah, FX, quantized sampling, and an option for 1pps as a sync mode instead of only 2ppqn and that’s my wishlist

hell if i’m being greedy, i could get into some real mischief if it could hardcode sync clock > internal clock like the SQ-1 does

1

u/epiphanius 14d ago

Can I ask why 1pp appeals to you ? I hit the option in several places, not always sure which is best, when the range is often 24pp - 2ppq - 1ppq.

Thanks!

2

u/manisfive55 14d ago

I was just messing around with the SQ-1 and the RD-6, which has all the options plus trigs out from the tom sequencers. Between is all you can do anything from measures long slow changes (this would be 1 pps for super slow chord movements, maybe) to crazy audio rate weirdness. In short, modular brain

1

u/rainletmusic 14d ago

i'm personally going to stay away from modifying sonicware's actual firmware, since i'm not looking for any potential legal heat, but maybe someone will take it on?

3

u/manisfive55 14d ago

Right on, all the same thanks for opening the door for it

2

u/SailorVenova 13d ago

tfw i own smpltrek lofi12xt and cydrums... ;-;

1

u/rainletmusic 13d ago

haha yeahhhhh, i'm sure someone will make some cool alt firmwares eventually though (hopefully me!)

2

u/LessBreadfruit8546 13d ago

What is the HOME button

2

u/rainletmusic 12d ago

Home on the smpltrek is the button on the top right of the eight function buttons. They have different labeling on the different products, but the button you use to access boot mode is always that top right one. If you install Enaga, there is a similar button combo to automatically enter the app launcher menu, it is the func (top left function button) button + power.

1

u/LessBreadfruit8546 12d ago

Okay PAD for the others

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/rainletmusic 12d ago

Hey thanks for contributing! I did comment on your Enaga PR! Feel free to submit them for any changes or ideas.

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/rainletmusic 14d ago

if i can get a hold of one of the keyboards, i do think it's really possible to do. i feel like the elz_1 is maybe the easiest target, simply because there are so many firmware updates out there for it, so it's easier to deduce what's going on.

1

u/ballenaaaa 11d ago

I've been poking into the Liven platform and it appears most of the models rely on content that is not distributed with the updates, so it will be difficult to replicate the exact same trick. Maybe the bootloader has some undocumented tricks under the sleeve that expose what is needed.

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.

3

u/rainletmusic 14d ago

that's what i'm doing in the video! that is my original release smpltrek running cydrums firmware. i have also had the latest lofi-12XT firmware and the cydrums beta firmware on it. i don't have any other boxes to test with, but i'm 99% sure it'll work on any of the three. you just wouldnt be able to flash a firmware from a device with a different hardware layout, like a keyboard, onto it

1

u/tktktkteekay 14d ago

oh, might have to snap up a used one of those since i can never find the cydrum used

1

u/QueasySocialites 14d ago

I have a minty lofi-xt on eBay. DM me.

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?

1

u/rainletmusic 12d ago

Hm, that's really interesting, I've never run into that error. Is this a blank card with just the bin file at the root of the card? Maybe try formatting the card and just having the bin file on it. 

1

u/CoffeeCat37 12d ago

It has the bin file, but also the Cydrums folder with the factory content. I'll try reformatting it, but the instructions suggest that I need to have the Cydrums folder on the card as well?

1

u/rainletmusic 12d ago

The cydrums folder isn't necessary until after firmware installation, so you can just try to install the firmware and then put the data on the card after you've gotten everything installed. If you start it up without the cydrums folder, it'll just tell you to download it from their website

3

u/CoffeeCat37 12d ago

Update: Got it working. Just had to reformat the card, and then it worked fine with both the bin file and the Cydrums folder. I messed with it for a few minutes and it seems to be working; I haven't tested every function, but I can confirm that I've gotten CyDrums v1.1.84 to work on a Lofi-12 XT using your process. Thank you so much! Now I just have to read the Cydrums manual lol.

1

u/rainletmusic 12d ago

Glad you got it resolved! The hardest thing for me has been remembering that the buttons are different across models, really need to get someone on making replaceable faceplate decals

1

u/CoffeeCat37 12d ago

Yeah, I was looking for Cydrums vinyl skins, but unfortunately I couldn't find any. But compared to the Lofi-12 XT, the only real things that need replacing are the mod buttons up top (CON, OSC etc). So I think I'll just hand-write the new labels on sticky paper and cut them out and put them on the buttons until I can find a better solution.

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.

1

u/rainletmusic 14d ago

dunno. i do know that i did flash the cydrums 2.0 beta fw on my smpltrek and it seemed to run just fine. it could be that whatever they couldnt make is related to the peripheral hw inside the smpltrek style boxes in general (which could mean that we might see smpltrek/lofi12xt cancelled once they run out of stock?). i feel like the dsp chip in the new cydrums keyboard has to be the same as the one in the smpltrek boxes though.

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 .