AnsweredAssumed Answered

Kernel Panic

Question asked by chandra sekhar on Jul 26, 2016
Latest reply on Aug 22, 2016 by chandra sekhar

I am using IMX6ULEVK board and 3.14.38 BSP version

Hi I am getting kernel panic, attached Log.txt is the boot log.

I wrote a small module as part of the kernel source tree. Switch.c is the module that I wanted to be loaded. It  will register the irq, whenever a switch press happens led should glow.

Below is my dts configurations for the pins I am using

&gpio3{

        interrupt-parent = <&gpio3>;

        interrupts = <22 8>;

};

&iomuxc {

        pinctrl-names = "default";

        pinctrl-0 = <&pinctrl_hog_1>;

        imx6ul-evk {

                pinctrl_hog_1: hoggrp-1 {

                        fsl,pins = <

                                MX6UL_PAD_LCD_RESET__WDOG1_WDOG_ANY    0x30b0

                                MX6UL_PAD_UART1_RTS_B__GPIO1_IO19       0x17059 /* SD1 CD */

                                MX6UL_PAD_GPIO1_IO05__USDHC1_VSELECT    0x17059 /* SD1 VSELECT */

                                MX6UL_PAD_GPIO1_IO09__GPIO1_IO09        0x17059 /* SD1 RESET */

                                MX6UL_PAD_LCD_DATA16__GPIO3_IO21        0x010B0

                        >;

                };

 

the bold ones I have added.

why kernel panic is happening and also you can observe in the log below line. why the gpiod_direction_output is invalid gpio.

GPIO_TEST: Initializing the GPIO_TEST LKM

gpiod_direction_output: invalid GPIO

gpiod_direction_input: invalid GPIO

gpiod_set_debounce: invalid GPIO

Original Attachment has been moved to: Switch.c.zip

Original Attachment has been moved to: Log.txt.zip

Outcomes