ARMHF XBMC image – Part 2

Introduction

As announced in a previous quick post, I have just released a new image for wandboard quad.

What’s in it

This image packages my latest version of XBMC for iMX6. It is built using ARMHF ABI.
This XBMC is derived from a gotham dev branch (which is 4 month old. A sync to catch latest main devs will happen soon).
It exhibits the following features :

  • Hw decoding is available for most codecs which are handled by the iMX6 VPU (noticeable exceptions are RV and AVS standard but they are not so common so it is not a major drawback).
  • codecs which are not directly handled by VPU are available through sw decoding
  • Network shares such as uPNP, SMB, NFS are available
  • RTMP protocol is available
  • Support for bluray has been built in (but tests are required)
  • All sound interfaces are available (HDMI, SPDIF and sgtl5000) and passthrough should work (not yet tested on my side)

How to install

  • Download the compressed (xz) SDcard image – md5sum is 70c39feda421fc4130909127219e27b8.
  • Extract it by using the xz utility :
xz -dv wand.bin.xz
  • Burn it on a sdcard (At least 2GiB) by using
dd if=wand_v0.0.2.bin of=/dev/sdx bs=4M

With /dev/sdx being the sdcard device (for instance /dev/sdd)

How to use

On startup, XBMC is automatically launched, just have fun…
Be aware that :

  • login is root and password is empty
  • You have a shell on the serial line interface
  • A ssh/scp server is up and running

Bugs

This image is still beta and work in progress.
If you experience instabilities, crashes or bugs, please report them to me without being too rude 😉
Known bugs are tracked here
Please when you report a bug :

  • Try to be as precise as possible regarding the context.
  • When it occurs, try to download the 2 files :
    • /tmp/temp/xbmc.log
    • /var/log/messages
  • Try to reproduce it

For now, report these bugs on this blog or in XBMC thread. I will create tickets in trac by myself as I have disabled the ability to create tickets for anonymous because of spams.

If you need to send files, I will give you a direct link to upload on my server by mail.
In case I ask you to create a core dump dump here is the way to do it :

  • Stop XBMC
  • login on the board and issue the commands :
echo "/tmp/core.%e.%p" > /proc/sys/kernel/core_pattern
ulimit -c unlimited
/imx6/xbmc/lib/xbmc/xbmc.bin &

Then if XBMC crashes, a file core.* will be created in /tmp folder

Updates

A package manager (smart) is installed and will enable future updates.

First additional package is NTP client which is not already installed in the image. So, if you want a NTP client please issue the following commands on your board :

smart update
smart install ntp ntp-utils

What next ?

Of course stability is a must have and I will do my best to improve it by investigating and hopefully by solving reported bugs.
Then, regarding new features, my current priorities for the days to come are :

  • Sync with main gotham dev branch
  • Add support for liveTV
  • Add support for LIRC
  • Port libCEC on iMX6 to provide support in XBMC (not possible for wandboard as CEC pin is not connected, thanks to hste for pointing this. I will check if other products have connected this pin or not…)

I will also provide images ready to use for other devices than wandboard quad. I mostly think about utilite and maybe GK802 (with special care given the overheating issue) because I own these other products.
(If you want support for another iMX6 board or device and are ready to send to me a free sample then you can contact me.)

