One: Insmod time error:
1: Error message insmod:error inserting ' Hello.ko ':-1 Device or resource busy
2: Reason: The device number inside your code is conflicting with the system already exists
3: View the system's device number:
Cat/proc/devices
See if there is a conflict with your device number, note that you want to separate character devices from block devices
4: The solution, of course, is you change the number of equipment.
Two: Rmmod
0: With Rmmod-f also delete not to drop
1: View current GCC version, command: gcc-v
2:ubuntu Default version is 4.6
3: If you are not 4.6 version, modified to 4.6, in the directory/usr/bin, the establishment of soft links,
My previous gcc was a soft link to the gcc-4.4 version, modified into the gcc-4.6 version, if there was a GCC soft links before, remove his
sudo ln-s/usr/bin/gcc-4.6 /USR/BIN/GCC
4: Insmod module, if you are prompted that the module already exists, that is, you did not modify the previous installation of the module, you need to restart the computer, and then insmod on it.