Provided that your changes can be upstreamed / added to OSMC without impacting other platforms, and you're serious about maintaining these changes, then we can get the support in OSMC proper and you can use the links on our CDN. Serge has recently updated NOOBS to use our files directly.
If you can make the adjustments to the audio frequency a module_param, then we can have a cmdline.txt setting set in your NOOBS and keep other platforms working OK without modification.
Okay -- we're currently shipping Jarvis, but there is an (in-progress) Krypton branch.
OSMC is based on Debian, so it consist of many APT packages. You should be able to get away with just building the kernel and Kodi packages and this should allow you to add all Slice functionality and make sure things work as expected.
Here's my recommendation for a workflow, quick and easy:
Adapt config.txt; cmdline.txt; fstab as follows:
root=/dev/mmcblk0p1 rootfstype=ext4 rootwait quiet osmcdev=rbp2
/dev/mmcblk0p1 /boot vfat defaults,noatime 0 0
/dev/mmcblk0p2 / ext4 defaults,noatime 0 0
- Install build tools,
sudo apt-get install build-essential git
- Clone OSMC repository:
git clone https://github.com/osmc/osmc --depth 1 -b master
- To build Kodi:
The first build will take some time. Subsequent builds are faster due to ccache. You can build on a Linux system (PC), but I recommend building on the device itself for quicker iteration. After a build, you can run
sudo dpkg -i rbp1-mediacenter.deb or
sudo dpkg -i rbp1-image-*.deb. Obviously, substitute rbp1 for rbp2 if building for CM3. CM3 is probably quicker to build and test with.
For packages, patches are stored in patches/ directory under
kernel-osmc respectively. Assuming that the Slice Kodi patches don't cause issues on Pi, you can add a patch like
rbp- 020-add-slice-support.patch. Same goes for kernel sources.
The kernel configuration is stored under
rbp1-000-add-kernel-config.patch and is based on 4.4. To update it:
- Take the Linux 4.4.16 from kernel.org
- Apply all 'rbp' series patches from patches/ to source.
- Make menuconfig, and make your changes.
- diff -u /dev/null .config > rbp1-000-add-kernel-config.patch, and change .config to b/.config in the patch header.
- Now you can build as normal.