Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 710588 - dev-embedded/arduino-1.8.5 Upload sketch fails with kernel <=5.5.6
Summary: dev-embedded/arduino-1.8.5 Upload sketch fails with kernel <=5.5.6
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Embedded Gentoo Team
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2020-02-23 16:40 UTC by Martin Zwicknagl
Modified: 2020-02-28 21:07 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch for gentoo-sources-5.5.5 to get Arduino working again (ch341.patch,492 bytes, patch)
2020-02-23 16:46 UTC, Martin Zwicknagl
Details | Diff
Error-Message from uploading to an arduino uno (arduino-error.log,3.40 KB, text/x-log)
2020-02-23 16:48 UTC, Martin Zwicknagl
Details

Note You need to log in before you can comment on or make changes to this bug.
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