我正在运行"Essential Linux Device Drivers“一书中的示例"Driver for the Parallel LED Board (led.c)”。然后内核知道有一个名为"led”的设备。当您注册该led_driver时,它的名称也是"led",因此内核会匹配这两个名称,并调用led_driver结构的attach函数。“
我确实使用了"led“作为设备名称和
我试图在Linux3.8版本中启用leds pwm驱动程序.但是Kconfig说驱动程序depends on HAVE_PWM配置,我无法在任何地方看到那个配置。花了一段时间后,我认为linux3.8 (或者至少来自TI的linux3.8)不支持led pwm驱动程序。
Device Drivers⇒LED Supports⇒PWM dr
13512 Feb 5 2020 led_test-sh: ./led_test: not found2. target machine: ARMv7 beaglebone board
3. cross-compiler: gcc-linaro-7.3.1-2018.05-x86_64_arm-linux-gnueabihfI built u-boot and Linux kerne