Skip to content

error when initializing LibUSB aarch64-linux (arm64, asahi linux, nixos) #306

@mitchmindtree

Description

@mitchmindtree

Hi folks, running trezord-go on an asahi linux based nixos build and noticed the following error:

$ trezord-go -v
2025/02/24 00:27:59 trezord v2.0.33 (rev 2680d5e) is starting
[0.000037 : 00:27:59] [trezord.go 78 main.initUsb] Initing libusb
[0.000047 : 00:27:59] [usb/libusb.go 63 usb.InitLibUSB] init
2025/02/24 00:27:59 libusb: error when initializing LibUSB.
If you run trezord in an environment without USB (for example, docker or travis), use '-u=false'. For example, './trezord-go -e 21324 -u=false'.

Original error: LIBUSB_ERROR_OTHER

Originally noticed when the nixos trezord service activation script failed after nixos-rebuild switch-ing a new configuration with the daemon for the first time on this machine.

Some system info:

$ nix run nixpkgs#nix-info -- -m
 - system: `"aarch64-linux"`
 - host os: `Linux 6.12.12-asahi, NixOS, 25.05 (Warbler), 25.05.20250221.32fb99b`
 - multi-user?: `yes`
 - sandbox: `relaxed`
 - version: `nix-env (Nix) 2.25.5`
 - nixpkgs: `/nix/store/qc7n2v5yl42m2wq59f59ly6igiwljh11-source`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions