Bennett Hollstein

Web developer

[How to] Get Pi MusicBox running on Raspberry Pi 3

The current PiMusicBox Release (0.6) doesn’t support the new Raspberry Pi 3… by default. But with a little bit of work you can get it to also run on the RPi 3.

Please notice that the latest Beta release of PiMusicBox (Show on GitHub) should support the RPi 3, but you can use this method to get the latest stable release running.

How to

  1. Download PiMusicBox from the PiMusicBox website and flash it to the SD Card using Win32DiskImager (PC) or Apple Pi Baker (Mac/very good!)
  2. Download and older version of Raspbian Jesse Lite from the here (the download is from the official Raspberry Pi website, don’t download the newest image as it isn’t compatible anymore)
  3. Open the Raspbian Image. On Mac, rightclick the Image > Open with > DiskImageMounter. On a PC you might have to download an application like PowerISO to open the ISO (without flashing it to any device)
  4. Copy the files that are highlighted in the picture below (all .dtb, dat and elf files) from the Raspbian Image to the MusicBox SD Card (you have to override the files)
  5. Do the same thing with the ‚bootcode.bin‘ file (look at the image below to see all the files you have to copy)
    Bildschirmfoto+2016-04-21+um+15.40.36
  6. Eject the SD Card and the opened ISO file, stick the SD Card into the Pi and you are ready!

It took some time, when I first booted up the modified MusicBox, but now it boots up as normal.

Please notice that the integrated Wifi- and Bluetooth-Modules of the Raspberry Pi 3 won’t work when using this method.

I hope this tutorial helped you getting PiMusicBox on your Raspberry Pi 3

Bennett

43 thoughts

  1. Hi – I was very stuck with with Raspberry Pi 3 MusicBox build until I found your guide. Now, it will boot but i get errors that the files are not mounting into read only, and once it boots, it is CLI, not a GUI. Can you please advise? Followed your steps in order, on Mac Os x 10.10.5, using sdformatter and applepi-baker in addition to existing system tools to mount/unmount. Very new to RPi community, I keep getting stuck on this one thing, which is the reason I bought a Pi.

    Any tips helpful, this guide is amazing so far.

    Thank you!

    McLean

    1. Hello,
      thank you for you reply. There will be some errors on bootup but in my tests they didn’t affect anything.
      It is normal that you boot into the CLI, its because musicbox is made to view from another computer. You can just go to the website „musicbox.local“ on any computer in the network (if your raspi is connected to the internet) to control it.
      If you still want the GUI you can log in to the pi with user „root“ and pass „musicbox“ and run „startx“, but it can be that the GUI isn’t installed yet.
      Greetings
      Bennett

  2. Bennett!

    I went back and repeated the boot, for whatever reason it went right to the ASCII PiMusicBox CLI. I went to the renamed server in the browser window of my MacBook Pro – there was the interface! Thank you so much for making this port over / conversion work for the Pi3 – it runs so well with the extra bandwidth & Speed of the Pi 3 B+. Please keep up the excellent work!

    Any other notes on getting Youtube audio to work? All other streams & Spotify sounds great, but I can’t seem to get Youtube to play even with long waits for it to buffer.

    Best to you from Colorado!

    M

    1. the youtube issue is more to do with the mopidy-youtube using pafy, which doesnt seem to work very well. The best options I have see is using youtube-dl.

      Sudo apt-get install youtube-dl (or pip install youtube-dl)
      Then overwrite the python/dist-packages/mopidy-youtube/backend.py with this one https://github.com/mopidy/mopidy-youtube/pull/64/files

      or uninstall mopidy-youtube after installing youtube-dl and install from that github commit

      It will work much better, or you can update pafy and it might work better but from what I have see the search with Pafy is not as good, and there are much more errors due to the gstreamer dependency and trying to direct play

  3. This worked great for me……although it didn’t seem to pick up the internal wifi card of the Pi3. I plugged in a USB wifi and it works okay…but as soon as I plug in a usb cd-rom, it freaks out and crashes. I did find however that plugging in an ethernet cable works fine. Is there a known way to get PiMusicBox to work with the Pi3 internal wifi card?

  4. I have the same FATAL error with internal WiFi card of Pi3 not being detected. Is there any way to troubleshoot this? I don’t have a USB WiFi dongle lying around…

  5. Thanks Bennett! Your instructions to get piMusicBox working on a Pi3 worked a treat! Only problem I still have is getting inbuilt WiFi working, but Ethernet is cool for now. Next thing to test is connecting BOSE Companion 5 USB speakers to Pi3…..

  6. Hi, Thanks For putting this together!
    I’m running into a problem trying this method.
    I’ve written musicbox0.6.img to my 16 gig SD, and copied the described files from Raspbian Jessie Lite (the most recent release) and replaced any files that had the same file names. When I plug this in (with HDMI), my RPi3 is stuck on the initial rainbow screen. On the board, the red light is on, so it is getting power, and the green light flashes initially, but then remains off.
    Any ideas on what could be causing this?
    Thanks!

    1. and replaced any files that had the same file names

      You really only need to copy the files that are shown and marked in the picture above, not all files that have the same name 🙂

      1. I meant than I chose the Replace/override option when I copied the files that you listed. Is it possible that I should be looking for an older release of Jessie light? (I’m not sure if this would help.. Just an idea)
        Thanks for helping me with this! 🙂

          1. I found a fix to this problem! For some reason kernel 4.4 of Jessie lite is not compatible with this method.
            So instead of downloading Jessie Lite, DO THIS:

            1.) Download PiMusicBox from the PiMusicBox website and flash it to the SD Card using Win32DiskImager (PC) or Apple Pi Baker (Mac/very good!)

            2.) download the source code zip file of the older Jessie Kernel from here: https://github.com/raspberrypi/firmware/releases/tag/1.20160315

            3.) open the zip folder and then the boot/ directory

            Then follow from step 4 of what Bennett wrote (above)

            BOOM! It should work.
            I haven’t gotten the wifi to work yet, but you can access the interface as long as the pi is connected to Ethernet.

            Hope this works for you as well!

      2. It looks like Jessie Lite was updated in May to kernel 4.4
        I’m unable to find the older version. Could anyone check on the differences between these two, or if music box is working with Bennett’s instructions and Kernel 4.4?

  7. Doesn’t work for me. I tried with Apple PI-Baker 2016-05-10 Jessie Lite and pimusicbox 0.6. But unfortunately nothing will boot. Can you suggest something? Regards. Hannes.

  8. I found a fix to this problem! For some reason kernel 4.4 of Jessie lite is not compatible with this method.
    So instead of downloading Jessie Lite, DO THIS:

    1.) Download PiMusicBox from the PiMusicBox website and flash it to the SD Card using Win32DiskImager (PC) or Apple Pi Baker (Mac/very good!)

    2.) download the source code zip file of the older Jessie Kernel from here: https://github.com/raspberrypi/firmware/releases/tag/1.20160315

    3.) open the zip folder and then the boot/ directory

    Then follow from step 4 of what Bennett wrote (above)

    BOOM! It should work.
    I haven’t gotten the wifi to work yet, but you can access the interface as long as the pi is connected to Ethernet.

    Hope this works for you as well!

    1. Hi

      I’m new to RPi3 so please be patient! I’ve tried to get mine working with MusicBox and failed. Is anyone able to upload a card image, with default settings.ini of course, from a Pi3 running MusicBox?

      Thanks in advance

      Peter

      1. Working! Weird but here’s what I did

        Wrote musicbox to SD card
        Deleted .elf, .dat etc (all the files mentioned above) from card
        Wrote the 3/15 versions to the SD card
        Worked!

        Using ‚replace‘ to move the files didn’t work (i use Linux 17.2)

  9. dont fill in settings for IP adres or wireless than is not accessible here.
    For now i check the software.
    Works fine now by using github 1.2016315
    thank you

  10. Pingback: Download free Turn your Raspberry Pi into the ultimate music streamer - CNET - IT-Tub
  11. Pingback: Dilated Peoples, Jazz Cafe, gig review: 'An underground hip-hop group that will always stand the … – Music Reviews 1
  12. Pingback: I left after during the hip hop show next door. – Music Reviews 1
  13. Pingback: Last Week's Reviews: Young Buck, Lil Debbie, 21 Savage & Metro Boomin & REBELL YELL – Music Reviews 1
  14. Pingback: Five star reviews for sell-out Festival shows – Music Reviews 1
  15. Thanks so much Bennett, with your post and Brian’s trick from the comments, I was able to boot my RPi3 ! Goodbye (at least for now!) rainbow screen 🙂

  16. Guten Tag Bennett,
    I have done all the moves several times — e.g. formatting the card with sdformat, format size adjustment on, flashing Pimusicbox, moving the relevant boot files over from the firmware-1.20160315 from Github (using both overwrite/replace, and also deleting first then writing as in one earlier post), but just a single initial green flash at power on then nichts!
    When I flash NOOBS the PI works OK, so I guess there are no power or hardware problems.
    Any other tips?
    Vielen Dank

    1. It seemslike some people have this problem. Please take a quick look through the comments. Someone recently found a solution to this. I will update the article soon.

  17. I can confirm the fix as suggested by Ryan worked for me too. The green led only blinks once during boot, don’t think it doesn’t work when you start it up without a display.
    Spotify plays, you can control it to a certain extent using the web interface of the pi musicbox. Be aware of numerous limitations however:
    – you cannot use the Spotify interface on another device to control the music on the pi, which is a big drawback.
    – you don’t have access to your playlists
    – no bluetooth
    – no wifi
    – no airplay.
    Some of these issues might be fixable, at the moment I feel I am quite a distance away from a pleasantly working network player.
    Nevertheless, an interesting project.

  18. I have done what you said. But my Pi stays in the startup with the next error:
    Failed to load p80211.ko. And there is a lot of more text with errors about wifi.
    The pi gives those text continue. The pi don’t stop with replaying this error.
    What to do?

    1. Hi. Im noob in pi. Expert in arduino lol. I got it working on a pi3. Without wifi or Bluetooth.

      I think o did this step by step.
      Install image of an other pi player that does run on pi 3. Google it. Copy root files to Some place.
      Install this pimusicbox image on sd card
      Then i backuped all root files Like in This article. began replacing THE root files with those of the other player. And it worked. (Still errors but due to other other hardware adresses )
      Try it, play with it.
      Success

  19. +1 for WiFi. I’d much prefer MusicBox over the others available, but I can’t work out why it won’t detect the inbuilt WiFi module.

Kommentar verfassen