Jump to content

Tzuhsuan

Tinker Engineer
  • Content Count

    2
  • Joined

  • Last visited

Community Reputation

0 Neutral
  1. Hello, please modify the /etc/apt/sources.list file. Remove the following lines: deb http://mirrors.ustc.edu.cn/debian/ bullseye-backports main contrib deb-src http://mirrors.ustc.edu.cn/debian/ bullseye-backports main contrib Or, change them to: deb https://archive.debian.org/debian/ bullseye-backports main contrib non-free deb-src https://archive.debian.org/debian/ bullseye-backports main contrib non-free This will allow apt update to work correctly.
  2. We use the gpio-leds module to control the led and keep them not light as default. In fsl-imx8mq-phanbell.dts: gpio-leds { compatible = "gpio-leds"; led1 { gpios = <&gpio3 21 GPIO_ACTIVE_HIGH>; linux,default-trigger="none"; }; led2 { gpios = <&gpio4 29 GPIO_ACTIVE_HIGH>; linux,default-trigger="none"; }; led3 { gpios = <&gpio4 28 GPIO_ACTIVE_HIGH>; linux,default-trigger="none"; }; }; (led gpio is low active) Because the gpios have been registered by gpio leds module, you cannot use gpio library to register them again. Please control them by the nodes in /sys/class/leds/.
×
×
  • Create New...