keyboardio / Kaleidoscope

Firmware for Keyboardio keyboards and other keyboards with AVR or ARM MCUs.
http://keyboard.io
GNU General Public License v3.0
757 stars 259 forks source link

Model 100 Arduino bundle requires a too-new glibc for dfu-util #1294

Open cxw42 opened 1 year ago

cxw42 commented 1 year ago

Describe the bug

On Ubuntu 20.04 with Kaleidoscope Keyboards (GD32) v1.99.7, when trying to flash using the Arduino IDE, I get an error that dfu-util can't run. My system glibc is 2.31, and dfu-util 0.11.0-arduino3 requires glibc 2.34. I can overcome that error by replacing the provided dfu-util with one built from source. Thanks in advance for your help!

To Reproduce

  1. Download Arduino 1.8.19 tarball from https://www.arduino.cc/en/software
  2. Untar it
  3. Run cd arduino-1.8.19 && ./install.sh.
  4. Run the IDE
  5. File | Preferences, and add https://raw.githubusercontent.com/keyboardio/boardsmanager/master/package_keyboardio_index.json as an additional board manager URL (ref.)
  6. Tools | Board | Board manager
  7. Search for Keyboardio
  8. Install the Kaleidoscope Keyboards (GD32) bundle (takes a while)
  9. In the IDE, Tools | Board | Kaleidoscope Keyboards (2021+) | Keyboardio Model 100
  10. In the IDE, File | Examples | Kaleidoscope | Devices | Keyboardio | Model 100
  11. In the IDE, Sketch | Verify/Compile
  12. Unplug the Model100, then hold Prog and plug it back in.  Prog should light steady red.
  13. In the IDE, Sketch | Upload

Observed behavior Error that dfu-util can't run because it needs GLIBC 2.34

Expected behavior It flashes

Desktop (please complete the following information):

Notes May relate to keyboardio/Chrysalis#885.

obra commented 1 year ago

(We should upstream this issue to Arduino)On Oct 23, 2022, at 12:22 PM, Chris White @.***> wrote: Describe the bug May relate to keyboardio/Chrysalis#885. On Ubuntu 20.04 with Kaleidoscope Keyboards (GD32) v1.99.7, when trying to flash using the Arduino IDE, I get an error that dfu-util can't run. My system glibc is 2.31, and dfu-util 0.11.0-arduino3 requires glibc 2.34. I can overcome that error by replacing the provided dfu-util with one built from source. Thanks in advance for your help! To Reproduce

Download Arduino 1.8.19 tarball from https://www.arduino.cc/en/software Untar it Run cd arduino-1.8.19 && ./install.sh. Run the IDE File | Preferences, and add https://raw.githubusercontent.com/keyboardio/boardsmanager/master/package_keyboardio_index.json as an additional board manager URL (ref.) Tools | Board | Board manager Search for Keyboardio Install the Kaleidoscope Keyboards (GD32) bundle (takes a while) In the IDE, Tools | Board | Kaleidoscope Keyboards (2021+) | Keyboardio Model 100 In the IDE, File | Examples | Kaleidoscope | Devices | Keyboardio | Model 100 In the IDE, Sketch | Verify/Compile Unplug the Model100, then hold Prog and plug it back in.  Prog should light steady red. In the IDE, Sketch | Upload

Observed behavior Error that dfu-util can't run because it needs GLIBC 2.34 Expected behavior It flashes Desktop (please complete the following information):

OS: Ubuntu 20.04 x64 Chrysalis Version: 0.11.8 (NOTE: the keyboard does flash with Chrysalis Arduino version: 1.8.19

Notes May relate to keyboardio/Chrysalis#885.

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: @.***>

tlyu commented 1 year ago

We might want to check whether Arduino has an OS support policy that includes Ubuntu 20.04 before we try to upstream the bug.

obra commented 1 year ago

To the best of my knowledge, they don't have any explicit Linux versioning policy. (Although given that they're still offering 32 bit builds for the traditional IDE..I've got to believe they're trying to support a wide range of hardware.)

On Sun, Oct 23, 2022 at 6:47 PM Taylor Yu @.***> wrote:

We might want to check whether Arduino has an OS support policy that includes Ubuntu 20.04 before we try to upstream the bug.

— Reply to this email directly, view it on GitHub https://github.com/keyboardio/Kaleidoscope/issues/1294#issuecomment-1288297394, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAALC2EQUDSJUWFY7TPKXRTWEXTEDANCNFSM6AAAAAARMNXORI . You are receiving this because you commented.Message ID: @.***>