Posts by Albundy

    I found this in Amlogic site, copy paste from a pdf file, there is QT but not tried it yet, copying libraries should be enough..i think.

    There is also directFB..need to find some examples.

    so opengl-meson is not opengl?
    glu is working strictly with opengl and is not with opengles?

    I am pretty confused with what is available for amlogic devices and which are not in Libreelec.

    kodi uses a graphical interface, keyboard, mouse inputs, so there should be some graphical library already there.
    I assume there must be other programs using graphical interface with keyboard, mouse inputs.
    If glu is not one of them for aarch64, What is it and how to use it?

    hello,

    my hardware is Amlogic S905 based tv box. I would like to experiment simple graphics programming.
    what package-addon do you recommend for simple graphics programming?
    I picked glu (opengl utility library) randomly, but if anybody recommends something else especially ready build environment in Libreelec I can continue in this direction.

    there are opengl-meson & glu packages in the /http://LibreELEC.tv/packages/graphics/ folder.
    in the build folder, there is opengl-meson-gxbb-r5p1-01rel0 from previous build but no glu (opengl utility library).

    When I hit the below command to build glu, I got errors and configure exits:
    so how do you compile glu?

    Even though PKG_ARCH="any" I feel like glu package is just for x86 target.
    sorry to paste all configure output, i can edit to shrink later this first post.

    thanks

    package.mk for glu:

    Code
    PKG_NAME="glu"PKG_VERSION="9.0.0"PKG_REV="1"PKG_ARCH="any"PKG_LICENSE="OSS"PKG_SITE="http://cgit.freedesktop.org/mesa/glu/"PKG_URL="http://cgit.freedesktop.org/mesa/glu/snapshot/$PKG_NAME-$PKG_VERSION.tar.gz"PKG_DEPENDS_TARGET="toolchain"PKG_PRIORITY="optional"PKG_SECTION="graphics"PKG_SHORTDESC="glu: The OpenGL utility library"PKG_LONGDESC="libglu is the The OpenGL utility library" PKG_IS_ADDON="no"PKG_AUTORECONF="yes" PKG_CONFIGURE_OPTS_TARGET="--disable-silent-rules \--disable-debug \--disable-osmesa \--with-gnu-ld"

    PROJECT=S905 ARCH=aarch64 ./scripts/build glu

    Hi,

    I assume PKG_ADDON_PROJECTS variable in package.mk files tells limitations on platforms to be used for a specific addon.
    So all the other addons which does not have PKG_ADDON_PROJECTS variable in package.mk file are

    Code
    /LibreELEC.tv/packages$ grep -r PKG_ADDON_PROJECTS *
    addons/tools/rpi-tools/package.mk:PKG_ADDON_PROJECTS="RPi RPi2"
    addons/service/dispmanx_vnc/package.mk:PKG_ADDON_PROJECTS="RPi RPi2"
    addons/service/docker/package.mk:PKG_ADDON_PROJECTS="Generic RPi RPi2"
    addons/service/spotify-connect-web/package.mk:PKG_ADDON_PROJECTS="RPi2"
    mediacenter/kodi-binary-addons/audiodecoder.usf/package.mk:PKG_ADDON_PROJECTS="Generic Nvidia_Legacy RPi2 imx6 WeTek_Play"

    I downloaded "emulator.tools.retroarch-7.0.2-j04.zip"
    i installed this package as kodi-addon, install from zip file, and addon enabled..
    but when i launch programs-> addons-> retroarch and it does not show, I tried to change kodi stop-start or kodi pause options, but does not help.
    can you comment on below outputs? what is missing?
    (the device is mini m8s ii, S905X, 2g ram)

    there are folders /lib32 & /usr/lib32 and lots of files


    Code
    LibreELEC:/etc/profile.d # echo $LD_LIBRARY_PATH
    /usr/lib:/lib:/usr/lib32:/lib32:/storage/.kodi/addons/emulator.tools.retroarch/lib:/usr/lib/pulseaudio:/usr/lib32/pulseaudio


    Code
    LibreELEC:/ # find . -name retroarch
    ./storage/emulators/retroarch
    ./storage/.kodi/addons/emulator.tools.retroarch/bin/retroarch

    these folders are empty:

    Code
    LibreELEC:~/emulators/retroarch # ls
    screenshots  system


    these are executables but does not launch:


    Code
    LibreELEC:~/.kodi/addons/emulator.tools.retroarch/lib/libretro # ls
    
    
    lots of info and so files.. did not copy all here..


    EDIT:
    now the shell gives me permission denied.
    needless to say i login as root in Libreelec system through ssh...

    Code
    LibreELEC:~/.kodi/addons/emulator.tools.retroarch/bin # retroarch
    -sh: retroarch: Permission denied

    What is the difference dtb.img files between .008 & .009 builds. Aren't they standart structures for the hardware? Has Linux kernel way of reading dtb images changed between builds? Given the same hardware existing working dtbs should work on .008 or .009, right?

    EDIT: unless you have changed dts file to add more hardware support...stock dtb image might have missing hardware definitions..i get it slowly :)

    Hi!
    I think that you are talking about this file:

    LibreELEC.tv/options at libreelec-7.0 · kszaq/LibreELEC.tv · GitHub

    xorg is usually avoided on LibreELEC builds. Is used on generic and virtual projects.
    LibreELEC.tv/options at libreelec-7.0 · kszaq/LibreELEC.tv · GitHub

    Correct. I understand that libreelec does not mean to include X & WM since they are very big in size and LE is for kodi specificly. But if we set these options. Do they compile and work for S905, if anyone has tried?

    hello,
    even though it is not the best alternative for general purpose OS, it supports mini m8s ii hardware-devices fully . so I am trying to understand the Libreelec scripts. It is really good reference. so here is my approach:

    Kernel first extracts initramfs then execute init script.
    within init script prepare_sysroot() function mounts SYSTEM rootfs image as "ro, loop".
    I am trying to change mount target from SYSTEM to /dev/mmcblk1p2 (rw) which have extracted rootfs.
    I found extracted SYSTEM rootfs & initramfs.cpio under "LibreELEC/buildxxxx7.0.2.008/image" folder.

    **********
    prepare_sysroot() {
    progress "Preparing system"

    #if [ "$SYSTEM_TORAM" = "no" -o "$INSTALLED_MEMORY" -lt "$SYSTEM_TORAM_LIMIT" ]; then
    #mount_part "/flash/$IMAGE_SYSTEM" "/sysroot" "ro,loop"
    #else
    #cp /flash/$IMAGE_SYSTEM /dev/$IMAGE_SYSTEM
    #mount_part "/dev/$IMAGE_SYSTEM" "/sysroot" "ro,loop"
    #fi

    mount_part "/dev/mmcblk1p2" "/sysroot" "rw" # 1.st attempt does not work
    mount --move /storage /sysroot # 2.nd attempt does not work
    mount --move /flash /sysroot/flash
    #mount --move /storage /sysroot/storage
    **********

    scripts still generate images but I use new kernel.img and extracted rootfs in sdcard.
    until now no luck, kernel hangs at 4th second like this: (I think it cannot change rootfs from ram to mmcblk1p2)

    [ 4.268764@3] [<ffffffc001083da0>] el1_irq+0x60/0xc0
    [ 4.273680@3] [<ffffffc0010e755c>] cpu_startup_entry+0x17c/0x1d0
    [ 4.279632@3] [<ffffffc00108da10>] secondary_start_kernel+0x110/0x120

    any help from someone who has insight kernel-initramfs-rootfs transitions would be appreciated, (I am reading ramfs-rootfs-initramfs.txt but it seems every system has it's own ways )

    thanks,

    EDIT:
    It turns out, when I try to change init script inside initramfs.cpio through Archive Manager (Ubuntu), it changes cpio compression switches. So kernel cannot extract initramfs and halts. Instead I changed init file in http://LibreELEC.tv/packages/sysutils/busybox/scripts/init, deleted already built kernel, image etc, rerun make...and now i have rw LibreElec system booting.

    I like Libreelec S905x support, linux for powerfull 64 bit quadore cpu just great. But how can i use readonly squashfs SYSTEM image as rw ext4 rootfs? I would like to install new software etc..

    I know the just enough os for kodi philosophy but i can't help myself.

    What changes are required? Do i need to rebuild kernel without squashfs support and what else? Is it required to change init? Would extracting SYSTEM to a partition be enough? u-boot bootargs need to change i assume. Can i do it through s905_autoscript?


    Thanks for this great support, hard work

    Hi,

    When I build Amlogic kernel sources, I've got "Image" file, But Libreelec has "kernel.img".
    I tried to replace the "kernel.img" in kszaq's build with my Amlogic kernel (Image) but it does not work.

    What is the difference between Libreelec kernel and Amlogic generated kernel? Is there a way to get Libreelec kernel from Amlogic "Image"

    thanks,

    Hello,

    How do you extract/decompile dtb.img to dts fıle?
    I am using mini m8s II dtb.img file from posts #3 & #61.

    dtc -I dtb dtb.img -O dts -o minim8sii.dts
    When I issue above command both files give me "FATAL ERROR: the blob has incorrect magic number"

    thanks