Jump to content

UglyDoodle

Members
  • Posts

    5
  • Joined

  • Last visited

Posts posted by UglyDoodle

  1. Execute 'netstat -rn' to get the idea why two interfaces connecting to the same network (192.168.1.0/24 in your case) is a bad idea with this kernel/config. The net route to your network uses eth0 (default route as well) so unplugging the cable you'll loose access. I don't know whether it helps to change order of NICs in interfaces file or if you must use scripts to adjust the routes (googling for 'pre-down route add delete' should help)

     

    Thank you tkaiser!

     

    I made a clean install of the latest version of armbian for my Orange Pi One. Then apt-get update, apt-get upgrade etc.

     

    Followed again the tutorial and now my OPi keeps rebooting every time my WiFi dongle is connected to the USB port.

     

    Much trouble to just make an WiFi dongle to work... I'm thinking about trash out this OPi and going back to Raspberry Pi!

     

    []s!

  2. Hi! Nice tutorial!

     

    But my OPi is acting weird... When I unplug my Ethernet cable, my WiFi dongle stop to work!

     

    My lsusb:

    Bus 002 Device 002: ID 0bda:8178 Realtek Semiconductor Corp. RTL8192CU 802.11n WLAN Adapter
    

    My lsmod:

    root@orangepione:~# lsmod
    Module                  Size  Used by
    rtl8192cu              61143  0 
    rtlwifi                45784  1 rtl8192cu
    rtl8192c_common        33420  1 rtl8192cu
    mac80211              358429  3 rtlwifi,rtl8192c_common,rtl8192cu
    
    

    My interfaces config.:

    root@orangepione:~# cat /etc/network/interfaces
    # Wired adapter #1
    allow-hotplug eth0
       iface eth0 inet static
    	address 192.168.1.68
    	netmask 255.255.255.0
    	network 192.168.1.0
    	gateway 192.168.1.1
    
    allow-hotplug wlan0
       iface wlan0 inet static
    	address 192.168.1.69
            netmask 255.255.255.0
            network 192.168.1.0
            broadcast 192.168.1.255
            gateway 192.168.1.1
        dns-nameservers 192.168.1.1
        dns-nameservers 8.8.8.8
            wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
    

    My wpa_supplicant.conf:

    root@orangepione:~# cat /etc/wpa_supplicant/wpa_supplicant.conf
    ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
    update_config=1
    
    network={
            ssid="xxxxxxxxxxxxxxxx"
            psk="xxxxxxxxxxxx"
            key_mgmt=WPA-PSK
            priority=99
    }
    

    My modinfo rtl8192cu:

    root@orangepione:~# modinfo rtl8192cu
    filename:       /lib/modules/3.4.112-sun8i/kernel/drivers/net/wireless/rtlwifi/rtl8192cu/rtl8192cu.ko
    firmware:       rtlwifi/rtl8192cufw.bin
    description:    Realtek 8192C/8188C 802.11n USB wireless
    license:        GPL
    author:         Larry Finger	<Larry.Finger@lwfinger.net>
    author:         Ziv Huang	<ziv_huang@realtek.com>
    author:         Georgia		<georgia@realtek.com>
    alias:          usb:v7392p7822d*dc*dsc*dp*ic*isc*ip*
    ...
    alias:          usb:v0BDAp8191d*dc*dsc*dp*ic*isc*ip*
    depends:        rtlwifi,mac80211,rtl8192c-common
    intree:         Y
    vermagic:       3.4.112-sun8i SMP preempt mod_unload modversions ARMv7 p2v8 
    parm:           swenc:Set to 1 for software crypto (default 0)
     (bool)
    parm:           debug:Set debug level (0-5) (default 0) (int)
    

    Armbian version:

    root@orangepione:/# dpkg-query -W -f='${Version}\n' linux-jessie-root-orangepione
    
    5.16
    

    Looking at my dmesg:

    [    6.018555] rtl8192cu: Loading firmware rtlwifi/rtl8192cufw.bin
    [    6.018925] usbcore: registered new interface driver rtl8192cu
    [    6.026844] ieee80211 phy0: Selected rate control algorithm 'rtl_rc'
    [    6.028078] rtlwifi: wireless switch is on
    [    6.160511] systemd-udevd[179]: renamed network interface wlan0 to wlan1
    

    So, i changed my interfaces config to:

    root@orangepione:~# cat /etc/network/interfaces
    # Wired adapter #1
    allow-hotplug eth0
    iface eth0 inet static
        address 192.168.1.68
        netmask 255.255.255.0
        network 192.168.1.0
        gateway 192.168.1.1
    
    allow-hotplug wlan1
    iface wlan0 inet static
        address 192.168.1.69
    netmask 255.255.255.0
    network 192.168.1.0
    broadcast 192.168.1.255
    gateway 192.168.1.1
    dns-nameservers 192.168.1.1
    dns-nameservers 8.8.8.8
    wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
    

    But... Unfortunately my problem persists...

     

    What should I do?

     

    Thank you!

×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines