@balbes150 LE images with Kodi-19 for S9xxx

  • Took delivery of my N2+ Yesterday (Sunday) - DHL working all days at the moment....

    after a bit of stuffing around and a pointer from tobetter. My notes to install Ubuntu 20.10 with 5.10rc and panfrost on the device - http://ix.io/2G19

    In reading your chewitt logs in the mainline, it seems this N2+ is really only just now being supported in mainline without the ARM mali binaries.

    start [linux-meson]

    Looking forward to running up LE on this.need to get back to coding.

  • Thank you all for help and your kind words. This is truly a great community! So receptive and eager to help out! This will definetly make me eager to donate and contribute too! Real top notch! /s

    Thanks for nothing!

  • I flashed your LibreELEC-ARMv8.arm-9.80-devel-20201204143803-d174eba-odroid-c2.img.gz to emmc and tried to boot. It didn't work.

    Serial log shows following

    So it Seams that does not detect the emmc.

    According to u-boot list the last working u-boot to boot from on Odroid-c2 is 2020.04. Is this the reason why it don't boot further?

  • Yes, I looked at the log. U-boot in my image is not suitable for direct launch in SD\eMMC mode for N2+. Need to build a different version of u-boot for your model. But I don't have an N2+ sample, so I'm sorry, I can't help you. The standard u-boot, which is in SPI, uses a clueless PITEBOOT that interferes with the direct execution of u-boot commands, so I doubt that you will be able to use my image in SPI mode (using boot.ini). For the N2 model (not plus), I created a special version of UbootSPI that allows you to run any system with USB \ SD\eMMC\LAN, but I think it will not work on N2+, need to create a special version for N2+.

    I discovered that part of my issues with booting LibreELEC on my N2+ were caused by a failure to boot my Sandisk Ultra 8GB microSD. Eventually, I started to use a Samsung 16GB microSD card. @chewitt's builds boot ok, but your builds still fail to boot on my N2+

  • on the aarch64 g12b from 17.12. I noticed:
    * panfrost misbehaving (artifacts on display)

    * random segfaults in hrtimers (causes complete freeze)

    * null ptr dereference related to squashfs (random on bootup; tried two different sd-cards occurs on all)

    Unexpectedly unstable behavior of 5.10.1

    Nullptr:

    Edited once, last by phlp11 (December 20, 2020 at 8:13 PM).

  • Hi there

    Apologies as i'm pretty new to this but as an experiment I wanted to try and flash your LibreELEC-ARMv8.aarch64-9.80-devel-20201228140110-d174eba-amlgxbb.img.gz image to my old S905 box (Arnubox Pure Linux 64bit) which is currently running the latest CE nightly image from emmc

    I successfully managed to boot from SD card using the Wetek Play2 dtb in the extlinux config (also tried meson-gxbb-p200 first assuming that would work - it didn't.)

    However i was surprised and pleased that the image did boot from SD. The main things not working for me using this image:

    Assigns a random mac address to the box (and generating different random IP's on each reboot) won't allow me to set a manual IP either

    CEC doesn't work (although a message does appear saying it's connecting)

    Some video files play, some don't (from shared SMB NAS drive)

    No sound output via HDMI and SPDIF output disables during boot (tried all the audio output options) I assume it's the Wetek Play2 sound card profile not working with this box?

    I understand running CE on internal might affect this working properly anyway as per your notes for install.

    Here's the boot log:

    http://ix.io/2Lxb

    Anyway - just wanted to give it a shot to see if it was at all possible to run the image (and therefore Kodi Matrix beta) on an older box - so didn't expect to get this far!

    Thanks

  • Hello!

    Thanx balbes150 for his work!

    I'm trying to install LE on my new X96max (S905x2 4Gb DDR4 32Gb), but have some interesting issue. Secont stage U-boot (mainline) works soooo sloooow for my setup. from starting to autoboot more than 1 min, console freezes so much, loading KERNEL from sd-card about 3 mins, from network about 10 mins, After kernel is started box speeds up and all looks fine, what's happen?

    Detail explaination:

    Have uart connected, sd-card with fat partition wih u-boot.ext, DTBs, KERNEL, SYSTEM is inserted.

    1. Power up box, start pressing much <Enter>s

    2. we got first-stage u-boot shell. all works fine (even network), but can't load KENEL because it is EFI image. old u-boot don't know EFI.

    3. Okay, fatload mmc 0 0x100000 u-boot.ext; go 0x100000

    4. Second-stage u-boot is started. and slowmotion is started tooo....

    5. start pressing <Enter>s. await 1 min. we got second u-boot shell.

    6. all work fine except speed. Even console type so slow.

    7. fatload KERNEL, fatload DTB, bootefi blah-blah

    8. kernel is started and all works fine.

    problem is a booting speed - 5 mins for me in total from sd, 10+ from network.

  • Quote

    Why are you breaking the launch ?

    Because i want to boot from network by my own u-boot startup scripts. On my five s905x systems with old LE (old 3.x aml kernel) it works fine.

    Quote

    What firmware is in eMMC ?

    Sorry, don't known. Original Android firmware. Only one thing is interesting - u-boot.

    Quote

    Show the output of " printenv"

    No prob.

    Display Spoiler

    1080p60hz_deepcolor=444,12bit

    EnableSelinux=permissive

    active_slot=_a

    aml_dt=g12a_u211_4g

    baudrate=115200

    bcb_cmd=get_valid_slot;

    boot_part=boot

    bootargs=rootfstype=ramfs init=/init console=ttyS0,115200 no_console_suspend earlyprintk=aml-uart,0xff803000 ramoops.pstore_en=1 ramoops.record_size=0x8000 ramoops.console_size=0x4000 logo=osd0,loaded,0x3d800000 vout=576cvbs,enable panel_type=lcd_1 hdmimode=1080p60hz frac_rate_policy=1 cvbsmode=576cvbs osd_reverse=0 video_reverse=0 androidboot.selinux=permissive androidboot.firstboot=0 jtag=disable androidboot.hardware=amlogic androidboot.serialno=1234567890 mac=90:0e:b3:07:b2:76 androidboot.mac=90:0e:b3:07:b2:76 androidboot.rpmb_state=1

    bootcmd=run storeboot

    bootdelay=1

    bootup_offset=0x10ac1b0

    bootup_size=0x3f4848

    cmdline_keys=if keyman init 0x1234; then if keyman read usid ${loadaddr} str; then setenv bootargs ${bootargs} androidboot.serialno=${usid};setenv serial ${usid};else setenv bootargs ${bootargs} androidboot.serialno=1234567890;setenv serial 1234567890;fi;if keyman read mac ${loadaddr} str; then setenv bootargs ${bootargs} mac=${mac} androidboot.mac=${mac};fi;if keyman read mac_wifi ${loadaddr} str; then setenv bootargs ${bootargs} mac_wifi=${mac_wifi} androidboot.mac_wifi=${mac_wifi};fi;if keyman read deviceid ${loadaddr} str; then setenv bootargs ${bootargs} androidboot.deviceid=${deviceid};fi;fi;

    colorattribute=444,12bit

    cvbs_drv=0

    cvbsmode=576cvbs

    display_bpp=16

    display_color_bg=0

    display_color_fg=0xffff

    display_color_index=16

    display_height=576

    display_layer=osd0

    display_width=720

    dtb_mem_addr=0x1000000

    ethact=dwmac.ff3f0000

    ethaddr=90:0e:b3:07:b2:76

    factory_reset_poweroff_protect=echo wipe_data=${wipe_data}; echo wipe_cache=${wipe_cache};if test ${wipe_data} = failed; then run init_display; run storeargs;if mmcinfo; then run recovery_from_sdcard;fi;if usb start 0; then run recovery_from_udisk;fi;run recovery_from_flash;fi; if test ${wipe_cache} = failed; then run init_display; run storeargs;if mmcinfo; then run recovery_from_sdcard;fi;if usb start 0; then run recovery_from_udisk;fi;run recovery_from_flash;fi;

    fb_addr=0x3d800000

    fb_height=1080

    fb_width=1920

    fdt_high=0x20000000

    fdtaddr=1000000

    firstboot=0

    frac_rate_policy=1

    gatewayip=10.18.9.1

    hdmimode=1080p60hz

    hostname=arm_gxbb

    identifyWaitTime=750

    init_display=hdmitx hpd;osd open;osd clear;imgread pic logo bootup $loadaddr;bmp display $bootup_offset;bmp scale;vout output ${outputmode}

    initargs=rootfstype=ramfs init=/init console=ttyS0,115200 no_console_suspend earlyprintk=aml-uart,0xff803000 ramoops.pstore_en=1 ramoops.record_size=0x8000 ramoops.console_size=0x4000

    initrd_high=df800000

    ipaddr=10.18.9.97

    irremote_update=if irkey 2500000 0xe31cfb04 0xb748fb04; then echo read irkey ok!; if itest ${irkey_value} == 0xe31cfb04; then run update;else if itest ${irkey_value} == 0xb748fb04; then run update;\

    fi;fi;fi;

    jtag=disable

    loadaddr=1080000

    lock=10001000

    mac=90:0e:b3:07:b2:76

    netmask=255.255.255.0

    osd_reverse=0

    outputmode=576cvbs

    panel_type=lcd_1

    preboot=run bcb_cmd; run factory_reset_poweroff_protect;run upgrade_check;run init_display;run storeargs;run upgrade_key;run upgrade_adc_key;run switch_bootmode;

    reboot_mode=cold_boot

    recovery_from_flash=setenv bootargs ${bootargs} aml_dt=${aml_dt} recovery_part={recovery_part} recovery_offset={recovery_offset};if imgread kernel ${recovery_part} ${loadaddr} ${recovery_offset}; then wipeisb; bootm ${loadaddr}; fi

    recovery_from_sdcard=if fatload mmc 0 ${loadaddr} aml_autoscript; then autoscr ${loadaddr}; fi;if fatload mmc 0 ${loadaddr} recovery.img; then if fatload mmc 0 ${dtb_mem_addr} dtb.img; then echo sd dtb.img loaded; fi;wipeisb; bootm ${loadaddr};fi;

    recovery_from_udisk=if fatload usb 0 ${loadaddr} aml_autoscript; then autoscr ${loadaddr}; fi;if fatload usb 0 ${loadaddr} recovery.img; then if fatload usb 0 ${dtb_mem_addr} dtb.img; then echo udisk dtb.img loaded; fi;wipeisb; bootm ${loadaddr};fi;

    recovery_offset=0

    recovery_part=recovery

    rpmb_state=1

    sdc_burning=sdc_burn ${sdcburncfg}

    sdcburncfg=aml_sdc_burn.ini

    serial=1234567890

    serverip=10.18.9.113

    stderr=serial

    stdin=serial

    stdout=serial

    storeargs=setenv bootargs ${initargs} logo=${display_layer},loaded,${fb_addr} vout=${outputmode},enable panel_type=${panel_type} hdmimode=${hdmimode} frac_rate_policy=${frac_rate_policy} cvbsmode=${cvbsmode} osd_reverse=${osd_reverse} video_reverse=${video_reverse} androidboot.selinux=${EnableSelinux} androidboot.firstboot=${firstboot} jtag=${jtag}; setenv bootargs ${bootargs} androidboot.hardware=amlogic;run cmdline_keys;

    storeboot=if imgread kernel ${boot_part} ${loadaddr}; then bootm ${loadaddr}; fi;run update;

    switch_bootmode=get_rebootmode;if test ${reboot_mode} = factory_reset; then run recovery_from_flash;else if test ${reboot_mode} = update; then run update;else if test ${reboot_mode} = cold_boot; then run try_auto_burn; else if test ${reboot_mode} = fastboot; then fastboot;fi;fi;fi;fi;

    try_auto_burn=update 700 750;

    update=run usb_burning; run sdc_burning; if mmcinfo; then run recovery_from_sdcard;fi;if usb start 0; then run recovery_from_udisk;fi;run recovery_from_flash;

    upgrade_adc_key=saradc open 2; if saradc get_in_range 0 0x50; then msleep 50; if saradc get_in_range 0 0x50; then echo update by key...; run update; fi;fi;

    upgrade_check=echo upgrade_step=${upgrade_step}; if itest ${upgrade_step} == 3; then run init_display; run storeargs; run update;else fi;

    upgrade_key=if gpio input GPIOAO_3; then echo detect upgrade key; run update;fi;

    upgrade_step=2

    usb_burning=update 1000

    video_reverse=0

    wipe_cache=successful

    wipe_data=successful

  • Latest aarch64 14.01.2021:
    ```
    Jan 14 21:01:24 LibreELEC systemd[1]: kodi.service: Main process exited, code=exited, status=255/EXCEPTION

    Jan 14 21:01:24 LibreELEC systemd[1]: kodi.service: Failed with result 'exit-code'.

    Jan 14 21:01:24 LibreELEC systemd[1]: systemd-hostnamed.service: Succeeded.

    Jan 14 21:01:26 LibreELEC systemd[1]: kodi.service: Scheduled restart job, restart counter is at 7.

    Jan 14 21:01:26 LibreELEC systemd[1]: Stopped Kodi Media Center.

    Jan 14 21:01:26 LibreELEC systemd[1]: Condition check resulted in Kodi user autostart script being skipped.

    Jan 14 21:01:26 LibreELEC systemd[1]: Starting Kodi Media Center...

    Jan 14 21:01:26 LibreELEC systemd[1]: Started Kodi Media Center.

    Jan 14 21:01:27 LibreELEC kodi.sh[3762]: MESA-LOADER: failed to open meson: libzstd.so.1: cannot open shared object file: No such file or directory (search

    Jan 14 21:01:27 LibreELEC kodi.sh[3762]: failed to load driver: meson

    Jan 14 21:01:27 LibreELEC kodi.sh[3762]: MESA-LOADER: failed to open kms_swrast: /usr/lib/dri/kms_swrast_dri.so: cannot open shared object file: No such fil

    Jan 14 21:01:27 LibreELEC kodi.sh[3762]: failed to load driver: kms_swrast

    Jan 14 21:01:27 LibreELEC kodi.sh[3762]: MESA-LOADER: failed to open swrast: /usr/lib/dri/swrast_dri.so: cannot open shared object file: No such file or dir

    Jan 14 21:01:27 LibreELEC kodi.sh[3762]: failed to load swrast driver


    ```

  • Hi everyone,

    I just tested @balbes105 builds and are absolutely perfect! They work great on my gt1 ultimate 2/32 (fake 3gb ram) with s912 , apart from the wifi.

    Thanks for the hard work!

    I am looking for an image with Leia (kodi 18) as my favourite build uses still this version and not.all add-ons are yet compatible with 19.

    Could someone please provide me with an image ?

    Looked into yandex disk but no luck.

    Thanks and keep it up.

    Edited once, last by jkbadouvas (January 16, 2021 at 9:34 PM).