Posts by chewitt

    If yours sources.xml file looks like this:

    Code
    <sources>
        <video>
            <default pathversion="1"></default>
            <source>
                <name>MOVIES</name>
                <path pathversion="1">smb://CAPTAIN/Movies/</path>
                <allowsharing>true</allowsharing>
            </source>
        </video>
    </sources>

    You need to ensure passwords.xml exists and contains something like:

    Code
    <passwords>
        <path>
            <from pathversion="1">smb://CAPTAIN/Movies</from>
            <to pathversion="1">smb://username:password@CAPTAIN/Movies/</to>
        </path>
    </passwords>

    The alternative is adding the username:password credential directly into sources.xml like this

    Code
    <sources>
        <video>
            <default pathversion="1"></default>
            <source>
                <name>MOVIES</name>
                <path pathversion="1">smb://username:password@CAPTAIN/Movies/</path>
                <allowsharing>true</allowsharing>
            </source>
        </video>
    </sources>

    It was an extra "cd" on the end of a command. It looked like a simple copy/paste error so I edited the post. If you'd gotten the commands wrong you wouldn't have built an image :)

    There's no harm from running repo-tool but it's not necessary and you're using disk space for packages you won't use, e.g. if you build RPi2 you'll also end up grabbing the kernel sources for 3x Amlogic kernels, 1x Rockchip kernel, and all the hardware specific packages for those build targets. I'd guesstimate it's an extra ~1GB of data.

    Kodi normally builds ffmpeg as an internal dependency to control the ffmpeg version and apply specific patches. LE builds its own 'external' ffmpeg but applies the same patches. We also have an 'ffmpegx' package in our build-system because Tvheadend also needs ffmpeg but it needs more features enabled than the quite minimal Kodi version.

    I would not invest too much time/effort in the Amlogic 3.14 codebase. It's full of low quality kernel code and unresolvable issues. In the next couple of months we will have a mainline kernel/uboot with V4L2/mem2mem hardware video decode.

    The "Kodi" user needs to have a password. Then you need to edit the existing 'sources' in Kodi to use that username/password (credential) when accessing the shares on the Win10 box. That can be done in the GUI (edit source). It can also be done manually by accessing the LE box over SSH and editing /storage/.kodi/userdata/sources.xml in a text editor (nano). As scary as that might sound it's often the quicker and easier way to edit things. The URL's in sources.xml need to be in smb://user:pass@server/path format.

    The "git reset --hard" isn't necessary because you already checked-out the repo at a specific tag, and IMAGE_SUFFIX=v825 isn't required as the 8.2.5 version is part of the release image filename. Also be aware that the repo-tool script will download the sources for all packages in the build system; whereas if you allow them to be downloaded at build-time you only download sources for the packages used in the image you create. Apart from that (and one typo, which I corrected) all looks fine.

    If you plan to build/rebuild things I'd recommend moving the 'sources' folder somewhere outside the main git folder and then creating a symlink to it. This allows you to nuke the git folders and re-clone (or share sources between multiple git folders) without having to re-download or duplicate all the sources. If you're a git novice it's kind of inevitable that at some point things get screwed up and the easiest way forwards is to nuke/clone again, and downloading sources adds time to the build process. NB: It takes a while to get the hang of git and everyone makes mistakes at first (nobody ever stops learning).

    Kodi is written around ffmpeg (some of the Kodi developers are ffmpeg developers, none are gstreamer fans) so anything that forces another player app into the codebase is always going to be an ugly hack that is hard to maintain. It would be long-term better to think about enhancing ffmpeg capabiltiies in Kodi and contributing improvements, not hacking gstreamer support.

    Can you point me to your GitHub repo?