r/Keychron • u/Child_Of_Abyss • Nov 05 '24
How long does a firmware update take? I have been waiting for over 10 minutes.
So I just got my first and brand new Keychron V1 MAX. Unfortunately the firmware update I started from the Keychron launcher seems to have freaked out and it wont finish, just keeps loading? It wouldnt possibly take over 10 minutes to update right?
Using Gentoo Linux if that matters.
Anyone had a similar experience? Is it salvagable?
EDIT: It seems like privileges issue with udev rules. Main issue seems to be the fact that the STM controller address is randomized so the udev rule for the original address of the keyboard wont work on it. Trying to figure it out.
EDIT 2: Even with udev rules for the STM, it wont let me use the device:
What else could prevent me from having access?
EDIT 3: Success! I was confused with udev rules. So basically:
Setting V1 Max Vendor and product ID is not enough. You need the STM ID as well. After consulting with chatgpt, following worked:
SUBSYSTEM=="usb", ATTR{idVendor}=="0483", ATTR{idProduct}=="df11", MODE="0666", GROUP="users"
After this, and making sure you are part of the users group AND have the V1 Max vendor+product ID also in udev rules, you can flash the firmware successfully.
2
u/MBSMD Nov 05 '24
Should take a minute or less.
1
u/PeterMortensenBlog V Nov 05 '24 edited Dec 04 '24
Re "the STM controller address is randomized": That doesn't sound plausible. Can you elaborate? Including, but not restricted to, an example
What address? The internal microcontroller flash memory address (0x08000000) has nothing to do with Linux. It is internal to the microcontroller.
The USB vendor ID and USB product ID are usually constants, 3434 and 0914 (both hexadecimal), respectively (unless forcibly changed in the firmware, at compile time).
References
1
u/PeterMortensenBlog V Nov 05 '24 edited Nov 05 '24
It would be interesting to know if the problem can be isolated to a local problem, or to the Via clone.
This problem has only been reported for the Via clone (though it could be caused by a local problem, e.g., the unreliability of the flashing process, and, for example, the Via clone is not very good at handling such failures).
Note that the space bar method (without the repowering) is necessary if the keyboard becomes inoperable (temporarily bricked).
1
u/TheMyster1ousOne May 22 '25
Dude, thank you so much for the udev rule! This let me flash the firmware. You're a lifesaver
1
u/PeterMortensenBlog V Nov 05 '24 edited Nov 14 '24
Re "How long does a firmware update take?": If all is well, about 20 seconds. Maximum 30 seconds.
It is only about 70 KB to be flashed (using 7CBA26):
Result:
Though the .bin file takes up about 95 KB (about 50% more):
Conclusion
The projected time for the V1 Max is about 18 seconds (presuming it is limited by the actual flashing).