Package Details: picotool 2.0.0-3

Git Clone URL: https://aur.archlinux.org/picotool.git (read-only, click to copy)
Package Base: picotool
Description: Tool for inspecting RP2040 binaries and interacting with RP2040 devices.
Upstream URL: https://github.com/raspberrypi/picotool
Licenses: BSD-3-Clause
Submitter: Sematre
Maintainer: Sematre
Last Packager: Sematre
Votes: 6
Popularity: 0.096402
First Submitted: 2021-07-20 17:45 (UTC)
Last Updated: 2024-10-10 20:57 (UTC)

Required by (0)

Sources (2)

Latest Comments

1 2 Next › Last »

Sematre commented on 2024-10-10 20:59 (UTC)

Thanks for your contribution. I implemented your suggested changes and released an update.

kalj commented on 2024-10-09 05:19 (UTC)

The pico-sdk looks for picotool using Findpicotool.cmake, which doesn't find it unless the cmake configuration files are installed along with picotool. This patch enables installing those files as well:

From a4fa62ad5af9a0bd491d5ea2f980eeaeb6d62160 Mon Sep 17 00:00:00 2001
From: Karl Ljungkvist <k.ljungkvist@gmail.com>
Date: Wed, 9 Oct 2024 07:15:09 +0200
Subject: [PATCH] Install more files

---
 PKGBUILD | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/PKGBUILD b/PKGBUILD
index 2e7d154..82e40f0 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -28,13 +28,13 @@ build() {
    fi

    cd "${srcdir}"
-   cmake -B build -S "${pkgname}-${pkgver}"
+   cmake -B build -S "${pkgname}-${pkgver}" -DCMAKE_INSTALL_PREFIX=/usr
    cmake --build build
 }

 package() {
-   # Install application
-   install -Dm755 "${srcdir}/build/picotool" -t "${pkgdir}/usr/bin/"
+   # Install application etc
+   DESTDIR="$pkgdir" cmake --install build

    # Install udev rules
    install -Dm644 "${srcdir}/70-picotool.rules" -t "${pkgdir}/usr/lib/udev/rules.d/"
-- 
2.47.0

Sematre commented on 2024-08-11 16:25 (UTC)

Thanks for your contribution. I have not yet received my Pico 2 and missed the bug.

sammko commented on 2024-08-11 15:34 (UTC)

Please consider adding udev rules for the RP2350:

SUBSYSTEMS=="usb", ATTRS{idVendor}=="2e8a", ATTRS{idProduct}=="000f", MODE="0660", TAG+="uaccess"
SUBSYSTEMS=="usb", ATTRS{idVendor}=="2e8a", ATTRS{idProduct}=="0009", MODE="0660", TAG+="uaccess"

Sematre commented on 2023-09-27 11:45 (UTC)

Thanks for the input. I implemented the changes according to the ArchWiki.

1ridic commented on 2023-09-27 05:14 (UTC) (edited on 2023-09-27 05:20 (UTC) by 1ridic)

Udev rules provided by the package should be placed at /lib/udev/rules.d/. In addition, The sequence number of the rule needs to be changed from 99 to less than 70, because uaccess is processed at 70.

ceres-c commented on 2023-06-10 15:34 (UTC)

Instead of using the upstream udev rules, consider adding a rule file with these lines

SUBSYSTEMS=="usb", ATTRS{idVendor}=="2e8a", ATTRS{idProduct}=="0003", MODE="0660", TAG+="uaccess"
SUBSYSTEMS=="usb", ATTRS{idVendor}=="2e8a", ATTRS{idProduct}=="000a", MODE="0660", TAG+="uaccess"

plugdev is frowned upon: https://wiki.archlinux.org/title/Udev#Allowing_regular_users_to_use_devices

Freakness109 commented on 2023-03-19 13:59 (UTC)

Would you mind changing the PKGBUILD to work with all CMake generators?

diff --git a/PKGBUILD b/PKGBUILD
index 2104b7b..fe92d54 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -22,7 +22,7 @@ build() {

        cd "${srcdir}/${pkgname}-${pkgver}"
        cmake -B build
-       make -C build
+       cmake --build build
 }

 package() {

Thanks!

auguzanellato commented on 2023-03-17 11:11 (UTC)

As of 1.1.1 udev rules are shipped with picotool sources. It would be nice to package those in the PKGBUILD.

Polly commented on 2022-08-29 23:03 (UTC)

I thought that, too. My somewhat newly installed Manjaro hadn’t had it installed for some reason and I found no info if pgkconf should be a dep anywhere or not. Found it is for some packages but not for others. Thanks anyway :-)