导航

    全志在线开发者论坛

    • 注册
    • 登录
    • 搜索
    • 版块
    • 话题
    • 在线文档
    • 社区主页
    1. 主页
    2. taotieren
    • 资料
    • 关注 0
    • 粉丝 0
    • 我的积分 481
    • 主题 2
    • 帖子 10
    • 最佳 1
    • 群组 0

    taotierenLV 3

    @taotieren

    481
    积分
    1
    声望
    2
    资料浏览
    10
    帖子
    0
    粉丝
    0
    关注
    注册时间 最后登录

    taotieren 取消关注 关注

    taotieren 发布的最佳帖子

    • Arch Linux 下使用 xfel 调试

      打包到 AUR 仓库的 xfel-git
      PKGBUILD

      # Maintainer: taotieren <admin@taotieren.com>
      
      pkgname=xfel-git
      pkgver=b2b4856
      pkgrel=1
      pkgdesc="Tiny FEL tools for allwinner SOC, support RISC-V D1 chip."
      arch=('any')
      url="https://github.com/xboot/xfel"
      license=('MIT')
      provides=(${pkgname})
      conflicts=(${pkgname} ${pkgname%-git})
      #replaces=(${pkgname})
      depends=('libusb')
      makedepends=('git')
      backup=()
      options=('!strip')
      #install=${pkgname}.install
      source=("${pkgname%-git}::git+${url}.git")
      sha256sums=('SKIP')
      
      pkgver() {
          cd "${srcdir}/${pkgname%-git}"
          git describe --always | sed 's|-|.|g'
      }
      
      build() {
          cd "${srcdir}/${pkgname%-git}"
          make
      }
      
      package() {
          install -Dm755 "${srcdir}/${pkgname%-git}/${pkgname%-git}" "${pkgdir}/usr/bin/${pkgname%-git}"
          install -Dm644 "${srcdir}/${pkgname%-git}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname%-git}/LICENSE"
      }
      
      

      打包到 AUR 仓库的 xfel
      PKGBUILD

      # Maintainer: taotieren <admin@taotieren.com>
      
      pkgname=xfel
      pkgver=1.0.1
      pkgrel=1
      pkgdesc="Tiny FEL tools for allwinner SOC, support RISC-V D1 chip."
      arch=('any')
      url="https://github.com/xboot/xfel"
      license=('MIT')
      provides=(${pkgname})
      conflicts=(${pkgname} ${pkgname}-git)
      #replaces=(${pkgname})
      depends=('libusb')
      makedepends=()
      backup=()
      options=('!strip')
      #install=${pkgname}.install
      source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/v${pkgver}.tar.gz")
      sha256sums=('85b8f1fe6a58149c9eb5c270e279f0dbedb882a349799a70105e4e415182aa9a')
      
      build() {
          cd "${srcdir}/${pkgname}-${pkgver}"
          make
      }
      
      package() {
          install -Dm755 "${srcdir}/${pkgname}-${pkgver}/${pkgname}" "${pkgdir}/usr/bin/${pkgname}"
          install -Dm644 "${srcdir}/${pkgname}-${pkgver}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
      }
      

      xfel 功能

      xfel 
      xfel(v1.0.1) - https://github.com/xboot/xfel
      usage:
          xfel help                                   - Print this usage
          xfel version                                - Show brom version
          xfel hexdump <address> <length>             - Dumps memory region in hex
          xfel dump <address> <length>                - Binary memory dump to stdout
          xfel exec <address>                         - Call function address
          xfel read32 <address>                       - Read 32-bits value from device memory
          xfel write32 <address> <value>              - Write 32-bits value to device memory
          xfel read <address> <length> <file>         - Read memory to file
          xfel write <address> <file>                 - Write file to memory
          xfel reset                                  - Reset device using watchdog
          xfel sid                                    - Show 128-bits sid information
          xfel jtag                                   - Enable jtag debug
          xfel ddr [type]                             - Initial ddr controller with optional type
          xfel spinor                                 - Detect spi nor flash
          xfel spinor read <address> <length> <file>  - Read spi nor flash to file
          xfel spinor write <address> <file>          - Write file to spi nor flash
          xfel spinand                                - Detect spi nand flash
          xfel spinand read <address> <length> <file> - Read spi nand flash to file
          xfel spinand write <address> <file>         - Write file to spi nand flash
      
      

      Arch Linux 可以通过 yay -S xfel 安装 xfel 软件

      发布在 Linux
      taotieren
      taotieren

    taotieren 发布的最新帖子

    • 回复: 【开源】YuzukiZero R329-N4 开发板更新记录

      看界面有点像使用 KiCad 制作,开源仓库在哪呢?

      发布在 A Series
      taotieren
      taotieren
    • 回复: livesuit编译awusb报错

      可以参考 AUR 那边我打的包
      里面使用了第三方修改后的包

      发布在 编译和烧写问题专区
      taotieren
      taotieren
    • 回复: 基于D1s的WhycanPI-0A,aw-ol满100分免费送

      预订一个。🤙 🤙 🤙 🤙

      发布在 MR Series
      taotieren
      taotieren
    • Arch Linux 下使用 xfel 调试

      打包到 AUR 仓库的 xfel-git
      PKGBUILD

      # Maintainer: taotieren <admin@taotieren.com>
      
      pkgname=xfel-git
      pkgver=b2b4856
      pkgrel=1
      pkgdesc="Tiny FEL tools for allwinner SOC, support RISC-V D1 chip."
      arch=('any')
      url="https://github.com/xboot/xfel"
      license=('MIT')
      provides=(${pkgname})
      conflicts=(${pkgname} ${pkgname%-git})
      #replaces=(${pkgname})
      depends=('libusb')
      makedepends=('git')
      backup=()
      options=('!strip')
      #install=${pkgname}.install
      source=("${pkgname%-git}::git+${url}.git")
      sha256sums=('SKIP')
      
      pkgver() {
          cd "${srcdir}/${pkgname%-git}"
          git describe --always | sed 's|-|.|g'
      }
      
      build() {
          cd "${srcdir}/${pkgname%-git}"
          make
      }
      
      package() {
          install -Dm755 "${srcdir}/${pkgname%-git}/${pkgname%-git}" "${pkgdir}/usr/bin/${pkgname%-git}"
          install -Dm644 "${srcdir}/${pkgname%-git}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname%-git}/LICENSE"
      }
      
      

      打包到 AUR 仓库的 xfel
      PKGBUILD

      # Maintainer: taotieren <admin@taotieren.com>
      
      pkgname=xfel
      pkgver=1.0.1
      pkgrel=1
      pkgdesc="Tiny FEL tools for allwinner SOC, support RISC-V D1 chip."
      arch=('any')
      url="https://github.com/xboot/xfel"
      license=('MIT')
      provides=(${pkgname})
      conflicts=(${pkgname} ${pkgname}-git)
      #replaces=(${pkgname})
      depends=('libusb')
      makedepends=()
      backup=()
      options=('!strip')
      #install=${pkgname}.install
      source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/v${pkgver}.tar.gz")
      sha256sums=('85b8f1fe6a58149c9eb5c270e279f0dbedb882a349799a70105e4e415182aa9a')
      
      build() {
          cd "${srcdir}/${pkgname}-${pkgver}"
          make
      }
      
      package() {
          install -Dm755 "${srcdir}/${pkgname}-${pkgver}/${pkgname}" "${pkgdir}/usr/bin/${pkgname}"
          install -Dm644 "${srcdir}/${pkgname}-${pkgver}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
      }
      

      xfel 功能

      xfel 
      xfel(v1.0.1) - https://github.com/xboot/xfel
      usage:
          xfel help                                   - Print this usage
          xfel version                                - Show brom version
          xfel hexdump <address> <length>             - Dumps memory region in hex
          xfel dump <address> <length>                - Binary memory dump to stdout
          xfel exec <address>                         - Call function address
          xfel read32 <address>                       - Read 32-bits value from device memory
          xfel write32 <address> <value>              - Write 32-bits value to device memory
          xfel read <address> <length> <file>         - Read memory to file
          xfel write <address> <file>                 - Write file to memory
          xfel reset                                  - Reset device using watchdog
          xfel sid                                    - Show 128-bits sid information
          xfel jtag                                   - Enable jtag debug
          xfel ddr [type]                             - Initial ddr controller with optional type
          xfel spinor                                 - Detect spi nor flash
          xfel spinor read <address> <length> <file>  - Read spi nor flash to file
          xfel spinor write <address> <file>          - Write file to spi nor flash
          xfel spinand                                - Detect spi nand flash
          xfel spinand read <address> <length> <file> - Read spi nand flash to file
          xfel spinand write <address> <file>         - Write file to spi nand flash
      
      

      Arch Linux 可以通过 yay -S xfel 安装 xfel 软件

      发布在 Linux
      taotieren
      taotieren
    • 回复: Arch Linux 下使用 sunxi-livesuite-git 烧录

      @tripod9 已将其打包到 AUR 仓库:
      https://aur.archlinux.org/packages/xfel/

      PKGBUILD

      # Maintainer: taotieren <admin@taotieren.com>
      
      pkgname=xfel
      pkgver=1.0.1
      pkgrel=1
      pkgdesc="Tiny FEL tools for allwinner SOC, support RISC-V D1 chip."
      arch=('any')
      url="https://github.com/xboot/xfel"
      license=('MIT')
      provides=(${pkgname})
      conflicts=(${pkgname} ${pkgname}-git)
      #replaces=(${pkgname})
      depends=('libusb')
      makedepends=()
      backup=()
      options=('!strip')
      #install=${pkgname}.install
      source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/v${pkgver}.tar.gz")
      sha256sums=('85b8f1fe6a58149c9eb5c270e279f0dbedb882a349799a70105e4e415182aa9a')
      
      build() {
          cd "${srcdir}/${pkgname}-${pkgver}"
          make
      }
      
      package() {
          install -Dm755 "${srcdir}/${pkgname}-${pkgver}/${pkgname}" "${pkgdir}/usr/bin/${pkgname}"
          install -Dm644 "${srcdir}/${pkgname}-${pkgver}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
      }
      
      

      https://aur.archlinux.org/packages/xfel-git/

      PKGBUILD

      # Maintainer: taotieren <admin@taotieren.com>
      
      pkgname=xfel-git
      pkgver=eb5f578
      pkgrel=1
      pkgdesc="Tiny FEL tools for allwinner SOC, support RISC-V D1 chip."
      arch=('any')
      url="https://github.com/xboot/xfel"
      license=('MIT')
      provides=(${pkgname})
      conflicts=(${pkgname} ${pkgname%-git})
      #replaces=(${pkgname})
      depends=('libusb')
      makedepends=('git')
      backup=()
      options=('!strip')
      #install=${pkgname}.install
      source=("${pkgname%-git}::git+${url}.git")
      sha256sums=('SKIP')
      
      pkgver() {
          cd "${srcdir}/${pkgname%-git}"
          git describe --always | sed 's|-|.|g'
      }
      
      build() {
          cd "${srcdir}/${pkgname%-git}"
          make
      }
      
      package() {
          install -Dm755 "${srcdir}/${pkgname%-git}/${pkgname%-git}" "${pkgdir}/usr/bin/${pkgname%-git}"
          install -Dm644 "${srcdir}/${pkgname%-git}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname%-git}/LICENSE"
      }
      
      
      发布在 Linux
      taotieren
      taotieren
    • 回复: Arch Linux 下使用 sunxi-livesuite-git 烧录

      @xiaowenge 官方提供的工具比较新,只支持 ubuntu 和 centos 等系统。不支持 Arch,这个是使用官方开源的包打包的。

      发布在 Linux
      taotieren
      taotieren
    • 回复: Linux命令行获取本机外网地址

      @miumiu 可以试试这个获取网卡信息的工具 https://gitee.com/atzlinux/netscripts-atzlinux.git AUR 的连接在这里。https://aur.archlinux.org/packages/netscripts-atzlinux-git/ 根据其中写的依赖包信息,其他系统也能安装。

      PKGBUILD 如下。

      # Maintainer: taotieren <admin@taotieren.com>
      
      pkgname=netscripts-atzlinux-git
      pkgver=9d3542c
      pkgrel=2
      pkgdesc="some simple network scripts no need any parameter"
      arch=("any")
      groups=()
      depends=('git' 'curl' 'iftop' 'net-tools' 'iproute2' 'gawk')
      makedepends=()
      optdepends=()
      conflicts=()
      url="https://www.atzlinux.com"
      license=('GPL3')
      options=(!strip)
      install=${pkgname}.install
      source=("git+https://gitee.com/atzlinux/netscripts-atzlinux.git"
          "${pkgname}.install")
      sha256sums=('SKIP'
                  '6067b7e16b3c8193729e9620983c183de05d12d6f669d05cb2af591a52e5adea')
      
      pkgver()
      {
          cd "${srcdir}/netscripts-atzlinux/"
          git describe --always | sed 's|-|.|g'
      }
      
      package() {
          install -Dm644 "${srcdir}/netscripts-atzlinux/debian/copyright" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
          cp -r "${srcdir}/netscripts-atzlinux/usr/bin" "${pkgdir}/usr"
          install -Dm755 "${srcdir}/netscripts-atzlinux/usr/sbin/iftopgw" "${pkgdir}/usr/bin"
          install -Dm755 "${srcdir}/netscripts-atzlinux/usr/sbin/iftopbluetooth" "${pkgdir}/usr/bin"
      
          ln -sf "/usr/bin/localip" "${pkgdir}/usr/bin/lip"
          ln -sf "/usr/bin/localip" "${pkgdir}/usr/bin/lanip"
          ln -sf "/usr/bin//wanip" "${pkgdir}/usr/bin/wip"
          ln -sf "/usr/bin/iftopgw" "${pkgdir}/usr/bin/iftopg"
          ln -sf "/usr/bin/iftopbluetooth" "${pkgdir}/usr/bin/iftopb"
      }
      
      #
      # makepkg --printsrcinfo > .SRCINFO
      #
      
      发布在 Linux
      taotieren
      taotieren
    • 回复: Arch Linux 下使用 sunxi-livesuite-git 烧录

      @taotieren AUR 的仓库地址 https://aur.archlinux.org/packages/sunxi-livesuite-git/ 有问题可以在这里反馈,方便跟踪处理。

      发布在 Linux
      taotieren
      taotieren
    • 回复: Arch Linux 下使用 sunxi-livesuite-git 烧录

      @taotieren 其他 Linux 发行版可以参考这个 PKGBUILD shell 进行相应系统的本地安装。
      安装或修改 udev rules 文件都需要运行一下命令 sudo udevadm control --reload 刷新 udev rules

      发布在 Linux
      taotieren
      taotieren
    • Arch Linux 下使用 sunxi-livesuite-git 烧录

      在 GitHub 看到 https://github.com/linux-sunxi/sunxi-livesuite 烧录工具。
      将其打包到 AUR 仓库,发现 aw-usb 在编译进 5.x 内核时报错,使用了其他开发者修改后的 aw-usb 。并重写了 aw-usb.rules

      打包脚本如下。

      # Maintainer: taotieren <admin@taotieren.com>
      
      pkgbase=sunxi-livesuite-git
      pkgname=($pkgbase sunxi-livesuite-dkms-git)
      pkgver=1a0b52a
      pkgrel=2
      arch=('x86_64' 'i686')
      url="https://github.com/linux-sunxi/sunxi-livesuite"
      license=('GPLv2')
      provides=()
      conflicts=(${pkgbase} ${pkgbase%-git})
      #replaces=(${pkgname})
      makedepends=('git')
      backup=()
      options=('!strip')
      #install=${pkgname}.install
      groups=($pkgbase)
      source=("${pkgbase%-git}::git+${url}.git"
              "git+https://github.com/M0Rf30/sunxi-awusb.git"
      )
      sha256sums=('SKIP'
                  'SKIP')
      
      pkgver() {
          cd "${srcdir}/${pkgbase%-git}"
          git describe --always | sed 's|-|.|g'
      }
      
      package_sunxi-livesuite-git() {
          pkgdesc="LiveSuit is a tool to flash Images to the NAND of Allwinner devices."
          depends=('sunxi-livesuite-dkms-git')
      
          install -dm0755 "${pkgdir}/opt/sunxi/${pkgbase%-git}"
          cp -r "${srcdir}/${pkgbase%-git}/x86" "${pkgdir}/opt/sunxi/${pkgbase%-git}"
          cp -r "${srcdir}/${pkgbase%-git}/x86-64" "${pkgdir}/opt/sunxi/${pkgbase%-git}"
          cp -r "${srcdir}/${pkgbase%-git}/LiveSuit.sh" "${pkgdir}/opt/sunxi/${pkgbase%-git}"
      
          install -Dm0755 /dev/stdin "${pkgdir}/usr/bin/${pkgbase%-git}" << EOF
      #!/bin/env bash
      
      cd /opt/sunxi/${pkgbase%-git}/
      bash LiveSuit.sh
      EOF
      
          install -Dm0644 /dev/stdin "$pkgdir/usr/share/applications/${pkgname}.desktop" <<EOF
      [Desktop Entry]
      Name=${pkgbase%-git}
      Comment=${pkgbase%-git}
      GenericName=${pkgbase%-git}
      Exec=${pkgbase%-git}
      Icon=
      Path=/opt/sunxi/${pkgbase%-git}
      Terminal=false
      StartupNotify=true
      Type=Application
      Categories=Development
      EOF
      
      }
      
      package_sunxi-livesuite-dkms-git() {
          pkgdesc="DKMS module for Allwinner devices"
          url="https://github.com/M0Rf30/sunxi-awusb"
          depends=('dkms')
          conflicts=('sunxi-awusb-dkms')
          replaces=('sunxi-livesuite-git-dkms' 'sunxi-awusb-dkms')
          cd "${srcdir}/sunxi-awusb/"
          install -Dt "${pkgdir}/usr/src/${pkgname}" -m644 awusb.c Makefile dkms.conf
          install -Dm0644 /dev/stdin "${pkgdir}/usr/lib/udev/rules.d/99-aw_usb.rules" << EOF
      # Copy this file to /etc/udev/rules.d/
      # If rules fail to reload automatically, you can refresh udev rules
      # with the command "udevadm control --reload"
      
      # This rules are based on the udev rules from the OpenOCD project, with unsupported probes removed.
      # See http://openocd.org/ for more details.
      #
      # This file is available under the GNU General Public License v2.0
      
      ACTION!="add|change", GOTO="aw_usb_rules_end"
      
      #SUBSYSTEM=="gpio", MODE="0660", GROUP="plugdev", TAG+="uaccess"
      
      SUBSYSTEM!="usb|tty|hidraw", GOTO="aw_usb_rules_end"
      
      # [GNU MCU Eclipse] -----------------------------------------------------------
      # To simplify access, the access rights were changed from:
      #   MODE="660", GROUP="plugdev", TAG+="uaccess"
      # to:
      #   MODE="666"
      # -----------------------------------------------------------------------------
      
      # Please keep this list sorted by VID:PID
      
      # aw
      # define USB_AW_VENDOR_ID	0x1f3a
      # define USB_AW_PRODUCT_ID	0xefe8
      ATTR{idVendor}=="1F3A", ATTR{idProduct}=="EFE8", MODE="666"
      
      LABEL="aw_usb_rules_end"
      EOF
      
          install -dm0755 "${pkgdir}/etc/udev/rules.d"
          ln -sf "/usr/lib/udev/rules.d/99-aw_usb.rules" "${pkgdir}/etc/udev/rules.d/99-aw_usb.rules"
      
      }
      
      发布在 Linux
      taotieren
      taotieren