Настройка адаптера Wi-Fi Netgear N150 USB с RaspberryPi wheezy

После неудачной попытки с DYI powered USB hub , Мне удалось подключить Netgear N150 напрямую к родному порту RPi, поставив 2A 5 + V DC на RPi. Однако мне не удалось успешно подключить /настроить Wi-Fi.

Хотя кажется, что проблема больше не проблема, я могу сканировать для сети и настраивать, но я не смог подключиться к своей сети. Когда я подключаюсь к подключению, я вижу сообщение «Не удалось инициировать AP Scan» в ходе выполнения.

Найти вывод lsusb, iwlist scan и ifconfig.

[email protected] ~ $ lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 0424:9512 Standard Microsystems Corp.
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp.
Bus 001 Device 004: ID 0846:9030 NetGear, Inc. WNA1100 Wireless-N 150 [Atheros AR9271]
Bus 001 Device 005: ID 03eb:0902 Atmel Corp. 4-Port Hub
Bus 001 Device 006: ID 046d:c52e Logitech, Inc.

-

[email protected] /boot $ iwlist scan
lo        Interface doesn't support scanning.

wlan0     Scan completed :
         Cell 01 - Address: 00:1F:33:25:C2:94
                   Channel:11
                   Frequency:2.462 GHz (Channel 11)
                   Quality=70/70  Signal level=-24 dBm  
                   Encryption key:on
                   ESSID:"\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
                   Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 6 Mb/s
                             12 Mb/s; 24 Mb/s; 36 Mb/s
                   Bit Rates:9 Mb/s; 18 Mb/s; 48 Mb/s; 54 Mb/s
                   Mode:Master
                   Extra:tsf=00000000c3bd6181
                   Extra: Last beacon: 3700ms ago
                   IE: Unknown: 000E0000000000000000000000000000
                   IE: Unknown: 010882848B960C183048
                   IE: Unknown: 03010B
                   IE: Unknown: 050400010000
                   IE: Unknown: 2A0100
                   IE: Unknown: 32041224606C
                   IE: IEEE 802.11i/WPA2 Version 1
                       Group Cipher : CCMP
                       Pairwise Ciphers (1) : CCMP
                       Authentication Suites (1) : PSK
                      Preauthentication Supported

eth0      Interface doesn't support scanning.

[email protected] /boot $

-

[email protected] /boot $ ifconfig
eth0      Link encap:Ethernet  HWaddr b8:27:eb:6c:58:07  
         inet addr:10.0.0.3  Bcast:10.0.0.255  Mask:255.255.255.0
         UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
         RX packets:10096 errors:0 dropped:0 overruns:0 frame:0
         TX packets:7485 errors:0 dropped:0 overruns:0 carrier:0
         collisions:0 txqueuelen:1000
         RX bytes:9304609 (8.8 MiB)  TX bytes:829233 (809.7 KiB)

lo        Link encap:Local Loopback  
         inet addr:127.0.0.1  Mask:255.0.0.0
         UP LOOPBACK RUNNING  MTU:16436  Metric:1
         RX packets:0 errors:0 dropped:0 overruns:0 frame:0
         TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
         collisions:0 txqueuelen:0
         RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

wlan0     Link encap:Ethernet  HWaddr c4:3d:c7:bc:34:db  
         UP BROADCAST MULTICAST  MTU:1500  Metric:1
         RX packets:0 errors:0 dropped:0 overruns:0 frame:0
         TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
         collisions:0 txqueuelen:1000
         RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

[email protected] /boot $

- Найдите мой dmesg вывод ниже:

