OpenWrt Forum Archive

Topic: OpenWRT Raspberry Pi 2B with RTL8192SU Need Help!

The content of this topic has been archived on 15 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi,

i am using my RPI 2B as a 3g Router for about 6 months now, but on Raspbian with hostapd and wvdial etc.

Recently i "upgraded" to OpenWRT, the 3g modem and eth interface was easy to set up with all kind of things like modeswitch and so on and it worked like a charm. I was just as surprised as annoyed from the following:
So i wanted to create an AP, with my EW-7612UAn V2 based on the RTL8192SU chipset and with the USB ID: 7392:7822, just like before on Raspbian with hostapd. But i cant get it to work.



my kernel Log:

[    0.000000] Booting Linux on physical CPU 0xf00
[    0.000000] Linux version 3.18.23 (buildbot@builder1) (gcc version 4.8.3 (OpenWrt/Linaro GCC 4.8-2014.04 r48532) ) #1 SMP Sun Jan 31 11:13:07 CET 2016
[    0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] Machine: BCM2709
[    0.000000] cma: Reserved 16 MiB at 0x3a000000
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] On node 0 totalpages: 241664
[    0.000000] free_area_init_node: node 0, pgdat 80498040, node_mem_map b988f000
[    0.000000]   Normal zone: 1888 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 241664 pages, LIFO batch:31
[    0.000000] [bcm2709_smp_init_cpus] enter (8520->f3003010)
[    0.000000] [bcm2709_smp_init_cpus] ncores=4
[    0.000000] PERCPU: Embedded 9 pages/cpu @b9866000 s6720 r8192 d21952 u36864
[    0.000000] pcpu-alloc: s6720 r8192 d21952 u36864 alloc=9*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3 
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 239776
[    0.000000] Kernel command line: dma.dmachans=0x7f35 bcm2708_fb.fbwidth=656 bcm2708_fb.fbheight=416 bcm2709.boardrev=0xa21041 bcm2709.serial=0x7da662fc smsc95xx.macaddr=B8:27:EB:A6:62:FC bcm2708_fb.fbswap=1 bcm2709.disk_led_gpio=47 bcm2709.disk_led_active_low=0 sdhci-bcm2708.emmc_clock_freq=250000000 vc_mem.mem_base=0x3dc00000 vc_mem.mem_size=0x3f000000  dwc_otg.lpm_enable=0 rpitestmode=1 console=tty1 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 root=/dev/mmcblk0p2 rootfstype=ext4 rootwait
[    0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Memory: 936560K/966656K available (3376K kernel code, 218K rwdata, 1012K rodata, 168K init, 356K bss, 30096K reserved)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xffe00000   (2048 kB)
[    0.000000]     vmalloc : 0xbb800000 - 0xff000000   (1080 MB)
[    0.000000]     lowmem  : 0x80000000 - 0xbb000000   ( 944 MB)
[    0.000000]     modules : 0x7f000000 - 0x80000000   (  16 MB)
[    0.000000]       .text : 0x80008000 - 0x80451354   (4389 kB)
[    0.000000]       .init : 0x80452000 - 0x8047c000   ( 168 kB)
[    0.000000]       .data : 0x8047c000 - 0x804b2ab8   ( 219 kB)
[    0.000000]        .bss : 0x804b2ab8 - 0x8050bb0c   ( 357 kB)
[    0.000000] Hierarchical RCU implementation.
[    0.000000] NR_IRQS:480
[    0.000000] Architected cp15 timer(s) running at 19.20MHz (virt).
[    0.000013] sched_clock: 56 bits at 19MHz, resolution 52ns, wraps every 3579139424256ns
[    0.000031] Switching to timer-based delay loop, resolution 52ns
[    0.000510] Console: colour dummy device 80x30
[    0.001031] console [tty1] enabled
[    0.001066] Calibrating delay loop (skipped), value calculated using timer frequency.. 38.40 BogoMIPS (lpj=192000)
[    0.001111] pid_max: default: 32768 minimum: 301
[    0.001454] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.001493] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.002387] CPU: Testing write buffer coherency: ok
[    0.002803] CPU0: thread -1, cpu 0, socket 15, mpidr 80000f00
[    0.002836] [bcm2709_smp_prepare_cpus] enter
[    0.002950] Setting up static identity map for 0x127c0 - 0x12818
[    0.004764] [bcm2709_boot_secondary] cpu:1 started (0) 18
[    0.005019] CPU1: Booted secondary processor
[    0.005024] [bcm2709_secondary_init] enter cpu:1
[    0.005070] CPU1: thread -1, cpu 1, socket 15, mpidr 80000f01
[    0.005544] [bcm2709_boot_secondary] cpu:2 started (0) 18
[    0.005742] CPU2: Booted secondary processor
[    0.005747] [bcm2709_secondary_init] enter cpu:2
[    0.005778] CPU2: thread -1, cpu 2, socket 15, mpidr 80000f02
[    0.006210] [bcm2709_boot_secondary] cpu:3 started (0) 17
[    0.006386] CPU3: Booted secondary processor
[    0.006391] [bcm2709_secondary_init] enter cpu:3
[    0.006420] CPU3: thread -1, cpu 3, socket 15, mpidr 80000f03
[    0.006497] Brought up 4 CPUs
[    0.006562] SMP: Total of 4 processors activated (153.60 BogoMIPS).
[    0.006583] CPU: All CPU(s) started in SVC mode.
[    0.024676] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.026518] NET: Registered protocol family 16
[    0.032101] DMA: preallocated 4096 KiB pool for atomic coherent allocations
[    0.060107] cpuidle: using governor ladder
[    0.090130] cpuidle: using governor menu
[    0.090547] bcm2709.uart_clock = 3000000
[    0.091992] mailbox: Broadcom VideoCore Mailbox driver
[    0.092082] bcm2708_vcio: mailbox at f300b880
[    0.092267] bcm_power: Broadcom power driver
[    0.092292] bcm_power_open() -> 0
[    0.092310] bcm_power_request(0, 8)
[    0.592997] bcm_mailbox_read -> 00000080, 0
[    0.593020] bcm_power_request -> 0
[    0.593165] Serial: AMBA PL011 UART driver
[    0.593281] dev:f1: ttyAMA0 at MMIO 0x3f201000 (irq = 83, base_baud = 0) is a PL011 rev3
[    1.021850] console [ttyAMA0] enabled
[    1.083467] SCSI subsystem initialized
[    1.087412] usbcore: registered new interface driver usbfs
[    1.092999] usbcore: registered new interface driver hub
[    1.098394] usbcore: registered new device driver usb
[    1.104951] Switched to clocksource arch_sys_counter
[    1.116419] NET: Registered protocol family 2
[    1.121777] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    1.128983] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    1.135621] TCP: Hash tables configured (established 8192 bind 8192)
[    1.142081] TCP: reno registered
[    1.145338] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    1.151312] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    1.158005] NET: Registered protocol family 1
[    1.162952] bcm2708_dma: DMA manager at f3007000
[    1.167725] bcm2708_gpio: bcm2708_gpio_probe 8049b488
[    1.173272] vc-mem: phys_addr:0x00000000 mem_base=0x3dc00000 mem_size:0x3f000000(1008 MiB)
[    1.182700] futex hash table entries: 1024 (order: 4, 65536 bytes)
[    1.190178] msgmni has been set to 1861
[    1.194408] io scheduler noop registered
[    1.198378] io scheduler deadline registered
[    1.202668] io scheduler cfq registered (default)
[    1.208624] BCM2708FB: allocated DMA memory fa400000
[    1.213624] BCM2708FB: allocated DMA channel 0 @ f3007000
[    1.225028] Console: switching to colour frame buffer device 82x26
[    1.236732] bcm2708-dmaengine bcm2708-dmaengine: Load BCM2835 DMA engine driver
[    1.245728] uart-pl011 dev:f1: no DMA platform data
[    1.252227] vc-cma: Videocore CMA driver
[    1.257596] vc-cma: vc_cma_base      = 0x00000000
[    1.263706] vc-cma: vc_cma_size      = 0x00000000 (0 MiB)
[    1.270482] vc-cma: vc_cma_initial   = 0x00000000 (0 MiB)
[    1.284916] brd: module loaded
[    1.293231] loop: module loaded
[    1.297863] vchiq: vchiq_init_state: slot_zero = 0xba000000, is_master = 0
[    1.306990] usbcore: registered new interface driver smsc95xx
[    1.314149] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
[    1.521475] Core Release: 2.80a
[    1.525903] Setting default values for core params
[    1.531977] Finished setting default values for core params
[    1.739141] Using Buffer DMA mode
[    1.743704] Periodic Transfer Interrupt Enhancement - disabled
[    1.750858] Multiprocessor Interrupt Enhancement - disabled
[    1.757780] OTG VER PARAM: 0, OTG VER FLAG: 0
[    1.763470] Dedicated Tx FIFOs mode
[    1.768632] WARN::dwc_otg_hcd_init:1047: FIQ DMA bounce buffers: virt = 0xba414000 dma = 0xfa414000 len=9024
[    1.781256] FIQ FSM acceleration enabled for :
[    1.781256] Non-periodic Split Transactions
[    1.781256] Periodic Split Transactions
[    1.781256] High-Speed Isochronous Endpoints
[    1.803276] dwc_otg: Microframe scheduler enabled
[    1.803342] WARN::hcd_init_fiq:412: FIQ on core 1 at 0x80250b74
[    1.810698] WARN::hcd_init_fiq:413: FIQ ASM at 0x8000d5a8 length 36
[    1.818379] WARN::hcd_init_fiq:438: MPHI regs_base at 0xbb808000
[    1.825817] dwc_otg bcm2708_usb: DWC OTG Controller
[    1.832132] dwc_otg bcm2708_usb: new USB bus registered, assigned bus number 1
[    1.840832] dwc_otg bcm2708_usb: irq 32, io mem 0x00000000
[    1.847754] Init: Port Power? op_state=1
[    1.853028] Init: Power Port (0)
[    1.857817] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.866017] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.874621] usb usb1: Product: DWC OTG Controller
[    1.880693] usb usb1: Manufacturer: Linux 3.18.23 dwc_otg_hcd
[    1.887808] usb usb1: SerialNumber: bcm2708_usb
[    1.894338] hub 1-0:1.0: USB hub found
[    1.899486] hub 1-0:1.0: 1 port detected
[    1.905142] dwc_otg: FIQ enabled
[    1.905155] dwc_otg: NAK holdoff enabled
[    1.905163] dwc_otg: FIQ split-transaction FSM enabled
[    1.905199] Module dwc_common_port init
[    1.905432] usbcore: registered new interface driver uas
[    1.912125] usbcore: registered new interface driver usb-storage
[    1.919502] mousedev: PS/2 mouse device common for all mice
[    1.926434] bcm2708 watchdog, heartbeat=10 sec (nowayout=0)
[    1.933345] sdhci: Secure Digital Host Controller Interface driver
[    1.940844] sdhci: Copyright(c) Pierre Ossman
[    1.946629] DMA channels allocated for the MMC driver
[    1.984961] Load BCM2835 MMC driver
[    1.995306] sdhci-pltfm: SDHCI platform and OF driver helper
[    2.002882] TCP: cubic registered
[    2.007553] NET: Registered protocol family 17
[    2.013417] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this.
[    2.029862] Bridge firewalling registered
[    2.036313] 8021q: 802.1Q VLAN Support v1.8
[    2.043364] Registering SWP/SWPB emulation handler
[    2.050118] vc-sm: Videocore shared memory driver
[    2.056224] [vc_sm_connected_init]: start
[    2.062069] [vc_sm_connected_init]: end - returning 0
[    2.069194] Waiting for root device /dev/mmcblk0p2...
[    2.092715] mmc0: host does not support reading read-only switch, assuming write-enable
[    2.105071] Indeed it is in host mode hprt0 = 00021501
[    2.105578] mmc0: Problem switching card into high-speed mode!
[    2.105706] mmc0: new SDHC card at address 0001
[    2.119162] mmcblk0: mmc0:0001 00000 7.44 GiB 
[    2.121373]  mmcblk0: p1 p2
[    2.193531] EXT4-fs (mmcblk0p2): warning: mounting unchecked fs, running e2fsck is recommended
[    2.210645] EXT4-fs (mmcblk0p2): mounted filesystem without journal. Opts: (null)
[    2.221275] VFS: Mounted root (ext4 filesystem) on device 179:2.
[    2.229173] Freeing unused kernel memory: 168K (80452000 - 8047c000)
[    2.314994] usb 1-1: new high-speed USB device number 2 using dwc_otg
[    2.323188] Indeed it is in host mode hprt0 = 00001101
[    2.369138] init: Console is alive
[    2.374429] init: - watchdog -
[    2.525265] usb 1-1: New USB device found, idVendor=0424, idProduct=9514
[    2.533617] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    2.543095] hub 1-1:1.0: USB hub found
[    2.548590] hub 1-1:1.0: 5 ports detected
[    2.716099] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    2.725051] ehci-platform: EHCI generic platform driver
[    2.835006] usb 1-1.1: new high-speed USB device number 3 using dwc_otg
[    2.955227] usb 1-1.1: New USB device found, idVendor=0424, idProduct=ec00
[    2.963701] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    2.975334] smsc95xx v1.0.4
[    3.038371] smsc95xx 1-1.1:1.0 eth0: register 'smsc95xx' at usb-bcm2708_usb-1.1, smsc95xx USB 2.0 Ethernet, b8:27:eb:a6:62:fc

