Jump to content

Recommended Posts

Posted (edited)

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
Posted (edited)

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
Posted (edited)

@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...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines