Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 710588

Summary: dev-embedded/arduino-1.8.5 Upload sketch fails with kernel <=5.5.6
Product: Gentoo Linux Reporter: Martin Zwicknagl <martin.zwicknagl>
Component: Current packagesAssignee: Embedded Gentoo Team <embedded>
Status: RESOLVED OBSOLETE    
Severity: normal CC: jstein
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Patch for gentoo-sources-5.5.5 to get Arduino working again
Error-Message from uploading to an arduino uno

Description Martin Zwicknagl 2020-02-23 16:40:22 UTC
Uploading a sketch in the arduino IDE does not work with kernel 5.5.x

Reproducible: Always

Steps to Reproduce:
1. Start Arduino IDE
2. select sketch to upload
 

Actual Results:  
Upload fails with:

avrdude: stk500_getparm(): (a) protocol error, expect=0x14

Expected Results:  
Upload success
Comment 1 Martin Zwicknagl 2020-02-23 16:43:51 UTC
This is a known bug see:

https://bugs.archlinux.org/task/65368

By patching ch341.c in the gentoo-sources-5.5.5 the problem is resolved see:

https://www.spinics.net/lists/linux-usb/msg190759.html

See my next post for a patch of the gentoo-sources
Comment 2 Martin Zwicknagl 2020-02-23 16:46:26 UTC
Created attachment 615350 [details, diff]
Patch for gentoo-sources-5.5.5 to get Arduino working again

Place the patch in
/etc/portage/patches/sys-kernel/gentoo-sources-5.5.5/ch341.patch

and re-emerge gentoo-sources, compile and install the kernel.
Then you can upload sketches to the arduino-uno again
Comment 3 Martin Zwicknagl 2020-02-23 16:48:06 UTC
Created attachment 615352 [details]
Error-Message from uploading to an arduino uno
Comment 4 Martin Zwicknagl 2020-02-28 21:06:40 UTC
bug is fixed in gentoo-kernel-5.5.7

can be closed