Tiny Core Linux

Tiny Core Base => Raspberry Pi => Topic started by: wesley1 on August 05, 2020, 10:46:58 PM

Title: dtoverlay not working
Post by: wesley1 on August 05, 2020, 10:46:58 PM
Hi, I wasn't able to get dtoverlay to work in tinycore. Although the same modification to the config.txt file works in raspbian.

This is what I am trying to add
dtoverlay=gpio-shutdown
Title: Re: dtoverlay not working
Post by: Paul_123 on August 06, 2020, 04:56:14 AM
That overlay does nothing without something monitoring the kernel events.

If you read this,
https://github.com/raspberrypi/linux/blob/8ae5f3e1ecf0c41cb788d90c048a10c27e8aaa02/arch/arm/boot/dts/overlays/README#L860

You will notice it only generates keyboard event.  Almost none of the commands Listed in that help doc will work under piCore, you will have to make a variant of the udev rule to call a shutdown script, or just make a little program to monitor kernel keyboard events.