• Content Count

  • Joined

  • Last visited

Reputation Activity

  1. Like
    slinde reacted to 1430 in Vote for next default Wallpaper   
    I have read the latest posts and decided to upgrade Armbian logo. I wanted to do something simple, but it may be easier circle, a square and a triangle ? Here are the result 

    Someone might have seen here a penguin. 
  2. Like
    slinde reacted to StuxNet in Vote for next default Wallpaper   
    Meh. I hate the puzzle one. Not horrible, just doesn't define Armbian. I could always kind of tell it was a place holder.
    To be honest, I don't care what the vote results are. Armbian needs a mascot. A symbol that is recognizable. The all black simple, minimalist ones are alright. As it always is... same for the sd card one. However, there will be boards that will be running armbian, without SD Cards ever being involved. Going with an SD card symbol is just an unreasonable attachment to the default, simplistic, layout Igor chose when he was running the site off an OrangePi. So, IMO the SD card ones don't do Armbian justice.
    Polygon Penguin all the way! Aka, PolyPenguin, Penguin Polly, Polly the Penguin, Armbian's Penguin Polly (APP), the list goes on and on. Seriously. The penguin at least has character.
    What If you combined the gradient background of #4 [Very Dark] with Dre0x's penguin? You'd have a dope, long lasting, original background, logo and mascot, while also staying true to the whole point of having a vote.
    Por que no los dos?

    (I realize the submission is late and doesn't meet requirements mention in the first place, but this isn't a submission. Just a proof of concept.)
  3. Like
    slinde reacted to zador.blood.stained in Support of Raspberry Pi   
    I don't agree that bringing here Raspberry Pi users would benefit the Armbian project.
    First, another Debian/Ubuntu derivative means fragmentation of user base - not an improvement for Raspberry Pi project.
    Second, IMO Armbian project needs more developers, experienced users/experts and maybe sponsors, and not a lot of inexperienced users who bought an SBC for no reason and now don't know what to do with it.
  4. Like
    slinde reacted to tkaiser in DD clone boots but files are missing and with wrong permissions, why?   
    Always do a verify since otherwise you never know when your hardware and/or dd failed. The following might require an
    apt-get install gddrescue p7zip first. And then given we're talking about an SD card available as /dev/sda it's just:
    root@ubuntu:~# cat /proc/partitions major minor #blocks name 179 0 3887104 mmcblk0 179 1 3686400 mmcblk0p1 8 0 500224 sda 8 1 1024 sda1 root@ubuntu:~# md5sum /dev/sda 19d9508a47b1469dc5570c2e8507112c /dev/sda root@ubuntu:~# ddrescue /dev/sda SD-card.img SD-card.log GNU ddrescue 1.19 Press Ctrl-C to interrupt rescued: 512229 kB, errsize: 0 B, current rate: 7798 kB/s ipos: 512163 kB, errors: 0, average rate: 7214 kB/s opos: 512163 kB, run time: 1.18 m, successful read: 0 s ago Finished root@ubuntu:~# md5sum SD-card.img 19d9508a47b1469dc5570c2e8507112c SD-card.img root@ubuntu:~# 7zr a -t7z -m0=lzma -mx=9 -mfb=64 -md=32m -ms=on SD-card-19d9508a47b1469dc5570c2e8507112c.7z SD-card.img 7-Zip (A) 9.20 Copyright (c) 1999-2010 Igor Pavlov 2010-11-18 p7zip Version 9.20 (locale=en_US.UTF-8,Utf16=on,HugeFiles=on,4 CPUs) Scanning Creating archive SD-card-19d9508a47b1469dc5570c2e8507112c.7z Compressing SD-card.img Everything is Ok root@ubuntu:~# ls -al SD-card-19d9508a47b1469dc5570c2e8507112c.7z -rw-r--r-- 1 root root 192350156 Dec 8 11:35 SD-card-19d9508a47b1469dc5570c2e8507112c.7z So you end up with a verified and compressed card image. And since MD5 hash is incuded in filename you could also check integrity after unpacking again.
    TL;DR: Do not use dd to either write OS images (use Etcher!) or read from devices (use GNU ddrescue!). Using dd is ALWAYS wrong. Verify reading and writing stuff. And in case you plan to do anything that should serve as backup then TEST it afterwards.
  5. Like
    slinde reacted to farrukh in Orange Pi Zero went to the market   
    Designed a case for it. Available on thingiverse if anyone interested -

  6. Like
    slinde reacted to Username in Armbian wallpaper remake   
    I used GIMP and Affinity Designer. I created the vector of the pcbs, which will be provided if needed.
    If you do not like the sdcard, I can change to with whatever you want. Just ask.
    I hosted the .zip file on dropbox, with all the resolutions needed. Download HERE

    Good luck to everyone!
  7. Like
    slinde reacted to Keno in Motioneye (OPI)   
    There have been several disjointed tutorials on making a raspberrypi or orangepi into a surveillance camera. So I threw this together to maybe help someone out there with any issues.
    I used the orangepipc+ but any orangepi board should work as long as it has the basics, internet connectivity, storage, and a camera. (I highly suggest heatsinks as well)
    any feedback or enhancements to this tutorial are greatly appreciated.
      su root   apt-get update apt-get upgrade apt-get install wget dpkg -i ffmpeg_3.1.1-1_armhf.deb   apt-get remove libavcodec-extra-56 libavformat56 libavresample2 libavutil54   apt-get install python-pip python-dev curl libssl-dev libcurl4-openssl-dev libjpeg-dev libx264-142 libavcodec56 libavformat56 libmysqlclient18 libswscale3 libpq5   wget dpkg -i pi_jessie_motion_4.0.1-1_armhf.deb   pip install motioneye mkdir -p /etc/motioneye cp /usr/local/share/motioneye/extra/motioneye.conf.sample /etc/motioneye/motioneye.conf   mkdir -p /var/lib/motioneye   cp /usr/local/share/motioneye/extra/motioneye.systemd-unit-local /etc/systemd/system/motioneye.service systemctl daemon-reload systemctl enable motioneye systemctl start motioneye   sudo modprobe gc2035 sudo modprobe vfe_v4l2   systemctl restart motioneye Accessing The Frontend
    After having successfully followed the installation instructions, the motionEye server should be running on your system and listening on port 8765. Fire up your favorite web browser and visit the following URL (replacing [your_ip] with... well, your system's IP address):
    Use admin with empty password when prompted for credentials. For further details on how to configure motionEye, see Configuration.
    pip install motioneye --upgrade
    systemctl restart motioneye
     sudo nano /etc/motioneye/motioneye.conf
    ctrl+x then y (nano)
    Modifiy the motion.config file to turnoff localhost;
    stream_localhost off
    change the port to 80 from 8765 if desired by; 
    systemctl enable motion
    systemctl start motion
    Tutorial sources;  (some resources for motion) OLD)
    WIP tutorial, I want to add a version with facial recognition using openface and a version using ALPR (automatic license plate recognition, as the orangepi systems can have 2GB of ram)
    Update 1 09/30/16;
    seems there is a issue with motioneye and being unable to find the csi camera. I'm trying to find a work around, any help is appreciated.
    Update 2 11/05/2016
    Updated motioneye installation
    added information on motion and basic setup (incomplete)
    the editor seems to be breaking my wget addresses
    I forgot to add the login information and frontend... *DOH*
  8. Like
    slinde reacted to Lost In Space in Armbian wallpaper remake   
    Thanks Igor.
    Hope the attached are of use.

  9. Like
    slinde reacted to Igor in Orange Pi Zero went to the market   
    WiFi is planned, BT also.
    Opi zero (and PC2) just arrived on my desk today and I got Armbian running on it in no time   We need to add wireless drivers and apply fine tuning ... PC2 will be tested later.

  10. Like
    slinde reacted to dvachon in Armbian wallpaper remake   
    real original and unique photo took by a friend with his telescope

  11. Like
    slinde reacted to tkaiser in Armbian on a Raspberry Pi3?   
    At least I prefer to work on supporting interesting hardware which RPi 3 is clearly not. For me personally the various Raspberries have one single feature: That's the ability to use HW accelerated video encoding (identical on all RPi models since the job is done on the VideoCore IV and not the ARM cores) but fortunately we can now also use Allwinner boards (see github repos of community member @lex and various threads in H3 and free forum).
    From a user's point of view the only great thing about Rasperries is the huge community, this advantage would be lost by switching to Armbian. So supporting these overpriced pieces of hardware really makes not that much sense IMO
    The proprietary boot process and the ARM cores not being first class citizens (the CPU cores do not even know at which frequency they're clocked and information like /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq is cheating on you) also make working with this platform less fun. Also Armbian is a lot about pushing the envelope (optimize settings, tweak kernel and u-boot) which is simply not possible on Raspberries since a lot of this stuff happens inside the properietary so called 'Firmware'. Armbian would just be another lame rootfs on these devices.
    BTW: For my use cases I/O and network bandwidth is somewhat important and here even the cheapest devices Armbian currently supports (NanoPi NEO and soon Orange Pi Zero) easily outperform RPi 3.
  12. Like
    slinde reacted to Edgar Mondragon in Armbian wallpaper remake   
    Armbian microprocessor die



    Remix from Wikimedia Commons Image, ARM chip under microscope, CC BY-SA 3.0 :

  13. Like
    slinde reacted to rodolfo in Best way for remote connection to Orange Pi   
    Simplest and safest way is to use ssh-server on OPI and forward a router-port to OPI ssh-port. With ssh port-forwarding you can tunnel any services over secure ssh connection.
  14. Like
    slinde reacted to chocho in How-to install Asterisk/FreePBX or Elastix Server on Armbian OPiPC+ ?   
    I use this on debian server image:
  15. Like
    slinde reacted to Drakoh in Setting onboard LEDs with rc.local or systemd   
    I'd like to add another method which I found "cleaner" and "easier".
    Debian provides an easy way to set sysfs values after reboot via the /etc/sysfs.conf file and the /etc/sysfs.d/ directory.
    (This is basically the same as the relation between the /proc/sys and sysctl.conf and sysctl.d.)
    My use-case:
    I wanted to set the red light on my OpiPC to the heartbeat effect.
    This can be set manually with:
    # echo heartbeat > /sys/class/leds/orangepi\:red\:status/trigger The sysfs files format is really simple:
    # the path omits the /sys/ path/to/the/settings = value So all I had to do was:
    # echo "class/leds/orangepi\:red\:status/trigger = heartbeat" > /etc/sysfs.d/red_led.conf One can modify the sysfs.conf itself, but it's more pluggable/manageable via .conf files under the sysfs.d directory.
  16. Like
    slinde reacted to manuti in Most suitable Web Browser   
    For me, the best H3 web browsing experience is with Firefox on a Beelink X2 using Armbian on the internal NAND. The difference between Beelink X2 (1GB RAM + armbian on NAND) vs Orange Pi One (512MB RAM + Samsung EVO) is very significant, is not like my core i5 with 4GB of RAM but is more or less decent.
  17. Like
    slinde reacted to martinayotte in Suggestions on connecting Membrane 1x4 Keypad to OrangePi PC+   
    You can simply use GPIO internal pullups by enabling them.
    By using orangepi_PC_gpio_pyH3 (, python code will look like :
    from pyA20.gpio import gpio from pyA20.gpio import port gpio.setcfg(port.PA1, gpio.INPUT) gpio.pullup(port.PA1, gpio.PULLUP) if gpio.input(PA1) > 0: print "not pressed" else: print "pressed"
  18. Like
    slinde got a reaction from manuti in Beelink X2 with armbian possible?   
    Had a bit of time today to do testing.
    Downloaded a fresh copy of the Beelink X2 Jessie server image file Armbian_5.14_Beelinkx2_Debian_jessie_3.4.112.7z. Unpacked it and burnt to a micro-SD card. Put the card in my Beelink X2 and switched the power on. The only thing connected to the Beelink X2 is power and network cable.
    Of course it booted just as expected and performed the dual boot it should do on first boot. So there is no fault in the ARMbian image file.
    Here are my observations of the LED behaviour. By LAN led I mean the led on the switch port my Beelink X2 is connected to. I find observing the led on the switch to be the best way to know what is happening.
      1st boot: solid purple solid blue LAN led on flashing blue/purple LAN led off flashing red/blue   2nd boot: solid purple solid blue LAN led on flashing blue solid blue ready to log in via ssh
  19. Like
    slinde got a reaction from Igor in Beelink X2 with armbian possible?   
    Had a bit of time today to do testing.
    Downloaded a fresh copy of the Beelink X2 Jessie server image file Armbian_5.14_Beelinkx2_Debian_jessie_3.4.112.7z. Unpacked it and burnt to a micro-SD card. Put the card in my Beelink X2 and switched the power on. The only thing connected to the Beelink X2 is power and network cable.
    Of course it booted just as expected and performed the dual boot it should do on first boot. So there is no fault in the ARMbian image file.
    Here are my observations of the LED behaviour. By LAN led I mean the led on the switch port my Beelink X2 is connected to. I find observing the led on the switch to be the best way to know what is happening.
      1st boot: solid purple solid blue LAN led on flashing blue/purple LAN led off flashing red/blue   2nd boot: solid purple solid blue LAN led on flashing blue solid blue ready to log in via ssh
  20. Like
    slinde reacted to AnonymousPi in Configuring Orange PI PC to receive IR/InfraRed   
    Note: Guide Updated May 2017, as I realise that /dev/input/event3 may not always be the IR receiver device on your armbian installation.
    Hi All,
    I recently bought an Orange PI PC and the best thing I ever did was install Armbian straight away (and donate). Now that I have a bit of spare time, I wanted to configure my Orange PI PC to do something ridiculous like play Rick Ashley 'Never going to give you up' upon pressing the 'red button' on some generic Chinese IR remote for an LED light strip I have in my living room.
    Thanks to Armbian, most of the pieces are in place (such as the SunXI IR package) with the distribution, you just need to glue it all together.
    However there are few configuration issues with the default Armbian install on the Orange PI PC that need to be adjusted, otherwise you'll encounter infuriating issues such as:
    No IR device existing or being detected (root cause: sunxi-cir module not loaded) No LIRC 'irw' output even after successfully using irrecord (root cause: DRIVER=devinput doesn't work, though it could be my remote), like this poor sod was experiencing.  
    I should also note that this guide on the terrible Orange PI forums, helped me with my issues.
    Step 1) Adjust /etc/lirc/hardware.conf
    Updated: This guide was originally written for Armbian based on Debian 'Jessie'. The latest Armbian (as at September 2017) is now based on Ubuntu Xenial. This introduces a new lirc package which yet again comes with a broken hardware.conf
    For Ubuntu Xenial (September 2017):
    The default hardware.conf that comes with Armbian is broken. It's assigning the 'remote' and 'transmitter' to the same device, this breaks everything. Ensure the TRANSMITTER_MODULES="" and TRANSMITTER_DEVICE = ""
    # /etc/lirc/hardware.conf # #Chosen Remote Control REMOTE="None" REMOTE_MODULES="sunxi_cir" REMOTE_DRIVER="default" REMOTE_DEVICE="/dev/lirc0" REMOTE_SOCKET="" # FYI - /run/lirc/lircd will probably be the socket that the system uses REMOTE_LIRCD_CONF="" REMOTE_LIRCD_ARGS="" #Chosen IR Transmitter TRANSMITTER="None" TRANSMITTER_MODULES="" TRANSMITTER_DRIVER="" TRANSMITTER_DEVICE="/dev/null" TRANSMITTER_SOCKET="" TRANSMITTER_LIRCD_CONF="" TRANSMITTER_LIRCD_ARGS="" #Disable kernel support. #Typically, lirc will disable in-kernel support for ir devices in order to #handle them internally. Set to false to prevent lirc from disabling this #in-kernel support. #DISABLE_KERNEL_SUPPORT="true" #Enable lircd START_LIRCD="true" #Don't start lircmd even if there seems to be a good config file #START_LIRCMD="false" #Try to load appropriate kernel modules LOAD_MODULES="true" # Default configuration files for your hardware if any LIRCMD_CONF="" #Forcing noninteractive reconfiguration #If lirc is to be reconfigured by an external application #that doesn't have a debconf frontend available, the noninteractive #frontend can be invoked and set to parse REMOTE and TRANSMITTER #It will then populate all other variables without any user input #If you would like to configure lirc via standard methods, be sure #to leave this set to "false" FORCE_NONINTERACTIVE_RECONFIGURATION="false" START_LIRCMD=""  
    For Debian Jessie (~year 2016):
    By default Armbian doesn't have the suxi-cir module enabled at boot-up, but it is available, so you will need to edit hardware.conf to enable this, as well as correct the DRIVER= line and the DEVICE= line, as the defaults in there are WRONG.
    Also I suggest commenting out Igor's code in the top five lines. A hardware.conf that works:
    # Cubietruck automatic lirc device detection by Igor Pecovnik #str=$(cat /proc/bus/input/devices | grep "H: Handlers=sysrq rfkill kbd event" | awk '{print $(NF)}') #sed -i 's/DEVICE="\/dev\/input.*/DEVICE="\/dev\/input\/'$str'"/g' /etc/lirc/hardware.conf # /etc/lirc/hardware.conf # # Arguments which will be used when launching lircd LIRCD_ARGS="" #Don't start lircmd even if there seems to be a good config file #START_LIRCMD=false #Don't start irexec, even if a good config file seems to exist. #START_IREXEC=false #Try to load appropriate kernel modules LOAD_MODULES=true # Run "lircd --driver=help" for a list of supported drivers. # 'devinput' driver on Orange PI PC causes NO EVENTS TO OCCUR # via irw for some reason. DRIVER="default" # usually /dev/lirc0 is the correct setting for systems using udev DEVICE="/dev/lirc0" MODULES="sunxi-cir" # Default configuration files for your hardware if any LIRCD_CONF="" LIRCMD_CONF="" Step 2) Restart lircd service
      As lirc is actually already running and installed in Armbian, do the following:
    root@orangepipc:/etc# /etc/init.d/lirc stop root@orangepipc:/etc# /etc/init.d/lirc start To reboot the service. 
    Then perform an 'lsmod' to see if it loaded the sunxi_cir module (because otherwise nothing will work):
      user@orangepipc:~$ lsmod Module                  Size  Used by mali_drm                2732  1 drm                   178255  2 mali_drm mali                  123208  0 ump                    29379  3 mali sunxi_cir               1601  0 8189es               1076034  0   Step 3) Find out what '/dev/input/eventX' device is your IR receiver   If you do a: ls /dev/input/event* You will most likely get a bunch of possible event devices to choose from, for example:
    anonymouspi@orangepipc:~$ ls /dev/input/event* /dev/input/event0 /dev/input/event2 /dev/input/event4 /dev/input/event1 /dev/input/event3 /dev/input/event5 For my installation, /dev/input/event3 is the IR receiver, but if you have other devices installed (i.e. USB cameras, keyboards etc.) then the number could be different. For example, executing 'evtest /dev/input/event3' reveals:
    Input driver version is 1.0.1 Input device ID: bus 0x19 vendor 0x1 product 0x1 version 0x100 Input device name: "sunxi-ir" A device name of 'sunxi-ir' means that we are using the right device for the purposes of evtest
        Step 4) Do a quick test with with 'evtest' (OrangePI PC armbian seems to use /dev/input/event3 for IR input )   Armbian has the 'evtest' program installed, point the IR remote (in my case a  LED colour remote) at your Orange PI PC and as root 'evtest /dev/input/event3'.   root@orangepipc:/etc# evtest /dev/input/event3 Input driver version is 1.0.1 Input device ID: bus 0x19 vendor 0x1 product 0x1 version 0x100 Input device name: "sunxi-ir" Supported events:   Event type 0 (EV_SYN)   Event type 1 (EV_KEY)     Event code 152 (KEY_SCREENLOCK)   Event type 4 (EV_MSC)     Event code 4 (MSC_SCAN) Key repeat handling:   Repeat type 20 (EV_REP)     Repeat code 0 (REP_DELAY)       Value    500     Repeat code 1 (REP_PERIOD)       Value    125 Properties: Testing ... (interrupt to exit)  
    Pressing the remote reveals events like:
    Testing ... (interrupt to exit) Event: time 1472917554.113967, type 4 (EV_MSC), code 4 (MSC_SCAN), value 58 Event: time 1472917554.113981, -------------- EV_SYN ------------ Event: time 1472917554.464390, type 4 (EV_MSC), code 4 (MSC_SCAN), value 59 Event: time 1472917554.464398, -------------- EV_SYN ------------ Event: time 1472917554.842832, type 4 (EV_MSC), code 4 (MSC_SCAN), value 45 Event: time 1472917554.842839, -------------- EV_SYN ------------ Event: time 1472917555.345584, type 4 (EV_MSC), code 4 (MSC_SCAN), value 58 That was the red, green, blue and white buttons being pressed. This is a good news.
    Step 5) Configure lirc to map IR input to key presses or events.
    Again, Armbian has irrecord installed (great work Igor), but given I'm re-using this remote to configure the output of a LED strip I have, I'll need to map the IR data sent, to something more meaningful. In other use-cases this isn't generally required as lircs provides a database of media remotes which is pre-mapped to Linux commands/keyboard keys.
    There's plenty of information on how to use irrecord, command I used was:
    /etc/init.d/lirc stop first stop the service, then:
    irrecord -H default -d /dev/lirc0 /etc/lirc/lircd.conf ... to record my remote and bind to 'keys'.
    Step 6) Test with irw
    Now that I recorded my configuration file with irrecord:
    /etc/init.d/lirc start .. to start lird service again
    then type 'irw' and check that the key mapping works when I point the remote at the Orange PI PC and press a button:
    root@orangepipc:/etc# irw 0000000000ff1ae5 00 KEY_R /etc/lirc/lircd.conf 0000000000ff1ae5 01 KEY_R /etc/lirc/lircd.conf 0000000000ff9a65 00 KEY_G /etc/lirc/lircd.conf 0000000000ff9a65 01 KEY_G /etc/lirc/lircd.conf 0000000000ffa25d 00 KEY_B /etc/lirc/lircd.conf 0000000000ffa25d 01 KEY_B /etc/lirc/lircd.conf 0000000000ff22dd 00 KEY_W /etc/lirc/lircd.conf 0000000000ff22dd 01 KEY_W /etc/lirc/lircd.conf Hoo Ray!
      Step 7) Create a /etc/lirc/lircrc file to run commands
    sudo vi /etc/lirc/lircrc I'd actually call mpv here and call the player:
    # begin    button = KEY_R    prog = irexec    config = mpv  /home/root/Rick\\ Astley\\ -\\ Never\\ Gonna\\ Give\\ You\\ Up.m4a & echo "COMMENT RICK ROLLING" & end begin    button = KEY_W    prog = irexec    config = killall mpv & echo "SADFACE!" & end begin    button = KEY_B    prog = irexec    config = mpv & end   You could also create a file for each user of the system if you want, eg: /root/.lircrc, /home/userXXX/.lircrc However if you do this, you will need to start the irexec service manually. If you have a /etc/lirc/lircrc file, the irexec service will start automatically at boot - this service is what actually converts the key press to the command.     So there you go, Rickrolling with a simple press of the red (KEY_R) button :-)  
    Additional References:
    [Guide] Android + InfraRed (IR) + Kodi 
    How to setup Remote Control for Linux
  21. Like
    slinde reacted to zador.blood.stained in Orange Pi Plus 2E   
    Won't help you if u-boot or SPL are corrupted
    The only way to see what is happening is UART console. LEDs are controlled from software, so they can't tell you much.
    You can't put whole rootfs on FAT partition (at least without some very strong magic to emulate file permissions and owner information). These "small PCs" are using u-boot which does have ext4 filesystem drivers, well, unless you build your image on Debian Stretch (testing) or sid, which uses ext4 flags not supported by u-boot.
    Yes. Compared to Raspberry Pi, these boards are not perfect for novice users, and also most things are already documented (i.e. here)
    I wouldn't call this a trivial situation. If you search through this forum, you can see that most of early boot problems are related to either SD card problems (including using wrong/incomplete procedure for writing an image) or power supply problems (or interference from connected USB peripherials), but it may take ages and insane efforts to force users to admit that problem is on theirs side.
    These images are designed to work out of the box, you don't need to touch anything related to partition table
  22. Like
    slinde reacted to rodolfo in Armbian SD card backup   
    Hotcloning Armbian SDcard ( tested on OPI ONE/LITE  )
    You need a USB card reader and Linux. With a running Armbian you've got all the Linux you'll ever need. The aim is to copy the entire system on SDcard including bootstuff and our personal belongings, roots, cats, dogs etc... to a new SDcard. The new card must only hold the data content of the old card and can be of different size (smaller, larger). The new SDcard contains one big partition of maximum size and is bootable.
    1. Download the script and rename it to
    2. Start your OPI ONE with the SDcard you want to copy and connect to it via ssh ( or putty ).
    3. The script needs to be run on the board ( in my case OPI ONE ). Copy the script to your board and make it executable ( chmod +x )
    4. Attach a USB card reader to the OPI ONE. Make sure there is NO OTHER USB storage attached.
    Running the script
    5. Insert the target SDcard into the card reader and check it has been detected ( lsblk )
    6. Run the script as root ( sudo ) and depending on the card reader and SDcards wait 10-60 minutes
    Test the new SDcard
    7. Shutdown the OPI ONE.
    8. Replace the SDcard in the slot with the new copy
    9. Make sure the OPI ONE boots correctly before you put the SDcard into the cookie jar for desaster recovery and worse.
    Notes on usage
    The script is just a skeleton to showcase the basics. A break needs to be added to prevent it from running accidentally and eating up disks.
    Warning : Do NOT run the script on your host

    Enjoy !
  23. Like
    slinde reacted to tkaiser in Mainline kernel and dvfs / throttling / thermal settings   
    Test done with NanoPi M1 (with the image made for NEO, only real difference: in both cases DRAM has been clocked with 408 MHz instead of 624 MHz as we usually do in Armbian):
    I used the following script called from /etc/rc.local to iterate through 816, 624, 480 and 240 MHz cpufreq running cpuminer and then killed the task to get idle consumption. Remaining in each state for 40 minutes so my 'monitoring PSU' is able to provide '30 min average consumption' numbers.
    #!/bin/bash for i in 816000 624000 480000 240000 ; do sleep 2400 echo $i >/sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq done sleep 2400 pkill minerd Cpuminer scores at the 4 different CPU clockspeeds were identical: 1420, 1110, 875, 450 khash/s
    But both temperatures and consumption differed (on the left is kernel 4.7.2, on the right 3.4.112 -- same board, same cables, same PSU, same SD card, only OS image exchanged):
    816 MHZ: 67°C / 1820 mW 73°C / 2060 mW 624 MHz: 62°C / 1600 mW 66°C / 1820 mW 480 MHz: 57°C / 1430 mW 62°C / 1660 mW 240 MHz: 49°C / 1100 mW 54°C / 1340 mW idle: 41°C / 750 mW 47°C / 980 mW (I had to slightly adjust temperature readouts since the tests take a long time to get sane average consumption values and ambient temperature differs by 2°C in the lab -- day vs night).
    On average we get a difference of +5°C / +230 mW for legacy kernel compared to mainline. This means running mainline kernel is another good measure to reduce consumption since with legacy kernel I already used NEO settings with GPU/HDMI disabled. You should also keep in mind that I powered the NanoPi M1 with FriendlyARM's PSU-ONECOM module which adds a few mW to consumption so NanoPi M1 with mainline kernel and NEO setting (DRAM clockspeed set to 408 MHz) might consume already less than 700mW.
    Detailed graphs below:
  24. Like
    slinde reacted to tkaiser in New Oranges with H5 and H2+   
    Allwinner redesigned their website. H64 is gone, H5 has 3 real USB host ports (and a 6 core Mali450 GPU and other display/video improvements compared to A64) and they finally announced R40 (quad-core A7, 2 x USB host + SATA, GbE). R40 is said to be the 'A20 Upgrade Edition: Dual-core upgrade to Quad-core(CPU), 55nm upgrade to 40nm(Craft), lower power consumption, smaller package.' -- ok, time to stop wasting efforts with H3 and H5, let's wait for R40 hardware to appear 
    BTW: For R40 is also mentioned: 'Open Sources: Supports our own lightweight Linux OS called Tina, which specialized designed for smart hardware' -- well, let's see how Allwinner's definition of Open Source will look like
    Edit: First device already appeared: Banana Pi BPi-M2 Ultra. Well, 'Team BPi' continues with their 'copy&paste gone wrong' crap (according to their 'documentation' the board has either 3 USB host ports -- which would mean they use an internal USB hub -- or just 2 which would be the count of host ports R40 features) and chose a pretty misleading name: BPi M2 was based on A31s, BPi M2+ on H3 and 'M2 Ultra' has nothing in common with both since it's in a direct line with the original A20 based Bananas. Also M2 should indicate that M3 is a better choice (which it's clearly not, worst software/support ever, hardware design flaws, not possible to get performance by specs in reality)
  25. Like
    slinde reacted to sanja in [SOLVED] Orange PI PC and $2 Ralink MT7601U dongle (USB ID 148f:7601)   
    It took me some time to figure how to make it work, so I decided to save it for some poor soul who would need it in future. (I am a Windows guy so this stuff is a bit alien for me).
    I bought <$2 WiFi dongle for my new Orange PI PC from here:

    I am running latest "ARMBIAN jessie 3.4.112-sun8i". The chip was detected by the OS but didn't work: lsusb gave me this:
    Bus 004 Device 002: ID 148f:7601 Ralink Technology, Corp. I tried several solutions:
    installing "firmware-ralink" package, compiling various sources and getting "loboris kernel" using code from this git: ...and many others to no avail. Here is how to make it work. 
    Plug your Orange PI PC into LAN. Open terminal (or SSH) with root access. 
    First, make sure that all packages on your board are up-to-date and install few additional ones (not sure if it is necessary, though, but it won't hurt):
    apt-get update && apt-get upgrade && apt-get autoremove apt-get -y install update-usbids  linux-headers-sun8i  build-essential fakeroot dpkg-dev Download the driver to your Orange PI from the official MediaTek site ( using this command: 
    wget Unpack it with command:  
    tar -jxvf DPO_MT7601U_LinuxSTA_3.0.0.4_20130913.tar.bz2 cd DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/ Some recipes suggest editing the file "os/linux/" in the source of the driver, but it looks like MediaTek have made the necessary changes already.
    Run commands and grab some coffee while it compiles. 
    make make install Then run 
    modprobe mt7601Usta Reboot. Make sure that the command: 
    iwconfig now displays new network interface:
    lo        no wireless extensions. tunl0     no wireless extensions. ra0       Ralink STA eth0      no wireless extensions. and running 
    lsmod  outputs the mention of "mt7601Usta". 
    Now you can connect your Orange PI to WiFi network.  Run
    wpa_passphrase NAME_OF_YOUR_WIFINETWORK YOUR_WIFI_PASSWORD and save the generated passphrase (long string of numbers and characters that will look like this: "ebb09a6794c2500d74e433b9de4da493c......").
    Make sure that neither your WiFi network's name or password contain characters which Linux bash considers "special". My password contained exclamation point, which is, and determining the cause of the problem was quite tricky. I had to "escape" it by prefixing it with backslash, like this:
    password! => password\! Edit file "/etc/network/interfaces":
    editor /etc/network/interfaces Unlike it is said in many manulas, your newly created interface will not be called "wlan0". Its name in your (our) case will be "ra0".
    Add these lines on top of "/etc/network/interfaces" file:
    auto ra0         allow-hotplug ra0         iface ra0 inet dhcp         wpa-ssid NAME_OF_YOUR_WIFINETWORK         wpa-psk LONG_STRING_OF_CHARS_AND_NUMBERS_YOU_WROTE_DOWN_EARLIER Save the file by pressing Strl+S followed by "Y" and Ctrl+X.
    Activate WiFi by running: 
    ifup ra0 You wll get something like this as an output:
    Internet Systems Consortium DHCP Client 4.3.1 Copyright 2004-2014 Internet Systems Consortium. All rights reserved. For info, please visit Listening on LPF/ra0/00:36:76:22:b1:59 Sending on LPF/ra0/00:36:76:22:b1:59 Sending on Socket/fallback DHCPDISCOVER on ra0 to port 67 interval 8 DHCPDISCOVER on ra0 to port 67 interval 9 DHCPREQUEST on ra0 to port 67 DHCPOFFER from DHCPACK from bound to -- renewal in 11858 seconds. If you'd run:
    ifconfig -a you will see that both wired and wireless links work simultaneously:
    eth0      Link encap:Ethernet  HWaddr ba:ab:c9:ac:7e:9a           inet addr:  Bcast:  Mask:           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1           RX packets:1983 errors:0 dropped:0 overruns:0 frame:0           TX packets:1764 errors:0 dropped:0 overruns:0 carrier:0           collisions:0 txqueuelen:1000           RX bytes:170565 (166.5 KiB)  TX bytes:294641 (287.7 KiB)           Interrupt:114 lo        Link encap:Local Loopback           inet addr:  Mask:           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  TX bytes:0 (0.0 ra0       Link encap:Ethernet  HWaddr 00:36:76:22:b1:59           inet addr:  Bcast:  Mask:           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1           RX packets:3283 errors:0 dropped:0 overruns:0 frame:0           TX packets:33 errors:0 dropped:0 overruns:0 carrier:0           collisions:0 txqueuelen:1000           RX bytes:841424 (821.7 KiB)  TX bytes:3420 (3.3 KiB) tunl0     Link encap:IPIP Tunnel  HWaddr           NOARP  MTU:1480  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  TX bytes:0 (0.0 Now you can unplug LAN cable and reconnect your SSH to an IP address that belongs to the WiFi link you have just created.  
    Additionally you can remove all IPv6 functionality if your home network doesn't use it. Edit the file "/etc/sysctl.conf" and add the following lines to the bottom of it:
    net.ipv6.conf.all.disable_ipv6 = 1 net.ipv6.conf.default.disable_ipv6 = 1 net.ipv6.conf.lo.disable_ipv6 = 1 Once you reboot your Orange PI, you won't see any mentions of IPv6 addresses in the output of "ifconfig -a" command.