Orange Pi Prime - discussion | [SBC] H5 Quad-Core, 2Gb ddr3



Rep: (42)
Orange Pi PC 2 | Orange pi zero | Orange pi lite | Orange pi prime | Orange Pi Plus | Orange Pi 2G-IOT | Orange Pi Zero Plus 2 | How do I get an Orange Pi?

Orange pi prime

Attached Image
Picture

Important information


Specifications
Attached Image

A photo
Attached Image

OS / OS Installation Instructions
Orange Pi - supports ArmLinux, Lubuntu, Raspbian, Android, Kali Linux and etc. Full list here
Instruction :
We will need:
• HP USB Disk Storage Format Tool
• Win32 Disk Imager
• SDHC card (at least 4GB / 6 class)
The following is a description of the OS installation:
1. Format the SD card using HP USB SFT. To do this, select the letter of your SD card in the program (for example, F: \), tick the Quick Format box and select FAT32 FS.
2. Open an OS image in Win32 DI, select your SD card, click on the "Write" button
3. It remains to insert the card in OPi and boot.Does not apply to Android.
Installing Android:
1. Insert the micro SD card into the computer. Remember that the card must be at least 4 GB and its class must be at least 10th. Best suited for this card brand SanDisk.
2. Download the official Anrdoid distribution from this link:http://www.orangepi.org/downloadresources/
3. Unzip the "Android".
4. Download the "PhoenixCard" program from this link:http://orangepi.su/files/PhoenixCard.rar
5. Unzip the "PhoenixCard" and run.
6. In the window that opens, specify the path to the memory card, in the "Write Mode" section, specify "Product" and click "Format to normal".
If everything goes well, you will see the message "Format card to normal mode success".
7. To write the OS "Android" on the memory card, specify the path to it in the column "Img file", in the column "Write mode" select "Startup" and click "Burn".
8. At the end of the process, click "Exit".
Done! Now you can insert your card into the computer "Orange Pi" and run it. Remember that the first launch lasts longer than usual!
Useful Information / Instructions / Links
How to remove CPU overclocking
1. On all Orange Pi from the factory, it is worth overclocking, it is better to remove it. often processors are burned.
2. As they say in all forums, the board is very demanding on the speed of a microSD card! It is recommended to take a card with a speed not lower than Class 10 UHS-1, otherwise no OS will work acceptably, it has been tested on itself.
Here is the instruction:
1. Create a .sh file and enter this:
#! / bin / bash

export PATH = / usr / local / sbin: / usr / local / bin: / usr / sbin: / usr / bin: / sbin: / bin

if ["$ (id -u)"! = "0"]; then
echo "This script must be executed as root. Exiting>&2пїЅ
exit 1
fi

Fex2Bin = "$ (which fex2bin)"
if ["X $ {Fex2Bin}" = "X"]; then
apt-get -f -q -y install sunxi-tools
fi

Path2ScriptBin = "$ (df | awk -F" "'/ ^ \ / dev \ / mmcblk0p1 / {print $ 6}')"
if [! -f "$ {Path2ScriptBin} /script.bin"]; then
echo "Can not find script.bin. Ensure boot partition is mounted ">&2пїЅ
exit 1
fi

MyTmpFile = "$ (mktemp /tmp/${0##*/}.XXXXXX)"
trap "rm \" $ {MyTmpFile} \ "; exit 0" 0 1 2 3 15

bin2fex<"$ {Path2ScriptBin} /script.bin" | grep -v "^ LV" | grep -v "^ max_freq" | grep -v "^ min_freq" | grep -v "^ extremity_freq">"$ {MyTmpFile}"
if [$? -ne 0]; then
echo "Could not convert script.bin to fex. Exiting>&2пїЅ
exit 1
fi
cp -p "$ {Path2ScriptBin} /script.bin" "$ {Path2ScriptBin} /script.bin.bak"

sed -i '/ \ [dvfs_table \] / a \
extremity_freq = 1296000000 \
max_freq = 1200000000 \
min_freq = 480000000 \
LV_count = 7 \
LV1_freq = 1296000000 \
LV1_volt = 1320 \
LV2_freq = 1200000000 \
LV2_volt = 1240 \
LV3_freq = 1104000000 \
LV3_volt = 1180 \
LV4_freq = 1008000000 \
LV4_volt = 1140 \
LV5_freq = 960000000 \
LV5_volt = 1080 \
LV6_freq = 816000000 \
LV6_volt = 1020 \
LV7_freq = 480000000 \
LV7_volt = 980 '"$ {MyTmpFile}"

fex2bin "$ {MyTmpFile}" "$ {Path2ScriptBin} /script.bin">/ dev / null
if [$? -ne 0]; then
mv "$ {Path2ScriptBin} /script.bin.bak" "$ {Path2ScriptBin} /script.bin"
echo “Writing script.bin went wrong. Nothing changed »>&2�
exit 1
fi

echo “Successfully repaired broken overvolting / overclocking settings. Reboot necessary for changes to take effect »

2. Copy to your home directory and write 3 commands:
chmod + x fix.sh
sudo ./fix.sh
sudo reboot



If you want to buy
You can buy off. Store (Aliexpress):tyk
User activity

Off site -tyk
Link to download images:tyk
ArmBian -tyk(Topic uv. TabletPC007)
RetroPie for Orange Pi!
Group in Telegram. Join now!

Do you want your post to be in a hat? Write mehere


Post has been editediiputilo - 31.12.18, 23:17
Reason for editing: Added: "RetrOrangPi Theme"



Rep: (17)
What OS is there for this orange pi? Just orangepi.org site does not load at all



Rep: (4)
https://www.armbian.com/orange-pi-prime/



Rep: (1)
How to install Armbian, it is in the 7z archive etcher does not see it in if you unpack it, then it sees only the img file, but by standard the structure is different and then immediately ready img in which there is no separation on the img system and the boot partition of the flash drive



Rep: (223)
* Contercraft ,
There is no problem here to flash the IMG file on the microsd.



Rep: (1)
Explain to me stupid, from the left the img structure of the armbian file and from the right, for example, raspbian
Attached Image
in img file 1 more img which is identical in structure as the left
Attached Image
And here's how to flash such a type of file for etcher it flashes, and then it just gives an error, allegedly does not see the flash drive, re-insert it and it turns out just a flash drive with an unidentified partition. And according to the standard, it is easier to define 2 sections 1 boot which can be opened and 2 systems with unidentified

Post has been editedContercraft - 06.03.19, 23:07



Rep: (223)
ConterCraft @ 03/06/19, 21:04*
Tell me stupid

In the header of the forum, as well as on the site of the orangpe.pi itself, there is a link to the official instructions. See page 11

In addition, the same information is on the website in any of Quick Start.
http: //www.orangepi.or...d0d82e90448d4df80.html

Attached Image


There is no problem to open the img file in the recommended OrangePi Win32 Disk Imager program and press the Write button

Post has been editedSimulacrum - 07.03.19, 02:13



Rep: (152)
The codes of the IR remote control buttons for Androdi OS, for our Prime which I found from the heap of my NEC remotes in the apartment, for which I hate them (well, because of the NEC remotes, the fact that the different device codes of the buttons are the same} -)).
Maybe someone will be useful, please fix in the topic header.
NEC 32bit codes
FF18E7 power off;
FF609F settings;
FFB04F set launcher;
FFA857 right;
FF28D7 vol +;
FF6897 down;
FF08F7 vol-;
FF38C7 ​​ok;
FFE21D left;
FF5AA5 picture mode;
FFDA25 mute;
FF629D up;


Post has been editedshchelkynchik - 08.03.19, 20:39



Rep: (1)
How to remove overclocking? I copied the script from the header, it didn’t work at all because of the clumsy brackets after fixing them, it still doesn’t work, but it already goes step by step into the usual definition of root. Now gives this error:

