Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Making Libreelec work on Bananapi M5 side by side with Armbian possible?

Featured Replies

Hello,

I know this is a forbidden question, I will adress specially to @chewitt and @Igor.

 

Why I dare to do this?  Because today, it is the fist time I managed to run Libreelec (LE) nighly https://test.libreelec.tv/11.0/Amlogic/bananapi-m5/
and have the s
omehow the same suffering with boot and so on and as I did not give up,

 

I shot the last bug preventing LE to boot. I don't want to register in every forum for each pack , christian forgive me I will put the explanation here.
The last image suffer from a missing link..in /flash as it is all momified in squashfs , this need extra skills.

wget https://ftp.halifax.rwth-aachen.de/libreelec/LibreELEC-AMLGX.arm-11.0.1-bananapi-m5.img.gz
gunzip LibreELEC-AMLGX.arm-11.0.1-bananapi-m5.img
partx -a LibreELEC-AMLGX.arm-11.0.1-bananapi-m5.img
losetup -a /dev/loop0
mount /dev/loop0p1 /media/LIBREELEC
cp /media/LIBREELEC/SYSTEM .
unsquashfs SYSTEM 
cd squashfs-root/flash
#here is the missing killing link
ln -s .. SYSTEM
cd -
mksquashfs squashfs-root/    -noappend  -comp zstd -Xcompression-level 15
cp SYSTEM /media/LIBREELEC/
umount /dev/loop0p1


Then use gparted to wipe out the sdcard, and use dd
 

dd if=LibreELEC-AMLGX.arm-11.0.1-bananapi-m5.img of=/dev/mmcblck1 bs=1M


Boot and ENJOY!

Edited by SoSie
typo

  • Author

Better script: previous was buggy

 

wget https://ftp.halifax.rwth-aachen.de/libreelec/LibreELEC-AMLGX.arm-11.0.1-bananapi-m5.img.gz
gunzip LibreELEC-AMLGX.arm-11.0.1-bananapi-m5.img.gz
sudo su -
partx -a LibreELEC-AMLGX.arm-11.0.1-bananapi-m5.img
#this next command should give loop0p1=LIBREELEC , loop0p2=STORAGE (empty, resized with missing config created during install)
 losetup -a /dev/loop0
if [ ! -d "/media/LIBREELEC" ]; then mkdir /media/LIBREELEC; fi
mount /dev/loop0p1 /media/LIBREELEC
cp /media/LIBREELEC/SYSTEM .
unsquashfs SYSTEM 
cd squashfs-root/flash
#here is the missing killing link
ln -s .. SYSTEM
cd -
mksquashfs squashfs-root/ SYSTEM   -noappend  -comp zstd -Xcompression-level 15
cp SYSTEM /media/LIBREELEC/
umount /dev/loop0p1
losetup -d /dev/loop0

 

Edited by SoSie
Script Improvement

  • Author

@Chewitt, thanks for taking time to try and reply; the image boots correctly  on KERNEL  - I think the log you provided stop at this step - but when it passes the hand to the SYSTEM image it fails.

SYSTEM fails to be mounted because of the missing link in /flash leaving the user lost in space in initramfs level  but when you restore the missing link in the SYSTEM image
like I did , it works and I see LE logo and are able to use Kodi LE.

In LE,  infrared remote is better handled and we have Mali G-31 accel working ( this is on way to be solved in armbian (I enjoyed the constructive exchanges with the Armbian team busy but available here https://github.com/armbian/build/pull/5004  ) but I had video codec playing issues - it is a common mesa versioning nightmare on M5 - I got squared green video when I trigger some as if video was encrypted which is not the case as I can play without problem in Kodi Debian 19.4.

 

All this bring me, the idea that it will be good to gather  Kodi Debian and Kodi LE experiences to avoid regressions and redundant efforts at least on mesa, to determine which version works and reliable. I should build also a mesamonitor for LE  as I did here https://armbian.atlassian.net/browse/AR-1641

based on kodi logs.

Edited by SoSie

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.