LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 08-10-2015, 11:10 PM   #1
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,658

Rep: Reputation: 255Reputation: 255Reputation: 255
GCC compiling hardware driver with module.g


Hello

I need to compile with gcc a program with module.h.
My linux headers are
Code:
linux-headers-4.1.0-040100-generic_4.1.0-040100.201507030940_i386.deb
linux-headers-4.1.0-040100_4.1.0-040100.201507030940_all.deb
linux-image-4.1.0-040100-generic_4.1.0-040100.201507030940_i386.deb
when I do gcc on it, I get the gcc complain whtat module.h is not found.

I have then tried:
Code:
gcc -c file.c -I/usr/src/linux-.../include/linux
but visibly this is not the right solution.

Into /lib/... there is no module.h

there is no kbuilt on it installed. the machine is installed with regular console debian install and with no X11.
gcc and build essential are installed.

how to compile it?

thank you

Code:
#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/init.h>
#include <linux/ctype.h>
#include <linux/err.h>
#include <linux/input.h>
#include <linux/delay.h>
#include <linux/interrupt.h>
#include <linux/slab.h>
#include <linux/i2c.h>
#include <linux/byteorder/generic.h>
#include <linux/timer.h>
#include <linux/jiffies.h>
#include <linux/irq.h>
#include <linux/platform_device.h>
#if defined(CONFIG_FB)
#include <linux/notifier.h>
#include <linux/fb.h>
#elif defined(CONFIG_HAS_EARLYSUSPEND) 
#include <linux/earlysuspend.h>
#endif
#include <linux/firmware.h>
#include <linux/proc_fs.h>
#include <linux/regulator/consumer.h> 
#include <linux/of_gpio.h>
 
Old 08-10-2015, 11:52 PM   #2
Keruskerfuerst
Senior Member
 
Registered: Oct 2005
Location: Horgau, Germany
Distribution: Manjaro KDE, Win 10
Posts: 2,199

Rep: Reputation: 164Reputation: 164
Which versions of the programs are installed?
 
Old 08-11-2015, 01:56 AM   #3
NevemTeve
Senior Member
 
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 4,870
Blog Entries: 1

Rep: Reputation: 1871Reputation: 1871Reputation: 1871Reputation: 1871Reputation: 1871Reputation: 1871Reputation: 1871Reputation: 1871Reputation: 1871Reputation: 1871Reputation: 1871
Maybe you should find out where is module.h
find(1) is your friend
 
Old 08-11-2015, 04:13 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
There is no file module.h in ....
1) linux-headers-4.1.0-040100-generic_4.1.0 ( linux-headers-4.1.0-*)
2) E.g. linux-source-4.1
https://packages.debian.org/stretch/...e-4.1/filelist

`module.h' used to be present in kernels 3.xx, like ...
*/arch/x86/include/asm/module.h
*/include/asm-generic/module.h
*/include/linux/module.h


-
 
Old 08-11-2015, 05:49 AM   #5
NevemTeve
Senior Member
 
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 4,870
Blog Entries: 1

Rep: Reputation: 1871Reputation: 1871Reputation: 1871Reputation: 1871Reputation: 1871Reputation: 1871Reputation: 1871Reputation: 1871Reputation: 1871Reputation: 1871Reputation: 1871
Okay, so your source isn't compatible with the newer kernels.
 
Old 08-12-2015, 08:19 AM   #6
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,658

Original Poster
Rep: Reputation: 255Reputation: 255Reputation: 255
I am not so sure since if you do check this:
https://www.kernel.org/pub/linux/ker...nux-4.1.tar.gz

There is "module.h" there:
Code:
./linux-4.1/kernel/module-internal.h
./linux-4.1/drivers/scsi/bfa/bfa_modules.h
./linux-4.1/drivers/edac/edac_module.h
./linux-4.1/arch/parisc/include/asm/module.h
./linux-4.1/arch/arm/mach-omap2/ctrl_module_wkup_44xx.h
./linux-4.1/arch/arm/nwfpe/fpmodule.h
./linux-4.1/arch/arm/include/asm/module.h
./linux-4.1/arch/arm64/include/asm/module.h
./linux-4.1/arch/avr32/include/asm/module.h
./linux-4.1/arch/arc/include/asm/module.h
./linux-4.1/arch/mips/include/asm/module.h
./linux-4.1/arch/s390/include/asm/module.h
./linux-4.1/arch/x86/um/asm/module.h
./linux-4.1/arch/x86/include/asm/module.h
./linux-4.1/arch/score/include/asm/module.h
./linux-4.1/arch/hexagon/include/asm/module.h
./linux-4.1/arch/mn10300/include/asm/module.h
./linux-4.1/arch/metag/include/asm/module.h
./linux-4.1/arch/ia64/include/asm/module.h
./linux-4.1/arch/ia64/include/asm/sn/module.h
./linux-4.1/arch/sh/include/asm/module.h
./linux-4.1/arch/xtensa/include/asm/module.h
./linux-4.1/arch/alpha/include/asm/module.h
./linux-4.1/arch/tile/include/asm/module.h
./linux-4.1/arch/microblaze/include/asm/module.h
./linux-4.1/arch/c6x/include/asm/module.h
./linux-4.1/arch/blackfin/include/asm/module.h
./linux-4.1/arch/frv/include/asm/module.h
./linux-4.1/arch/powerpc/include/asm/module.h
./linux-4.1/arch/m68k/include/asm/module.h
./linux-4.1/tools/virtio/linux/module.h
./linux-4.1/tools/lib/lockdep/uinclude/linux/module.h
./linux-4.1/include/uapi/linux/module.h
./linux-4.1/include/trace/events/module.h
./linux-4.1/include/asm-generic/module.h
./linux-4.1/include/drm/ttm/ttm_module.h
./linux-4.1/include/linux/module.h
./linux-4.1/include/linux/moduleparam.h
./linux-4.1/include/linux/moduleloader.h
 
Old 08-12-2015, 08:47 AM   #7
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,658

Original Poster
Rep: Reputation: 255Reputation: 255Reputation: 255
herewith the current driver for mssl windows.
http://s000.tinyupload.com/index.php...82433790822100


herewith the current driver for LINUX !
http://s000.tinyupload.com/index.php...02621232975337
 
Old 08-12-2015, 10:47 AM   #8
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
@Xeratul.

No module.h in the Debian packages :
linux-headers-4.1**, ( linux-libc-dev-4.1*, libc6-dev ).

Other Linux OS`s will have "module.h", e.g. from 1) kernel-devel-4.**fc22
/usr/src/kernels/4.0.4-301.fc22.x86_64/arch/x86/include/asm/module.h
/usr/src/kernels/4.0.4-301.fc22.x86_64/include/asm-generic/module.h
/usr/src/kernels/4.0.4-301.fc22.x86_64/include/drm/ttm/ttm_module.h
/usr/src/kernels/4.0.4-301.fc22.x86_64/include/linux/module.h
/usr/src/kernels/4.0.4-301.fc22.x86_64/include/trace/events/module.h
/usr/src/kernels/4.0.4-301.fc22.x86_64/include/uapi/linux/module.h

2) kernel-devel-4.2.0-0.rc5.git0.2.fc23.i686.rpm
usr/src/kernels/4.2.0-0.rc5.git0.2.fc23.i686/arch/x86/include/asm/module.h
usr/src/kernels/4.2.0-0.rc5.git0.2.fc23.i686/include/asm-generic/module.h
usr/src/kernels/4.2.0-0.rc5.git0.2.fc23.i686/include/drm/ttm/ttm_module.h
usr/src/kernels/4.2.0-0.rc5.git0.2.fc23.i686/include/linux/module.h
usr/src/kernels/4.2.0-0.rc5.git0.2.fc23.i686/include/trace/events/module.h
usr/src/kernels/4.2.0-0.rc5.git0.2.fc23.i686/include/uapi/linux/module.h


-

Last edited by knudfl; 08-12-2015 at 11:04 AM.
 
Old 08-12-2015, 11:58 AM   #9
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,627

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
but as per your examples
Code:
#include <linux/module.h>
"module.h" IS NOT where you told gcc to look

you have it looking in
/usr/include/linux/ for the header "module.h"

and you show that is is in this different location
"?/?/linux-4.1/include/linux/module.h"



even if the line you posted
Code:
 
-I/usr/src/linux-.../include/linux
actually DOSE point to a NON EDITED " ...." location

you told gcc to look in
?/?/?/?/include/linux/linux/module.h

see the " linux/linux" problem

Last edited by John VV; 08-12-2015 at 12:02 PM.
 
Old 08-12-2015, 01:28 PM   #10
NevemTeve
Senior Member
 
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 4,870
Blog Entries: 1

Rep: Reputation: 1871Reputation: 1871Reputation: 1871Reputation: 1871Reputation: 1871Reputation: 1871Reputation: 1871Reputation: 1871Reputation: 1871Reputation: 1871Reputation: 1871
Actually, there seems to be many module.h files for kernel-internal usage, that might have been a reason why they renamed the 'public' module.h file.
 
Old 08-12-2015, 02:31 PM   #11
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,149

Rep: Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264
If you are trying to build a module for a kernel, do:

Code:
make -C <root dir of kernel> M=$PWD
The Makefile for your module must be in the proper form for a kernel module, which is very simple. Might be just one line:

