Jump to content

rodolfo

Members
  • Posts

    204
  • Joined

  • Last visited

Reputation Activity

  1. Like
    rodolfo reacted to tkaiser in opi pc hangs file transfer to usb hdd   
    Me too. Please stop using Armbian now and use any of the other available OS images: http://www.orangepi.org/downloadresources/
  2. Like
    rodolfo got a reaction from wildcat_paris in opi pc hangs file transfer to usb hdd   
    @wanriz
     
    You probably face power problems. Use a good 5V/2A PSU for the OPI and extra power supply for the hdds. Powering USB flash drives directly from OPI ports woks well, SSDs and mainly HDDs can have power spikes leading to sudden voltage drops. Two connected HDDs most likely need additional power source.
  3. Like
    rodolfo reacted to tkaiser in g_ether driver (H3 device as Ethernet dongle)   
    Since the question came up a few days ago on linux-sunxi IRC and Igor2 provided a nice tutorial to activate Ethernet Gadget mode, I added the necessary one-liner patch to our repo (disabled by default) and built now a kernel with all the necessary stuff patched and enabled: http://kaiser-edv.de/tmp/4U4tkD/Armbian_3.4.112_g_ether_kernel.tar.bz2
     
    To get the idea please read through Igor2's Readme: http://igor2.repo.hu/tmp/opi_usb_gadget.txt
     
    You should run a recent Armbian installation (apt-get update/upgrade), then extract the contents of the tar archive above somewhere, install the stuff using dpkg and then reboot:
    tar xf Armbian_3.4.112_g_ether_kernel.tar.bz2 sudo dpkg -i linux-*.deb sudo reboot Then to be able to use the OTG as Ethernet Gadget device I found that we need a slight modification (since it's not /sys/bus/platform/devices/sunxi_usb_udc/role but /sys/bus/platform/devices/sunxi_usb_udc/otg_role):
    echo -n 0 > /sys/bus/platform/devices/sunxi_usb_udc/otg_role modprobe g_ether echo -n 2 > /sys/bus/platform/devices/sunxi_usb_udc/otg_role Et voilà: In the very same moment the MacBook that powers the BPi M2+ I test with notified me that a new network device appeared and this looks like:
    bash-3.2# system_profiler SPUSBDataType [...] RNDIS/Ethernet Gadget: Product ID: 0xa4a2 Vendor ID: 0x0525 (PLX Technology, Inc.) Version: 3.33 Speed: Up to 480 Mb/sec Manufacturer: Linux 3.4.112-sun8i with sunxi_usb_udc Location ID: 0x14200000 / 5 Current Available (mA): 500 Current Required (mA): 2 BSD Name: en6 So from now on I can use the H3 board as network interface en6
     
    If you know how to benefit from something like that (eg. using an USB powered NanoPi M1 -- BPi M2+ is simply too expensive -- as encrypting network device, eg. for offloading OpenVPN stuff), please try the aforementioned stuff out and report back.
     
    I wonder whether we should not enable this one-line patch and the appropriate kernel config by default...
  4. Like
    rodolfo got a reaction from tkaiser in OPI ONE wireless success   
    Just successfully tested another Realtek usb wifi dongle with the OPI ONE. Both AP and managed mode work as decribed for 0bda:0179 Realtek Semiconductor Corp. in instructions.
     
    lsusb
     
    Bus 001 Device 009: ID 0bda:8179 Realtek Semiconductor Corp. ( noname identified as 8188EU )
     
    Aliexpress Link : http://www.aliexpress.com/item/1pc-Mini-USB-WiFi-Wireless-802-11-n-g-b-150M-LAN-Adapter-Network-Card/32292872916.html
  5. Like
    rodolfo got a reaction from gnasch in OPI ONE wireless success   
    USB wireless dongles for OPI ONE continue working in Armbian_5.13. The internal wifi 8189fs for OPI LITE with factory antenna works well in managed and AP mode in Armbian_5.13.
     
    Performance tests with OPI LITE internal wifi show excellent results compared to USB dongles. Wireless connection is reliable and surprisingly performant ( 40 mbps crossing 2 walls in noisy environment, compared to 20mbps from notebook and 2 mbps from OPI ONE USB dongle ).
     
     
     
  6. Like
    rodolfo got a reaction from Igor in OPI ONE wireless success   
    USB wireless dongles for OPI ONE continue working in Armbian_5.13. The internal wifi 8189fs for OPI LITE with factory antenna works well in managed and AP mode in Armbian_5.13.
     
    Performance tests with OPI LITE internal wifi show excellent results compared to USB dongles. Wireless connection is reliable and surprisingly performant ( 40 mbps crossing 2 walls in noisy environment, compared to 20mbps from notebook and 2 mbps from OPI ONE USB dongle ).
     
     
     
  7. Like
    rodolfo reacted to Igor in OPI ONE wireless success   
    Wifi is fixed on all H3 boards. I will push new update later in the evening where 8189fs and 8189es are updated. I made brief testing and AP mode also works on both chips.
  8. Like
    rodolfo got a reaction from tkaiser in Running apt-get dist-upgrade installs the new kernel but takes the Orange Pi PC a really long time   
    1. Started with heavily used customized images on el-cheapo 4G no-name SDcards ( more or less worst case scenario )
     
    2. Udates/upgrades of OPI ONE / OPI LITE Armbian_5.10 ( earlier upgrade from 5.05 ) to latest versions took only 45 mins.
     
    3. Minor cleanups, no hickups -> GREAT JOB !
  9. Like
    rodolfo reacted to Igor in Running apt-get dist-upgrade installs the new kernel but takes the Orange Pi PC a really long time   
    1. I started with image from download, v5.10
    2. SD card = 7.30 EUR (shipped) value Samsung EVO 32GB
    3. Write, one reboot, user creation
    4. apt-get update
    5. apt-get upgrade to latest version took only 4 minutes.
     
    Nothing is wrong on our side.
     
     
     
  10. Like
    rodolfo reacted to tkaiser in Orange Pi Lite - now available   
    BTW: Schematics for OPi Lite appeared. More or less OPi One without Ethernet and some additional components, probably most interesting the new WiFi implementation: Orange_pi-lite-v1_1.pdf
  11. Like
    rodolfo reacted to tkaiser in Running apt-get dist-upgrade installs the new kernel but takes the Orange Pi PC a really long time   
    We could take the installation of this package as some sort of storage benchmark. If the rootfs is on SD card and the SD card shows slow random write performance it will simply take ages until finished. So in case you're stuck here, read through this thread and get a good card or move your rootfs to a fast connected disk.
     
    The usual no name cards (and the pretty similar 'bad brands' like Kingston, PNY, Verbatim, Intenso and so on) might be over 100 times slower compared to our recommended cards (for reasons see the aforementioned thread -- forget about 'speed class' since random IO is way more important!)
  12. Like
    rodolfo got a reaction from tkaiser in OPI LITE wireless device not working   
    @tkaiser, @igor, @jernej
     
     
    AP (master) mode and monitor mode both work
     
    Working tested AP mode
     
    sudo nano /etc/default/hostapd
    --------------------------------
    DAEMON_CONF="/etc/hostapd.conf"
    --------------------------------
     
    sudo nano /etc/hostapd.conf
    -------------------------------------------------------
    ssid=xx_opilite1_xx
    interface=wlan0
    hw_mode=g
    channel=5
    driver=nl80211
    logger_syslog=0
    logger_syslog_level=0
    wmm_enabled=1
    ieee80211n=1
    wpa=3
    preamble=1
    #wpa_psk=66eb31d2b48d19ba216f2e50c6831ee11be98e2fa3a8075e30b866f4a5ccda27
    wpa_passphrase='12345678'
    wpa_key_mgmt=WPA-PSK
    wpa_pairwise=TKIP
    rsn_pairwise=CCMP
    auth_algs=1
    macaddr_acl=0
    noscan=1
    #ht_capab=[HT40-][sHORT-GI-40][sHORT-GI-40][DSSS_CCK-40]
    country_code=CH
    #ieee80211d=1
    --------------------------------
     
    sudo nano /etc/network/interfaces
    --------------------------------
    allow-hotplug wlan0
       iface wlan0 inet static
            address 192.168.4.171
            netmask 255.255.255.0
            network 192.168.4.0
    --------------------------------
     
     
    Testing monitor mode
     
    A new virtual interface needs to be created for monitor mode
     
    sudo iw phy phy0 interface add wlan1 type monitor
     
    sudo ifconfig wlan1 192.168.5.171
     
    sudo iwlist wlan1 scan
     
    ( ---> list of scanned SSIDs, just to show interface is up )
     
     
     
    enjoy
  13. Like
    rodolfo reacted to Igor in OPI LITE wireless device not working   
    Added and it works, thanks Jernej. I also pushed to repository that you can test:
    apt-get update && apt-get upgrade Now for 8189es - is it best to use this source - with config change of course?
  14. Like
    rodolfo reacted to jernej in OPI LITE wireless device not working   
    Here is my solution for loading different wifi drivers on different boards. Basically it is just oneshot systemd service which runs a bash script. That script checks script.bin settings currently in use (there is read_fex.c source) and based on wifi settings loads appropriate wifi driver. In case of RTL8189FS it also checks for saved mac address and pass it as an argument or it creates a random one and saves it. Paths should be updated to be more appropriate for Debian.
     
    Latest RTL8189FS source is here.
  15. Like
    rodolfo got a reaction from wildcat_paris in Tutorial : How to insert images into forum posts   
    1. Select your images ( attach files -> button : choose files ) and upload them to the forum 
     

     

     
    2. Insert the displayed attachments into the forum text (Add to Post)
     

     
     
    3. Preview and upload the post
  16. Like
    rodolfo got a reaction from manuti in Torrent client & mount point changes   
    @p117
     
    Welcome on board.
     
    USB-dongles are usually auto-mounted on a newly created mount point in /media. This is how you force it to be mounted at a predefined
    mount point.
     
    1. Create a new mount point for your USB-dongle
     
    sudo mkdir /mnt/mydrive
     
     
    2. Plug in your USB-drive and check the partition name ( e.g. /dev/sda1 ) Your drive is most likely formatted as vfat.
     
    sudo blkid
    /dev/mmcblk0p1: UUID="56a9eae3-fd35-47d4-a01c-00251c2d6a8d" TYPE="ext4" PARTUUID="00003286-01"
    /dev/mmcblk0: PTUUID="00003286" PTTYPE="dos"
    /dev/sda1: UUID="4732-9959" TYPE="vfat"
     
    3. Use the unique identifier (UUID) of the filesystem on your USB-drive and add an entry to your /etc/fstab
     
     
    sudo nano /etc/fstab
     
    #----sample fstab-entry to mount specific USB-drive
    #    the unique identifier UUID can be queried with
    #    blkid
    #

    UUID="4732-9959"  /mnt/mydrive   vfat    defaults,noatime        0 2
     
    4. When you reboot, the USB-drive will be automatically mounted at /mnt/mydrive. Adjust permissions if needed.
     
    5. Enjoy
     
     
     
     
     
     
     
     
     
     
     
  17. Like
    rodolfo reacted to Igor in OPI ONE wireless success   
    There are no problems with tools but kernel / drivers. Switching to other distribution with older or equal kernel you only waste time.
  18. Like
    rodolfo reacted to xwalter in OPI ONE wireless success   
    yes I know , this is because I want to manage wifi with armbian and I'm here
  19. Like
    rodolfo reacted to technik007_cz in Orange Pi PC: Wifi dongle showing 2 times   
    This is what worked for adapter below:
     
    lsusb
     
    ...
    Bus 003 Device 002: ID 0bda:0179 Realtek Semiconductor Corp.
    ...
     
    nano /etc/modules-load.d/modules.conf
     
    and I added line:
     
    8192cu
     
    Thank you @rodolfo !
  20. Like
    rodolfo reacted to Godz in OPI ONE wireless success   
    Thank you, it's work!!!
    I setup AP with RTL8188EU
    After AP setup tune dhcpd server and NAT by this manual https://learn.adafruit.com/setting-up-a-raspberry-pi-as-a-wifi-access-point/install-software
    Have some correction in your manual:
    nano /etc/hostapd.conf
    wpa=3 // why not 2
    #wpa_psk=66eb31d2b48d19ba216f2e50c6831ee11be98e2fa3a8075e30b866f4a5ccda27 //make # in start of the string bold, it is not commented by default.
    Thank you again. 
  21. Like
    rodolfo reacted to manuti in OPI ONE wireless success   
    Thanks!!! Awesome work!!!
  22. Like
    rodolfo reacted to xwalter in Wifi Access Point   
    Nice !!!
    Thanks!!!
  23. Like
    rodolfo got a reaction from Godz in Orange PI PC Wireless Module (8192cu)   
    Relax : http://forum.armbian.com/index.php/topic/1237-tutorial-opi-one-wireless-success/
  24. Like
    rodolfo got a reaction from Godz in Orange Pi PC: Wifi dongle showing 2 times   
    Relax : http://forum.armbian.com/index.php/topic/1237-tutorial-opi-one-wireless-success/
  25. Like
    rodolfo got a reaction from Pop Andrei Lucian in OPI ONE wireless success   
    Relax - Wireless is solved for OPI ONE
     
    There seems to be a lot of confusion and missing information on how to access the dirt cheap OPI ONE wirelessly and the steps necessary to successfully use cheap Realtek USB dongles ( 8188cus, 8188eu ) with Armbian_5.10.
     
    This is a short summary of the needed materials and steps to turn your OPI ONE into a wireless client or wireless AP. There are NO custom kernels, custom modules or anything else needed, we are using stock Armbian_5.10 with stock kernel, stock modules and stock software to configure wireless access for select tested and working Realtek wifi dongles.
     
    Follow the steps without variation. Once you get wifi working you may adapt setup/configuration to your specific needs
     
    Prerequisites
     
    - OPI ONE with quality power supply 5V/2A
    - MicroSD ( 4G or higher ) with stock Armbian_5.10 installed per official instructions
    - Supported wifi USB dongle
    - LAN connection to host computer ( preferrably notebook running Linux ) for needed setup/configuration 
    - WLAN-router accessible from host computer to test wireless connections.
     
    General procedure to set up wireless on OPI ONE
     
    - Set up your OPI ONE with basic Armbian_5.10 and configure a static IP LAN-address
    - Access OPI ONE via ssh from your host computer
    - Plug in wireless dongle and load correct driver module
    - check capabilities of wifi dongle (iw list)
    - configure wpa_supplicant for client mode
    - configure hostapd for AP mode
     
    >>> all configurations will be minimal without added automagic complexities ( bridges, DHCP etc...)
     
    OPI ONE wireless client
     
    Module 8192cu works with Realtek 8188CUS dongles and provides a wireless interface wlan0 ready to be configured in managed mode with wpa_supplicant.
     
     
    nano /etc/modules-load.d/modules.conf
    =====================================

    #8189es
    8192cu
     
     
     
    nano /etc/network/interfaces (adapt to your network setup)
    ==========================================================

    auto lo
            iface lo inet loopback

    #----- lan interface ( standard maintenance connection via ssh ) 
            
    allow-hotplug eth0
       iface eth0 inet static
            address 192.168.3.164           
            netmask 255.255.255.0
            network 192.168.3.0
     
    #----- Realtek 8192cu wlan interface client ( access defined in /etc/wpa_supplicant/wpa_supplicant.conf )
                
    allow-hotplug wlan0
       iface wlan0 inet static
            address 192.168.2.164
            netmask 255.255.255.0
            network 192.168.2.0
            broadcast 192.168.2.255
            gateway 192.168.2.77
        dns-nameservers 192.168.1.1
        dns-nameservers 8.8.8.8

            wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
     
     
    nano /etc/wpa_supplicant/wpa_supplicant.conf
    ============================================

    ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
    update_config=1

    network={
            ssid="<your_ssid>"
            psk="<your_password>"
            key_mgmt=WPA-PSK
            priority=99
    }
     
     
    After restarting OPI ONE it should be connected to your configured wireless router and accessible under the static IP.
    Wireless connection is working now and the rest is up to your hopefully wild imagination and creativity.
     
    Tested working dongles
     
    RTL8188CUS cheap no-name dongle from Aliexpress ( < $2 )
     
    Bus 002 Device 003: ID 0bda:8176 Realtek Semiconductor Corp. RTL8188CUS 802.11n WLAN Adapter

    RTL8188CUS Edimax EW-7811Un high quality dongle ( $10 )
     
    Bus 001 Device 008: ID 7392:7811 Edimax Technology Co., Ltd EW-7811Un 802.11n Wireless Adapter [Realtek RTL8188CUS]

    Wifi performance is not stellar, but definitely adequate. Under ideal conditions ( same room as router, little interference ) speeds of 80mbps ( measured with iperf ) can be expected. Crossing two walls at 20m distance from router the signal was still usable yielding 20mbps.
     
     
    OPI ONE access point + wireless client
     
    Surprise : You were asking for AP mode and  now you are getting AP deluxe with an extra client interface for free.
     
    Module 8188eu works with Realtek 8188EU dongle and provides TWO wireless interfaces : wlan0 is ready to be configured in AP mode with hostapd and wlan1 in managed mode with wpa_supplicant.
     
    When the dongle is plugged in and the driver correctly loaded, iw list will enumerate the drivers parameters for the two new interfaces. iwconfig will show wlan0 and wlan1.
     
     
     
    nano /etc/modules-load.d/modules.conf
    =====================================

    #8189es
    8188eu

    nano /etc/default/hostapd
    =========================

    DAEMON_CONF="/etc/hostapd.conf"


    nano /etc/network/interfaces
    ============================

    auto lo
            iface lo inet loopback

    #----- lan interface ( standard maintenance connection via ssh )
            
    allow-hotplug eth0
       iface eth0 inet static
            address 192.168.3.164
            netmask 255.255.255.0
            network 192.168.3.0

    #----- Realtek 8188eu wlan interface AP ( access defined in /etc/hostapd.conf )
                  
    allow-hotplug wlan0
       iface wlan0 inet static
            address 192.168.4.164
            netmask 255.255.255.0
            network 192.168.4.0

    #----- Realtek 8188eu wlan interface client ( access defined in /etc/wpa_supplicant/wpa_supplicant.conf )
                
    allow-hotplug wlan1
       iface wlan1 inet static
            address 192.168.2.164
            netmask 255.255.255.0
            network 192.168.2.0
            broadcast 192.168.2.255
            gateway 192.168.2.77
        dns-nameservers 192.168.1.1
        dns-nameservers 8.8.8.8

            wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf


    nano /etc/hostapd.conf
    ======================

    ssid=<your-OPI-ONE-ssid>            
    interface=wlan0
    hw_mode=g
    channel=5
    driver=nl80211
    logger_syslog=0
    logger_syslog_level=0
    wmm_enabled=1
    ieee80211n=1
    wpa=3
    preamble=1
    #wpa_psk=66eb31d2b48d19ba216f2e50c6831ee11be98e2fa3a8075e30b866f4a5ccda27
    wpa_passphrase='12345678'
    wpa_key_mgmt=WPA-PSK
    wpa_pairwise=TKIP
    rsn_pairwise=CCMP
    auth_algs=1
    macaddr_acl=0
    noscan=1
    #ht_capab=[HT40-][sHORT-GI-40][sHORT-GI-40][DSSS_CCK-40]
    country_code=<your country code>
    #ieee80211d=1


    nano /etc/wpa_supplicant/wpa_supplicant.conf
    ============================================

    ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
    update_config=1

    network={
            ssid="<your-router-ssid>"
            psk="<your-router-password>"
            key_mgmt=WPA-PSK
            priority=99
    }
     
     
    After restarting OPI ONE it should be connected to your configured wireless router and accessible under the static IP. On your notebook the newly created OPI ONE access point should be visible when scanning. Specify a static IP for the link and connect using the chosen password ( e.g. '12345678' ) . Feel like a hero, empty a sixpack and order more pizza....
    Wireless connection is working now and the rest is up to your hopefully wild imagination and creativity.
     
     
    Tested working dongle for AP mode :
     
    RTL8188EU cheap no-name dongle from Aliexpress (  $2.20  )
    Bus 001 Device 009: ID 0bda:0179 Realtek Semiconductor Corp. ( noname identified as 8188EU )

    Wifi performance with both interfaces active is surprisingly good. Under ideal conditions ( same room as router, little interference ) speeds of 60 (client) / 30 (AP) mbps can be expected. Crossing two walls at 20m distance from router signals were still usable yielding 20 (client) / 5 (AP) mbps.
     
     
    Troubleshooting
    Most of the problems encountered while setting up WIFI are caused by inadequate or overly complicated testing setups, procedures and rampant wild guesses. Keep it simple and solve one problem at a time. As a stable datum you should realize that the procedures outlined above DO WORK and have been adequately TESTED and RETESTED..
     
    Solution No. 1 :  Follow the steps outlined
    Solution No. 2 :  Find out where you did not follow the steps outlined
    Solution No. 3 :  Find out what you added to the steps outlined
    Solution No. 4 :  Reiterate
     
     
    Good luck with your wireless OPI ONE, enjoy and flood the forum with working solutions.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines