Kernel Panic in imx6ull

cancel
Showing results for 
Search instead for 
Did you mean: 

Kernel Panic in imx6ull

376 Views
mathew_k_t
Contributor II

i.MX Communityigorpadykov

Hi,

I'm using iMX6ULL custom board. In my application, I read data from two AFE4490 and iMX6 reads data registers after the ADC_READY interrupt(pulse width 0.24us). I configured ADC_READY pins as gpio-keys. In ISR, it generates a uevent as below

static void gpio_keys_gpio_work_func(struct work_struct *work)
{
    struct gpio_button_data *bdata =container_of(work, struct gpio_button_data, work.work);
    char *envp[2];
    char state_buf[10];

    if (bdata->irq == 36) {
        snprintf(state_buf, sizeof(state_buf),"STATE=%s", "1");
        envp[0] = state_buf;

        envp[1] = NULL;
        kobject_uevent_env(&bdata->input->dev.kobj, KOBJ_ONLINE, envp);
    }
}

iMX6 generates interrupts on ADC_READY signal.

image002.png

1. But i'm not getting any events at userspace. What's the issue in the configuration?

2. After 30 minutes, kernel panic occurs due to out of Memory issue. How to clear uevent buffer?

kernel panic.png

Best Regards

Labels (3)
0 Kudos
2 Replies

199 Views
jimmychan
NXP TechSupport
NXP TechSupport
0 Kudos

199 Views
mathew_k_t
Contributor II

Hi jimmychan,

Thank you for your response.

Could you help me to write a udev rule to avoid uevents to get processed by udev.

Particularly with following parameters

KERNEL[190.552267] online   /devices/platform/gpio-keys/input/input1 (input)
ACTION=online
DEVPATH=/devices/platform/gpio-keys/input/input1
EV=3
KEY=1480 0 0 0
MODALIAS=input:b0019v0001p0001e0100-e0,1,kramlsfw
NAME="gpio-keys"
PHYS="gpio-keys/input0"
PRODUCT=19/1/1/100
PROP=0
SEQNUM=32421
STATE=1
SUBSYSTEM=input

0 Kudos