Code:
obj-m += mymodule.o
 
Old 08-12-2015, 02:58 PM   #12
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,658

Original Poster
Rep: Reputation: 255Reputation: 255Reputation: 255
herewith some results from the gcc-operations...
Attached Thumbnails
Click image for larger version

Name:	install-i2c-.png
Views:	17
Size:	42.4 KB
ID:	19149   Click image for larger version

Name:	install-i2c-2.png
Views:	14
Size:	37.6 KB
ID:	19150  
 
Old 08-12-2015, 05:32 PM   #13
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Re #12.

`syscall_32.tbl' is present in the package kcbench-data-4.x
( Not available for Debian.)

Fedora 22 example, kcbench-data-4.0 :
/usr/share/kcbench-data/linux-4.0/arch/x86/syscalls/syscall_32.tbl


-
 
Old 08-12-2015, 11:05 PM   #14
NevemTeve
Senior Member
 
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 4,870
Blog Entries: 1

Rep: Reputation: 1871Reputation: 1871Reputation: 1871Reputation: 1871Reputation: 1871Reputation: 1871Reputation: 1871Reputation: 1871Reputation: 1871Reputation: 1871Reputation: 1871
You might as well install the actual source: https://www.kernel.org/
 
1 members found this post helpful.
Old 08-14-2015, 02:12 PM   #15
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,658

Original Poster
Rep: Reputation: 255Reputation: 255Reputation: 255
which kernel could give me a fantastic hardware support such as this one?

I tried all the ubuntu ppa kernel up to 4.2 but it seems that there are kernels that rocks such as this one:
(i never found it)


even audio, video, and touch-pad are supported !!

Code:
cat /etc/lsb-release:

DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=14.10
DISTRIB_CODENAME=utopic
DISTRIB_DESCRIPTION="Ubuntu 14.10"

lsusb :

Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 004: ID 04f2:b43b Chicony Electronics Co., Ltd 
Bus 001 Device 003: ID 058f:6254 Alcor Micro Corp. USB Hub
Bus 001 Device 002: ID 8087:07dc Intel Corp. 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

lspci:

00:00.0 Host bridge: Intel Corporation Atom Processor Z36xxx/Z37xxx Series SoC Transaction Register (rev 0e)
00:02.0 VGA compatible controller: Intel Corporation Atom Processor Z36xxx/Z37xxx Series Graphics & Display (rev 0e)
00:13.0 SATA controller: Intel Corporation Device 0f23 (rev 0e)
00:14.0 USB controller: Intel Corporation Atom Processor Z36xxx/Z37xxx Series USB xHCI (rev 0e)
00:1a.0 Encryption controller: Intel Corporation Atom Processor Z36xxx/Z37xxx Series Trusted Execution Engine (rev 0e)
00:1b.0 Audio device: Intel Corporation Atom Processor Z36xxx/Z37xxx Series High Definition Audio Controller (rev 0e)
00:1c.0 PCI bridge: Intel Corporation Device 0f48 (rev 0e)
00:1c.1 PCI bridge: Intel Corporation Device 0f4a (rev 0e)
00:1c.2 PCI bridge: Intel Corporation Device 0f4c (rev 0e)
00:1c.3 PCI bridge: Intel Corporation Device 0f4e (rev 0e)
00:1f.0 ISA bridge: Intel Corporation Atom Processor Z36xxx/Z37xxx Series Power Control Unit (rev 0e)
00:1f.3 SMBus: Intel Corporation Device 0f12 (rev 0e)
01:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. Device 5286 (rev 01)
01:00.2 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8101E/RTL8102E PCI Express Fast Ethernet controller (rev 06)
02:00.0 Network controller: Intel Corporation Wireless 7260 (rev 73)

lspci -nn | grep -i net:

01:00.2 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8101E/RTL8102E PCI Express Fast Ethernet controller [10ec:8136] (rev 06)
02:00.0 Network controller [0280]: Intel Corporation Wireless 7260 [8086:08b1] (rev 73)

lspci -k:

00:00.0 Host bridge: Intel Corporation Atom Processor Z36xxx/Z37xxx Series SoC Transaction Register (rev 0e)
	Subsystem: CLEVO/KAPOK Computer Device 5471
	Kernel driver in use: iosf_mbi_pci
00:02.0 VGA compatible controller: Intel Corporation Atom Processor Z36xxx/Z37xxx Series Graphics & Display (rev 0e)
	Subsystem: CLEVO/KAPOK Computer Device 5471
	Kernel driver in use: i915
00:13.0 SATA controller: Intel Corporation Device 0f23 (rev 0e)
	Subsystem: CLEVO/KAPOK Computer Device 5471
	Kernel driver in use: ahci
00:14.0 USB controller: Intel Corporation Atom Processor Z36xxx/Z37xxx Series USB xHCI (rev 0e)

	Subsystem: CLEVO/KAPOK Computer Device 5471
	Kernel driver in use: xhci_hcd
00:1a.0 Encryption controller: Intel Corporation Atom Processor Z36xxx/Z37xxx Series Trusted Execution Engine (rev 0e)
	Subsystem: CLEVO/KAPOK Computer Device 5471

	Kernel driver in use: mei_txe
00:1b.0 Audio device: Intel Corporation Atom Processor Z36xxx/Z37xxx Series High Definition Audio Controller (rev 0e)

	Subsystem: CLEVO/KAPOK Computer Device 5471
	Kernel driver in use: snd_hda_intel
00:1c.0 PCI bridge: Intel Corporation Device 0f48 (rev 0e)
	Kernel driver in use: pcieport
00:1c.1 PCI bridge: Intel Corporation Device 0f4a (rev 0e)
	Kernel driver in use: pcieport
00:1c.2 PCI bridge: Intel Corporation Device 0f4c (rev 0e)
	Kernel driver in use: pcieport
00:1c.3 PCI bridge: Intel Corporation Device 0f4e (rev 0e)
	Kernel driver in use: pcieport
00:1f.0 ISA bridge: Intel Corporation Atom Processor Z36xxx/Z37xxx Series Power Control Unit (rev 0e)
	Subsystem: CLEVO/KAPOK Computer Device 5471
	Kernel driver in use: lpc_ich
00:1f.3 SMBus: Intel Corporation Device 0f12 (rev 0e)
	Subsystem: CLEVO/KAPOK Computer Device 5471
01:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. Device 5286 (rev 01)
	Subsystem: CLEVO/KAPOK Computer Device 5471
	Kernel driver in use: rtsx_pci
01:00.2 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8101E/RTL8102E PCI Express Fast Ethernet controller (rev 06)
	Subsystem: CLEVO/KAPOK Computer Device 5471
	Kernel driver in use: r8169
02:00.0 Network controller: Intel Corporation Wireless 7260 (rev 73)
	Subsystem: Intel Corporation Wireless-N 7260
	Kernel driver in use: iwlwifi

sudo lshw -C network:

PCI (sysfs)  

  *-network               
       description: Ethernet interface
       produit: RTL8101E/RTL8102E PCI Express Fast Ethernet controller
       fabriquant: Realtek Semiconductor Co., Ltd.
       identifiant matriel: 0.2
       information bus: pci@0000:01:00.2
       nom logique: eth0
       version: 06
       numro de srie: 80:fa:5b:06:9e:5c
       taille: 10Mbit/s
       capacit: 100Mbit/s
       bits: 64 bits
       horloge: 33MHz
       fonctionnalits: pm msi pciexpress msix vpd bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=2.3LK-NAPI duplex=half firmware=rtl8402-1_0.0.1 10/26/11 latency=0 link=no multicast=yes port=MII speed=10Mbit/s
       ressources: irq:106 portE/S:e000(taille=256) mmoire:d0714000-d0714fff mmoire:d0710000-d0713fff
  *-network
       description: Interface rseau sans fil
       produit: Wireless 7260
       fabriquant: Intel Corporation
       identifiant matriel: 0
       information bus: pci@0000:02:00.0
       nom logique: wlan0
       version: 73
       numro de srie: a0:a8:cd:4b:d3:ae
       bits: 64 bits
       horloge: 33MHz
       fonctionnalits: pm msi pciexpress bus_master cap_list ethernet physical wireless
       configuration: broadcast=yes driver=iwlwifi driverversion=3.16.0-31-generic firmware=25.228.9.0 ip=192.168.1.88 latency=0 link=yes multicast=yes wireless=IEEE 802.11bgn
       ressources: irq:110 mmoire:d0600000-d0601fff

lsmod:

Module                  Size  Used by
ctr                    12905  1 
ccm                    17461  1 
arc4                   12536  2 
iwlmvm                200163  0 
mac80211              567068  1 iwlmvm
iwlwifi               156875  1 iwlmvm
snd_hda_codec_hdmi     46395  1 
snd_hda_codec_via      23156  1 
snd_hda_codec_generic    62849  1 snd_hda_codec_via
cfg80211              430618  3 iwlwifi,mac80211,iwlmvm
rtsx_pci_ms            17824  0 
memstick               16174  1 rtsx_pci_ms
intel_rapl             18311  0 
intel_powerclamp       18385  0 
coretemp               13201  0 
kvm_intel             137114  0 
kvm                   396427  1 kvm_intel
crc32_pclmul           12987  0 
joydev                 17072  0 
rfcomm                 58045  8 
serio_raw              13210  0 
snd_hda_intel          29244  3 
snd_hda_controller     29944  1 snd_hda_intel
snd_hda_codec         120356  5 snd_hda_codec_hdmi,snd_hda_codec_via,snd_hda_codec_generic,snd_hda_intel,snd_hda_controller
snd_hwdep              13272  1 snd_hda_codec
snd_pcm                91280  4 snd_hda_codec_hdmi,snd_hda_codec,snd_hda_intel,snd_hda_controller
snd_seq_midi           13324  0 
snd_seq_midi_event     14475  1 snd_seq_midi
snd_rawmidi            25722  1 snd_seq_midi
bnep                   18829  2 
lpc_ich                16877  0 
snd_seq                56638  2 snd_seq_midi_event,snd_seq_midi
mei_txe                19080  0 
snd_seq_device         14137  3 snd_seq,snd_rawmidi,snd_seq_midi
snd_timer              28579  2 snd_pcm,snd_seq
snd                    66629  17 snd_hwdep,snd_timer,snd_hda_codec_hdmi,snd_hda_codec_via,snd_pcm,snd_seq,snd_rawmidi,snd_hda_codec_generic,snd_hda_codec,snd_hda_intel,snd_seq_device
shpchp                 32136  0 
soundcore              14604  2 snd,snd_hda_codec
uvcvideo               71457  0 
videobuf2_vmalloc      13048  1 uvcvideo
videobuf2_memops       13170  1 videobuf2_vmalloc
mei                    72096  1 mei_txe
videobuf2_core         48344  1 uvcvideo
v4l2_common            15132  1 videobuf2_core
videodev              131257  3 uvcvideo,v4l2_common,videobuf2_core
i915                  824293  3 
media                  20951  2 uvcvideo,videodev
btusb                  31704  0 
drm_kms_helper         55051  1 i915

bluetooth             390981  22 bnep,btusb,rfcomm

6lowpan_iphc           18262  1 bluetooth

drm                   255383  5 i915,drm_kms_helper

i2c_algo_bit           13190  1 i915
wmi                    18689  0 
binfmt_misc            13140  1 
video                  19528  1 i915
iosf_mbi               13317  0 
mac_hid                13059  0 
snd_soc_sst_acpi       12871  0 
parport_pc             32021  0 
ppdev                  17391  0 
lp                     17395  0 
parport                40795  3 lp,ppdev,parport_pc
rtsx_pci_sdmmc         22510  0 
r8169                  61415  0 
psmouse                95355  0 
mii                    13654  1 r8169
rtsx_pci               48181  2 rtsx_pci_ms,rtsx_pci_sdmmc
ahci                   25622  2 
libahci                31066  1 ahci

iwconfig:

wlan0     IEEE 802.11bgn  ESSID:"TNCAPAD6D97"  
          Mode:Managed  Frequency:2.437 GHz  Access Point: A4:B1:E9:AD:6D:97   
          Bit Rate=1 Mb/s   Tx-Power=22 dBm   
          Retry short limit:7   RTS thr:off   Fragment thr:off
          Power Management:on
          Link Quality=70/70  Signal level=-31 dBm  
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:8  Invalid misc:100   Missed beacon:0

lo        no wireless extensions.

eth0      no wireless extensions.

ifconfig:

eth0      Link encap:Ethernet  HWaddr 80:fa:5b:06:9e:5c  
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          Packets reus:0 erreurs:0 :0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 lg file transmission:1000 
          Octets reus:0 (0.0 B) Octets transmis:0 (0.0 B)

lo        Link encap:Boucle locale  
          inet adr:127.0.0.1  Masque:255.0.0.0
          adr inet6: ::1/128 Scope:Hte
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          Packets reus:800 erreurs:0 :0 overruns:0 frame:0
          TX packets:800 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 lg file transmission:0 
          Octets reus:86953 (86.9 KB) Octets transmis:86953 (86.9 KB)

wlan0     Link encap:Ethernet  HWaddr a0:a8:cd:4b:d3:ae  
          inet adr:192.168.1.88  Bcast:192.168.1.255  Masque:255.255.255.0
          adr inet6: fe80::a2a8:cdff:fe4b:d3ae/64 Scope:Lien
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Packets reus:3239 erreurs:0 :0 overruns:0 frame:0
          TX packets:3090 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 lg file transmission:1000 
          Octets reus:1839485 (1.8 MB) Octets transmis:479476 (479.4 KB)

sudo iwlist scan:

wlan0     Scan completed :
          Cell 01 - Address: A4:B1:E9:AD:6D:97
                    Channel:6
                    Frequency:2.437 GHz (Channel 6)
                    Quality=70/70  Signal level=-24 dBm  
                    Encryption key:on
                    ESSID:"TNCAPAD6D97"
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 18 Mb/s
                              24 Mb/s; 36 Mb/s; 54 Mb/s
                    Bit Rates:6 Mb/s; 9 Mb/s; 12 Mb/s; 48 Mb/s
                    Mode:Master
                    Extra:tsf=0000005b0142870c
                    Extra: Last beacon: 56ms ago
                    IE: Unknown: 000B544E434150414436443937
                    IE: Unknown: 010882848B962430486C
                    IE: Unknown: 030106
                    IE: Unknown: 2A0104
                    IE: Unknown: 2F0104
                    IE: IEEE 802.11i/WPA2 Version 1
                        Group Cipher : TKIP
                        Pairwise Ciphers (1) : CCMP
                        Authentication Suites (1) : PSK
                    IE: Unknown: 32040C121860
                    IE: Unknown: 2D1A1C181BFFFF000000000000000000000000000000000000000000
                    IE: Unknown: 3D1606081500000000000000000000000000000000000000
                    IE: Unknown: DD9D0050F204104A0001101044000102103B00010310470010F26FF89D6AC05901B54F45161DA014961021000B546563686E69636F6C6F721023000E546563686E69636F6C6F7220544710240005373838766E10420010306435636263306133626637646436611054000800060050F204000110110013546563686E69636F6C6F72205447373838766E100800020004103C0001011049000600372A000120
                    IE: Unknown: DD090010180202000C0000
                    IE: WPA Version 1
                        Group Cipher : TKIP
                        Pairwise Ciphers (1) : TKIP
                        Authentication Suites (1) : PSK
                    IE: Unknown: DD180050F2020101000003A4000027A4000042435E0062322F00
          Cell 02 - Address: C0:D9:62:68:15:DC
                    Channel:1
                    Frequency:2.412 GHz (Channel 1)
                    Quality=45/70  Signal level=-65 dBm  
                    Encryption key:on
                    ESSID:"NUMERICABLE-A84E"
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 18 Mb/s
                              24 Mb/s; 36 Mb/s; 54 Mb/s
                    Bit Rates:6 Mb/s; 9 Mb/s; 12 Mb/s; 48 Mb/s
                    Mode:Master
                    Extra:tsf=000000e9a45393b7
                    Extra: Last beacon: 56ms ago
                    IE: Unknown: 00104E554D4552494341424C452D41383445
                    IE: Unknown: 010882848B962430486C
                    IE: Unknown: 030101
                    IE: Unknown: 2A0100
                    IE: Unknown: 2F0100
                    IE: IEEE 802.11i/WPA2 Version 1
                        Group Cipher : TKIP
                        Pairwise Ciphers (2) : CCMP TKIP
                        Authentication Suites (1) : PSK
                    IE: Unknown: 32040C121860
                    IE: Unknown: 0B0500003F0000
                    IE: Unknown: 2D1ABC191BFFFF000000000000000000000000000000000000000000
                    IE: Unknown: 3D1601081100000000000000000000000000000000000000
                    IE: Unknown: 7F080400080000000040
                    IE: Unknown: DD830050F204104A0001101044000102103B00010310470010B154B3124D55BA1912F9759F1E7AE92810210008454D544134322D3110230008454D544134322D311024000631323334353610420007303030303030311054000800060050F20400011011000A536167656D436F6D4150100800020000103C0001011049000600372A000120
                    IE: Unknown: DD090010180200000C0000
                    IE: WPA Version 1
                        Group Cipher : TKIP
                        Pairwise Ciphers (2) : CCMP TKIP
                        Authentication Suites (1) : PSK
                    IE: Unknown: DD180050F2020101880003A4000027A4000042435E0062322F00
                    IE: Unknown: 46057208010000
          Cell 03 - Address: 18:1E:78:34:CD:32
                    Channel:6
                    Frequency:2.437 GHz (Channel 6)
                    Quality=45/70  Signal level=-65 dBm  
                    Encryption key:on
                    ESSID:"Wifi-izzie"
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 6 Mb/s
                              9 Mb/s; 12 Mb/s; 18 Mb/s
                    Bit Rates:24 Mb/s; 36 Mb/s; 48 Mb/s; 54 Mb/s
                    Mode:Master
                    Extra:tsf=000002aa32e4b8eb
                    Extra: Last beacon: 56ms ago
                    IE: Unknown: 000A576966692D697A7A6965
                    IE: Unknown: 010882848B960C121824
                    IE: Unknown: 030106
                    IE: Unknown: 0706465220010D14
                    IE: Unknown: 2A0100
                    IE: Unknown: 32043048606C
                    IE: Unknown: 2D1AAD011BFFFF0000000000000000000000000000000406E4A70C00
                    IE: Unknown: 331AAD011BFFFF0000000000000000000000000000000406E4A70C00
                    IE: Unknown: 3D1606000500000000000000000000000000000000000000
                    IE: Unknown: 341606000500000000000000000000000000000000000000
                    IE: Unknown: DD180050F2020101810003A4000027A4000042435E0062322F00
                    IE: Unknown: DD0900037F01010000FF7F
                    IE: IEEE 802.11i/WPA2 Version 1
                        Group Cipher : TKIP
                        Pairwise Ciphers (2) : CCMP TKIP
                        Authentication Suites (1) : PSK
                    IE: WPA Version 1
                        Group Cipher : TKIP
                        Pairwise Ciphers (2) : CCMP TKIP
                        Authentication Suites (1) : PSK
                    IE: Unknown: DD9E0050F204104A0001101044000102103B000103104700103138314537384334834433320038314510210008536167656D636F6D10230016536167656D636F6D46617374333936355F4C42322E381024000C53475F4C42335F312E322E321042000F4C4B313433303744503134313638351054000800060050F2040001101100094C697665626F782033100800020006103C0001011049000600372A000120
          Cell 04 - Address: 00:1A:2B:23:76:93
                    Channel:6
                    Frequency:2.437 GHz (Channel 6)
                    Quality=31/70  Signal level=-79 dBm  
                    Encryption key:on
                    ESSID:"NUMERICABLE-A2E0"
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 18 Mb/s
                              24 Mb/s; 36 Mb/s; 54 Mb/s
                    Bit Rates:6 Mb/s; 9 Mb/s; 12 Mb/s; 48 Mb/s
                    Mode:Master
                    Extra:tsf=00000154149811d5
                    Extra: Last beacon: 56ms ago
                    IE: Unknown: 00104E554D4552494341424C452D41324530
                    IE: Unknown: 010882848B962430486C
                    IE: Unknown: 030106
                    IE: Unknown: 2A0104
                    IE: Unknown: 2F0104
                    IE: Unknown: 32040C121860
                    IE: Unknown: DD090010180200F0000000
                    IE: Unknown: DD180050F2020101800003A4000027A4000042435E0062322F00
          Cell 05 - Address: 24:95:04:83:95:14
                    Channel:6
                    Frequency:2.437 GHz (Channel 6)
                    Quality=37/70  Signal level=-73 dBm  
                    Encryption key:on
                    ESSID:"SFR_9510"
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 18 Mb/s
                              24 Mb/s; 36 Mb/s; 54 Mb/s
                    Bit Rates:6 Mb/s; 9 Mb/s; 12 Mb/s; 48 Mb/s
                    Mode:Master
                    Extra:tsf=0000009eb4e578a5
                    Extra: Last beacon: 52ms ago
                    IE: Unknown: 00085346525F39353130
                    IE: Unknown: 010882848B962430486C
                    IE: Unknown: 030106
                    IE: Unknown: 2A0100
                    IE: Unknown: 2F0100
                    IE: Unknown: 32040C121860
                    IE: Unknown: 2D1AEC181BFFFF000000000000000000000000000000000000000000
                    IE: Unknown: 3D1606001100000000000000000000000000000000000000
                    IE: Unknown: DD870050F204104A0001101044000102103B00010310470010000000000000000000000000000000001021000B4E4236562D5345522D72301023000B4E4236562D5345522D72301024000B4E4236562D5345522D72301042000C3234393530343833393531301054000800060050F2040001101100085346525F39353130100800020084103C000101
                    IE: Unknown: DD090010180200F02C0000
                    IE: WPA Version 1
                        Group Cipher : TKIP
                        Pairwise Ciphers (2) : CCMP TKIP
                        Authentication Suites (1) : PSK
                    IE: Unknown: DD180050F2020101800003A4000027A4000042435E0062322F00
          Cell 06 - Address: 8A:95:04:83:95:15
                    Channel:6
                    Frequency:2.437 GHz (Channel 6)
                    Quality=37/70  Signal level=-73 dBm  
                    Encryption key:off
                    ESSID:"SFR WiFi FON"
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 18 Mb/s
                              24 Mb/s; 36 Mb/s; 54 Mb/s
                    Bit Rates:6 Mb/s; 9 Mb/s; 12 Mb/s; 48 Mb/s
                    Mode:Master
                    Extra:tsf=0000009eb4e585b9
                    Extra: Last beacon: 52ms ago
                    IE: Unknown: 000C534652205769466920464F4E
                    IE: Unknown: 010882848B962430486C
                    IE: Unknown: 030106
                    IE: Unknown: 2A0100
                    IE: Unknown: 2F0100
                    IE: Unknown: 32040C121860
                    IE: Unknown: 2D1AEC181BFFFF000000000000000000000000000000000000000000
                    IE: Unknown: 3D1606001100000000000000000000000000000000000000
                    IE: Unknown: DD090010180200F02C0000
                    IE: Unknown: DD180050F2020101800003A4000027A4000042435E0062322F00
          Cell 07 - Address: 8A:95:04:83:95:17
                    Channel:6
                    Frequency:2.437 GHz (Channel 6)
                    Quality=36/70  Signal level=-74 dBm  
                    Encryption key:on
                    ESSID:"SFR WiFi Mobile"
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 18 Mb/s
                              24 Mb/s; 36 Mb/s; 54 Mb/s
                    Bit Rates:6 Mb/s; 9 Mb/s; 12 Mb/s; 48 Mb/s
                    Mode:Master
                    Extra:tsf=0000009eb4e5a8cb
                    Extra: Last beacon: 52ms ago
                    IE: Unknown: 000F5346522057694669204D6F62696C65
                    IE: Unknown: 010882848B962430486C
                    IE: Unknown: 030106
                    IE: Unknown: 2A0100
                    IE: Unknown: 2F0100
                    IE: IEEE 802.11i/WPA2 Version 1
                        Group Cipher : CCMP
                        Pairwise Ciphers (1) : CCMP
                        Authentication Suites (1) : 802.1x
                    IE: Unknown: 32040C121860
                    IE: Unknown: 2D1AEC181BFFFF000000000000000000000000000000000000000000
                    IE: Unknown: 3D1606001100000000000000000000000000000000000000
                    IE: Unknown: DD090010180200F02C0000
                    IE: Unknown: DD180050F2020101800003A4000027A4000042435E0062322F00
          Cell 08 - Address: 00:1A:2B:49:BC:81
                    Channel:11
                    Frequency:2.462 GHz (Channel 11)
                    Quality=50/70  Signal level=-60 dBm  
                    Encryption key:on
                    ESSID:"NUMERICABLE-7C1D"
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 18 Mb/s
                              24 Mb/s; 36 Mb/s; 54 Mb/s
                    Bit Rates:6 Mb/s; 9 Mb/s; 12 Mb/s; 48 Mb/s
                    Mode:Master
                    Extra:tsf=000000a5adab1d84
                    Extra: Last beacon: 52ms ago
                    IE: Unknown: 00104E554D4552494341424C452D37433144
                    IE: Unknown: 010882848B962430486C
                    IE: Unknown: 03010B
                    IE: Unknown: 2A0100
                    IE: Unknown: 2F0100
                    IE: Unknown: 32040C121860
                    IE: Unknown: DD090010180201F0000000
                    IE: Unknown: DD180050F2020101800003A4000027A4000042435E0062322F00
          Cell 09 - Address: 00:1A:2B:57:49:2C
                    Channel:11
                    Frequency:2.462 GHz (Channel 11)
                    Quality=58/70  Signal level=-52 dBm  
                    Encryption key:on
                    ESSID:"NUMERICABLE-FA6A"
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 18 Mb/s
                              24 Mb/s; 36 Mb/s; 54 Mb/s
                    Bit Rates:6 Mb/s; 9 Mb/s; 12 Mb/s; 48 Mb/s
                    Mode:Master
                    Extra:tsf=0000009c930e020c
                    Extra: Last beacon: 52ms ago
                    IE: Unknown: 00104E554D4552494341424C452D46413641
                    IE: Unknown: 010882848B962430486C
                    IE: Unknown: 03010B
                    IE: Unknown: 2A0100
                    IE: Unknown: 2F0100
                    IE: IEEE 802.11i/WPA2 Version 1
                        Group Cipher : TKIP
                        Pairwise Ciphers (1) : TKIP
                        Authentication Suites (1) : PSK
                    IE: Unknown: 32040C121860
                    IE: Unknown: DD090010180202F0000000
                    IE: Unknown: DD180050F2020101800003A4000027A4000042435E0062322F00
          Cell 10 - Addr
lo        Interface doesn't support scanning.

eth0      Interface doesn't support scanning.

uname -r -m:

3.16.0-31-generic i686

cat  /etc/network/interfaces

# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback

nm-tool:

NetworkManager Tool

State: connected (global)
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Problem with compiling the module driver Pouyaaa Programming 3 12-05-2011 03:35 AM
Help required in compiling Network driver module. ravi14 Linux - Software 1 10-19-2008 02:01 AM
difference between hardware driver and module? walterbyrd Linux - General 4 01-01-2007 03:07 PM
compiling driver and installing module giraf Debian 9 06-06-2006 02:23 PM
compiling a module with gcc mathman0 Linux - Software 5 11-07-2004 03:13 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 12:16 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration