-
Notifications
You must be signed in to change notification settings - Fork 415
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
introduce support for Royal Kludge RK61 non-hotswap rgb edition (PID 0x24F) #252
introduce support for Royal Kludge RK61 non-hotswap rgb edition (PID 0x24F) #252
Conversation
…0x24F) This is improved version of euwbah (see https://github.com/euwbah/qmk_firmware/tree/sn32/keyboards/royal_kludge/rk61_rgb): - better organized directory structure - add support for ISO layout - implement a keymap, which supports Neo Layout (https://www.neo-layout.org/) layers 3 and 4
use `_______` instead of `KC_TRNS` to improve readability
for bootloader
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My little brother owns RK61 so I just made a little suggestion to the keymap (will update if I get to know more about RK61). I also included some comments and heads-up for some, you're free to decline those or accept.
…oot Keyboard protocol switching Co-authored-by: vjdato21 <[email protected]>
Co-authored-by: vjdato21 <[email protected]>
Co-authored-by: vjdato21 <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
![HW bootloader](imgs/enter-bootloader.jpg) | ||
After shorting, just connect the USB cable. The keyboard started in bootloader mode and is ready to be flashed. | ||
- Layout (after loading QMK): FN + CapsLock | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe try adding Sonix flasher as an easy way to get into bootloader.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As far as i know the Sonix flasher does not currently support the RK61. We need implement it first in Sonix flasher repo. (This is not a big deal, i hope). I'll look into it.
But we need testing to ensure, that the bootloader can be entered with the aid of Sonix flasher.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As far as i know the Sonix flasher does not currently support the RK61. We need implement it first in Sonix flasher repo. (This is not a big deal, i hope). I'll look into it.
But we need testing to ensure, that the bootloader can be entered with the aid of Sonix flasher.
It kinda does, RK uses HFD, and by that, the keyboard gets put into bootloader. Currently, Sonix flasher supports putting into bootloader for HFD and eVision Sonix clone chips. By the way, if QMK gets installed in the keyboard, and you put it into bootloader, it will still get detected by Sonix flasher.
P.S.
Tested Sonix flasher on my end, it works for my little brother's keyboard. (at least for the bootloader part). I haven't tested flashing though; I will update you once I've tested it.
P.P.S.S.
Tested Sonix flasher for putting keyboard into bootloader and flashing. It works fine.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe try adding Sonix flasher as an easy way to get into bootloader.
I have just completed the documentation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As far as i know the Sonix flasher does not currently support the RK61.
Actually it is supported. But it is detected as "Apple Keyboard / Keychron / Flashquark Horizon Z" if the original firmware is installed. If the QMK is installed, then it will not be detected.
We need implement it first in Sonix flasher repo. (This is not a big deal, i hope). I'll look into it.
The following patch need to be applied to Sonix flasher to add support for RK61.
diff --git a/src/main/python/main.py b/src/main/python/main.py
index 586a7e3..288e137 100644
--- a/src/main/python/main.py
+++ b/src/main/python/main.py
@@ -41,6 +41,7 @@ DEVICE_DESC = {
(0x0c45, 0x766b): "Kemove",
(0x0c45, 0x7698): "Womier",
(0x320f, 0x5013): "Akko",
+ (0x0c45, 0x024f): "Royal Kludge RK61 RGB",
(0x0c45, 0x5004): "Redragon",
(0x0c45, 0x5104): "Redragon",
(0x0C45, 0x8513): "Sharkoon",
Should I create a PR for this?
Actually I'm not sure which VENDOR_ID
and PRODUCT_ID
need to be used for QMK. Are there any rules or guidelines?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As far as i know the Sonix flasher does not currently support the RK61.
Actually it is supported. But it is detected as "Apple Keyboard / Keychron / Flashquark Horizon Z" if the original firmware is installed. If the QMK is installed, then it will not be detected.
We need implement it first in Sonix flasher repo. (This is not a big deal, i hope). I'll look into it.
The following patch need to be applied to Sonix flasher to add support for RK61.
diff --git a/src/main/python/main.py b/src/main/python/main.py index 586a7e3..288e137 100644 --- a/src/main/python/main.py +++ b/src/main/python/main.py @@ -41,6 +41,7 @@ DEVICE_DESC = { (0x0c45, 0x766b): "Kemove", (0x0c45, 0x7698): "Womier", (0x320f, 0x5013): "Akko", + (0x0c45, 0x024f): "Royal Kludge RK61 RGB", (0x0c45, 0x5004): "Redragon", (0x0c45, 0x5104): "Redragon", (0x0C45, 0x8513): "Sharkoon",Should I create a PR for this?
Actually I'm not sure which
VENDOR_ID
andPRODUCT_ID
need to be used for QMK. Are there any rules or guidelines?
You don't have to make a patch for Sonix Flasher though you can if you want to. Anyway, regarding the VID
and PID
, only the Keychron has guidelines around that. You can copy the stock firmware's PID
and VID
, provided that they don't mimic the Apple keyboard.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Anyway, regarding the
VID
andPID
, only the Keychron has guidelines around that.
Could you provide me an info link, please?
You can copy the stock firmware's
PID
andVID
, provided that they don't mimic the Apple keyboard.
But for RK61 RGB, that is just the case. Original firmware masquerades as an Apple keyboard (05ac:024f). So, it is probably not an option just to use the original PID
and VID
. So, we need change it. But the values currently used (0c45:024f) are unknown for the Sonix Flasher. So, after first flash (from original firmware to self compiled QMK), the second flash will not be possible with the Sonix Flasher, because the keyboard (0c45:024f) will not be identified. It is necessary to manually switch the keyboard into bootloader first, then it will be recognized (0c45:7040) and can be flashed. Is it so for other keyboards too?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you provide me an info link, please?
Refer to #152
But for RK61 RGB, that is just the case. Original firmware masquerades as an Apple keyboard (05ac:024f). So, it is probably not an option just to use the original PID and VID. So, we need change it. But the values currently used (0c45:024f) are unknown for the Sonix Flasher. So, after first flash (from original firmware to self compiled QMK), the second flash will not be possible with the Sonix Flasher, because the keyboard (0c45:024f) will not be identified. It is necessary to manually switch the keyboard into bootloader first, then it will be recognized (0c45:7040) and can be flashed. Is it so for other keyboards too?
If RK61 RGB doesn't mimic Apple Keyboard's PID
and VID
, then you don't have to change it. To address your next question too, Sonix Flasher cannot put the keyboard anyway to bootloader mode when you have already flashed QMK, so that's fine.
Co-authored-by: vjdato21 <[email protected]>
I can't reproduce this compiling issue. But i could find some tips on reddit, which hopefully can help. |
Hmm... What are you using when you're compiling the firmware? |
I have installed the Arch Linux `qmk` package and compile the keymap by running
```sh
qmk compile -k royal_kludge/rk61/rgb -m default
```
something like this...
|
Hmm... I'm using QMK MSYS and I've tried |
Sorry, it was really a problem with ´keymap.h´ (this name seems to conflict with the system one), so I have renamed the file to ´layout.h´. Now your compile problem should be fixed. |
Yep, it compiled now. It's kinda weird that yours doesn't complain about it. |
I'm looking right now for a plate file for RK61. This will be useful for making the |
Update: |
fix `RMODS_KEYMAP_` definition ('}' was used instead of ')')
on english language support layer
…r-royal_kludge-rk61-rgb
to functional layer
any updates? |
Thank you for your contribution! |
Thank you for your contribution! |
This is improved version of euwbah (see https://github.com/euwbah/qmk_firmware/tree/sn32/keyboards/royal_kludge/rk61_rgb):
Description
Types of Changes
Checklist