[    3.144965] usb 1-1.2: new high-speed USB device number 4 using dwc_otg
[    3.266371] usb 1-1.2: New USB device found, idVendor=7392, idProduct=7822
[    3.274868] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    3.283793] usb 1-1.2: Product: 802.11n WLAN Adapter
[    3.290324] usb 1-1.2: Manufacturer: Realtek
[    3.296117] usb 1-1.2: SerialNumber: 00e04c000001

[    3.379936] init: - preinit -
[    3.469010] random: procd urandom read with 78 bits of entropy available
[    6.539823] mount_root: mounting /dev/root
[    6.550284] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[    6.591575] procd: - early -
[    6.596241] procd: - watchdog -
[    7.231904] procd: - ubus -
[    8.237451] procd: - init -
[    8.815085] NET: Registered protocol family 10
[    8.843132] ip6_tables: (C) 2000-2006 Netfilter Core Team
[    8.862199] hidraw: raw HID events driver (C) Jiri Kosina
[    8.916264] ip_tables: (C) 2000-2006 Netfilter Core Team
[    8.928990] nf_conntrack version 0.5.0 (14892 buckets, 59568 max)
[    9.051794] usbcore: registered new interface driver r8188eu
[    9.068492] usbcore: registered new interface driver r8712u
[    9.078446] usbcore: registered new interface driver usbhid
[    9.085303] usbhid: USB HID core driver
[    9.093063] usbcore: registered new interface driver usbserial
[    9.100537] usbcore: registered new interface driver usbserial_generic
[    9.108612] usbserial: USB Serial support registered for generic
[    9.124678] xt_time: kernel timezone is -0000
[    9.137114] PPP generic driver version 2.4.2
[    9.144006] NET: Registered protocol family 24
[    9.153167] usbcore: registered new interface driver option
[    9.160431] usbserial: USB Serial support registered for GSM modem (1-port)
[   10.675059] usb 1-1.5: new high-speed USB device number 5 using dwc_otg
[   10.796139] usb 1-1.5: New USB device found, idVendor=0e8d, idProduct=0002
[   10.804664] usb 1-1.5: New USB device strings: Mfr=2, Product=3, SerialNumber=4
[   10.813444] usb 1-1.5: Product: Product
[   10.818808] usb 1-1.5: Manufacturer: MediaTek Inc
[   10.825099] usb 1-1.5: SerialNumber: 683694201091720
[   10.832857] usb-storage 1-1.5:1.0: USB Mass Storage device detected
[   10.841470] scsi host0: usb-storage 1-1.5:1.0
[   11.205868] usb 1-1.5: USB disconnect, device number 5
[   11.587953] smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup
[   11.598588] device eth0 entered promiscuous mode
[   11.607042] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
[   11.955045] usb 1-1.5: new high-speed USB device number 6 using dwc_otg
[   12.075802] usb 1-1.5: New USB device found, idVendor=0e8d, idProduct=00a5
[   12.084296] usb 1-1.5: New USB device strings: Mfr=9, Product=10, SerialNumber=0
[   12.094720] usb 1-1.5: Product: Product
[   12.100120] usb 1-1.5: Manufacturer: MediaTek Inc
[   12.111648] option 1-1.5:1.2: GSM modem (1-port) converter detected
[   12.120444] usb 1-1.5: GSM modem (1-port) converter now attached to ttyUSB0
[   12.130434] option 1-1.5:1.3: GSM modem (1-port) converter detected
[   12.139212] usb 1-1.5: GSM modem (1-port) converter now attached to ttyUSB1
[   12.149117] option 1-1.5:1.4: GSM modem (1-port) converter detected
[   12.158089] usb 1-1.5: GSM modem (1-port) converter now attached to ttyUSB2
[   12.168115] option 1-1.5:1.5: GSM modem (1-port) converter detected
[   12.177293] usb 1-1.5: GSM modem (1-port) converter now attached to ttyUSB3
[   12.187024] usb-storage 1-1.5:1.6: USB Mass Storage device detected
[   12.195830] scsi host1: usb-storage 1-1.5:1.6
[   12.878731] random: nonblocking pool is initialized
[   13.130481] smsc95xx 1-1.1:1.0 eth0: link up, 100Mbps, full-duplex, lpa 0x45E1
[   13.160414] br-lan: port 1(eth0) entered forwarding state
[   13.167659] br-lan: port 1(eth0) entered forwarding state
[   13.175342] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[   13.196273] scsi 1:0:0:0: Direct-Access     MEDIATEK  FLASH DISK      6225 PQ: 0 ANSI: 0 CCS
[   13.225955] sd 1:0:0:0: [sda] Test WP failed, assume Write Enabled
[   13.234454] sd 1:0:0:0: [sda] Asking for cache data failed
[   13.241620] sd 1:0:0:0: [sda] Assuming drive cache: write through
[   13.250906] sd 1:0:0:0: [sda] Attached SCSI removable disk
[   15.164997] br-lan: port 1(eth0) entered forwarding state
[   15.761738] 3g-wan: renamed from ppp0

