Posts by chewitt

    LE10/11 use 'arm' userspace and LE12 uses 'aarch64' userspace. The LE11 settings add-on is not showing an update because there is no 'arm' update. This also stops users from blindly updating and experiencing crashes due to arch-incompatible binary add-ons.

    To do an in-place update you will need to first uninstall all binary add-ons (keeping their config). Then manually download (wget) the LE12.0.2 .tar update file to /storage/.update and reboot to update. Once the update completes you can reinstall binary addons (to use aarch64 versions).

    SMB services are on by default to facilitate log collection in the event the users device doesn't successfully boot to the Kodi home screen. This is considered low risk because on first boot there are no sources configured and thus no cleartext passwords being stored and exposed anywhere. After the user adds SMB/NFS sources and add-ons that store credentials (and Kodi or the add-on stores them in cleartext) the risk profile of the installation has changed.

    I think the most sensible option is to make Samba shares configurable through the LE settings add-on. Samba can then be started by default and with the logfile share defined and default enabled. Then if users want to enable other pre-defined (but default disabled) share locations they need to visit Samba settings to toggle the state. This will ensure the Kodi userdata folder is not default exposed, thus mitigating the risk of exposure from plaintext stored credentials. The logic of that is a good balance between security and usability and I'll be happy to accept your changes to add that capability to the add-on.

    NB: If you want to also address Kodi storing credentials in plaintext, send code changes to upstream Kodi. The solution to this needs to be simple and work for all currently supported Kodi OS platforms and other distros, not just for Linux on LE.

    If you need better wireless on legacy kernels it's often better to acquire a wireless bridge device. You can get something on Amazon that powers itself from USB and presents an Ethernet interface to the box which requires no WiFi drivers, and being an external device the reception/range is typically better.

    The log doesn't show any Ethernet related errors so next step is to open up the box and take pics of the board inside so we can see what Ethernet chip is being used. It probably needs something based on Q200 (as Q201 is for 10/100 designs) but with a different Ethernet PHY chip described in device-tree.

    Code
    formats: C8 RG16 XR15 AR15 XR24 AR24 XB30 AB30 XB24 AB24 XB4H AB4H

    The 9400GT is advertising AR24 which the default format Kodi tries to use.

    Code
    AR24:  NVIDIA_BLOCK_LINEAR_2D,HEIGHT=0,KIND=122,GEN=1,SECTOR=1,COMPRESSION=0(0x30000000057a010)

    And AR24 supports NVIDIA_BLOCK_LINEAR_2D scanout.

    EDIT: I'm interested to know what kernel, mesa, and X11 versions are used on the Slackware install that works with the 6100 card?

    Also, if the 6100 slackware install has modetest? or drm_info -j ? .. please run it and pastebin the output.

    Couple of things to do:

    a) Please run "modetest | paste" on the 9400GT box (either image is fine, the output will be the same) and share the URL so we can see what DRM properties are advertised.

    b) Save the current Legacy image file(s) in a folder called "depth-size-patch" so we know they contain that change. Now update to the latest Legacy image in my test share (which does not contain the patch). If the image works fine, the patch is irrelevant. If the image does not work, we know it's important. Let me know which is true?

    There are probably Xorg properties that can be configured to reduce CPU load. This is all code archaeology for me though, and I'll need to do some reading. The goal is still to have the GBM image work though.

    the Dreambox's conventional boot loader can no longer handle such a kernel and the box simply freezes

    The root cause is probably missing memory-region mappings in the device-tree file, combined with changes in kernel memory use which now allow or result in an in-use region being overwritten. If older Linux kernels <6 worked and newer ones >=6 don't, the trigger is probably a change in kernel memory features and usage, i.e. changes to defaults in kernel defconfig.

    I forget who, but someone told me that Dreambox One/Two used signed boot firmware. That's the normal Amlogic approach for protecting boot (along with ARM OP-TEE for apps and firmware) and is widely used by e.g. Amazon, Freebox, and similar streaming services. It's not impossible, but it would be the first time I heard of a TPM chip used with Amlogic hardware. TPM chips add to the manufacturing cost (an expense the normal Amlogic signing approach avoids) and will be a physical/visible chip on the board. The net result is the same though; the Amlogic BL1 bootrom (in silicon) will only boot vendor signed (in software) code.

    linux/arch/arm64/boot/dts/amlogic/meson-g12b-w400.dtsi at master · torvalds/linux
    Linux kernel source tree. Contribute to torvalds/linux development by creating an account on GitHub.
    github.com

    The device-tree file used with Dreambox devices currently sets max speed for the SD card interface to 100MHz, so you're not going to observe anything near the marketing numbers on the cards. No need to over-spend. There are no known limits on SD card size, but I've never personally tested Amlogic hardware with anything larger than 32GB (as I only buy cheap cards for testing).

    RPi boards have no external antenna connector so the sole option is disabling the onboard and using external USB WiFi. And while your phone works great, the RPi board doesn't, so the "but my other device is okay" argument is invalid. Reinstalling won't achieve anything with an OS like LE which uses embedded packaging to ensure the OS content on each device is identical. You can remake the connection, but that's not the problem.

    Matrix (LE10) uses python2, while Nexus (LE11), Omega (LE12), and Piers (LE13) use python3. Our distro packaging ensures the OS update is trivial, but the python change typically causes add-on crashes, so our official advice is to not do any kind of in-situ upgrade from a python2 version to python3 version.

    In practice, and if you know your way around the LE and Kodi filesystem, you can drop an LE12 update file in /storage/.update, then stop Kodi, rename /storage/.kodi to /storage/.kodi-old, and reboot to update. This results in a clean LE12 environment, and it's then simple to stop Kodi, copy back essential bits from /storage/.kodi-old/userdata to /storage/.kodi/userdata, and restart Kodi. You can copy addon settings from the previous install, but you need to reinstall all add-ons from repos to get python3 compatible versions.

    I've no idea what patches and changes _emanuel_ adds to his images (he is not pushlishing the sources to his GitHub account) but I doubt he deviates far from AMGLX.

    It sounds like it falls back to the 5.1 'core' audio. Have you checked cables? - it requires high bandwidth and if the HDMI connection can't handle that it will cause fallback. Please also enable debug logging in Kodi, demonstrate the issue by playing something, and then run "pastekodi" over SSH and share the URL generated.

    Some comments:

    • Can't explain 10.0.0.0 without knowledge of the correct DHCP scope, or there's a rogue DHCP server in the network
    • RPi WiFi is never brilliant so you probably need to move the device closer to the router
    • The invalid-key error is a known but unresolved connection issue - signal strength is a factor (as above)
    • The usual reason SSH password login fails is people enabling the disable password feature?
    • Once you get in, there is intentionally no sudo or apt package manager (we are not Debian based)

    In general WiFi on RPi boards is a bit rubbish, and while "invalid-key" is a genuine bug that needs to be resolved, it's influenced by signal strength. If running an Ethernet cable is truly impossible you may need to use an external USB WiFi dongle with a proper antenna that provides better range than the onboard card.