Package Details: rkdeveloptool-git 1:1.32.r69.46bb4c0-1

Git Clone URL: https://aur.archlinux.org/rkdeveloptool-git.git (read-only, click to copy)
Package Base: rkdeveloptool-git
Description: The firmware upgrade tool for Rockchip SoC, consider to be a opensource version of upgrade_tool
Upstream URL: https://github.com/rockchip-linux/rkdeveloptool
Keywords: Rockchip rockusb SoC
Licenses: GPL-2.0-only
Conflicts: rkdeveloptool
Provides: rkdeveloptool
Submitter: yjun
Maintainer: yjun
Last Packager: yjun
Votes: 7
Popularity: 0.38
First Submitted: 2021-08-04 13:29 (UTC)
Last Updated: 2025-02-27 15:47 (UTC)

Dependencies (2)

Required by (2)

Sources (1)

Latest Comments

yjun commented on 2025-02-28 15:41 (UTC) (edited on 2025-02-28 15:43 (UTC) by yjun)

@fengch Could you paste the content of the /etc/makepkg.conf? I think it's because the makepkg.conf hasn't been updated to the latest.

Or you can try uncommenting this line.

https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=rkdeveloptool-git#n28

fengch commented on 2025-02-28 02:43 (UTC) (edited on 2025-02-28 02:43 (UTC) by fengch)

main.cpp: In function ‘bool _Z9mergeBootv.part.0()’:
main.cpp:1493:43: error: ‘%s’ directive output may be truncated writing up to 557 bytes into a region of size 5 [-Werror=format-truncation=]
 1493 |         snprintf(buffer, sizeof(buffer), "%s", chip);
      |                                           ^~
......
 1534 |                 chipType = convertChipType(chip + 2);
      |                            ~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/stdio.h:970,
                 from DefineHeader.h:3,
                 from main.cpp:11:
In function ‘int snprintf(char*, size_t, const char*, ...)’,
    inlined from ‘uint32_t convertChipType(const char*)’ at main.cpp:1493:10,
    inlined from ‘uint32_t getChipType(const char*)’ at main.cpp:1534:29,
    inlined from ‘void getBoothdr(rk_boot_header*)’ at main.cpp:1552:29,
    inlined from ‘bool _Z9mergeBootv.part.0()’ at main.cpp:1620:12:
/usr/include/bits/stdio2.h:68:35: note: ‘__builtin_snprintf’ output between 1 and 558 bytes into a destination of size 5
   68 |   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
      |          ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   69 |                                    __glibc_objsize (__s), __fmt,
      |                                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   70 |                                    __va_arg_pack ());
      |                                    ~~~~~~~~~~~~~~~~~
cc1plus: all warnings being treated as errors
make[1]: *** [Makefile:497: main.o] Error 1

crab2313 commented on 2022-04-02 09:51 (UTC)

@albertlv

automake and pkgconf are two implicit build dependencies since they are in the base-devel package group.

albertlv commented on 2022-04-02 06:38 (UTC)

need:

automake pkgconf

yjun commented on 2021-08-03 05:34 (UTC) (edited on 2021-08-03 05:39 (UTC) by yjun)

  • aarch64 support

plz add aarch64 architecture support, I have test this package on My Arch Linux ARM board, It works fine.

  • wrong path of udev rule file in package

[https://wiki.archlinux.org/title/Udev#About_udev_rules]

udev rules written by the **administrator** go in /etc/udev/rules.d/, their file name has to end with .rules. The udev rules shipped with various **packages** are found in /usr/lib/udev/rules.d/.

  • remove rkdeveloptool.install

After change the path of udev rule file, It's ok to remove rkdeveloptool.install, sine the pacman hook(/usr/share/libalpm/hooks/30-systemd-udev-reload.hook) will be
trigger to execute udev reload.

diff:

diff --git a/PKGBUILD b/PKGBUILD
index 843dc3a..d90103b 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,10 +1,10 @@
 # Maintainer: crab2313 <crab2313@gmail.com>

 pkgname=rkdeveloptool
-pkgver=66
+pkgver=69
 pkgrel=1
 pkgdesc='Development tool for Rockchip SOC'
-arch=('x86_64')
+arch=('x86_64' 'aarch64')
 url='https://github.com/rockchip-linux/rkdeveloptool'
 license=('GPL2')
 makedepends=('autoconf'
@@ -13,7 +13,7 @@ depends=('libusb')
 source=('git+https://github.com/rockchip-linux/rkdeveloptool.git')
 sha256sums=('SKIP')

-install=$pkgname.install
+# install=$pkgname.install

 pkgver() {
        cd "$srcdir/$pkgname"
@@ -31,8 +31,7 @@ build() {
 package() {
        cd "$srcdir/$pkgname"
     make DESTDIR=$pkgdir install
-       mkdir -p "$pkgdir/etc/udev/rules.d/"
-       install -m644 99-rk-rockusb.rules "$pkgdir/etc/udev/rules.d/"
+       install -Dm644 99-rk-rockusb.rules -t "$pkgdir/usr/lib/udev/rules.d/"
 }

 # vim: set sw=4 ts=4 noet:
diff --git a/rkdeveloptool.install b/rkdeveloptool.install
deleted file mode 100644
index 3cb79e9..0000000
--- a/rkdeveloptool.install
+++ /dev/null
@@ -1,4 +0,0 @@
-post_install () {
-    udevadm control --reload
-    udevadm trigger
-}

crab2313 commented on 2018-11-27 05:46 (UTC)

@American_Jesus fixed, thank you.

American_Jesus commented on 2018-10-27 17:23 (UTC)

/tmp/alpm_78fIJq/.INSTALL: line 2: udevadmin: command not found
/tmp/alpm_78fIJq/.INSTALL: line 3: udevadmin: command not found

Use udevadm instead