edison-fw / meta-intel-edison

Here is the meta-intel-edison that builds, tries to stay up to date. Master is based on Yocto Poky Gatesgarth LTS 5.10.yy vanilla kernels. It builds a 32bit kernel (Gatesgarth branch 64bit) with ACPI enabled and corresponding rootfs. Telegram group: https://t.me/IntelEdison Web-site:
https://edison-fw.github.io/meta-intel-edison/
MIT License
60 stars 37 forks source link

On sumo64-acpi blink-led is not working #44

Closed htot closed 5 years ago

htot commented 5 years ago

@lybtongji wrote:

I flashed sumo64-acpi and found blink-led not working. Is it due to ACPI?

@htot wrote:

Yes, because of acpi pin names/numbers have changed. This affects blink-led and mraa and probably some other code too. I found the best way to access pins is from the libgpiod provided tools gpiodetect gpiofind gpioget gpioinfo gpiomon gpioset. See also Edison wiki. For now I think we need the code first to detect if we are using acpi (Edit: /sys/kernel/config/acpi/table/arduino/ /sys/firmware/acpi exists). I didn't find time to fix blink-led, but if you want to take this, please do.

htot commented 5 years ago

@lybtongji I created a new issue for this.

lybtongji commented 5 years ago

Ah. It just a question, not very necessary. But I'm glad to hear that you can help with it.

In addition. Can I make the LED (DS2) to be an activity light of CPU or eMMC?

which I found in kernel configurations:

...
CONFIG_LEDS_TRIGGER_DISK
CONFIG_LEDS_TRIGGER_ACTIVITY
...
htot commented 5 years ago

The blink-led (meta-intel-edison/meta-intel-edison-distro/recipes-support/blink-led/files/) program is probably relatively easy to fix. Also you should be able to turn LED on and off from command line, You need to figure out the name of the pin, try gpioinfo (maybe with the schematics in hand). To turn a pin high:

gpioset `gpiofind pin_name`=1

I haven't studied CONFIG_LEDS_TRIGGER_DISK and CONFIG_LEDS_TRIGGER_ACTIVITY, so I don't have the answer to that.

htot commented 5 years ago

Fixed with PR #48