trustcrypto / OnlyKey-Firmware

The OnlyKey Firmware runs on the OnlyKey itself and provides the core functionality of OnlyKey.
https://docs.crp.to/firmware.html
219 stars 41 forks source link

compiling the firmware #59

Open jpathy opened 7 years ago

jpathy commented 7 years ago

Here are some instructions to compile the firmware. Feel free to add it to wiki.

Steps to compile firmware

aveao commented 6 years ago

Can confirm that this works for beta 6.

Keep in mind that if you comment out / uncomment defines in the main ino file, you'll also need to do the same changes in the onlykey library (in its onlykey.h file) from libraries repo.

nkichukov commented 4 years ago

It would be great to get official instructions on compiling added into the README/wiki.

bmatusiak commented 4 years ago

I have this currently working on Ubuntu 20.04

I do Recommend following along with the script by copy/paste, instead of directly running it

https://gist.github.com/bmatusiak/515ae18016b20726da4960591f76baf7


this script/process still requires this part, i think

the script does open the usb_keyboard.h file in gedit for your convenience


Pretender1988 commented 4 years ago

Hi together, I just tried it as descript and got errors. Is the Arduino version 1.6.5 still required? with Arduino version 1.6.5 I can not install the Teensyduino libs.

Maybe I just have not seen the actual manual to do that. If you guys could help that would be awesome :)

matcastellan commented 2 years ago

I was able to compile on Windows using the information above - however, the Teensy loader which appears will not provide the option to load the firmware onto the device, regardless of whether it's in config mode. Trying to load the hex file in the OnlyKey app gives "Error: Firmware block size too large".

From what I can tell searching the internet, it seems like there was a hardware revision for the OnlyKey. Is it still possible to load self-compiled firmware onto the device? And if so, how?

bmatusiak commented 2 years ago

I was able to compile on Windows using the information above - however, the Teensy loader which appears will not provide the option to load the firmware onto the device, regardless of whether it's in config mode. Trying to load the hex file in the OnlyKey app gives "Error: Firmware block size too large".

From what I can tell searching the internet, it seems like there was a hardware revision for the OnlyKey. Is it still possible to load self-compiled firmware onto the device? And if so, how?

Flashing of CUSTOM/self-Compiled firmware is DISABLED on 'Production' hardware. This increases security, for example ,the webcrypt app is restricted and can only be hosted from domain "apps.crp.to" self-compiled firmware is proven to break features like this. And is why it will never be enabled, This will keep encryption security enforced for all users.

HOWEVER: I did create a DOCKER environment to build the firmware for DEVELOPER Hardware, found here https://github.com/onlykey/arduino-1.6.5-r5-teensy_127

kalbasit commented 2 years ago

@bmatusiak where can I get my hands on developer hardware? I want to add Colemak Keyboard Layout support and test it.

bmatusiak commented 2 years ago

@bmatusiak where can I get my hands on developer hardware? I want to add Colemak Keyboard Layout support and test it.

@onlykey (tim) may not have any available at this time. because there is a new hardware version being shipped out in a few months

Tymek commented 1 year ago

@bmatusiak is this situation persisting? I'd like to contribute a keyboard layout and additional customization options for OnlyKey Duo if possible. How can I acquire development hardware?

jbmln commented 11 months ago

Is this ongoing? i'd like to do some work on adding ed448.

Kulturnilpferd commented 10 months ago

I'm also bought one and want to code and modify, would be awesome if it would work. Sadly I am stuck with compiler errors maybe a quick guide update would help <3