FS#50218 - [stlink] missing udev rule for stlinkv2-1

Attached to Project: Community Packages
Opened by Romain Reignier (rreignier) - Sunday, 31 July 2016, 19:32 GMT
Last edited by Anatol Pomozov (anatolik) - Tuesday, 02 August 2016, 12:29 GMT
Task Type Feature Request
Category Packages
Status Closed
Assigned To Anatol Pomozov (anatolik)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
There is a missing line in the PKGBUILD of the stlink package to add a udev rule for the stlinkv2-1 (found in ST Nucleo boards).
This udev rule is provided as a file in the stlink source files like the others for stlinkv1 and stlinkv2.

Additional info:
The udev rules for the stlinkv1 and stlinkv2 are in place here: https://git.archlinux.org/svntogit/community.git/tree/trunk/PKGBUILD?h=packages/stlink#n29 so a new line should be added to support the stlinkv2-1:

install -Dm644 49-stlinkv2-1.rules "$pkgdir"/usr/lib/udev/rules.d/49-stlinkv2-1.rules

The needed file is present in the source file of the version 1.2.0 of stlink:
The udev rules for the stlinkv1 and stlinkv2 are in place here: https://git.archlinux.org/svntogit/community.git/tree/trunk/PKGBUILD?h=packages/stlink#n29

Steps to reproduce:
Try to flash a Nucleo board without sudo and you will get a segmentation fault:

$ st-flash write blink.bin 0x8000000
This task depends upon

Closed by  Anatol Pomozov (anatolik)
Tuesday, 02 August 2016, 12:29 GMT
Reason for closing:  Fixed
Additional comments about closing:  stlink-1.2.0-2
Comment by Romain Reignier (rreignier) - Sunday, 31 July 2016, 19:34 GMT
Oh, I did a Copy/Paste mistake.
Replace the second occurrence of:

"The udev rules for the stlinkv1 and stlinkv2 are in place here: https://git.archlinux.org/svntogit/community.git/tree/trunk/PKGBUILD?h=packages/stlink#n29"

with this link:

https://github.com/texane/stlink/blob/62fa371b421ce929b216a2265931f9c1546d1a69/49-stlinkv2-1.rules

Thanks

Loading...