Kodi Community Forum
RaspBMC Kodi/XBMC test builds - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111)
+---- Forum: Raspberry Pi (https://forum.kodi.tv/forumdisplay.php?fid=166)
+---- Thread: RaspBMC Kodi/XBMC test builds (/showthread.php?tid=176043)



RE: RaspBMC Kodi/XBMC test builds - vbat99 - 2014-11-03

Hello miappa
Updated script, tried 20141103 build, same situation. Remote works left right up and down, but no select.
I want to create a debug log, but can't get into the menu
Can someone remind me of the entry into advancesettings.xml, and I'll reboot and get the log onto pastebin.


RE: RaspBMC Kodi/XBMC test builds - vbat99 - 2014-11-03

Right.
Log file with <loglevel>1</loglevel> in advancedsettings.xml
http://pastebin.com/G1TbZPmn
Hope it gives some insight.

Also, typing irw or sudo irw from prompt only gives me
Code:
pi@raspbmc:~$ irw
connect: No such file or directory
pi@raspbmc:~$ sudo irw
connect: No such file or directory
pi@raspbmc:~$



RE: RaspBMC Kodi/XBMC test builds - miappa - 2014-11-03

Can you post the content of /scripts/xbmc-watchdog.sh.


RE: RaspBMC Kodi/XBMC test builds - vbat99 - 2014-11-03

I've switched back, would that make a difference?


RE: RaspBMC Kodi/XBMC test builds - miappa - 2014-11-03

Yes, then it will be different... however, I wanted to make sure that you hade the updated Kodi version of that script as eventlircd seems to not run for you.
And, as I mentioned previously, I made a mistake regarding the naming which several of the upstart scripts (including eventlircd) depends on.
I had the same problem before the fix, but now eventlircd starts and I can at least run irw.

Edit: I have missed to include a script which is probably the cause of this issue...


RE: RaspBMC Kodi/XBMC test builds - vbat99 - 2014-11-03

running 20141019 again, watchdog.sh is as follows:
Code:
#!/bin/bash
FBSET="/bin/fbset"
if [ -e $FBSET ]; then
    if [ ! -f /tmp/fb_resolution ]; then
      FB_RESOLUTION=$(fbset | grep geometry | awk '{print "-xres "$2" -yres "$3" -vxres "$4" -vyres "$5}')
      echo $FB_RESOLUTION > /tmp/fb_resolution
    fi
fi
while true
do
    # detach fb to save gpu memory
    if [ -e $FBSET ]; then
      echo 0 >  /sys/class/vtconsole/vtcon1/bind
      fbset -xres 1 -yres 1 -vxres 1 -vyres 1
    else
      chvt 1
      set +v
      tput civis
      tput setf 0
      start --no-wait splash
    clear
    fi
    if [ ! -h /home/pi/.xbmc-current ]; then
        if [ -e /home/pi/.xbmc-current ]; then
            rm -rf /home/pi/.xbmc-current
        fi
        su - pi -c "ln -s /opt/xbmc-bcm /home/pi/.xbmc-current"
        ldconfig
    fi
    if [ -f /etc/ld.so.cache ]; then
      xbmc_libs=$(grep .xbmc-current /etc/ld.so.cache)
    else
      xbmc_libs=""
    fi
    if [ ! -f /boot/config.txt ]; then
    # treat Raspbmc Settings nicely
    touch /boot/config.txt
    fi
    test "x$xbmc_libs" != "x" || ldconfig
    setcap cap_net_admin,cap_net_bind_service,cap_net_raw=ep /home/pi/.xbmc-current/xbmc-bin/lib/xbmc/xbmc.bin
    date -u +%s > /var/run/splash-timestamp  
    if [ -f /home/pi/.xbmc/userdata/addon_data/script.raspbmc.settings/settings.xml ]
    then
    # Check for sound card
    grep sys.xbmc.sc /home/pi/.xbmc/userdata/addon_data/script.raspbmc.settings/settings.xml | grep -q true
        if [ $? = 0 ]
    then
       modprobe snd_soc_bcm2708
       modprobe snd_soc_bcm2708_i2s
           modprobe bcm2708_dmaengine
       modprobe snd_soc_pcm512x
           modprobe snd_soc_iqaudio_dac
       modprobe snd_soc_pcm5102a
           modprobe snd_soc_hifiberry_dac
    fi
    fi
    if [ -f /usr/lib/libcofi_rpi.so ]; then
        su - pi -c "export XBMC_HOME=$(readlink /home/pi/.xbmc-current)'/xbmc-bin/share/xbmc' ; LD_PRELOAD=/usr/lib/libcofi_rpi.so /home/pi/.xbmc-current/xbmc-bin/lib/xbmc/xbmc.bin --standalone -fs --lircdev /var/run/lirc/lircd 2>&1 | logger -t xbmc"
    else
    su - pi -c "export XBMC_HOME=$(readlink /home/pi/.xbmc-current)'/xbmc-bin/share/xbmc' ; /home/pi/.xbmc-current/xbmc-bin/lib/xbmc/xbmc.bin --standalone -fs --lircdev /var/run/lirc/lircd 2>&1 | logger -t xbmc"
    fi
    last_execute_time=$(cat /var/run/splash-timestamp)
    current_time=$(date -u +%s)
    time_diff=$(($current_time - $last_execute_time))
    #TO DO: xbmc-troubleshooting.py script
    #test "$time_diff" -le 30 || /scripts/xbmc-troubleshooting.py
case "$?" in
        0) # user quit. Wait for 60s grace period so user can login into console tty*
            # reattach fb
            if [ -e $FBSET ]; then
              if [ -f /tmp/fb_resolution ]; then
                fbset `cat /tmp/fb_resolution`
              fi
              echo 1 >  /sys/class/vtconsole/vtcon1/bind
              DEPTH2=$(fbset | head -3 | tail -1 | cut -d " " -f 10)
              if [ "$DEPTH2" = "8" ]; then
                DEPTH1=16
              elif [ "$DEPTH2" = "16" ]; then
                DEPTH1=8
              elif [ "$DEPTH2" = "32" ]; then
                DEPTH1=8
              else
                DEPTH1=8
                DEPTH2=16
              fi
              fbset -depth $DEPTH1 && fbset -depth $DEPTH2
              start console-setup
              echo -e "\033c" > /dev/tty1
            fi
            dialog --title "Raspbmc" --infobox "Relax, XBMC will restart shortly.\n\nPress ESC key for a command line" 0 0 > /dev/tty1
            read -sn 1 -t 10 press < /dev/tty1
            if [ "$press" = $'\e' ]; then
                    # user pressed escape. now switching to 2nd terminal
                    chvt 2
                    set -v
                    tput cnorm
                    tput setf 7
                    sleep 55
                    while true
                    do
                        login_check=$(who | awk '{print $2}' | grep ^tty[0-9])
                        if [ "$login_check" = "" ]; then
                            break
                        fi
                        sleep 5
                    done
            else
                    # no user input. resume xbmc
                    sleep 2
            fi;;
        64) # shutdown system.
            set -v
            tput cnorm
            tput setf 7
            sleep 60 ;;
        65) # warm Restart xbmc
            sleep 2 ;;
        66) # Reboot System
            set -v
            tput cnorm
            tput setf 7
            sleep 60 ;;
        *)  # this should not happen
            set -v
            tput cnorm
            tput setf 7
            sleep 30 ;;
            
    esac
done

Running 20141103-nc4
Code:
#!/bin/bash
FBSET="/bin/fbset"
if [ -e $FBSET ]; then
    if [ ! -f /tmp/fb_resolution ]; then
      FB_RESOLUTION=$(fbset | grep geometry | awk '{print "-xres "$2" -yres "$3" -vxres "$4" -vyres "$5}')
      echo $FB_RESOLUTION > /tmp/fb_resolution
    fi
fi
while true
do
    # detach fb to save gpu memory
    if [ -e $FBSET ]; then
      echo 0 >  /sys/class/vtconsole/vtcon1/bind
      fbset -xres 1 -yres 1 -vxres 1 -vyres 1
    else
      chvt 1
      set +v
      tput civis
      tput setf 0
      start --no-wait splash
    clear
    fi
    if [ ! -h /home/pi/.xbmc-current ]; then
        if [ -e /home/pi/.xbmc-current ]; then
            rm -rf /home/pi/.xbmc-current
        fi
        su - pi -c "ln -s /opt/xbmc-bcm /home/pi/.xbmc-current"
        ldconfig
    fi
    if [ -f /etc/ld.so.cache ]; then
      xbmc_libs=$(grep .xbmc-current /etc/ld.so.cache)
    else
      xbmc_libs=""
    fi
    if [ ! -f /boot/config.txt ]; then
    # treat Raspbmc Settings nicely
    touch /boot/config.txt
    fi
    test "x$xbmc_libs" != "x" || ldconfig
    setcap cap_net_admin,cap_net_bind_service,cap_net_raw=ep /home/pi/.xbmc-current/xbmc-bin/lib/kodi/kodi.bin
    date -u +%s > /var/run/splash-timestamp  
    if [ -f /home/pi/.xbmc/userdata/addon_data/script.raspbmc.settings/settings.xml ]
    then
    # Check for sound card
    grep sys.xbmc.sc /home/pi/.xbmc/userdata/addon_data/script.raspbmc.settings/settings.xml | grep -q true
        if [ $? = 0 ]
    then
       modprobe snd_soc_bcm2708
       modprobe snd_soc_bcm2708_i2s
           modprobe bcm2708_dmaengine
       modprobe snd_soc_pcm512x
           modprobe snd_soc_iqaudio_dac
       modprobe snd_soc_pcm5102a
           modprobe snd_soc_hifiberry_dac
    fi
    fi
    if [ -f /usr/lib/libcofi_rpi.so ]; then
        su - pi -c "export APP_HOME=$(readlink /home/pi/.xbmc-current)'/xbmc-bin/share/kodi' ; LD_PRELOAD=/usr/lib/libcofi_rpi.so /home/pi/.xbmc-current/xbmc-bin/lib/kodi/kodi.bin --standalone -fs --lircdev /var/run/lirc/lircd 2>&1 | logger -t xbmc"
    else
    su - pi -c "export APP_HOME=$(readlink /home/pi/.xbmc-current)'/xbmc-bin/share/kodi' ; /home/pi/.xbmc-current/xbmc-bin/lib/kodi/kodi.bin --standalone -fs --lircdev /var/run/lirc/lircd 2>&1 | logger -t xbmc"
    fi
    last_execute_time=$(cat /var/run/splash-timestamp)
    current_time=$(date -u +%s)
    time_diff=$(($current_time - $last_execute_time))
    #TO DO: xbmc-troubleshooting.py script
    #test "$time_diff" -le 30 || /scripts/xbmc-troubleshooting.py
case "$?" in
        0) # user quit. Wait for 60s grace period so user can login into console tty*
            # reattach fb
            if [ -e $FBSET ]; then
              if [ -f /tmp/fb_resolution ]; then
                fbset `cat /tmp/fb_resolution`
              fi
              echo 1 >  /sys/class/vtconsole/vtcon1/bind
              DEPTH2=$(fbset | head -3 | tail -1 | cut -d " " -f 10)
              if [ "$DEPTH2" = "8" ]; then
                DEPTH1=16
              elif [ "$DEPTH2" = "16" ]; then
                DEPTH1=8
              elif [ "$DEPTH2" = "32" ]; then
                DEPTH1=8
              else
                DEPTH1=8
                DEPTH2=16
              fi
              fbset -depth $DEPTH1 && fbset -depth $DEPTH2
              start console-setup
              echo -e "\033c" > /dev/tty1
            fi
            dialog --title "Raspbmc" --infobox "Relax, XBMC will restart shortly.\n\nPress ESC key for a command line" 0 0 > /dev/tty1
            read -sn 1 -t 10 press < /dev/tty1
            if [ "$press" = $'\e' ]; then
                    # user pressed escape. now switching to 2nd terminal
                    chvt 2
                    set -v
                    tput cnorm
                    tput setf 7
                    sleep 55
                    while true
                    do
                        login_check=$(who | awk '{print $2}' | grep ^tty[0-9])
                        if [ "$login_check" = "" ]; then
                            break
                        fi
                        sleep 5
                    done
            else
                    # no user input. resume xbmc
                    sleep 2
            fi;;
        64) # shutdown system.
            set -v
            tput cnorm
            tput setf 7
            sleep 60 ;;
        65) # warm Restart xbmc
            sleep 2 ;;
        66) # Reboot System
            set -v
            tput cnorm
            tput setf 7
            sleep 60 ;;
        *)  # this should not happen
            set -v
            tput cnorm
            tput setf 7
            sleep 30 ;;
            
    esac
done



RE: RaspBMC Kodi/XBMC test builds - miappa - 2014-11-03

That looks correct.
Don´t have many more suggestions... try to toggle the Remote switch in Raspbmc settings and reboot.
You are rebooting between switches, right? It might not be necessary, but in case it runs from memory it can fail (I think...).

To see of eventlircd is running:
Code:
ps aux | grep eventlircd



