rodolfo

Members
  • Content Count

    201
  • Joined

  • Last visited


Reputation Activity

  1. Like
    rodolfo got a reaction from wildcat_paris in opi pc hangs file transfer to usb hdd   
    After a lot of tests with different HDDs, SSDs and USB Flashdrives attached to USB ( host and OTG ports ) on OPI ONE/LITE with recent Armbian versions ( jessie vanilla server 5.10 , 5.12 , 5.13, 5.14 ) I've come to the following conclusions :
     
    - Armbian USB-storage on H3 is reliable and performant ( up to 35MB write/read per port )
    - Host and OTG ports show equal performance
     
    All problems encountered while testing OPI ONE/LITE with Armbian could be traced to
     
    - insufficient power supply ( not enough juice, overly noisy, large voltage drops on power spikes )
    - crappy lossy cables
    - crappy mismatching adapters ( old USB2-SATA on newer 1T HDD degraded performance to <1MB/s )
     
    I've been randomly using sdcards of dubious quality and never ran into any sort of problems either.
  2. 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/
  3. 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.
  4. 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...
  5. 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
  6. 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 ).
     
     
     
  7. 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 ).
     
     
     
  8. 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.
  9. 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 !
  10. 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.
     
     
     
  11. 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
  12. 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!)
  13. 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
  14. 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?
  15. 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.
  16. 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
  17. 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
     
     
     
     
     
     
     
     
     
     
     
  18. 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.
  19. 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
  20. 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 !
  21. 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. 
  22. Like
    rodolfo reacted to manuti in OPI ONE wireless success   
    Thanks!!! Awesome work!!!
  23. Like
    rodolfo reacted to xwalter in Wifi Access Point   
    Nice !!!
    Thanks!!!
  24. 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/
  25. 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/