root @ orangepiprime: / home / bickkalos # ./fix1.sh
./fix1.sh: line 16: [!: command not found
./fix1.sh: line 24: //script.bin: No such file or directory
Could not convert script.bin to fex. Exiting


here is the script itself with edited brackets:

#! / bin / bash

export PATH = / usr / local / sbin: / usr / local / bin: / usr / sbin: / usr / bin: / sbin: / bin

if ["$ (id -u)"! = "0"]; then
echo "This script must be executed as root. Exiting>&2
exit 1
fi

Fex2Bin = "$ (which fex2bin)"
if ["X $ {Fex2Bin}" = "X"]; then
apt-get -f -q -y install sunxi-tools
fi

Path2ScriptBin = "$ (df | awk -F" "'/ ^ \ / dev \ / mmcblk0p1 / {print $ 6}')"
if [! -f "$ {Path2ScriptBin} /script.bin"]; then
echo "Can not find script.bin. Ensure boot partition is mounted">&2
exit 1
fi

MyTmpFile = "$ (mktemp /tmp/${0##*/}.XXXXXX)"
trap "rm \" $ {MyTmpFile} \ "; exit 0" 0 1 2 3 15

bin2fex<"$ {Path2ScriptBin} /script.bin" | grep -v "^ LV" | grep -v "^ max_freq" | grep -v "^ min_freq" | grep -v "^ extremity_freq">"$ {MyTmpFile}"
if [$? -ne 0]; then
echo "Could not convert script.bin to fex. Exiting">&2
exit 1
fi
cp -p "$ {Path2ScriptBin} /script.bin" "$ {Path2ScriptBin} /script.bin.bak"

sed -i '/ \ [dvfs_table \] / a \
extremity_freq = 1296000000 \
max_freq = 1200000000 \
min_freq = 480000000 \
LV_count = 7 \
LV1_freq = 1296000000 \
LV1_volt = 1320 \
LV2_freq = 1200000000 \
LV2_volt = 1240 \
LV3_freq = 1104000000 \
LV3_volt = 1180 \
LV4_freq = 1008000000 \
LV4_volt = 1140 \
LV5_freq = 960000000 \
LV5_volt = 1080 \
LV6_freq = 816000000 \
LV6_volt = 1020 \
LV7_freq = 480000000 \
LV7_volt = 980 '"$ {MyTmpFile}"

fex2bin "$ {MyTmpFile}" "$ {Path2ScriptBin} /script.bin">/ dev / null
if [$? -ne 0]; then
mv "$ {Path2ScriptBin} /script.bin.bak" "$ {Path2ScriptBin} /script.bin"
echo "Writing script.bin went wrong. Nothing changed">&2
exit 1
fi

echo "Successfully repaired broken overvolting / overclocking settings. Reboot necessary for changes to take effect"


a good example of what's wrong with brackets
Attached Image
without editing
Attached Image
with editing

Post has been editedContercraft - 10.03.19, 19:45



Rep: (223)
ConterCraft @ 03/10/19, 5:39 PM*
How to remove overclocking?

Armbian does this by default.



Rep: (1)
OK, thanks for answer



Rep: (3)
Tell me, did anyone manage to raise the bluetooth on the subject?



Rep: (129)
* Geremy82, If this is armbian next and the wifi module is working, then you need to add to dtb branch and edit it as necessary.



Rep: (3)
* rubitwa ,
I have an Armbian Stretch
mainline kernel 4.19.y from here -https://www.armbian.com/orange-pi-prime/

Wifi works.

Can I use your instructions with my system?



Rep: (129)
* Geremy82, Well, throw dtb from your board from the folder / boot / I shove a branch there. Because there it is necessary to literally write the addresses of three pins with numbers and other addresses, and this patch, for example, cited.

Post has been editedrubitwa - 14.03.19, 18:40



Rep: (3)
* rubitwa , ok, I'll take it off as soon as possible.



Rep: (129)
* Geremy82, Now I'll try to write overlay, maybe it will work ...

Well, I wrote, but I don’t have a clue how to add it to armbian, there is some kind of command like armbian-overlay or armbian-add-overlay, maybe you need to do something else before adding, look for information, I only know how to include overlay later armbianEnv.txt: overlays = orangepi-prime-bluetooth

There may also be a problem with downloading the driver firmware, in the Armbian, some patches are doing something with the kernel, namely, with the function of searching for firmware files.
For example, I have opi-win with ap6212 and on a clean kernel, the driver loads the file / lib / firmware / brcm / brcmfmac43430-sdio.xunlong, orangepi-win .txt is what allocated this board name from dtb, and the core Armbian uses some kind of crutch as the firmware-postfix parameter and not even as an addition to what is, but as a replacement for what is. in short, see dmesg after the system is booted, it will be seen there that the driver is trying to load, what failed to load, etc.
Since the prime module is the same as on pine64, I did not change the line firmware-postfix = "pine64"; can that will load from the fact that there is in the image and immediately earn ...

Attached files

Attached filesun50i-h5-orangepi-prime-bluetooth.zip(486 bytes)


Post has been editedrubitwa - 16.03.19, 00:03



Rep: (3)
Well, I wrote, but I don’t have a clue how to add it to armbian, there is some kind of command like armbian-overlay or armbian-add-overlay, maybe you need to do something else before adding, look for information, I only know how to include overlay later armbianEnv.txt: overlays = orangepi-prime-bluetooth

There may also be a problem with downloading the driver firmware, in the Armbian, some patches are doing something with the kernel, namely, with the function of searching for firmware files.
For example, I have opi-win with ap6212 and on a clean kernel, the driver downloads the file /lib/firmware/brcm/brcmfmac43430-sdio.xunlong,orangepi-win.txt what highlighted this board name from dtb, and the core armbian uses some kind of crutch in in the form of the firmware-postfix parameter and not even as an addition to what is, but as a replacement for what is. in short, see dmesg after the system is booted, it will be seen there that the driver is trying to load, what failed to load, etc.
Since the prime module is the same as on pine64, I did not change the line firmware-postfix = "pine64"; can that will load from the fact that there is in the image and immediately earn ...


1.Copy your file to:
  • \ boot \ dtb \ allwinner \
  • \ boot \ dtb \ allwinner \ overlay \


2. In the file \ boot \ rmbianEnv.txt introduced the line overlays = orangepi-prime-bluetooth
As a result, the file looks like this:
verbosity = 1
console = both
overlay_prefix = sun50i-h5
rootdev = UUID = d037a579-13c1-4dbb-be0b-234849d9e5b3
rootfstype = ext4
overlays = analog-codec
overlays = orangepi-prime-bluetooth
usbstoragequirks = 0x2537: 0x1066: u, 0x2537: 0x1068: u


3. Rebooted
4. But the bluetooth service was not activated:
root @ orangepiprime: # systemctl status bluetooth
в—Џ bluetooth.service - Bluetooth service
Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor preset: enabled)
Active: inactive (dead)
Docs: man: bluetoothd (8)


According tothis articleI check the presence in the bluetooth system:
root @ orangepiprime: # rfkill list
0: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no

After following the recommendations onthis articleBluetooth service is loading:
root @ orangepiprime: # modprobe btusb
root @ orangepiprime: # systemctl start bluetooth.service
root @ orangepiprime: # systemctl status bluetooth
в—Џ bluetooth.service - Bluetooth service
Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor preset: enabled)
Active: active (running) since Thu 2019-03-14 22:58:43 MSK; 5s ago
Docs: man: bluetoothd (8)
Main PID: 2727 (bluetoothd)
Status: "Running"
Tasks: 1 (limit: 4915)
CGroup: /system.slice/bluetooth.service
2в”Ђ2727 / usr / lib / bluetooth / bluetoothd

Mar 14 22:58:43 orangepiprime systemd [1]: Starting Bluetooth service ...
Mar 14 22:58:43 orangepiprime bluetoothd [2727]: Bluetooth daemon 5.43
Mar 14 22:58:43 orangepiprime systemd [1]: Started Bluetooth service.
Mar 14 22:58:43 orangepiprime bluetoothd [2727]: Starting SDP server
Mar 14 22:58:44 orangepiprime bluetoothd [2727]: Bluetooth management interface 1.14 initialized

But when I try to activate it, an error crashes (and everything should be ok according tothis video):
root @ orangepiprime: # bluetoothctl
[bluetooth] # power on
No default controller available


Here ishereoffer to collect firewood yourself.
Here ishereThe author Armbiana proposes to make similar to the Pinebook.
Here ishereKind of like official firewood for bluetooth from linux.

Could you help me figure it out and give step-by-step instructions?
And did I understand correctly that from your dts you need to do dtb through dtc -b 0 -O dts -I dtb -o (infa)?

Post has been editedGeremy82 - 14.03.19, 23:23



Rep: (129)
* Geremy82, I wrote what to do, namely add overlay
That's all I found onhttps: //docs.armbian.c...de_Allwinner_overlays/
The section Using custom overlays, the file is already there, so delete what you added there, then extract the file into the folder, open the terminal in the folder.
sudo armbian-add-overlay sun50i-h5-orangepi-prime-bluetooth.dts
sync
sudo reboot


Post has been editedrubitwa - 14.03.19, 23:25



Rep: (3)
sudo armbian-add-overlay sun50i-h5-orangepi-prime-bluetooth.dts

root @ orangepiprime: ~ # armbian-add-overlay sun50i-h5-orangepi-prime-bluetooth.dts
Error: dtc doesn’t support compiling overlays



Rep: (129)
* Geremy82,
I don't understand, do you have ubuntu xenial? or something older?
sudo apt-get update
sudo apt-get install --only-upgrade device-tree-compiler

If after that the overlay is not added, then drop the sun50i-h5-orangepi-prime.dtb here from the / boot / dtb folder.

Post has been editedrubitwa - 14.03.19, 23:45


Full version    

Help     rules

Now: 07/19/19 11:42