[TUTORIAL] ODROID-C1: Kodi without X11 and PulseAudio

This forum is for supported devices using an ARMv7 Amlogic SoC.

[TUTORIAL] ODROID-C1: Kodi without X11 and PulseAudio

Postby Holzhaus » Mon Mar 02, 2015 10:33 am

Hi,

I just wanted to share a a small guide how to get Kodi working without X11 or pulseaudio. Passthrough won't work though.

Running Kodi without X11
Important: Back up your Kodi library! Hardkernel's Kodi is an early alpha of Kodi 15.0, but this will install 14.2.

Ensure that the line MAKEFLAGS is commented out in /etc/makepkg.conf (Setting it to "-j5" resulted in compilation error for me). Also make sure that odroid-c1-libgl-fb is installed:
$this->bbcode_second_pass_code('', '
$ pacman -Qi odroid-c1-libgl-fb
')
(If not, install it)

Clone Apokalypzx github repo and create the kodi package (This will take some time, so you should probably do it using screen if you're connecting via SSH):
$this->bbcode_second_pass_code('', '
$ git clone https://github.com/Apokalypzx/PKGBUILDs.git
$ cd PKGBUILDs/alarm/kodi-c1-fb
$ makepkg -s
$ sudo pacman -U *.pkg.xz
')

Kodi should now work without X11. If your display turns black after some time, add this to your bootargs in /boot/boot.ini:
$this->bbcode_second_pass_code('', 'consoleblank=0')

Using plain ALSA instead of PulseAudio

To also get rid of pulseaudio put this in your /etc/asound.conf (or /var/lib/kodi/.asoundrc if you start it via systemd as separate user):
$this->bbcode_second_pass_code('', 'pcm.!default {
type plug
slave {
pcm "hw:0,1"
}
}
ctl.!default {
type hw
card 0
}
')

Also remove pulseaudio if you have it installed:
$this->bbcode_second_pass_quote('', '$') sudo pacman -R pulseaudio


Kodi now works without PulseAudio, too.

Note: I did not write that PKGBUILD nor do I maintain the kodi fork that is used here. Props go to Apokalypzx and OwerSun.
Last edited by Holzhaus on Wed Mar 04, 2015 6:26 am, edited 1 time in total.
Holzhaus
 
Posts: 60
Joined: Wed Jan 21, 2015 12:40 pm

Re: [TUTORIAL] ODROID-C1: Kodi without X11 and PulseAudio

Postby jazztickets » Tue Mar 03, 2015 7:46 pm

Small typo:

$this->bbcode_second_pass_quote('', '
')cd PKGBUILDS/alarm/kodi-c1-fb


should be a lowercase s:

$this->bbcode_second_pass_code('', 'cd PKGBUILDs/alarm/kodi-c1-fb')

Also, makepkg should have the -s option so that it automatically downloads the dependencies.
jazztickets
 
Posts: 9
Joined: Fri May 17, 2013 2:35 am

Re: [TUTORIAL] ODROID-C1: Kodi without X11 and PulseAudio

Postby Holzhaus » Wed Mar 04, 2015 6:27 am

Thanks, I fixed that.
Holzhaus
 
Posts: 60
Joined: Wed Jan 21, 2015 12:40 pm


Return to Amlogic

Who is online

Users browsing this forum: No registered users and 5 guests

cron