Bulding XBMC for Raspberry Pi


270 posts   Page 4 of 11   1, 2, 3, 4, 5, 6, 7 ... 11
by Buzzthebuzzsaw » Tue Apr 24, 2012 8:54 pm
On the compile I was using I was able to connect to a dlna server (mediatomb) and it picked up the videos/music from it without any problems.

It should save you having to have all the media on the sd card.

Cant testify that it was playing as my compile didn't play right, but it was able to get to the server without any problems.
Posts: 9
Joined: Mon Apr 16, 2012 6:22 pm
by bob_binz » Tue Apr 24, 2012 9:24 pm
bob_binz said:


another thing:

The command:

sudo ln -sf /home/dc4/rootfs /opt/bcm-rootfs

makes the rootfs folder (link) in bcm-rootfs, so
sudo cp /usr/local/bcm-gcc/arm-bcm2708-linux-gnueabi/sys-root/lib/libstdc++.so.6.0.14 /opt/bcm-rootfs/usr/lib

and

cd /opt/bcm-rootfs/usr/lib

doesn't work as written.



What a muppet! nvm, realised my stupid mistake!
User avatar
Posts: 367
Joined: Thu Feb 02, 2012 7:58 pm
Location: Stockport, UK
by liamfraser280 » Tue Apr 24, 2012 10:01 pm
2GB will be the SD card size required but there will only be about 60MB space. You'll have to resize the partitions with gparted or similar if you want to take advantage of the capacity on a larger card.
Posts: 354
Joined: Tue Oct 04, 2011 6:53 pm
by gerkenz » Wed Apr 25, 2012 7:18 am
@ Liam: a XBMC image for first test would be very nice. Could you provide a download, please? I've tested C64 Emulator VICE on the RPi so far and would like to get into the XBMC now.

I've successfully mounted an exfat formated external USB HD. So if you're having your movies stores on such a device this tutorial will help:

http://www.hilltopyodeler.com/.....log/?p=455
Posts: 10
Joined: Wed Apr 18, 2012 5:29 am
by EpWoody » Wed Apr 25, 2012 7:59 am
You don"t need a display-manager or desktop enviroment. I removed LXDE / GDM / xserver-xorg etc from my distribution and XBMC still works :) You save another 100MB.

Can"t select an external soundcard yet. That"s a pity… (even though I"ve installed Alsa)

I"ve created a small script to create a black screen, hide the cursor, and start xbmc. Simple bash script.

#!/bin/bash
clear
set +v
tput civis
/opt/xbmc-bcm/xbmc-bin/lib/xbmc/xbmc.bin > /dev/null
tput cnorm

I"ve also editted the sample init.d script. However this doesn"t create a black screen.

#! /bin/sh

### BEGIN INIT INFO
# Provides:          xbmc
# Required-Start:    $all
# Required-Stop:     $all
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: starts instance of XBMC
# Description:       starts instance of XBMC using start-stop-daemon and xinit
### END INIT INFO

############### EDIT ME ##################

# path to xinit exec

DAEMON=/opt/xbmc-bcm/xbmc-bin/lib/xbmc/xbmc.bin

# startup args
DAEMON_OPTS=" "

# script name
NAME=xbmc

# app name
DESC=XBMC

# user
RUN_AS=pi

# Path of the PID file
PID_FILE=/var/run/xbmc.pid

############### END EDIT ME ##################

test -x $DAEMON || exit 0

set -e

case "$1" in
  start)
        echo "Starting $DESC"
        start-stop-daemon --start -c $RUN_AS --background --pidfile $PID_FILE  --make-pidfile --exec $DAEMON -- $DAEMON_OPTS
        ;;
  stop)
        echo "Stopping $DESC"
        start-stop-daemon --stop --pidfile $PID_FILE
        ;;

  restart|force-reload)
        echo "Restarting $DESC"
        start-stop-daemon --stop --pidfile $PID_FILE
        sleep 5
        start-stop-daemon --start -c $RUN_AS --background --pidfile $PID_FILE  --make-pidfile --exec $DAEMON -- $DAEMON_OPTS
        ;;
  *)
        N=/etc/init.d/$NAME
        echo "Usage: $N {start|stop|restart|force-reload}" >&2
        exit 1
        ;;
esac

exit 0
Posts: 14
Joined: Tue Mar 27, 2012 12:56 pm
by EpWoody » Wed Apr 25, 2012 11:25 am
Liam Fraser posted this on his twitter and asked me to share it with you. He wasn't able to post it here.

Debian XBMC 24-04-2012 
Download

Checksum: 8ce2aa2490142ada2664f9c3ed0e92620b54dac9

Filename: debian-xbmc-24-04-2012.zip
Posts: 14
Joined: Tue Mar 27, 2012 12:56 pm
by Helpme1986 » Wed Apr 25, 2012 11:30 am
EpWoody said:


Liam Fraser posted this on his twitter and asked me to share it with you. He wasn't able to post it here.

Debian XBMC 24-04-2012 
Download

Checksum: 8ce2aa2490142ada2664f9c3ed0e92620b54dac9

Filename: debian-xbmc-24-04-2012.zip


Thanks EpWoody, Liam is great at coding but not good at maths i reckon! (7+12=19)
Posts: 121
Joined: Tue Jan 03, 2012 3:48 pm
by EpWoody » Wed Apr 25, 2012 11:38 am
Nah, I wasn't able to post either, until I removed the link :)
Posts: 14
Joined: Tue Mar 27, 2012 12:56 pm
by Helpme1986 » Wed Apr 25, 2012 11:41 am
EpWoody said:


Nah, I wasn't able to post either, until I removed the link :)


I was going to ship him a calulator as well, (man talk about off topic!)

Downloaded to my NAS ready for when I get home (Man I hate work!),

Liam, when are you going to revise!?
Posts: 121
Joined: Tue Jan 03, 2012 3:48 pm
by gerkenz » Wed Apr 25, 2012 12:10 pm
Cool, will try it today...
Posts: 10
Joined: Wed Apr 18, 2012 5:29 am
by EpWoody » Wed Apr 25, 2012 12:11 pm
And the releasenotes for the completeness.
 
This is fresh Debian image (the 19-04-2012 one) with XBMC and all necessary
dependencies installed. I don't have time to support it because of exams and
so on, so this is simply a very rough and ready image that I made because it
would be easier than creating a binary with instructions.

It should fit on a 2GB SD card fine, although there is only something like 60MB
of space left!

Once you've written the image to your SD card, log in with pi/raspberry
and type xbmc to start XBMC. Could it be easier?

Doesn't look like flash drives and so on are automounted though so you'll
have to do that manually before you load it up. It doesn't seem to exit very
well either but this is only a rough image for you all to play with before
something better like OpenELEC or Raspbmc comes along.

Cheers all,

Liam.
Posts: 14
Joined: Tue Mar 27, 2012 12:56 pm
by dontod » Wed Apr 25, 2012 12:55 pm
Just downloaded Liam's image (thanks), installed on a 2gb SD card and we''re away.

Looks nice. Played the short sample of Big Buck Bunny (a little jumpy). Installed the youtube addon and tried that (again a little jumpy).

Tried the remote control via webserver and it's locked up. Oh well.

Don.
Posts: 5
Joined: Wed Apr 25, 2012 11:51 am
by CuraHack » Wed Apr 25, 2012 3:41 pm
Hi,

I've created a project on RPi-Developers for this, and I've added the file here. If one of you sign up I can make you admins of that project so you can manage and upload files yourself. We have a CDN/Mirror backend so we can provide faster speeds and more bandwidth.

Cheers!
Posts: 6
Joined: Mon Nov 28, 2011 9:46 pm
by liamfraser280 » Wed Apr 25, 2012 4:10 pm
This file comes from a CDN so your backend isn't really necessary. I also have access to a second CDN and about 80 mirrors :) . Thanks for the offer though.
Posts: 354
Joined: Tue Oct 04, 2011 6:53 pm
by werner » Wed Apr 25, 2012 5:13 pm
just my (inflation adjusted) 5p…

wrote the image earlier to spare sd card, booted up, xbmc works well. I havent shut it down/exit yet, so cant comment on that as it is still scanning my media library. Played some 1080p h264 rips (ex-HDDVD…remember them?) from a samba share across the lan and cant really comment anything negative…it just works. Menu's arent as responsive as my other xbmc machine, but I wasnt expecting that. This little guy is humble, but impressive. thanks Liam, much appreciated.

edited to add: using the xbmc remote for android to control it.
Posts: 14
Joined: Sat Mar 03, 2012 6:40 pm
by Helpme1986 » Wed Apr 25, 2012 5:55 pm
Works great for me, no issues other than laggy menu (which was expected) played XVIDS and H.264 1080p files and no stutter for me,