[email protected] ~ $ dmesg
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Linux version 3.2.27+ ([email protected]) (gcc version 4.7.2 20120731 (prerelease) (crosstool-NG linaro-1.13.1+bzr2458 - Linaro GCC 2012.08) ) #250 PREEMPT Thu Oct 18 19:03:02 BST 2012
[    0.000000] CPU: ARMv6-compatible processor [410fb767] revision 7 (ARMv7), cr=00c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
[    0.000000] Machine: BCM2708
[    0.000000] Memory policy: ECC disabled, Data cache writeback
[    0.000000] On node 0 totalpages: 114688
[    0.000000] free_area_init_node: node 0, pgdat c050db28, node_mem_map c05b6000
[    0.000000]   Normal zone: 896 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 113792 pages, LIFO batch:31
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 113792
[    0.000000] Kernel command line: dma.dmachans=0x7f35 bcm2708_fb.fbwidth=1280 bcm2708_fb.fbheight=960 bcm2708.boardrev=0xf bcm2708.serial=0x496c5807 smsc95xx.macaddr=B8:27:EB:6C:58:07 sdhci-bcm2708.emmc_clock_freq=100000000 vc_mem.mem_base=0x1c000000 vc_mem.mem_size=0x20000000  dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait
[    0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Memory: 448MB = 448MB total
[    0.000000] Memory: 448872k/448872k available, 9880k reserved, 0K highmem
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
[    0.000000]     vmalloc : 0xdc800000 - 0xe8000000   ( 184 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xdc000000   ( 448 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .text : 0xc0008000 - 0xc04c0e78   (4836 kB)
[    0.000000]       .init : 0xc04c1000 - 0xc04e0b10   ( 127 kB)
[    0.000000]       .data : 0xc04e2000 - 0xc050e1c0   ( 177 kB)
[    0.000000]        .bss : 0xc050e1e4 - 0xc05b5128   ( 668 kB)
[    0.000000] NR_IRQS:330
[    0.000000] sched_clock: 32 bits at 1000kHz, resolution 1000ns, wraps every 4294967ms
[    0.000000] timer_set_mode: unhandled mode:1
[    0.000000] timer_set_mode: unhandled mode:3
[    0.000000] Console: colour dummy device 80x30
[    0.000000] console [tty1] enabled
[    0.000946] Calibrating delay loop... 697.95 BogoMIPS (lpj=3489792)
[    0.060146] pid_max: default: 32768 minimum: 301
[    0.060627] Mount-cache hash table entries: 512
[    0.061122] Initializing cgroup subsys cpuacct
[    0.061214] Initializing cgroup subsys devices
[    0.061250] Initializing cgroup subsys freezer
[    0.061282] Initializing cgroup subsys blkio
[    0.061425] CPU: Testing write buffer coherency: ok
[    0.061764] hw perfevents: enabled with v6 PMU driver, 3 counters available
[    0.062978] devtmpfs: initialized
[    0.073358] NET: Registered protocol family 16
[    0.074046] bcm2708.uart_clock = 0
[    0.075666] hw-breakpoint: found 6 breakpoint and 1 watchpoint registers.
[    0.075723] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.075761] mailbox: Broadcom VideoCore Mailbox driver
[    0.075865] bcm2708_vcio: mailbox at f200b880
[    0.075970] bcm_power: Broadcom power driver
[    0.076008] bcm_power_open() -> 0
[    0.076033] bcm_power_request(0, 8)
[    0.576719] bcm_mailbox_read -> 00000080, 0
[    0.576761] bcm_power_request -> 0
[    0.576786] Serial: AMBA PL011 UART driver
[    0.576954] dev:f1: ttyAMA0 at MMIO 0x20201000 (irq = 83) is a PL011 rev3
[    0.886984] console [ttyAMA0] enabled
[    0.912500] bio: create slab <bio-0> at 0
[    0.917710] SCSI subsystem initialized
[    0.921709] usbcore: registered new interface driver usbfs
[    0.927437] usbcore: registered new interface driver hub
[    0.933023] usbcore: registered new device driver usb
[    0.939061] Switching to clocksource stc
[    0.943311] FS-Cache: Loaded
[    0.946495] CacheFiles: Loaded
[    0.963256] NET: Registered protocol family 2
[    0.968093] IP route cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.976268] TCP established hash table entries: 16384 (order: 5, 131072 bytes)
[    0.984315] TCP bind hash table entries: 16384 (order: 4, 65536 bytes)
[    0.991271] TCP: Hash tables configured (established 16384 bind 16384)
[    0.997880] TCP reno registered
[    1.001054] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    1.006969] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    1.013786] NET: Registered protocol family 1
[    1.018926] RPC: Registered named UNIX socket transport module.
[    1.025062] RPC: Registered udp transport module.
[    1.029786] RPC: Registered tcp transport module.
[    1.034538] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    1.041283] bcm2708_dma: DMA manager at dc808000
[    1.046082] bcm2708_gpio: bcm2708_gpio_probe c04e9c18
[    1.051539] vc-mem: phys_addr:0x00000000 mem_base=0x1c000000 mem_size:0x20000000(512 MiB)
[    1.060837] audit: initializing netlink socket (disabled)
[    1.066388] type=2000 audit(0.750:1): initialized
[    1.182825] VFS: Disk quotas dquot_6.5.2
[    1.187072] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    1.194616] FS-Cache: Netfs 'nfs' registered for caching
[    1.200876] msgmni has been set to 876
[    1.206738] io scheduler noop registered
[    1.210708] io scheduler deadline registered (default)
[    1.216149] io scheduler cfq registered
[    1.253113] Console: switching to colour frame buffer device 160x60
[    1.276445] kgdb: Registered I/O driver kgdboc.
[    1.290863] brd: module loaded
[    1.299188] loop: module loaded
[    1.303337] vcos: [1]: vchiq_init_state: slot_zero = 0xffd80000, is_master = 0
[    1.310936] vcos: [1]: vchiq_init_state: called
[    1.316451] vcos: [1]: vchiq: initialised - version 2 (min 2), device 252.0
[    1.324392] usbcore: registered new interface driver smsc95xx
[    1.330360] cdc_ncm: 04-Aug-2011
[    1.333854] usbcore: registered new interface driver cdc_ncm
[    1.339666] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
[    1.550736] Core Release: 2.80a
[    1.554099] Setting default values for core params
[    1.559050] Finished setting default values for core params
[    1.769914] Using Buffer DMA mode
[    1.773365] Periodic Transfer Interrupt Enhancement - disabled
[    1.779334] Multiprocessor Interrupt Enhancement - disabled
[    1.785070] OTG VER PARAM: 0, OTG VER FLAG: 0
[    1.789549] Dedicated Tx FIFOs mode
[    1.793379] dwc_otg: Microframe scheduler enabled
[    1.793426] dwc_otg bcm2708_usb: DWC OTG Controller
[    1.798491] dwc_otg bcm2708_usb: new USB bus registered, assigned bus number 1
[    1.806002] dwc_otg bcm2708_usb: irq 32, io mem 0x00000000
[    1.811695] Init: Port Power? op_state=1
[    1.815845] Init: Power Port (0)
[    1.819289] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.826311] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.839712] usb usb1: Product: DWC OTG Controller
[    1.850613] usb usb1: Manufacturer: Linux 3.2.27+ dwc_otg_hcd
[    1.862563] usb usb1: SerialNumber: bcm2708_usb
[    1.874119] hub 1-0:1.0: USB hub found
[    1.884056] hub 1-0:1.0: 1 port detected
[    1.894709] dwc_otg: FIQ enabled
[    1.894728] dwc_otg: NAK holdoff enabled
[    1.894751] Module dwc_common_port init
[    1.895098] usbcore: registered new interface driver uas
[    1.906463] Initializing USB Mass Storage driver...
[    1.917567] usbcore: registered new interface driver usb-storage
[    1.929547] USB Mass Storage support registered.
[    1.940379] usbcore: registered new interface driver libusual
[    1.952501] mousedev: PS/2 mouse device common for all mice
[    1.964925] bcm2835-cpufreq: min=700000 max=700000 cur=700000
[    1.970764] bcm2835-cpufreq: switching to governor powersave
[    1.982389] bcm2835-cpufreq: switching to governor powersave
[    1.994200] cpuidle: using governor ladder
[    2.010159] cpuidle: using governor menu
[    2.020189] sdhci: Secure Digital Host Controller Interface driver
[    2.032326] sdhci: Copyright(c) Pierre Ossman
[    2.042656] sdhci: Enable low-latency mode
[    2.052605] bcm_power_open() -> 1
[    2.061956] Registered led device: mmc0::
[    2.063428] mmc0: SDHCI controller on BCM2708_Arasan [platform] using platform's DMA
[    2.077246] mmc0: BCM2708 SDHC host at 0x20300000 DMA 2 IRQ 77
[    2.089095] sdhci-pltfm: SDHCI platform and OF driver helper
[    2.101928] Indeed it is in host mode hprt0 = 00021501
[    2.113349] Registered led device: led0
[    2.119124] usbcore: registered new interface driver usbhid
[    2.142743] usbhid: USB HID core driver
[    2.174277] TCP cubic registered
[    2.185075] Initializing XFRM netlink socket
[    2.200528] mmc0: problem reading SD Status register.
[    2.223123] NET: Registered protocol family 17
[    2.239098] Registering the dns_resolver key type
[    2.254394] mmc0: new high speed SDHC card at address aaaa
[    2.273179] VFP support v0.3: implementor 41 architecture 1 part 20 variant b rev 5
[    2.287655] mmcblk0: mmc0:aaaa SU08G 7.40 GiB
[    2.298995] registered taskstats version 1
[    2.310172] drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
[    2.322938]  mmcblk0: p1 p2
[    2.354302] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    2.368527] VFS: Mounted root (ext4 filesystem) on device 179:2.
[    2.389041] devtmpfs: mounted
[    2.398956] Freeing init memory: 124K
[    2.408740] usb 1-1: new high-speed USB device number 2 using dwc_otg
[    2.421924] Indeed it is in host mode hprt0 = 00001101
[    2.633788] usb 1-1: New USB device found, idVendor=0424, idProduct=9512
[    2.647140] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    2.661806] hub 1-1:1.0: USB hub found
[    2.672589] hub 1-1:1.0: 3 ports detected
[    2.963569] usb 1-1.1: new high-speed USB device number 3 using dwc_otg
[    3.083788] usb 1-1.1: New USB device found, idVendor=0424, idProduct=ec00
[    3.109903] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    3.133545] smsc95xx v1.0.4
[    3.208733] smsc95xx 1-1.1:1.0: eth0: register 'smsc95xx' at usb-bcm2708_usb-1.1, smsc95xx USB 2.0 Ethernet, b8:27:eb:6c:58:07
[    3.323343] usb 1-1.2: new high-speed USB device number 4 using dwc_otg
[    3.474859] usb 1-1.2: New USB device found, idVendor=0846, idProduct=9030
[    3.500104] usb 1-1.2: New USB device strings: Mfr=16, Product=32, SerialNumber=48
[    3.533174] usb 1-1.2: Product: WNA1100
[    3.548817] usb 1-1.2: Manufacturer: NETGEAR WNA
[    3.572360] usb 1-1.2: SerialNumber: 12345
[    3.683381] usb 1-1.3: new full-speed USB device number 5 using dwc_otg
[    3.825123] usb 1-1.3: string descriptor 0 read error: -32
[    3.841188] usb 1-1.3: New USB device found, idVendor=03eb, idProduct=0902
[    3.854738] usb 1-1.3: New USB device strings: Mfr=0, Product=2, SerialNumber=0
[    3.870867] hub 1-1.3:1.0: USB hub found
[    3.881604] hub 1-1.3:1.0: 4 ports detected
[    4.038197] udevd[137]: starting version 175
[    4.173482] usb 1-1.3.2: new full-speed USB device number 6 using dwc_otg
[    4.336550] usb 1-1.3.2: New USB device found, idVendor=046d, idProduct=c52e
[    4.382772] usb 1-1.3.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    4.398898] usb 1-1.3.2: Product: USB Receiver
[    4.410226] usb 1-1.3.2: Manufacturer: Logitech
[    4.442791] input: Logitech USB Receiver as /devices/platform/bcm2708_usb/usb1/1-1/1-1.3/1-1.3.2/1-1.3.2:1.0/input/input0
[    4.498464] generic-usb 0003:046D:C52E.0001: input: USB HID v1.11 Keyboard [Logitech USB Receiver] on usb-bcm2708_usb-1.3.2/input0
[    4.552277] input: Logitech USB Receiver as /devices/platform/bcm2708_usb/usb1/1-1/1-1.3/1-1.3.2/1-1.3.2:1.1/input/input1
[    4.583568] generic-usb 0003:046D:C52E.0002: input,hiddev0: USB HID v1.11 Mouse [Logitech USB Receiver] on usb-bcm2708_usb-1.3.2/input1
[    7.078600] cfg80211: Calling CRDA to update world regulatory domain
[    8.025601] usb 1-1.2: ath9k_htc: Transferred FW: htc_9271.fw, size: 51272
[    8.261277] ath9k_htc 1-1.2:1.0: ath9k_htc: HTC initialized with 33 credits
[    8.492551] ath9k_htc 1-1.2:1.0: ath9k_htc: FW Version: 1.3
[    8.505945] ath: EEPROM regdomain: 0x60
[    8.505967] ath: EEPROM indicates we should expect a direct regpair map
[    8.506001] ath: Country alpha2 being used: 00
[    8.506012] ath: Regpair used: 0x60
[    8.539828] ieee80211 phy0: Atheros AR9271 Rev:1
[    8.554521] Registered led device: ath9k_htc-phy0
[    8.554556] usb 1-1.2: ath9k_htc: USB layer initialized
[    8.571317] usbcore: registered new interface driver ath9k_htc
[   12.175286] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[   12.666760] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[   13.499995] bcm2835 ALSA card created!
[   13.524013] bcm2835 ALSA chip created!
[   13.548348] bcm2835 ALSA chip created!
[   13.569997] bcm2835 ALSA chip created!
[   13.586161] bcm2835 ALSA chip created!
[   13.599910] bcm2835 ALSA chip created!
[   13.613618] bcm2835 ALSA chip created!
[   13.627068] bcm2835 ALSA chip created!
[   22.710641] smsc95xx 1-1.1:1.0: eth0: link up, 100Mbps, full-duplex, lpa 0x45E1
[   27.054842] Adding 102396k swap on /var/swap.  Priority:-1 extents:1 across:102396k SS

Не удалось запустить AP Scan

Конфигурация сети

Сканирование

Обновление 22 февраля

Я не мог заставить его работать даже с USB-концентратором с внешним питанием. Тот же « Не удалось запустить AP Scan », но работает функция «Сканировать». Проблема связана только с подключением к точке доступа.

My usb wifi adapter

Обновление Aug'13 2013

Три слова NOOBS - это потрясающе. Последняя версия Raspbian, установленная с помощью NOOBS, работает без всяких дополнительных шагов.

Не уверен, что версия поставляется с пакетом NOOBS v.1.2 , я пробовал apt- получить обновление, чтобы обновить мою установленную версию Raspbian и не удалось.

Примечание. Тем не менее он не работает со скрытым SSID.

3 голоса | спросил palaniraja 26 Jpm1000000pmSat, 26 Jan 2013 19:34:36 +040013 2013, 19:34:36

3 ответа


1

Я получил мой код Netgear N150, добавив ap_scan=0 в /etc/wpa_supplicant/wpa_supplicant.conf

ответил dyret 5 Maypm13 2013, 17:58:48
1

В вашем dmesg говорится, что вы используете ключ WNA1100. Попробуйте следующее сообщение: http://www.raspberrypi.org/phpBB3 /viewtopic.php?f=26&t=21569

