Install DNW under Linux

Source: Internet
Author: User

[email protected] secbulk]# make-c/lib/modules/' uname-r '/build m= ' pwd ' modules
Make: * * */lib/modules/2.6.32-71.el6.i686/build: There is no file or directory. Stop it.
[Email protected] secbulk]# make-c/lib/modules/' uname-r '/build m= ' pwd ' modules
Bash:uname-r: Command not found

Make: * * */lib/modules//build: There is no file or directory. Stop it.


You need to install Kernel-devel

[email protected] dnw]# sudo yum install Kernel-devel
Loaded Plugins:refresh-packagekit, Rhnplugin
This system isn't registered with the portal.
Portal support would be disabled.
Setting up Install Process
Resolving Dependencies
--Running Transaction check
---> Package kernel-devel.i686 0:2.6.32-71.el6 Set installed
--Finished Dependency Resolution


Dependencies resolved


================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
Kernel-devel i686 2.6.32-71.el6 Base 6.4 M


Transaction Summary
================================================================================
Install 1 package (s)
Upgrade 0 Package (s)


Total Download size:6.4 M
Installed size:22 M
Is this OK [y/n]: Y
Downloading Packages:
Running Rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Warning:rpmdb altered outside of Yum.
installing:kernel-devel-2.6.32-71.el6.i686 1/1


Installed:
kernel-devel.i686 0:2.6.32-71.el6


complete!


Then use

[[email protected] secbulk]# make-c/lib/modules/' uname-r '/build M= ' pwd ' Modules
make:entering directory '/usr/src/kernels/2.6.32-71.el6.i686 '
  CC [M]  /arm11/dnw_linux/ SECBULK/SECBULK.O
/arm11/dnw_linux/secbulk/secbulk.c: In function ' Secbulk_write ':
/arm11/dnw_linux/secbulk/ SECBULK.C:58: Warning: Missing type conversions when comparing unrelated pointers
  Building modules, Stage 2.
  Modpost 1 Modules
  CC      /ARM11/DNW_LINUX/SECBULK/SECBULK.MOD.O
  LD [M]   /arm11/dnw_linux/secbulk/secbulk.ko.unsigned
  NO sign [M]/arm11/dnw_linux/secbulk/secbulk.ko
Make: Leaving directory '/usr/src/kernels/2.6.32-71.el6.i686 '

[[email protected] secbulk]# ls
Makefile module.symvers Secbulk.ko secbulk.mod.c SECBULK.O
Modules.order secbulk.c secbulk.ko.unsigned SECBULK.MOD.O

[Email protected] secbulk]# insmod./sec

[Email protected] secbulk]# Dmesgbulk.ko

USB 2-2.2:new Full Speed USB device using UHCI_HCD and address 8
USB 2-2.2:new USB device found, idvendor=1a86, idproduct=7523
USB 2-2.2:new USB Device strings:mfr=0, product=2, serialnumber=0
USB 2-2.2:product:usb2.0-ser!
USB 2-2.2:configuration #1 chosen from 1 choice
ch341 2-2.2:1.0:ch341-uart Converter Detected
USB 2-2.2:ch341-uart Converter now attached to ttyUSB0
Hrtimer:interrupt took 12195662 NS
USB 2-2.2:usb Disconnect, address 8
Ch341-uart Ttyusb0:ch341-uart Converter now disconnected from ttyUSB0
ch341 2-2.2:1.0:device Disconnected
USB 2-2.2:new Full Speed USB device using UHCI_HCD and address 9
USB 2-2.2:new USB device found, idvendor=1a86, idproduct=7523
USB 2-2.2:new USB Device strings:mfr=0, product=2, serialnumber=0
USB 2-2.2:product:usb2.0-ser!
USB 2-2.2:configuration #1 chosen from 1 choice
ch341 2-2.2:1.0:ch341-uart Converter Detected
USB 2-2.2:ch341-uart Converter now attached to ttyUSB0
Secbulk:disagrees about version of symbol Module_layout
Secbulk:secbulk Loaded
Usbcore:registered New Interface Driver Secbulk

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.