Kernel Panic in imx6ull

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Kernel Panic in imx6ull

603 次查看
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

标签 (3)
0 项奖励
2 回复数

426 次查看
jimmychan
NXP TechSupport
NXP TechSupport
0 项奖励

426 次查看
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 项奖励