RE: RaspBMC Kodi/XBMC test builds - vbat99 - 2014-11-03

At work for next 9 hrs, so will check
Code:
ps aux | grep eventlircd
tonight.

Yep, Rebooting between switching. Routine is
switch to kodi build
Code:
sudo sh enable-kodi.sh

rm .xbmc-current

ln -sfn /home/pi/.upgrade/kodi-14-20141103-nc4/xbmc-bcm /home/pi/.xbmc-current

sudo reboot

and back to pre-kodi build
Code:
sudo sh enable-xbmc.sh

rm .xbmc-current

ln -sfn /home/pi/.upgrade/kodi-14-20141019-nc4/xbmc-bcm /home/pi/.xbmc-current

sudo reboot

What I haven't tried, (I'm-a-dumb-ass), is irw on the 20141019-nc4 build, to see if it runs. Will try that tonight.

Thanks again for your time.


RE: RaspBMC Kodi/XBMC test builds - vbat99 - 2014-11-04

irw works as it should in 20141019-nc4.

Wonder why it's not working in 20141103-nc4
Looking at those two watchdog.sh files, I see the biggest difference and stuff to do with lirc are
Code:
"export APP_HOME=$
and
Code:
"export XBMC_HOME=$

could this be the area that's causing issue with lirc?


RE: RaspBMC Kodi/XBMC test builds - miappa - 2014-11-04

Nope, that´s a necessary modification to be able to run Kodi on Raspbmc after the rebranding.
I see on the recent commits that this has changed yet again though so the scripts needs to be updated for a new build... but it is correct for the build you are trying to use now.
And it does work for me it seems, really don´t know what more to suggest.

Another thing, there are so many changes with the rebranding, and right now (since last build really, Nov 2 was fine) I seem to have big issues with my build root.
I tried to dig into this yesterday but gave up, I honestly don´t know what´s going on.
It doesn´t copy all binaries to .../xbmc-bin/lib/kodi/system, not even the plugins directory.
Even though it says "built successfully" it is complaining about a couple of libmmal files + libcontainer not being in place, but they are as far as I can see.

I have a config.log if someone is willing to dig into it, but right now I really feel that I would rather wait a bit to play around with OSMC beta! Wink


RE: RaspBMC Kodi/XBMC test builds - haegg78 - 2014-11-04

After installing the latest build (kodi-14-20141103-nc4) airplay is now longer working. Was previously running build kodi-14-20141019-nc4 and there both video and audio airplay worked.
In the latest build no airplay destination is shown on my Apple devices (ranging from ios 5 to 8.1).

Is this a known problem?


RE: RaspBMC Kodi/XBMC test builds - miappa - 2014-11-04

(2014-11-04, 11:10)haegg78 Wrote: After installing the latest build (kodi-14-20141103-nc4) airplay is now longer working. Was previously running build kodi-14-20141019-nc4 and there both video and audio airplay worked.
In the latest build no airplay destination is shown on my Apple devices (ranging from ios 5 to 8.1).

Is this a known problem?

No, but now it is, I had not noticed. Wink I see the problem, avahi does not start.
Code:
raspbmc dbus[249]: [system] Failed to activate service 'org.freedesktop.Avahi': timed out

You can start it manually with:
Code:
sudo avahi-daemon -D

I will see if I can figure out why that is, in the mean time start it manually or stick with the build from 19th of Oct.


RE: RaspBMC Kodi/XBMC test builds - menakite - 2014-11-04

Note that APP_HOME has been renamed to KODI_HOME just yesterday: https://github.com/xbmc/xbmc/pull/5597
... but you have noticed already.


RE: RaspBMC Kodi/XBMC test builds - vbat99 - 2014-11-04

Don't give up, happy to keep testing. (now I know how to switch back and forth)


RE: RaspBMC Kodi/XBMC test builds - fernandovg - 2014-11-05

(2014-11-04, 14:43)miappa Wrote:
Code:
raspbmc dbus[249]: [system] Failed to activate service 'org.freedesktop.Avahi': timed out

You can start it manually with:
Code:
sudo avahi-daemon -D

I will see if I can figure out why that is, in the mean time start it manually or stick with the build from 19th of Oct.

Check /etc/init/avahi-daemon.conf

Code:
start on (((started xbmc and enable-avahi-daemon) or no-xbmc) and started dbus)
stop on (stopping dbus or disable-avahi-daemon or runlevel [!2345])

Missing the change xbmc > kodi?