I modified the fsl-lpuart driver to handle my own serial protocol. I can build a kernel module, remove the existing /dev/ttyLP0 device and try to load the new ttyLP0 Driver on the fly to test the modification.
But I get an error:
insmod fsl-lpuart.ko
insmod: ERROR_could not insert module fsl_lpuart.ko: Invalid Parameters
And how exactly did you go about disabling the built-in lpuart driver? How exactly did you deploy updated kernel and matching modules? Along those lines?
I don’t update the kernel,I am only remove the device node (rm /dev/ttyLP0) in my running Linux.
In the first step I only want to test the modifications. For this I build the fsl-uart Driver as a kernel module and try to load this new module (insmod).
In a secound step I will replaced the build-in driver with the new version.
Is there a other way, to test and update the fsl-uart driver?
But you deployed the binary Linux kernel image as well? You may not separately deploy a Linux kernel module which does not match resp. Linux kernel image.