Firefly Open Source Community

Title: Armbian and LibreELEC for rk3399 [Print This Page]

Author: balbes150    Time: 9/24/2020 21:15
Title: Armbian and LibreELEC for rk3399
Last edited by balbes150 In 12/18/2020 09:22 Editor

I checked running the latest versions of ArmbianTV and Libreelec on roc-pc-rk3399. The systems start up and work well. If desired, you can install these systems on eMMC or NVMe. You can find out more about how to do this in these topics.  


https://forum.armbian.com/topic/ ... l-aw-aarch64-armv8/

https://forum.armbian.com/topic/ ... ment&comment=109308

https://forum.libreelec.tv/threa ... rk3328-rk3399-3288/

Or ask questions in this topic.


Support for media functions.


https://forum.armbian.com/topic/ ... ltimedia-framework/


Author: balbes150    Time: 9/28/2020 22:06
New image
Libreelec ver 20200928 kernel 5.9-rc7 , u-boot-2020.10-rc5
Armbian ver 20200928-dev kernel 5.9-rc7 u-boot-2020.10-rc5
Author: balbes150    Time: 10/14/2020 21:59
Libreelec ver 20201012 kernel 5.9
Armbian ver 20201014 kernel 5.9
Author: balbes150    Time: 10/23/2020 16:37
New versions of Armbian and Libreelec. Checked the launch on Firefly Station P1. all the main equipment (LAN, WiFi, BT, sound HDMI) Works except for the analog audio output. Important difference between the new versions. After writing the image to the SD card, you no longer need to make changes to the extlinux settings to run, all the necessary settings are already in the images. Download links for new versions are now located here. Dir Firefly_station_p1


https://yadi.sk/d/CJW9Idb0IpQZag?w=1

https://mega.nz/#F!j9QSDQSQ!6WpasOlbZYIInfw6yo4phQ

https://users.armbian.com/balbes150/
Author: cooltech    Time: 11/3/2020 08:29
Last edited by cooltech In 11/3/2020 09:13 Editor

Thank you for these builds babels150! However as a new owner of  Firefly Station P1 I am not sure how to boot from MicroSD or USB. Any tips? The wiki does not have a page yet for the Firefly Station P1, but I am eager to test these.

So far I have tried this to boot from MicroSD:

  1. unxz Armbian_20.11.0-trunk_Roc-rk3399-pc_buster_current_5.8.16.img.xz
  2. dd if=Armbian_20.11.0-trunk_Roc-rk3399-pc_buster_current_5.8.16.img of=/dev/sdb
  3. *Insert microSD*
  4. Machine does not boot (or no HDMI output?)
Copy the code



If possible I would prefer boot live from USB prior to flashing. Please let me know.
Author: balbes150    Time: 11/7/2020 21:22
Last edited by balbes150 In 11/7/2020 16:30 Editor

Previously, I have already encountered that users had problems when starting the system from an SD card on different models, if they used the DD utility to write the image (there is a topic on the Armbian forum where many users write about this). Try using specialized programs for writing images to the SD card to write the image. More important information. There is no power button on P1, and after turning off the LE \ Armbian system, to quickly re-enable it, you need to either disconnect the power connector from P1 itself, or pull the power supply out of the socket and wait a few (3-5)  minutes (until the circuits in P1 self-discharge).

Starting from USB only works in boot loaders that are used in LE and Armbian. This means that if you want to save Android and run systems from USB, you need to additionally (along with the USB media) connect the SD card on which LE or Armbian is recorded. If you install a LE or Armbian system in eMMC, there will also be the installation of a new u-boot with support for starting from USB, and then you can start systems from USB without an SD card.

Important information. To run LE and Armbian correctly from an SD card, the SD card must not have a GPT table. If any systems with GPT were previously written to this SD card, you must completely clear the entire SD card (or clear the last sectors where the GPT backup is stored).


Author: balbes150    Time: 11/11/2020 19:57
Last edited by balbes150 In 11/11/2020 15:00 Editor

Libreelec ver 2020111 kernel 5.9.7

