Skip to content
bangcorrupt edited this page Mar 15, 2023 · 59 revisions

Firmware Patch

See Bugs for a list of known issues.

If these instructions don't make sense, see #41.

Prepare Files

Clone the repo, including submodules:

git clone --recursive https://github.com/bangcorrupt/hacktribe.git
cd hacktribe

Download Electribe 2 Sampler firmware version 2.02 and move SYSTEM.VSB to hacktribe directory.

Apply patch to Electribe Sampler firmware version 2.02 only.

Once patched, the firmware will run on either device.


Patch with a GUI

Complete Prepare Files step above.

Install Hacktribe Editor.

Follow the instructions in the app, pay attention to the log output in the text box.

Installation may fail on Windows.

In that case, run the executable found in the repo at hacktribe-editor/hacktribe-gui.exe.

See this comment for why it doesn't work and how to fix it.


Patch with a script

Complete Prepare Files step above.

Install dependencies:

pip install argparse bsdiff4

Run e2-firmware-patch.py script to patch the firmware automatically:

python scripts/e2-firmware-patch.py

If installing to factory synth (grey or blue), use -e flag to also modify file header.


You should see:

Hacktribe firmware patcher.

https://github.com/bangcorrupt/hacktribe

Source file hash                 : 1d0f0689d5a12c8a8bde9f821f2a59adc5f6cd6012ddb201ebb192b72468a646 

Electribe 2 Sampler firmware version 2.02 found.

Patching firmware for Electribe 2 Sampler...

Target file hash                 : 42aca7cd6451e82628f3af7aa3e9361496b658aea6369a26a8d744cbf17bba7e
Destination file hash            : 42aca7cd6451e82628f3af7aa3e9361496b658aea6369a26a8d744cbf17bba7e 

Firmware patched successfully.

Copy 'hacked-SYSTEM.VSB' to 'SD:/KORG/electribe sampler/System/SYSTEM.VSB' and update firmware.

The hashes for target and destination files should match each other (they will be different from those shown above). If you see Firmware patched successfully, the hashes match and the firmware is patched correctly.


Patch manually

Alternatively, apply the patch manually:

sha256sum -c hash/SYSTEM.VSB.sha
bspatch SYSTEM.VSB hacked-SYSTEM.VSB patch/hacktribe-2.patch
sha256sum -c hash/hacked-SYSTEM.VSB.sha

Make sure both checksums match, otherwise you get a brick. <-- That's important.

^^ That's really important. ^^

What the hash is a checksum?

You should see:

SYSTEM.VSB: OK
hacked-SYSTEM.VSB: OK

If you see OK for both files, the hashes match and the firmware is patched correctly.


Edit header (only if installing on e2 synth):

python scripts/e2-header.py hacked-SYSTEM.VSB sampler

Set custom init pattern

Optionally, set custom init pattern:

python scripts/e2s-init-pat.py hacked-SYSTEM.VSB your-init-pattern.e2spat

Install patched firmware

Move hacked-SYSTEM.VSB to SD card System directory and rename to SYSTEM.VSB.

Remove e2sSample.all from Sample directory, if present.

Follow the usual firmware update procedure and reboot.

Create the directory KORG/hacktribe/Sample on the SD card.

Export all samples and reboot again.

Edit any existing e2sSample.all files to start at slot >=501 to prevent memory errors.


Factory Samples

Add factory samples from e2 sampler

Install factory sampler firmware to sampler hardware (black or red).

Boot without an SD card.

Insert SD card and export all samples.

Use a computer to edit the e2sSample.all file so the first sample is in slot 501.

Install hacktribe, boot and import edited e2sSample.all.


Get factory samples from e2 synth

See Dump-Synth-PCM-Samples and #77.

Clone this wiki locally