Orange Pi PC -- a $15 alternative to RPi 2? So far, so good

It is not going to be trivial to get the piaware image booting on an orange pi.
I did a little research and the orangepi wants u-boot (a commonly used bootloader for embedded systems) installed in a particular place at the start of the sdcard.
That bootloader then handles reading the config files / firmware / kernel from the first partition.

see orangepi.org/Docs/Makingabootable.html
and orangepi.org/Docs/Settingup.html

Embedded systems are still back in the days of boot sectors in many ways :slight_smile:

The RPI is a little simpler because the hardware has enough of a loader directly embedded that it understands how to read a file from the first partition (/boot/start_*.elf) rather than needing it written directly to a particular location on the sdcard.

Wow, I think Linux is beyond my tolerance level. I miss Windows “Point & Click” with a mouse.

Yep… Sounds a lot easier just to use loboris’s debian jessie mini image etc. and setup the adsb stuff as usual.

There is some discussion on the OPI forum that the Raspberrian build isn’t the way to go as its just debian with drivers specific to the raspberry pi hardware that aren’t applicable to the OPI h3 hardware anyway.

Just installed the Debian-jessie-mini image (with Ubuntu uImage) and then added dump1090-mutability and Piaware using these instructions swiftbyte.com/articles/soft … -or-debian.

Worked ok on TWO orange Pi PC boards. And received the "Welcome! PiAware ‘xx:xx:xx:xx:xx:xx’ activated and now live on FlightAware! for both.

@idh
Congratulations! So far so good…
I also reached this stage and two steps further (planefinder client & flightradar24 client) with Raspbian_For_OrangePi_PC_v0_8_0.

The problem came when I installed rrdtools & collectd. The graphs will not show.

abcd567,

I was able to install Dump1090-Mutability and Piaware 2.1-5 on the Orange Pi without doing the commands for rt.-sdr and all.

Thanks for pointing out. I discovered this when after failing to boot by piaware image, I formated my microSD card, and did a fresh install of Raspbian_For_OrangePi_PC_v0_8_0.img. This time I used fewer commands, as shown below:



sudo raspi-config
sudo apt-get update
sudo apt-get upgrade


Installed dump1090-mutability 1.15 ~dev.
Used method by mgunther described here: What is Easiest Way To Install Dump1090-Mutability

After installing dump1090-mutability (DVB-T dongle must be inserted before this step)



sudo dpkg-reconfigure dump1090-mutability


During configuration when asked:
(a) "Interface address to bind to (blank for all interfaces) " , remove 127.0.0.1 and leave entry blank. This is a workaround to overcome a bug piaware.

(b) “Extra arguments to pass to dump1090”, enter " --net --net-http-port 8080 ". This will enable display of dump1090’s google map on web browser.



sudo apt-get install lighttpd
sudo lighty-enable-mod dump1090
sudo /etc/init.d/lighttpd force-reload
sudo reboot


Nice. Are you expanding the file system on the SD card?

Because from what I see the


raspi-config

works, but not for that…

Yes, the first item in config dialog is expand file system. I did say ok, but did not pay attention to responce. Will try it again tonight.

The other thing for which I used raspi-config is the localization option. By default Raspbian has a English GB keyboard, which is slightly different from English US keyboard (@ key, £ key $ key etc). I changed to Englih US keyboard.

Ok. I also change the timezone to my area. So it keeps local time.

Hi!
I just now checked my flightaware stats for Orange Pi, and found this:

Anomaly report for PiAware feeder with a MAC address of xx:xx:xx:xx:xx:xx:
Your SD card’s ‘/’ partition is at 95% of capacity. If you haven’t done so, consider running ‘sudo raspi-config’, pick option 1 to expand its filesystem to occupy the entire SD card. Alternatively it may need a bigger SD card.

So using


raspi-config

don’t work for that.

Look this over.

raspberrypi.stackexchange.com/qu … -partition

Thanks sjacket99. It worked and Anomaly report of Flightaware no more there.
Final check after expanding the file system:



root@orangepi:~# df -h
Filesystem      Size  Used Avail Use% Mounted on
rootfs          7.3G  3.0G  4.0G  43% /
/dev/root       7.3G  3.0G  4.0G  43% /
devtmpfs        374M     0  374M   0% /dev
tmpfs           101M  224K  101M   1% /run
tmpfs           5.0M     0  5.0M   0% /run/lock
tmpfs           201M  4.0K  201M   1% /run/shm
/dev/mmcblk0p1   41M   25M   17M  60% /boot
root@orangepi:~#


