ubuntu12.04 appears error:removing ' Hello ': Device or resource busy and insmod:error inserting ' Hello.ko ':-1 Device or R

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.