100 thoughts on “ARMHF XBMC image – Part 2

  1. Pingback: ARMHF XMBC image | Stephan's blog

  2. Stephan,

    Been running this new version for an hour or so, still with big issues I’m afraid.

    To test i’ve been using the usual Big Buck Bunny files in 1080p available here:
    http://www.bigbuckbunny.org/index.php/download/
    and other files from here: http://www.auby.no/files/video_tests/

    1 – still no NTFS? Trying to mount ntfs drive gives “file system not supported” error. Same with exfat (which I would have expected to be native to kernel).

    2 – [very minor] HDMI audio doesn’t work unless the TV is selected to Wandboard input as it starts up.

    3 – still have big problems when stepping back or using rewind (going forward tends to be OK). Some xvids seem to manage this OK but I’ve tried a lot of MP4 / X264 files and they all have issues going backwards. This is playing from either SATA mounted ext4 drive or across ethernet using smb. Can be seen playing BBB (H264 version). At times it is fairly minor audio sync issues which sometimes catch up. Other occasions it causes big sync issues and the video playback stutters for long periods or halts completely.

    4 – BBB (MSMP4 version) causes XBMC to bomb out.

    5 – BBB (OGG version) is recognised as music not a video so only audio is played with music visualisation.

    6 – The ‘Matrix’ xvid from http://www.auby.no/files/video_tests/ plays audio but no picture.

    7 – Some other avi files (divx / xvid) have random lockup / glitching issues and I have had a couple of XBMC picture freezes with audio playing on.

    8 – In general the 1080p BBB playback is a little jerky, but that maybe due to local issue here (playing over network). My Raspberry Pi manages to be smoother.

    XBMC log is here (split into tow because of size):
    part 1 – http://pastebin.com/uEME5Pjt
    part 2 – http://pastebin.com/uMMmW2aA

    /var/log/messages here: http://pastebin.com/S0SkTFm9

    Slightly OT – your repo appears to be very limited – is there a more expansiver repo that could be added to smart that would give access to some more utilities? I’m thinking ‘nano’ and ‘htop’ and even a samba server in the future.

    Thanks again – hope this is helpful in you taking this further …
    Cheers
    Richard

    • Hi thanks for detailed feedback.

      Please note that this image is the same as the other with ntfs available. So we cannot expect that bugs I have not investigated nor solved disappear 😉

      1. NTFS is available following your request. I have mentioned that it is provided by ntfs-3g which will enable you to read and write.
      use ntfs-3g as the FS type, for instance :
      mount -t ntfs-3g /dev/sda1 /mnt

      2. You are right when the kernel boots it is not able to probe HMDI audio if the screen/TV is not available for its use. I will check if I can improve this…

      3. OK. I have created a ticket for this bug. http://stephan-rafin.net/trac/ticket/26#ticket

      4&5. “Bomb out” ? You mean crash ?
      Anyway for MSMP4 & OGG, I create a request http://stephan-rafin.net/trac/ticket/27, I will analyze whether I can add proper support for these format using the files you reference (I have to check if VPU is able to handle these formats, not sure so it may be sw only)

      6. Thanks for your feedback. I will check.
      http://stephan-rafin.net/trac/ticket/28#ticket

      7. Could you point some samples of these problematic xvid files ? (so that I can reproduce and investigate)

      8. When I watch your logs, I understand that your playback is jerky. All the entries
      “ERROR: GetPicture – player is ahead of time”
      are displayed because, for some reason, you decode some pictures too late to be displayed…
      In a normal situation you may have 2 or 3 entries especially when the GUI appears and disappears but not so many all the time for sure…

      Also you have a few
      “No frame buffer available” errors and I am aware of this issue (already in my database : http://stephan-rafin.net/trac/ticket/11) but so far I have not been able to solve it…

      9. smart is only the package manager, I can add packages for sure. I have just added htop, nano.
      samba was already available and provides the server you wish..

      Thanks a lot for this detailed feedback.
      To me the worst issue is the jerky playback of some h264 from your hdd.
      Then I am confident I will solve issues with xvids…

      Regards

      • Hi Stephan,

        I did try mounting the drives with the ntfs-3g option and it showed “file system not supported”, so something is amiss.

        Yes “bombs out” is a very old term for crash – comes from when the early Atari would display little bombs when programs crashed.

        Next time I fire it up I will try and find the troublesome AVIs again – might not be for a few days though.

        Thanks for adding nano and htop, but what I was really asking was is there another Yocto repo we can use alongside yours (that we we are not completely dependent on you).

        Cheeers

        • Hi Richard

          I have tested a ntfs drive on my side and it works fine… Yet I have to admit it was formatted as NTFS with my linux host. I will give a try at a disk which is really formatted by windows…
          – Can you see the “mount.ntfs-3g” utility ?
          – Can you issue the command :
          “modprobe fuse”
          and check that the fuse module is properly loaded ?

          Ho all right for the bomb : I remember these bombs on atari (I experienced them many times while I was a teenager long time ago 😉 ). Sorry I was not familiar with the term…

          Regarding the repo, I have published my layer with my specific recipes on my github account (wolfgar) and I will write a little tutorial so that anyone can rebuild from scratch a compatible repo and add any package he wishes (as long as a yocto recipe exists of course…).
          For sure, all my work is open and I never tried to catch users so any mirror will be welcome…

          • I got crash “bomb”also when trying that sample.
            In the consolelog I get this message xbmc.bin: /home/admin/downloads/wandboard/bsp/build/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/xbmc/git-r0/git/xbmc/utils/MathUtils.h:74: int MathUtils::round_int(double): Assertion `x > static_cast((-2147483647 – 1) / 2) – 1.0′ failed.

            [1]+ Aborted /imx6/xbmc/lib/xbmc/xbmc.bin

          • Hi again,

            Looks like it was my mistake with the NTFS – think I might have been using the older image. Its working fine now.
            I’ve also installed samba and that is working well, but I am having big trouble getting NFS (Server) to function. I have it working fine in my other Wandboard install (Fedora based) but the same setup doesn’t work here for some reason (I think it maybe RPC related but not sure).
            Starting the service:
            >root@wandboard-quad:~# /etc/init.d/nfsserver start
            >creating NFS state directory: done
            >starting 8 nfsd kernel threads: rpc.nfsd: >Unable to access /proc/fs/nfsd errno 2 (No such file or directory).
            >Please try, as root, ‘mount -t nfsd nfsd /proc/fs/nfsd’ and then restart rpc.nfsd to correct the problem
            >done
            >starting mountd: done
            >starting statd: /usr/sbin/rpc.statd is already running
            >1153
            >done

            and
            >root@wandboard-quad:~# rpcinfo -p | grep nfs

            returns nothing.

            If spent a bit of time trying to resolve this to no avail so any help would be appreciated. Did you manage to test this yourself?

            Thanks again.
            Richard

            • Hi Richard,

              Nice to read that NTFS works because I tried a disk created by windows and it was all good for me so I was dubious and had no explanations…
              So far I have not enabled nfsd support in kernel. That’s your issue…
              Do you know how to rebuild a kernel from source ? If so I can share all you need to rebuild your own kernel with your own conf…

              Regards

          • Stephan,
            Ah, that explains!
            Building a kernel is not something I have done before but have done other packages before so am happy to give it a try. Is it something that can be done on the WB or do I need a separate build environment?
            Thanks
            Richard

  3. Hi,

    Thanks for the new image! The ntp packages are not yet available?

    BTW are the HD audio formats supposed to work on the wandboard (with HDMI passthrough)?

    • Hi jurgen,

      Please, reread the post, I mention how to install NTP and I say that HDMI passthrough should work but that I am not able to test it (as I don’t have a HDMI receiver able to decode hd audio formats)…

      • Hi Stephan,

        Yes I read about how to install NTP but it fails. It (smart) cannot find any packages named ntp or similar (I checked a few hours ago).

        My receiver is capable of the HD audio formats but I am not sure if they imx6 supports them. I’ll test some more.

        BTW at least regular DTS en Dolby work great.

        • Hi Jurgen

          Have you issued a
          “smart update”
          command ?
          before
          “smart search ntp”
          “smart instal ntp ntp-utils”
          ?

          If it does not work please try to add again the repo :
          “smart channel –add repo type=rpm-md baseurl=http://www.stephan-rafin.net/rpmhf”

          At hw level iMX6 is able to handle “Parallel HBR (high bitrate) audio interface, enabling the support of Dolby® True-HD and DTS-HD MasterAudio.” (extract from iMX6 RM)
          Of course we have to check that everything is in place to support them at sw level…

          Knowing that regular DTS & dolby is already OK is a good news ! Thanks for reporting it…

          Regards
          Stephan

  4. Thanks. Nice with a packagemanager.

    Before you try getting CEC working on wandboard. I found this on wandboard mailinglist:
    According to Wikipedia, CEC is the optional single wire bidirectional serial bus. It uses dedicated wire – pin 13 of hdmi connector. But in wandboard this pin is not connected to anything. That said, hdmi/cec support is not available in wandboard.

  5. Thanks for for working on this, look forward to mainstream patch upstream!

    BTW *XBMC, not XMBC as in blog subject, it’s very commonly mistyped 😉

  6. When running xbmc with strace I get alot of gettime running over the strace-screen. Is it normal behavior that it checks time so often?

    clock_gettime(CLOCK_MONOTONIC, {37810, 559842179}) = 0
    clock_gettime(CLOCK_MONOTONIC, {37810, 560154509}) = 0
    clock_gettime(CLOCK_MONOTONIC, {37810, 560400839}) = 0
    clock_gettime(CLOCK_MONOTONIC, {37810, 560819166}) = 0
    clock_gettime(CLOCK_MONOTONIC, {37810, 561041163}) = 0
    clock_gettime(CLOCK_MONOTONIC, {37810, 561279160}) = 0
    gettimeofday({1378748953, 308492}, NULL) = 0
    read(37, 0x7edc5928, 16) = -1 EAGAIN (Resource temporarily unavailable)
    read(21, 0x7edc5928, 16) = -1 EAGAIN (Resource temporarily unavailable)
    gettimeofday({1378748953, 311593}, NULL) = 0
    gettimeofday({1378748953, 311913}, NULL) = 0
    gettimeofday({1378748953, 319037}, NULL) = 0
    clock_gettime(CLOCK_MONOTONIC, {37810, 573698994}) = 0
    clock_gettime(CLOCK_MONOTONIC, {37810, 573846993}) = 0
    ioctl(3, 0x7530, 0x7edc56d8) = 0
    ioctl(3, 0x7530, 0x7edc54f8) = 0

    • Hi

      I have not changed XBMC GUI code…
      If you think there is something wrong, I will have a look to understand which thread generates all these syscall gettimeofday…

  7. Hi Stephan

    there is a problem playing music with my installation. Playing a song I get “Playback failed One or more items failed to play” and “Playlist Can’t find a next item to play”. I have tested it with music stored on the SD and on an UPnP device. The two log files you mentioned are available.

    Peter

  8. I ordered a Wandboad quad 2 weeks ago but it doesn’t arrived yet. So I am waiting and waiting.

    What for a XBMC you have in your image? I ask because I run also a raspberry and ATV2 in different rooms and sync it with MySQL. But different versions of XBMC having different databases. So if you are using XBMC 12.2 everything is fine. But if you are using Gotham I must update all other devices also. I don’t know if I want go that way.

    • No need to update – both Frodo and Gotham can coexist happily when using mysql. Gotham will copy the frodo data into a new database and the old will remain useable. I do this with my setup (currently two gotham and two frodo installs) and it works fine.

  9. You probably don’t have time to screw me, but any help would be appreciated. I have a wandboard quad. I have been using this latest image and the problem is I no nothing about Linux or programming. I can log into my network hard drive and can play videos. I have figured out a few things, but what I was trying to figure out if I can use wireless. I tried doing the ntp-utils and really don’t know if it worked or not because I don’t know what it is supposed to do. I used puTTY to log into the wandboard and it seems like it logs in,
    .
    Is this the order that commands are entered.
    “smart update”
    “smart search ntp”
    “smart install ntp ntp-utils”

    When I enter the above I get caches and things like that in puTTY, but when I enter the last command I get a message that the file already exists

    Also when I am in XBMC.and look at the temperature is like 90″, is that normal. I don’t have the board in a case.

    It amazes me how you know how to work on these projects.

    Thanks
    JamesH

    • Hi James

      Yes, you did well by using putty to login on your board and installing packages…
      Regarding NTP, to know whether your NTP client is sync’ed with peers, you can run (still from putty) :
      ntpq -p
      If you can see a list of peers (one of them with an asterix at the beginning of the line, then your time is properly sync’ed with NTP servers)

      Regarding temperature, My own wand quad temperature is between 35°C and 50°C
      If you speak about 90°F then it is all good (it should even get warmer as you use the GUI, mine goes up to 122°F…)

      Regards
      Stephan

      • When I enter ntpq -p I get a list of ntp servers, but there is never an asterix at the beginning of the line. So I don’t know if I’m synced or not. When I enter smart update it always no new channels available. I am doing something wrong or are there no new channels.

        Thanks

        • Hi james,

          Being able to see this list is already encouraging, how big are the values in the “offset” column ?
          (the asterix should appear after a while as a mention of the peer system)
          Your error regarding channel is strange : You may see “Channels have no new packages” if your cache is uptodate (this message is ok) but no new channels is strange …

          • My mistake it does say “Channels have no new packages”. All of peers? have an offset of 8447747, but still none of them have an asterisk. Will you post when you have any updates or do I just go in and check once in a while.

            Great work.
            Thanks

            • Regarding ntp, you seem to be in a state where you are not yet sync’ed : it may take a few minutes but it should happen ! After this sync, you will have small values in the offset column. It may seem slow but it is the way the NTP client behaves…

              I will announce major updates here for sure !

  10. I have runned xbmc on my GK802. WIFI isn’t working yet so I must use a usb-ethernet dongle.
    I have tried running it at default clocking (on my cpu rev 1.1 only runs at 800MHz with a 4.0.0 kernel) and one modified to run at 1GHz (default if using a cpu rev 1.2 or higher) and a third modified to run at 1.2GHz.
    The temp doesn’t differ between the 3 kernel speeds. It gets up to 76-79C when idling on the menues. When playing a video it goes down to below 60C.
    I’m using a heatsink like this https://docs.google.com/file/d/0B7RFDJW3q4H9YzFVaWtCMDlnYVk/edit?usp=sharing on top of the foam/tape.

    stephan: if you want the kernels and boot.scr to test and make an image for GK802 I could send it to you or if you want I can make an image and give a link to it.

    • Thanks a lot for sharing !

      In fact I am interested in your 2 options :
      I would like to properly generate a GK802 image in the future so link to 4.0.0 kernel and conf are very welcome so that I can add a machine GK802 in my yocto env build.
      But, for now I have so many dev & debug in progress that I would be very thankful if you could already your derivated work as it is and I will be glad to add a link (or to host) a ready to use image for GK802 image with my RFS…

      Best regards

    • Hi,

      I would be thankful if anyone who owns a HD capable receiver could give it a try (I don’t by myself).
      Please configure audio as HDMI passthrough and give a try at the mentioned sample…
      Many thanks by advance,

      • Unfortunately I have to report that it (HD audio formats) do not work (tested with the file mentioned above). The receiver shows all channels, then loses them and there is only a hiss sound every few seconds. I even saw the picture disappearing a few times.

        Hopefully this can be fixed.

          • Don’t be too disappointed : I will try to investigate (even without direct access to HD receiver. Well in fact it is a good reason to buy one isn’t it ? lol ) to find out if we can make it work…
            As I already said, at hw level, it should work according to the reference manual. So it is a software issue and software can always be fixed. Well, at least when it is open source and you can dig in the source 😉

    • Yes you are perfectly right and it definitively worth mentioning it…
      When I created this new image I had in mind compatibility with dual and the only remaining piece to change is the bootloader…

      • You must need to add the right firmware on the /lib/firmware/vpu folder for the dual too. And I even like that, I still have some issues. So I rebuilt it from scratch with Yocto, and if everything is fine, and some peoples want it, I will release the sd image.

        • I though I added the dual vpu firmware. But you are rigth, it is is not in the last quad RFS and has to be added…

          What are your issues ?
          RFS should be 100% compatible (as soon as you add the vpu firmware as mentioned) so if you have issues, they should be the same for quad…
          If you find specific building issues, please report them…

          Regards

          • The issue is a slow FPS with 1080p (with the 5.1 OK). I will try with my own build and if I do have issue, I will report it for sure and fix it hopefully.

          • @dragonik

            Sorry I am not in a hurry to publish images for other targets as I prefer to solve issues and improve the whole thing before. (And I already have a local build which solves a few errors reported in these comments)
            Yet, in the future I will publish several images for different targets (gk802 wandboard dual and quad, utilite…maybe others tbd)

    • No you cannot directly use images targeted at these other boards as they will not inclue iMX6 support.
      I don’t know whether you are aware of it but I already released an image for dual here (ok it is an older build but it already works) :
      http://stephan-rafin.net/blog/2013/07/28/xbmc-image-for-dual-part-2/
      Wandboard will not support CEC (it is mentioned in the comments by hste) because of a hardware issue : the required wire is not connected !
      Yet, I am currently trying to make it work (by porting libCEC) for other iMX6 devices (I develop on my utilite at the moment)

  11. @ Jean baptiste,

    Regarding your issue, I think you should have a look at xbmc.log and try other media and sources before rebuilding the whole thing (especially if you have no strong hints that there is a build issue)

    • Yes, but I prefer rebuild the all project, like that I can work on it 😉 Even if Yocto is not my favorite tool !

  12. Hi, i´ve teste the image and it work good. But the networkconfiguration is not there. ich want to use the wandboard quad with xbmc to play retro games an ive installed a blueray drive, but the drive will not be mounted because the libdvdread file ist not installed. can i install it with smart? i tryed to use smart but it don´t work. is it possible to make an image witch is based on debian? Sorry fot the broken english, but i´m from Germany. best regards Marcus

  13. Pingback: i.MX6 CEC | Stephan's blog

  14. Pingback: XBMC for utilite (CEC support included) | Stephan's blog

  15. Hi Stephan,

    I started to read your posts and your blog long time ago, following all your work and research about the xbmc on iMX6 and specially the wandboard. Now I ‘ve got mine and start to play with it.

    The smart command is very handy and simple to use but I m facing a little issue. I want to install libc6-dev and here is the result of the command /

    bash-4.2# smart install libc6-dev
    Loading cache…
    Updating cache… ######################################################### [100%]
    Computing transaction… error: Can’t install libc6-dev-2.18-r0@cortexa9hf_vfp_neon: no package provides libsegfault-dev

    It seems libsegfault-dev is a dependancy that smart can’t find on your server and I wonder if you could check this and make it available ?

    Thanks again for all your hard work.

    Geoffrey.

    • Hi Goffrey

      you are right
      There is a strange issue which comes from the yocto recipe with it.
      Do you really need this package right now ?
      I mean if you want to compile the cross compiler will be faster and easier to use, if you want to debug the libc6-dbg is enough…
      regarding the cross compiler : I will release it tomorrow , it is too late now ..

      Stephan

      • Hi Stephan,

        Thanks for your quick answer. In fact I was trying different stuff at the same time:

        1. I wanted to compile joe (text editor) and it didn’t compile. I thought it was because it needed some library/includes files. I m not a linux expert so maybe I was wrong to think I could find those files in libc6-dev.

        2. I bought a sata dom ssd (it s small and fast, I love it). I was struggling to boot on it with your image. I didn’t manage to make the uEnv.txt file working… If you have any clue let me know. In the mean time I found a way to make it work by following some tutorial from ArchLinux. (but the boot is much faster on your image)

        3. I did the update of xbmc through “smart upgrade” and I’ve tried the spdif output. Unfortunatly the sound is noisy/saturated.
        And I’ve got an other problem (I don’t know why) but sometimes I loose my display. It s like the hdmi is turned into sleep mode and I ‘m unable to wake it up except if I kill and restart xbmc.

        4. I wanted to use tzselect to be able to manage my locale but I ve got this error :
        root@wandboard-quad:~# tzselect
        /usr/bin/tzselect: line 120: /usr/share/zoneinfo/iso3166.tab: No such file or directory
        /usr/bin/tzselect: time zone files are not set up correctly

        I m not able to find in which package are those files so I wanted to compile them from here : http://www.iana.org/time-zones
        but unfortunatly I need some other include files that (I think) are in libc6-dev.

        I’ve tried the nfs “detect” in xbmc but it doesn’t seem to work.

        I don’t know if I can help you in any way but ‘m testing a lot of things so if you want me to do some other tests, just let me know.

        Thanks again,

        Geoffrey.

        • Hi geoffrey,

          – You can download the cross toolchain here : https://stephan-rafin.net/owncloud/public.php?service=files&t=6042685eca7c977370fda3a395e6654c, it will install on a x86_64 linux and allow to build binaries compatible with my image
          – For joe text editor, it is now available and ready to install with smart (I added it in my repo)
          – Regarding SSD, you still need a small sdcard for uboot of course then you should be able to load uEnv, kernel image and to use a rfs on the ssd. I don’t exactly understand what you issue is : Are you able to see the ssd from uboot (it is the key) ?
          – For SPDIF, please lower the sound as a workaround for now : refer to this http://stephan-rafin.net/trac/ticket/3
          – For black screen, be sure to have consoleblank=0 in your kernel parameters
          – For TZ, I will have a look, I don’t know for now…

          Kind regards
          Stephan

          • Hi Stephan,

            – Thank you for the cross toolchain but unfortunately I don’t have any x86_64 linux. Do you know if there is a way to compile some sources directly from your image ?
            – Thank you for Joe aswell. I take it like a personnal gift 🙂
            – For the SSD, I’m able to boot on it thanks to an archlinux image on my SDcard. This image is able to work with the uEnv.txt. I ‘ve replace the kernel from this image with yours. And I did a copy of your image on my ssd. At the moment it ‘s working like a charm but I will re-try to do the same setup with your image on the SDcard aswell. I ll let you know 🙂
            – For the SPDIF it’s working perfectly by lowering the volume.
            – I have added the consoleblank=0 to the uEnv.txt and I have no more problems.

            Thanks again for your help 🙂

            Geoffrey

            • Hi Geoffrey,

              – Native compilation should be doable yes of course, frankly I am so used to cross compiling that I even did not try…
              – you’re welcome, joe is your gift yes 😉
              – ok for uboot
              – Nice for spdif : I will solve this issue before next image (investigations in progress)

              Well, not that bad, at the end 😉
              Stephan

              • Hi Stephan,

                Sorry for the delay I was a bit busy 🙂 And it’s better that “not that bad” 😉

                It seems your image is not working with uEnv.txt. Maybe I’m wrong but I think we need to edit boot.src to be able to change the boot device with your image. To edit it I need to use mkimage to make it propertly. This tool doesn’t seems to be provided with your image so I’ve tried to compile it and I wasn’t able to do it. Like other tools I want to compil I still have the same error message :
                /usr/lib/gcc/arm-poky-linux-gnueabi/4.8.1/include/stdint.h:9:26: fatal error: stdint.h: No such file or directory

                (but the file exist)

                So, for me, the native compilation doesn’t seems to work and I really don’t understand why… Did you had the time to try it ? Is there any package I forgot to install ?

                As I want to compile some other tools , as soon as I will be able to compile, it would be a pleasure for me to share the packages with you and add them to your rpm repository. (if you can give me the right way to create the rpm files).

                I have an other question about the compilation… Are you using the neon instructions (-mfpu=neon) ? do you think it can provide best results ? http://www.arm.com/products/processors/technologies/neon.php

                And finally, I have some freeze issue. If I leave my wandboard without any activity during the night I have 50% chances that everything will be frozen in the morning. No way to interact with XBMC via my keyboard or to connect via SSH. The only solution is to reboot. I don’t know how to debug this problem. /var/log/message is overwritten after every reboot.

                It’s again a lot a questions. Thank you for your time.

                Geoffrey.

                • Hi Geoffrey

                  Sorry for my late answer,
                  You are right by default the installed uboot does not search for uEnv.txt. (I guess it is only a matter of environment but I have not tested)
                  For compilation : You are right : I have just checked and there is something wrong with the native toolchain. It is not your mistake. Yet, the cross-toolchain for linux x86_64 I posted works just fine…
                  About neon : Yes, of course I use these instructions (by using “-mfpu=neon -mcpu=cortex-a9” compilers options : they are in the environment-setup-cortexa9hf-vfp-neon-poky-linux-gnueabi file if you install my cross toolchain)
                  For the freeze : I don’t know what could happen, I will try to let xbmc running as you do and report if I can reproduce the issue…

                  Best regards
                  Stephan

                • Hi Geoffrey and Stephan,

                  I would like to confirm the exact same ‘freezing’ problem as Geoffrey. Every few hours or so, the board completely locks up without apparent reason. It’s very difficult to investigate the reasons due to the log files being overwritten after reboot. Is there anything we can do to prevent that so that we can see if there’s any useful logging occurring just before the freeze?
                  Also, I still have to confirm this, but I have the feeling it also happens when xbmc is not even running….

                • Hi Toverkwark,

                  Thanks for this additional report.
                  I cannot be 100% affirmative regarding wandboard because my current favorite and test platform is utilite. On this platform with my current software (new image + new xbmc), I can run hours and hours without any freeze or crash : I played more than 12hours or video this weekend and the device was always up and running in xbmc the rest of the time for instance
                  I am currently working to provide support for wandboard and will release the whole thing by the end of the week I guess…

                  Best regards
                  Stephan

                • Ok, I’ll try to see if at some point a new kernel will help. I can confirm now that it’s not xbmc that is the problem, it also crashes with xbmc not running. Temperatures seem fine.

  16. Hi all,
    I want to use my own wlan adapter for wireless upnp streaming. I got the driver source code but i need the build tools/kernel sources/kernel headers to compile the module.
    is there a way to compile drivers on this release for wandboard quad?
    Regards,
    Felix

      • Hi Stephan,
        i compiled a new Kernel with your config and it worked, but there is something missing; the wlan module loads fine but the adapter does not work.
        If i use the default config (wandboard_defconfig) kernel and wlan adapter works fine but i get a black screen after yocto boot screen.
        Which config setting do i have to set to get xbmc load up correct?

        Regards,
        Felix

        • When you say the adapter does not work, what do you mean ? What are the symptoms ?
          I just diff’ed the 2 configs, maybe you try to use your device as access point ? If so you have to add HOSTAP configuration option
          Otherwise I can’t see obvious difference that would explain a difference…

          I don’t remember why the default wandboard config does not work, sorry…

          • Hi,
            After modifying your kernel config it works now.
            What i need to know now; does ac3/DTS spdif passthrough work or is there something wrong with my modified kernel? Analog through spdif works fine but digital audio creates only noise (…at every Volume level)
            Thanks for your help.
            Regards
            Felix

            • Hi Felix,
              Nice to read that it works now (Out of curiosity can you tell me which options were missing in my configuration ?)
              Regarding SPDIF, I have not tested by myself but it has been reported to work I think…
              Before changing your kernel, perform a simple test with aplay utility…
              (We have a wandboard quad with proper TOSLINK wiring, right ?)

              • Hi Stephan,

                cabeling and settings are correct. MP3 over SPDIF passthrough works, analog audio over SPDIF (no passthrough) works too but SPDIF passthrough of AC3/DTS creates noise. I testet this with your original unmodified Image.
                I checked the log:

                Unable to open device “sysdefault:CARD=imxspdif,AES0=0x06,AES1=0x82,AES2=0x00,AES3=0x02” for playback

                Do you want to see the full log?

                • OK, many thanks for the report …

                  I am overwhelmed with 2 other issues at the moment but as soon as I have solved them, I will test this and hopefully solve the issue you describe …

                  I keep you informed…

  17. Hi Stephan,

    XBMC (actual version, ugraded yesterday) crashes regularly when listening radio for a few minutes (via the ListenLiveEU add-on). xbmc.log and messages are available.

    Best regards

    Peter

  18. I am having troubles getting this image to load, i get as far as the wandboard splash screen and it just sits there. i have a hi802 (gk802)

    any help would be appreciated

    • Hi,
      Why do you have wandboard logo ? Are you aware that you have to build your own image with a specific script provided by hste user ?
      Regards

      • I tried hste’s script and it displayed a blank screen, I am awaiting a confirmation email for the xbmc forum to request his help.

        • I also have same problem. It freezes at splash (wandboard.org logo) screen.

          I’m trying for one day and still can’t get linux to work on my imx6 quad GK802 tv stick.

          Android 4.0.4 works fine so device is operating okay.

          • Yes you have the same problem : you don’t understand you have to build the image for GK802 using hste script because I do not provide ready to use image for this device.

  19. Thank you Stephan for this valuable effort.
    I have edited the /etc/network/interfaces file and wpa_supplicant.conf with my SSID and wpa key.when I try:
    ‘iwlist scan’ it says that wlan0 cannot do the scan.
    So I guess the wifi might be disabled in the kernel. Any idea how to make the wifi work?

  20. Hey there Stephan,

    I just got my wandboard and am now trying to get your xbmc version running on archlinux arm.
    It took me quite some time but I think I got most of the buildings blocks right, but xbmc does not work atm.

    Im using your 3.0.35_4.0.0 kernel, gpu-viv-bin-mx6q-3.0.35-4.0.0, imx-lib-3.0.35-4.0.0, libfslvpuwrap-1.0.35 and finally your imx-next xbmc.
    It compiles fine (after a few hours of fooling around…), but it just doesnt start.

    [xbmc@wbq bin]$ ./xbmc-standalone
    Error: unable to open display
    XBMC needs hardware accelerated OpenGL rendering.
    Install an appropriate graphics driver.

    Can you give me a hint about this? I’ll keep reading the comments here but you can also reach me via mail or via #wandboard on freenode (you’d fit in great there :))

    Cheers and thanks again for your work!

    • Hey again,

      I kinda got it to start now (there seem to be some unnecessary checks in FEH.py :/), but it segfaults more or less instantly, the last entry in the crashlog I get is
      19:12:56 T:1109966848 NOTICE: InitWindowSystem: Using EGL Implementation: iMX

      Ive done a strace directly on the xbmc.bin, you can see the last few lines here:
      http://pastebin.com/vS4XYkD1

      Any pointer would be greatly appreciated!

      Cheers

      • Its me, again :/

        The above error was related to some permission problem. Running xbmc as root works!

        Video playback and general browsing around works, altough the playback stutters and is very dark and the ui seems to be slow on transitions (like fadein of settings for example). There also seems to be some kind of black space where one would expect the transition to happen.

        Im done for now, maybe I’ll try the 4.1.0 BSP tomorrow.

        If you know anything about my mentioned errors, I’d be happy to know about

        Thanks again Stephan!

        • Hi cruX

          Sorry for my late answer : I was very busy these last days and have not polled my blog and forums. (But I was committed to XBMC dev and have improved a lot of things !)
          First try to build my latest changes on imx-wip branch
          Then please configure the frame buffer @ 16bpp (pass video=mxcfb0:dev=hdmi,1920×1080@60,if=RGB24,bpp=16 as kernel parameters) it should solve the “dark” issue
          At last configure with “–disable-debug” and/or redirect .xbmc/tmp on a tmpfs instead of sdcard (because writing debug logs creates the latencies you have noticed !)

          Best regards
          Stephan

          • Hey,

            thanks for your response!

            I tried setting the bpp value and it seems that the syntax you’ve posted above is not correct as it does not change the bpp value for me… I tried multiple different notations but im still stuck at 24bpp :/

          • Hey again,

            my earlier comment has been wrong. I checked via /sys/class/graphics/fbX/bits_per_pixel and they seem to be set ti 16 correctly. Weirdly though my tv still displays a “Bit Depth” of 24 and the rendered picture is still very, very dark.

            I don’t think I can figure this out on my own…

            Greets

            • Hi cruX

              Can you tell me which exact version (commit) from my github you compile ?
              The dark issue is not a big deal : It is only a mismatch of keycolor (which should be transparent).
              In fact I changed recently this key color to deal with 16bpp framebuffer.
              I will have a look anyway I should be able to force the correct mode to avoid to rely upon the right kernel parameters

              Please note that at the end it is normal that you tv still displays bit depth of 24 : It does not mean that the option is not correctly set for the frame buffer..
              Is everything else fine ? apart from the dark issue ?

              Stephan

              • Hey again,

                I’ve compiled 655cbead420b3e8baa01962301233d22646ed04f from imx-next.
                The overall performance in xbmc is slower than expected and as I said the transitions are not fluent (there seems to be some kind of black area where the actual transition should be, maybe its related to xbmc being slow overall…).

                Im compiling xbmc with this options: http://pastebin.com/cwnM3v1N
                Is it a good idea to switch to the 4.1.0 bsp (john webers kernel)?

                Greets

                • Hi,

                  No it is not normal to have these slow transitions : Unfortunately I cannot tell for your build but I will release very soon another image that will demonstrate how it should behave. That way you will have a reference to compare with your build.
                  Have you rebuild with the “disable-debug option ? have you moved the logs to tmpfs ?
                  Stephan
                  PS : You can update to kernel 4.1.0 but you will have to update graphics libraries too (do not expect big improvement. Yet my next image is based on this new kernel)

                • Uhm, I cannot reply to your post (I think its nested too deeply :D).

                  Tomorrow I’ll try it again using kernel 4.1.0 (plus libraries of course) and your xbmc-wip branch (with –disable-debug, although I’ve already set that flag…).

                  I’ll report how it works, I hopy there is some way to sort out the bpp issue….

                  Thanks and cheers!

                  PS: I’d be nice to have some other means of communication, maybe irc, a forum or a mailinglist. I don’t want to clutter up the thread in the xbmc forum but we could use the wandboard forums if you have an account there…

                • You are right : let’s continue this exchange in wandboard forums : I have an account, no pb..

  21. Hello,
    could someone tell me how to compile the kernel for the xbmc image with ipv6 support?

    I need ipv6 but this kernel doesnt support it and I dont know how to compile the kernel only on my wandboard without cross compiling.

Leave a Reply

Your email address will not be published. Required fields are marked *