I followed several instructions from the web, thats why its a bit messy with the modules, but i allready reflashed OpenWRT and tried them one by one.



I found a thread that says mac80211 should support those RTL devices? I dont really understand and i cant post URL so here is what the page says:

trunk/package/mac80211/Makefile 
r15976    r16022     
216    216      FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/rt2x00/rt2800usb.$(LINUX_KMOD_SUFFIX) 
217    217      AUTOLOAD:=$(call AutoLoad,27,rt2800usb) 
     218    endef 
     219     
     220    define KernelPackage/rtl818x/Default 
     221      $(call KernelPackage/mac80211/Default) 
     222      TITLE:=Realtek Drivers for RTL818x devices 
     223      
     224      DEPENDS+= +kmod-eeprom-93cx6 +kmod-mac80211 @!LINUX_2_6_21||!LINUX_2_6_23||!LINUX_2_6_25 
     225    endef 
     226     
     227    define KernelPackage/rtl8180 
     228      $(call KernelPackage/rtl818x/Default) 
     229      DEPENDS+= @PCI_SUPPORT 
     230      TITLE+= (RTL8180 PCI) 
     231      FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/rtl818x/rtl8180.$(LINUX_KMOD_SUFFIX) 
     232      AUTOLOAD:=$(call AutoLoad,27,rtl8180) 
     233    endef 
     234     
     235    define KernelPackage/rtl8187 
     236    $(call KernelPackage/rtl818x/Default) 
     237      DEPENDS+= @USB_SUPPORT 
     238      TITLE+= (RTL8187 USB) 
     239      FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/rtl818x/rtl8187.$(LINUX_KMOD_SUFFIX) 
     240      AUTOLOAD:=$(call AutoLoad,27,rtl8187) 