For those looking to auto boot these are the steps I took via SSH (though you could do it on the Pi itself

Auto Login:
sudo nano /etc/inittab
change
1:2345:respawn:/sbin/getty 115200 tty1
to
#1:2345:respawn:/sbin/getty 115200 tty1
Under that line add:
1:2345:respawn:/bin/login -f pi tty1 </dev/tty1 >/dev/tty1 2>&1
Ctrl+X to exit, Y to save

Auto start app
sudo nano /etc/profile
At the end add:
xbmc
ctrl+x to exit, Y to save

reboot and enjoy!

Im new to this so the above might not be the best method but it just works… Great work Liam, go n have a beer!
Posts: 121
Joined: Tue Jan 03, 2012 3:48 pm
by panomama » Wed Apr 25, 2012 6:36 pm
just my (inflation adjusted) 5p…

wrote the image earlier to spare sd card, booted up, xbmc works well. I havent shut it down/exit yet, so cant comment on that as it is still scanning my media library. Played some 1080p h264 rips (ex-HDDVD…remember them?) from a samba share across the lan and cant really comment anything negative…it just works. Menu"s arent as responsive as my other xbmc machine, but I wasnt expecting that. This little guy is humble, but impressive. thanks Liam, much appreciated.

edited to add: using the xbmc remote for android to control it.

How did you do the xbmc remote? I can"t get it to connect. Using the official android app.
Posts: 3
Joined: Tue Apr 24, 2012 3:14 pm
by dom » Wed Apr 25, 2012 6:48 pm
System->settings->services->Webserver Enable "Allow control of XBMC via HTTP"

System->settings->serivices->Remote control  Enable "Allow programs on other systems to control XBMC"

You might want to turn on Airplay too....
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 4030
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge
by nimdy » Wed Apr 25, 2012 6:58 pm
Using Liams image, has anyone experienced XBMC loading in a tiny corner of the screen? I'm thinking it's something to do with my confix.txt as I have to force it to recognise HDMI (hdmi_force_hotplug) and set a video format (hdmi_group=2, hdmi_mode=57)
Posts: 67
Joined: Sun Mar 04, 2012 2:54 pm
by Helpme1986 » Wed Apr 25, 2012 7:04 pm
dom said:


System->settings->services->Webserver Enable "Allow control of XBMC via HTTP"

System->settings->serivices->Remote control  Enable "Allow programs on other systems to control XBMC"

You might want to turn on Airplay too....


I had to do another one as well, think it was control XBMC via HTTP and set a username and password (though there is a similar option that if also on would mess it up, cant remember now though)

As for the display size, most likely have to play with your config file, on 1 of my TV's it was perfect, on another it overscans (Cheap TV with no options)
Posts: 121
Joined: Tue Jan 03, 2012 3:48 pm
by ntadej » Wed Apr 25, 2012 7:06 pm
RPiDevelopers said:


Hi,

I've created a project on RPi-Developers for this, and I've added the file here. If one of you sign up I can make you admins of that project so you can manage and upload files yourself. We have a CDN/Mirror backend so we can provide faster speeds and more bandwidth.

Cheers!


I'm currenly building OpenELEC for Raspberry Pi. Can I upload it to your servers? My username there is also ntadej.

Thank you. :)
Posts: 33
Joined: Sat Apr 21, 2012 10:28 am
by gerkenz » Wed Apr 25, 2012 7:07 pm
1080p without any problems! :-) very nice for first image, thanks!
audio over HDMI works but no 5.1 audio to my decoder…I"m afraid that my Panasonic can only handle 2.1 with it"s SPDIF out. :-(
Posts: 10
Joined: Wed Apr 18, 2012 5:29 am
by dom » Wed Apr 25, 2012 7:12 pm
If you can drive it enough to get to:

system->settings->system->video output and try different resoutions.

You may be able to find the one you booted with.
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 4030
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge
by liamfraser280 » Wed Apr 25, 2012 8:11 pm
To solve overscan issues - there is a video calibration option and it works really well.

http://www.youtube.com/watch?v.....7qoFfC6nvI (my XBMC demo vid)

Watch from 2:30 to see what I'm on about!

Glad your all liking the image :)
Posts: 354
Joined: Tue Oct 04, 2011 6:53 pm
by Helpme1986 » Wed Apr 25, 2012 8:15 pm
Liam Fraser said:


To solve overscan issues - there is a video calibration option and it works really well.

http://www.youtube.com/watch?v.....7qoFfC6nvI (my XBMC demo vid)

Watch from 2:30 to see what I'm on about!

Glad your all liking the image :)


Haha i just come on here to let everyone how thick i was, done this 10mins ago after remember seeing it in your video, worked spot on ;)
Posts: 121
Joined: Tue Jan 03, 2012 3:48 pm