Detected flaws. Restart does not work, you need to turn off the power supply.


https://yadi.sk/d/8vNYuuxynz1L0w?w=1


Author: balbes150    Time: 11/11/2020 20:05
Last edited by balbes150 In 11/11/2020 15:08 Editor

ArmbianTV ver 20.11

To enable BT in Armbian, you need to install the full firmware package. This can be easily done either through the "armbian-config" or through the standard DEB package  (apt install armbian-firmware-full)  installation tools. After installing the firmware, turn on BT and restart the system.
Author: n1klaus    Time: 11/19/2020 16:02
Tried flashing this on my firefly rk3399 using the android tool v 2.65 on the upgrade firmware tab but am getting the error 'Loading firmware failed!' ....what could be the issue?
Author: balbes150    Time: 11/21/2020 00:03
n1klaus Posted at 11/19/2020 11:02
Tried flashing this on my firefly rk3399 using the android tool v 2.65 on the upgrade firmware tab b ...

This is not a firmware for the android tool, it is an independent system for launching from external media and the possibility of subsequent installation in eMMC (instead of Android).
To start, you need to follow a few simple steps.
1. to download the image.
2. Unpack.
3. Write a special program (which records ISO images) to the SD card.
4. Connect the SD card and turn on the power.
Author: balbes150    Time: 11/21/2020 00:04
Update image Armbian and Libreelec 20201120.
Author: balbes150    Time: 11/27/2020 16:41
I added support for Station P1 in ArmbianTV (this is a version with improved media capabilities compared to the official Armbian). In the latest version 20201127, almost all hardware works (LAN, WiFi, BT, HDMI  audio, except audio 3'5"). Starting the system is simple, download, unpack, write to SD card and connect to P1, the system starts automatically.

The images to download are located in subdirectories named ArmbianTV
Author: balbes150    Time: 12/2/2020 19:57
Update image ArmbianTV 20201202  and Libreelec 20201201.
Author: balbes150    Time: 12/3/2020 21:56
Armbian 20201203
kernel 5.9.12
expanded the list of USB modules
Author: balbes150    Time: 12/9/2020 17:49
I added Armbian images with the Legacy core to the site (directories with images with this core have the extension "legacy"). This core is based on rockchip 4.4. for the Buster version, there is a special package "media-buster-legacy-rk3399", which installs HW acceleration and a set of additional packages with KODI, Rockchip Gst Playe, etc., with HW acceleration, including for 4K. After starting the Armbian system (Buster-legacy), you can run the command at this link (in the future, this command will change and it will be easier, small bug in the package name and the author will fix it soon). To start KODI, log out and on the Lightdm login screen, select KODI in the upper-right corner of the session menu and log in. Please note that the sound settings and so on, you need to install in the system before starting KODI (it uses the settings that are set before the user logs out to DE).

sudo apt install media-buster-legacy-rk3399 kodi-rk=2:18.9~git20201128.1604-6a1acdb9c6-18.9buster0armbian2 --install-recommends
Author: balbes150    Time: 12/11/2020 15:05
Update Libreelec and ArmbianTV 20201210 kernel 5.10.0-rc7



fixed media package installation for Buster-legacy. To install, you now need to use the command.

sudo apt install media-buster-legacy-rk3399  --install-recommends
Author: balbes150    Time: 12/14/2020 15:23
New test image any DE (XFCE\Mate\KDE etc)


https://yadi.sk/d/IOFDncmBWzj5uw?w=1
Author: balbes150    Time: 12/16/2020 20:57
20201216 ArmbianTV and Libreelec kernel 5.10.1
Author: balbes150    Time: 12/18/2020 14:22
Support for media functions.

https://forum.armbian.com/topic/ ... ltimedia-framework/
Author: balbes150    Time: 12/23/2020 22:11
New image ArmbianTV-desktop

https://users.armbian.com/balbes ... /ArmbianTV-desktop/
Author: balbes150    Time: 12/29/2020 19:05
Added new versions of armbiantv images with the legacy kernel with different DE (XFCE\Mate\Lxde) for use with the HW video acceleration media script.

https://yadi.sk/d/_nL2P2g2VRtLrQ?w=1
Author: balbes150    Time: 1/10/2021 01:10
New versions
Armbian 20210109 kernel 5.9.16 \  4.4 (please note that now all versions with the "new" and " old " kernel are in the same directory).
ArmbianTV 20210109 kernel 5.10.5
LibreELEC 20210108 kernel 5.10.5.
Author: balbes150    Time: 1/19/2021 19:57
ArmbianTV 20210119 kernel 5.10.8
Libreelec 20210118 kernel 5.10.8
Author: balbes150    Time: 1/23/2021 22:24
Armbian 20210123 kernel 5.10.9
ArmbianTV 20210123 kernel 5.10.9
LE 20210121 kernel 5.10.9
Author: balbes150    Time: 1/23/2021 22:55
Please note that the composition of the images has changed. Now the main versions are Debian-12 Sid and Ubuntu-21.04 Hirsute. For Bullseye and Focal, only minimal server images are used (but you can install DE on them yourself). For those who need other versions of the distribution, I recommend using a self-build of the desired version directly on the device itself. To do this, there is a great video on how to build your distribution versions (your images) directly on M1 and P1.
Author: balbes150    Time: 1/29/2021 22:51
Armbian 20210129 kernel 5.10.11
ArmbianTV 20210129 kernel 5.10.11
LE 20210129 kernel 5.10.11
Author: balbes150    Time: 2/5/2021 01:30
The new version Armbian 20210204 and ArmbianTV 20210204-legacy.
Added support for NVMe analog audio and remote control.
Author: balbes150    Time: 2/11/2021 18:06


Updated the Armbian\ArmbianTV images (20210211) kernel 5.10.15\4.4.

I checked both variants of Buster-legacy + media script on P1 (rk3399). I froze the kernel update, installed the script, checked the HW acceleration, everything works. Including remote control in KODI and on the desktop, analog sound works (by default, the sound level is set low, you need to go to settings and increase the volume), 4k works.  

Update Libreelec 20210211 kernel 5.10.15
Author: balbes150    Time: 2/19/2021 19:44
New version of ArmbianTV 20210218. kernel 5.10.17 4.4
An important difference.
I made the transition to the startup system using the settings only in the "extlinux.conf" file. You no longer need to use a lot of complex scripts and intermediate text files to describe the startup process. Setting up the DTB is done by editing the line in "extlinux.conf". There you can also change any other startup parameters (disable BOOTFLASH, add a forced binding to the MAC, etc.). That is, you can now use the officially supported parameter format for "extlinux.conf". I also stop publishing versions of Armbian images, because they differ little from the official versions of images from the Armbian download site (i.e. I remove redundant duplication).

Libreelec 20210218 kernek 5.10.17
Author: balbes150    Time: 2/21/2021 17:04
The new version 20210221.
Important information.
The installation mode in eMMC has changed. Now, the standard application "armbian-config" and the corresponding menu items in it are used for installation in eMMC.
Author: balbes150    Time: 2/26/2021 18:11
Last edited by balbes150 In 2/26/2021 16:01 Editor


Version 20210226 ArmbianTV.
Fixed NVMe and added a separate DTB for roc-rk3399-pc  with Legacy kernel.
After testing for several weeks u-boot-2021.01 on different rk3399, the transition to u-boot-2021.01 was made

I remind you that the configuration of DTB and other startup parameters is now performed in the file /boot/extlinux/extlinux.conf

LE ver 20210226



Author: balbes150    Time: 3/11/2021 21:53
New version ArmbianTV 20210311. Kernel 5.10.22.
Please note. The composition of the images has changed. The name of the download folder has changed.

LE ver 20210311
Author: balbes150    Time: 3/19/2021 19:18
Update ArmbianTV to version 20210319.
Using kernel 5.10.24. Added support for Firefly-rk3399 in station-p1 images (for proper operation, you need to configure DTB in extlinux.conf). With the correct DTB setup, the HDMI audio LAN WiFi BT works in kernel 5.10. In kernel 4.4 worck remote control and analog sound.

Update Libreelec 20210319/
Add support Firefly-rk3399 (for proper operation, you need to configure DTB in extlinux.conf)
Author: balbes150    Time: 4/10/2021 15:30
Ver ArmbianTV and Libreelec - 20210409 kernel 5.10.28

Author: ddown    Time: 5/4/2021 16:03
i can not boot my roc-rk3399-pc with Armbian_21.08.0-trunk_Station-p1_buster_current_5.10.32.img.
Power auto down.
Author: balbes150    Time: 5/5/2021 15:12
ddown Posted at 5/4/2021 11:03
i can not boot my roc-rk3399-pc with Armbian_21.08.0-trunk_Station-p1_buster_current_5.10.32.img.
P ...

You need to properly configure the DTB in the /extlinux/extlinux.conf file for roc-rk3399-pc.
Author: balbes150    Time: 5/6/2021 14:38
Ver ArmbianTV  20210505 kernel 5.10.34
Author: balbes150    Time: 5/6/2021 22:00
LibreELEC ver 20210505 kernel 5.10.34
Author: ddown    Time: 5/9/2021 13:27
balbes150 Posted at 5/5/2021 15:12
You need to properly configure the DTB in the /extlinux/extlinux.conf file for roc-rk3399-pc.

I had change it.
But not working

Author: balbes150    Time: 5/9/2021 19:07
ddown Posted at 5/9/2021 08:27
I had change it.
But not working

Provide more information about what steps you are doing, the UART log.
Author: balbes150    Time: 5/18/2021 19:49
Ver 20210517 kernel 5.10.37
Author: balbes150    Time: 6/9/2021 19:56
ArmbianTV er 20210608 kernel 5.10.42 and 5.12.9 Please note that the kernel config has changed significantly.
Libreelec kernel 5.10.42


Author: balbes150    Time: 6/14/2021 21:18
new version of Armbian and Libreelec 20210614 with core 5.10.43.
Added support for analog audio and a standard remote control.

To switch to analog sound on LE, after selecting the device in the settings, you need to restart the system to turn on the sound.
Author: balbes150    Time: 6/21/2021 20:30
Ver 20210621 Armbian  and Libreelec
fixed analog sound and remote control

Author: phkr    Time: 6/23/2021 00:28
Does this board use the same rt5640 audio codec as Firefly-RK3399? If yes, is there any publicly available patch which can enable onboard sound on Firefly-RK3399 with mainline kernel?
Author: balbes150    Time: 6/23/2021 14:01
The P1 uses a different 8388 chip (it now works with the main core). There is a driver for the 5640, but I did not check its operation. May need additional patches or settings.
Author: balbes150    Time: 7/5/2021 14:24
The ArmbianTV and Libreelec version is 20210703.
Kernel 5.10.47 and 5.12.14.
Fixed the installation of the media package for the Buster-legacy version (kernel 4.4).
Author: balbes150    Time: 7/22/2021 14:37
ver 20210721 kernel 5.10.52 \ 5.12.19
Author: balbes150    Time: 7/22/2021 22:08
The first test version of AltLinux images (Russian Linux) for Firefly Station P1 is available.  

https://en.altlinux.org/Main_Page

Starting the system is similar to starting Armbian\LE. Download the image, unpack it, burn it to a medium SD \ USB, connect it to P1 and turn on the power. At the first start, you need to perform several steps to configure the system.

https://disk.yandex.ru/d/pS0lB8a1ODeLPg

Author: balbes150    Time: 8/19/2021 14:31
ver 20210816 kernel 5.10.59
Author: balbes150    Time: 9/6/2021 18:58
LE  ver 20210906 kernel 5.14
Author: balbes150    Time: 9/7/2021 22:58
ArmbianTV ver 20210907 kernel 5.10.62




Welcome Firefly Open Source Community (https://bbs.t-firefly.com/) Powered by Discuz! X3.1