218    241    endef 
219    242     
…    …     
557    580    $(eval $(call KernelPackage,rt2800-pci)) 
558    581    $(eval $(call KernelPackage,rt2800-usb)) 
     582    $(eval $(call KernelPackage,rtl8180)) 
     583    $(eval $(call KernelPackage,rtl8187)) 
559    584    $(eval $(call KernelPackage,zd1211rw)) 
560    585    $(eval $(call KernelPackage,mac80211-hwsim)) 
TabularUnifiedtrunk/package/mac80211/patches/007-remove_unused_stuff.patch 
r15976    r16022     
137    137    +# CONFIG_B44_PCI=y 
138    138      
139         -CONFIG_RTL8180=m 
140         +# CONFIG_RTL8180=m 
     139     CONFIG_RTL8180=m 
141    140      
142    141    -CONFIG_ADM8211=m 
…    …     
191    190      
192    191     CONFIG_P54_USB=m 
193         -CONFIG_RTL8187=m 
194         +# CONFIG_RTL8187=m 
     192     CONFIG_RTL8187=m 
195    193      
196    194    -CONFIG_AT76C50X_USB=m 

So my Question, is it even possible to get an AP with this Chipset and OpenWRT + Bridge with eth0 for same subnet?

And why are some packages i tried to install using opkg "unknown"? I had to "wget them" from the /chaos_calmer/15.05.1/brcm2708/bcm2709/packages/base/



