This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

COmmand to uninstall the Linux kernel module



Hi Experts,

How to uninstall the linux kernel module from the rootfs during run time ?

Usually rmmod is used to remove the unload the kernel module but here I need to remove it totally from lib/modules/ ..

  • Hi,

    Not sure what exactly you want, you mean while the board is booting Or when board is booted up and Linux up and running ?

    If in case while board is booting up create init script and put it in /etc/init.d , the script will look out for your module in the path and remove it off. also you might want to modify the script which by default is looking for that module.

    Thanks,

    --Prabhakar Lad

  • Simply delete the *.ko file by manually or automated through script from booted kernel folder.
    For install the module drivers into rootfs , we have to provide below command.

    Ex:

    make modules_install INSTALL_MOD_PATH=/media/rootfs ARCH=arm CROSS_COMPILE=arm-arago-linux-gnueabi-