Out of kernel module not working after upgrade

edited January 2021 in Supported devices

Hi Support,

I am trying to build a touch screen driver after upgrading emteria to the latest version (raspi 3B).
Kernel Version prev: 4.9.76, now 4.9.196

So I downloaded the source code from here: https://github.com/emteria/kernel_brcm_rpi/
and used bcm2709_defconfig to compile.

Unfortunately the device crashes and restarts after insmod.

If I create just a hello world module as below:

    #include <linux/module.h>   /* Needed by all modules */
    #include <linux/kernel.h>   /* Needed for KERN_INFO */


    MODULE_LICENSE("GPL");
    //MODULE_INFO(vermagic, "4.9.196-v7+ SMP preempt mod_unload ARMv7 p2v8 ");


    int init_hello(void)
    {
        printk(KERN_ERR "Hello World\n");
            pr_info("Hello World pr_info\n");
        return 0;
    }

    void cleanup_hello(void)
    {
        printk(KERN_ERR "Goodbye world 1.\n");
    }

    module_init(init_hello);
    module_exit(cleanup_hello);

The device doesn't crash, but the "hello world" is never printed in dmesg.

Can you please share:
a) If there are any dmesg log files that remain after reboot
b) advise which toolchain you are using for cross compiling
c) share the .config you are using for your kernel.

Thanks,
Dominik

Sign In or Register to comment.