Regards.

(Last edited by mauricescholztm on 20 Jun 2017, 20:06)

If the vendor:product number is not compiled into the driver, it won't pick up the device when it is plugged in.  You could try a LEDE build which should have a later version of the driver, or add vid= pid= options in the driver load in /etc/modules.d.

Hey @mk24

Ok so i flashed LEDE. Still not working though. I dont really get it. I installed all necessary packages and drivers but my Wlan Dongle wont be treated like a wifi chip. Kernel still only logs this:

[    2.811162] usb 1-1.2: new high-speed USB device number 4 using dwc_otg
[    2.942611] usb 1-1.2: New USB device found, idVendor=7392, idProduct=7822
[    2.952194] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    2.962195] usb 1-1.2: Product: 802.11n WLAN Adapter
[    2.969765] usb 1-1.2: Manufacturer: Realtek
[    2.976648] usb 1-1.2: SerialNumber: 00e04c000001


I was never really into Deep Linux Drivers and Modules but i tried to add my Vendor and Product ID in /sys/bus/usb/drivers/r8712u/new_id. This way i got a wlan1 interface but the MAC Address was wrong and i couldnt bring it up.

Where should i add my Vendor and Product in /etc/modules.d and in which format? In net-rtl8192su? rtwifi-usb?

root@XRouter:/etc/modules.d# ls
20-usb-core        61-hid             mmc                pppoe
25-nls-cp437       brcmfmac           net-rtl8192su      rtlwifi-usb
25-nls-iso8859-1   brcmutil           nf-conntrack       usb-hid
25-nls-utf8        hid-generic        nf-conntrack6      usb-serial
30-fs-vfat         ipt-conntrack      nf-ipt             usb-serial-option
30-sound-core      ipt-core           nf-ipt6            usb-serial-wwan
42-ip6tables       ipt-nat            nf-nat
60-input-evdev     lib-crc-ccitt      ppp


Btw can someone recommend a wlan dongle / Stick with Antenna or Chipset with good signal strength that works almost OOB with Linux / OpenWRT / LEDE.



Regards

Look for an adapter with a Ralink n chip.  Realtek chips are not well supported.  The AR9170 (ath9k-htc driver) is also a good chip, but those are scarce.

(Last edited by mk24 on 21 Jun 2017, 14:41)

The discussion might have continued from here.