furkanmustafa / forcefully-remove-bootfb

releases memory areas used for BOOTFB for linux/kvm/vfio/pci-passthrough
GNU General Public License v3.0
22 stars 6 forks source link

insmod: ERROR: could not insert module build/force-remove-bootfb.ko: Invalid module format #7

Closed bradydean closed 2 years ago

bradydean commented 2 years ago

Worked fine until today. I think there was a Fedora kernel update yesterday, maybe that broke it?

I'm on

Linux fedora.local 5.17.6-300.fc36.x86_64 #1 SMP PREEMPT Mon May 9 15:47:11 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

Error:

++ grep BOOTFB /proc/iomem
++ awk '{ print $1 }'
+ range=4000000000-40002fffff
+ IFS=-
+ read -ra ADDR
+ start=4000000000
+ end=40002fffff
+ sleep 2
+ insmod build/force-remove-bootfb.ko bootfb_start=0x4000000000 bootfb_end=0x40002fffff
insmod: ERROR: could not insert module build/force-remove-bootfb.ko: Invalid module format
bradydean commented 2 years ago

I rebuild the module and it's working now.

make clean
make
sudo ./remove.sh

For anyone else reading this and on Fedora: I have kernel-devel installed too.