Awesome. Glad it worked for you.

ORANGE PI UPDATE
Thought to utilize Orange Pi for multitasking (ADS-B + something else) to test it’s capabilities. Tried following :bulb: :



root@orangepi:~# sudo apt-get install kodi 
#kodi (xbmc) = media server


after successful install



root@orangepi:~# sudo addgroup --system input
root@orangepi:~# sudo nano /etc/udev/rules.d/99-input.rules


Then copy pasted following lines in the opened file “99-input.rules”



SUBSYSTEM=="input", GROUP="input", MODE="0660"
KERNEL==tty[0-9]*, GROUP=tty, MODE=0660


Don’t know how to proceed further :frowning:
Will Google and find out.
Anyone got experience of installing media server on a Pi/Raspbian?
.

(1) Got fed up with Raspbian_For_Orange_PI, cant create or use any user except default “root”.
(2) Formatted microSD card (poor card is crying due to so many formats within few days :cry: )
(3) Downloaded zipped image “OrangePI_Jessie_Xfce.img.xz (Debian 8 with XFCE Desktop)” from here:
orangepi.org/orangepibbsen/f … ad&tid=342 .
(4) Extracted img file from zipped download using 7-Zip.
(5) Burned image to microSD card.
(6) In windows desktop, opened the microSD card, deleted kernel file “uImage”, and renamed file “uImage_OPI-2” to “uImage”. Also renamed file “script.bin.OPI-PC_1080p50” to “script.bin”
(7) Inserted microSD card in OPi, and powered up the Pi.
(8) After login, expand the partition to maximum:



sudo fs_resize
reboot


After reboot:
(9) Tried to create user “pi”, success :smiley:



orangepi@OrangePI:~$ sudo adduser pi
[sudo] password for orangepi:
Adding user `pi' ...
Adding new group `pi' (1001) ...
Adding new user `pi' (1001) with group `pi' ...
Creating home directory `/home/pi' ...
Copying files from `/etc/skel' ...
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
Changing the user information for pi
Enter the new value, or press ENTER for the default
        Full Name ]:
        Room Number ]:
        Work Phone ]:
        Home Phone ]:
        Other ]:
Is the information correct? [Y/n] y
orangepi@OrangePI:~$ sudo su pi
pi@OrangePI:/home/orangepi$ cd /home/pi
pi@OrangePI:~$


Gave new user “pi” sudoer’s previlages.



orangepi@OrangePI:~$ sudo visudo
[sudo] password for orangepi:


Upon entering password, a file opened in nano
in this file, I added the line shown in red.
Then saved file (Ctrl+o) and exit (Ctrl+x).

GNU nano 2.2.6 File: /etc/sudoers.tmp

This file MUST be edited with the ‘visudo’ command as root.

Please consider adding local content in /etc/sudoers.d/ instead of

directly modifying this file.

See the man page for details on how to write a sudoers file.

Defaults env_reset
Defaults mail_badpass
Defaults secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:$

Host alias specification

User alias specification

Cmnd alias specification

User privilege specification

root ALL=(ALL:ALL) ALL
pi ALL=(ALL:ALL) ALL

Allow members of group sudo to execute any command

%sudo ALL=(ALL:ALL) ALL

See sudoers(5) for more information on “#include” directives:

#includedir /etc/sudoers.d

Will now try installation of dump1090-mutability, piaware data feeder, planefinder data feeder, flightradar data feeder, rrdtools/collectd.

Report outcome when finished.
.

abcd567,

did you have the issue when logging into the Orange Pi with the following?

username: orangepi
Password: orangepi

When I do that the terminal window closes or logs me out. When SSH into it.

With “Raspbian_For_OPi”, YES, terminal window closed whenever I tried to login as user “orangepi” or “pi”. It only let me login as default user “root”.

With “OrangePI_Jessie_Xfce”, NO, I can successfully login as default user “orangepi” and also as user “pi”, which I have added and given it sudo privileges.

I’m guessing with the Jesse install.


raspi-config

doesn’t work. When I tried to install it. It says unable to locate.