ответил TheDoctor 31 J000000Wednesday13 2013, 00:20:49
0

У меня была такая же проблема с Raspbian на малине Pi2.

$ uname -a
Linux raspberrypi 3.18.11-v7+ #781 SMP PREEMPT 

Этот пост от Mirko Sertic решил мою проблему. Вот шаги даже для новичков Linux:

  • Откройте терминал (черный значок)
  • Введите sudo nano /etc/rc.local
  • Введите следующие 4 строки перед exit 0
modprobe 8192cu
эхо "0846 9043"> /SYS /автобус /USB /драйверы /rtl8192cu /new_id
ifdown wlan0
ifup wlan0
  • Сделайте Ctrl + X для сохранения, ответьте Y для «Да» и нажмите «Ввод», чтобы подтвердить имя файла
  • Изменить другой файл: sudo nano /etc/modprobe.d/netgear_n150.conf

и введите следующую строку:

install 8192cu /sbin/modprobe --ignore-install 8192cu; echo "0846 9043" > /sys/bus/usb/drivers/rtl8192cu/new_id
  • Ctrl + X, Да, Enter
  • Введите sudo shutdown -r now, чтобы перезапустить малину
  • Запустите Wifi-соединение Gui, набрав «wpa_gui» в терминале (я не знаю, где находится значок). Выбранный адаптер должен быть «wlan0», и ничего не отображается в «Network»
  • Нажмите «scan» в нижней части окна.
  • Вы получаете список точек доступа Wi-Fi.
  • Дважды нажмите на свое имя и введите параметры безопасности
  • Нажмите «Добавить», закройте окно списка.
  • Он должен отображать «Status: Completed (station)». Нажмите «connect»
  • Сделайте «Файл /Сохранить конфигурацию» (я не уверен в этом).
  • Теперь вы можете «подключиться» к точке вашего Wi-Fi.
  • При подключении моя клавиша NetGear мигает синим светом
  • вы можете проверить свой ip с помощью команды ifconfig
ответил Elo 13 J0000006Europe/Moscow 2015, 16:46:28

Похожие вопросы

Популярные теги

security × 330linux × 316macos × 2827 × 268performance × 244command-line × 241sql-server × 235joomla-3.x × 222java × 189c++ × 186windows × 180cisco × 168bash × 158c# × 142gmail × 139arduino-uno × 139javascript × 134ssh × 133seo × 132mysql × 132