Jump to content
  • The Computer Audiophile
    The Computer Audiophile

    Geek Speak: How To Build A BeagleBone Black MPD Music Server

    thumb.jpgWarning the following article contains some geeky stuff. What follows is a step by step guide to building a tiny 2.4" x 0.82" x 3.54" Linux music server. It's not rocket science and the instructions make the process fairly easy, but the article isn't for everybody. Thanks to CA readers K-man and Richard Dale for additional information and tweaks for setting up the BeagleBone Black so it runs great. Please note there are many ways to setup and configure the BBB. This is just one way using either Mac OS X or Windows. Readers are encouraged to leave comments with additional tips, tricks, and tweaks. I will update this article accordingly.[PRBREAK][/PRBREAK]

     

    1-Pixel.png

     

     

     

    1-Pixel.png

     

     

    opening.jpg

     

     

     

    1-Pixel.png

     

     

     

     

    Introduction

    The new $45 BeagleBone Black motherboard has excited many computer audio entusiasts. This tiny board has enough power and ports to run a Linux based MPD music server. In addition, Logic Supply has released a new BeagleBone Black case in a very cool orange color as well as a more traditional black. The case is made specifically for the BBB. All the ports line up perfectly and the finished product with BBB inside looks really neat. I attached the four rubber feet to the bottom of my Logic Supply case and the BBB sits nicely on any of my audio components without scratching itself or the other device. The case is made of sturdy metal, unlike the plastic options available heretofore. If you have a BBB or are going to pick one up I'd pick up the Logic Supply case as well.

     

    bbb-board.jpg

     

     

    1-Pixel.png

     

     

    Here is a list of requirements and step by step instructions for the BBB-MPD server running Linux from the built-in eMMC flash drive.

     

     

     

    Requirements:

     

     

     

    1-Pixel.png

     

     

    Step By Step Mac

     

    - Connect the MicroSD card using an adapter to a Mac or PC.

    - Open Disk Utility (Applications > Utilities > Disk Utility), select select all volumes under the MicroSD card, then select Unmount. In my example the volume is named 8GB. (Image Link ex.png)

    - Install The Unarchiver (App Link ex.png)

    - Download the Debian Wheezy image (Direct Link ex.png). During the download if asked a question about the file extension .img or .xz, click "Use .xz" (Image Link ex.png)

    - Double-click the downloaded Debian Wheezy image. This will open The Unarchiver and automatically extract the needed image file (BBB-eMMC-flasher-debian-7.4-2014-03-27.img)

    - Open the Terminal app (Applications > Utilities > Terminal)

    - Type -> sudo su (without the arrow ->)

    - Enter your password if asked.

    - Type -> diskutil list

    - Take note of the disk number of the MicroSD card connected to your computer. My MicroSD card is listed as /dev/disk1. The MicroSD card should be easily identifiable by its small size. My MicroSD card is listed as 7.9 GB (Image Link ex.png)

    - Type -> sudo dd if=

    - Drag the Debian Wheezy image file on to the Terminal window to automatically fill in the path to the file (Image Link ex.png) You can also type this in manually if desired.

    - After dropping the image file on to the Terminal window the command line should read something like this >> dd if=/Users/chris/Desktop/BBB-eMMC-flasher-debian-7.4-2014-03-27.img (Image Link ex.png).

    - Make sure there is a single space after the path to the Debian Wheezy image file entered in the previous steps.

    - Type -> of=

    - Then enter the disk number of your MicroSD card. In my case this is /dev/disk1

    - The text should look something like this of=/dev/disk1 (Image Link ex.png).

    - Make sure there is a single space after the path to your MicroSD card entered in the previous steps.

    - Type -> bs=1m

    - The entire line should now look something like this >> dd if=/Users/chris/Desktop/BBB-eMMC-flasher-debian-7.4-2014-03-27.img of=/dev/disk1 bs=1m

    - Here is an image of my Terminal (Image Link ex.png)

    - Hit Enter on your keyboard and wait for the image to be written to the MicroSD card. This will take several minutes and appear like your computer is stuck. Please wait for the command to finish.

    - Once the image has been written to the MicroSD card the Terminal window will list something like this

    700+0 records in

    700+0 records out

    734003200 bytes transferred in 393.606273 secs (1864816 bytes/sec) (Image Link ex.png)

    - If you receive an error message stating "Resource busy" (Image Link ex.png) you likely skipped step 2. Please unmount the volume and try again.

    - Open Disk Utility (Applications > Utilities > Disk Utility), select the MicroSd card, click Eject or Eject Disk via the right-click menu.

    - Place the MicroSD card into the BeagleBone Black's MicroSD card slot.

    - Hold down the small Boot Switch / Button ex.png while connecting the power supply to the board.

    - As soon as one of the User LEDs illuminates, release the Boot Switch / Button.

    - The User LEDs should continue flashing while the MicroSD card image is copied to the on-board eMMC flash memory. The process should take about five minutes.

    - When all four User LEDs are illuminated steady, pull the power supply from the board and remove the MicroSD card.

    - Connect an Ethernet cable to the board and re-connect the power supply.

    - The BeagleBone Black will boot into Debian Linux.

    - Install the LanScan application from the App Store Link ex.png

    - Open LanScan and click Lan your Scan.

    - Once the network scan has completed locate the BeagleBone Black's IP address. The vendor will be listed as Texas Instruments. My BeagleBone Black's IP address is 10.0.1.179 (Image Link ex.png)

    - Open the Terminal app (Applications > Utilities > Terminal)

    - Type -> sudo su

    - Enter your password if asked.

    - Type -> ssh root@

    - After the @ symbol type the IP address of your BeagleBone Black and hit enter. Mine looks like this ssh [email protected] (Image Link ex.png)

    - You should receive a message about the authenticity of the of and the RSA key fingerprint. Type the entire word YES and hit enter.

    - You'll then be asked for the root password to login to the BeagleBone Black. Enter root as the password.

    - Here is an image of the entire login sequence (Image Link ex.png)

    - From here the Mac OS X and Windows configuration is the same because the work is done on the BeagleBone Black. Skip to the BeagleBone Black OS configuration.

     

     

     

     

     

     

     

    Step By Step Windows

     

    - Connect the MicroSD card using an adapter to a Mac or PC.

    - Install 7-Zip Link ex.png

    - Install Win32 Disk Image Link ex.png

    - Download the Debian Wheezy image (Direct Link ex.png).

    - Right-click the downloaded Debian Wheezy image. Select 7-Zip in the right-click menu, then select Extract Here. The file BBB-eMMC-flasher-debian-7.4-2014-03-27 will appear next to the downloaded image when the extraction is complete. (Image Link ex.png)

    - Open Win32 Disk Imager

    - Make sure the MicroSD card drive letter is selected under Device (Image Link ex.png)

    - Select the small folder to the left of the Device drive letter and browse to the file extracted using the 7-Zip program. You will need to click the drop-down arrow above the Cancel button (lower right) and select *.* to show all files (Image Link ex.png). (The Debian Wheezy image is extract without the .img file extension). Once *.* is selected you can select the file BBB-eMMC-flasher-debian-7.4-2014-03-27 that was extracted using the 7-Zip program. Don't select the .xz compressed file. (Image Link ex.png)

    - Click the Write button and Yes to any popup questions.

    - Eject the MicroSd card when Win32 Disk Imager finishes writing the image.

    - Place the MicroSD card into the BeagleBone Black's MicroSD card slot.

    - Hold down the small Boot Switch / Button ex.png while connecting the power supply to the board.

    - As soon as one of the User LEDs illuminates, release the Boot Switch / Button.

    - The User LEDs should continue flashing while the MicroSD card image is copied to the on-board eMMC flash memory. The process should take about five minutes.

    - When all four User LEDs are illuminated steady, pull the power supply from the board and remove the MicroSD card.

    - Connect an Ethernet cable to the board and re-connect the power supply.

    - The BeagleBone Black will boot into Debian Linux.

    - Download the PuTTY application Link ex.png

    - Download the Advanced IP Scanner application Link ex.png

    - Open Advanced IP Scanner and click the Scan button.

    - Once the network scan has completed locate the BeagleBone Black's IP address. The manufacturer will be listed as Texas Instruments. My BeagleBone Black's IP address is 10.0.1.179 (Image Link ex.png)

    - Open the PuTTY application and enter the IP address of your BeagleBone Black. I've entered 10.0.1.179 (Image Link ex.png)

    - Click Open, then click Yes to the PuTTY Security Alert (Image Link ex.png)

    - Enter root at the login prompt (Image Link ex.png)

    - Enter root as the password.

    - The screen should look like this (Image Link ex.png)

    - From here the Mac OS X and Windows configuration is the same because the work is done on the BeagleBone Black. Skip to the BeagleBone Black OS configuration.

     

     

     

     

     

     

    BeagleBone Black OS configuration.

     

    After using PuTTY or the OS X Terminal app to connect via SSH to the BeagleBone Black you'll need to run several commands to update and configure the BBB as an MPD server.

     

    - Type -> apt-get update

    - Hit Enter and wait for the update to complete.

    - Type -> apt-get upgrade -y

    - Hit Enter and wait for the upgrade to complete.

    - Type -> reboot

    - Hit Enter and wait for the BBB to restart

    - Reconnect to the BBB via SSH using PuTTY or OS X Terminal app as described above.

    - Type -> apt-get install mpd ncmpc alsa-base cifs-utils -y

    - Wait for the installation to complete.

    - Type -> apt-get remove apache2 -y

    - Wait for the removal to complete.

    - Type -> apt-get autoremove -y

    - Wait for the removal to complete.

    - Type -> mkdir /mnt/music

    - Type -> nano /etc/fstab

    - Hit the down arrow to the botom of the file that was opened with the previous command.

    - You will need the IP address of your NAS drive on which your music collection is stored. Use the aforementioned IP scanning tools if necessary. You will also need the Share name of the folder on your NAS. For example when I connect to my NAS I use the IP address 10.0.1.18 and the Share name is Audio. Audio is just a folder on the NAS.

    - Add the following line to the bottom of this opened file (nano /etc/fstab), substituting your NAS IP and Share name rather than using my information. Replace the ********* with the actual password to your NAS Share. Here is an image of my file (Image Link ex.png)

    //10.0.1.18/Audio/Music /mnt/music cifs defaults,username=admin,password=********** 0 0

    - After entering this information press Control O (Control key plus the letter O) then his enter to save the file.

    - Hit Control X (Control key plus the letter X) to close the file.

    - Type -> mount -a

    - Type -> nano /etc/mpd.conf

    - Make the following changes to the mpd.conf file that was opened with the previous command.

    Remove the # symbol in front of the following lines

    zeroconf_enabled "yes"

    zeroconf_name "BBB Music Player"

    mixer_type "hardware"

    bind_to_address

     

    Change the line -> bind_to_address "localhost"

    to -> bind_to_address "0.0.0.0"

     

    Change the line -> music_directory "/var/lib/mpd/music"

    to -> music_directory "/mnt/music"

     

    Find the Alsa Audio Output section and make it look like this, placing # symbols in front of the bottom four options and changing the device to hw:1,0. The name can be changed to USB DAC or anything else if you'd like.

     

    audio_output {

    type "alsa"

    name "USB DAC"

    device "hw:1,0" # optional

    # format "44100:16:2" # optional

    # mixer_device "default" # optional

    # mixer_control "PCM" # optional

    # mixer_index "0" # optional

    }

    - After entering this information press Control O (Control key plus the letter O) then his enter to save the file.

    - Hit Control X (Control key plus the letter X) to close the file.

    - Type -> nano /etc/modprobe.d/alsa-base.conf

    - Arrow to the bottom of the file and add the following text -> options snd-usb-audio nrpacks=1

    - After entering this information press Control O (Control key plus the letter O) then his enter to save the file.

    - Hit Control X (Control key plus the letter X) to close the file.

    - Type -> nano /etc/inittab

    - Place the # symbol in fron of the following lines

     

    1:2345:respawn:/sbin/getty 38400 tty1

    2:23:respawn:/sbin/getty 38400 tty2

    3:23:respawn:/sbin/getty 38400 tty3

    4:23:respawn:/sbin/getty 38400 tty4

    5:23:respawn:/sbin/getty 38400 tty5

    6:23:respawn:/sbin/getty 38400 tty6

     

    - After entering this information press Control O (Control key plus the letter O) then his enter to save the file.

    - Hit Control X (Control key plus the letter X) to close the file.

    - Type -> nano /etc/default/cpufrequtils

    - Add the following text -> GOVERNOR="performance"

    - After entering this information press Control O (Control key plus the letter O) then his enter to save the file.

    - Hit Control X (Control key plus the letter X) to close the file.

    - Type ncmpc

    - Once the app opens hit Control U (Control key plus the letter U) to update the MPD database with all the music stored on your NAS. This may take awhile depending on how much music you have and how fast your network and NAS are.

    - Hit the letter Q to exit the ncmpc window. The Database update will continue.

    - NCMPC can be used to play music, but the interface is pretty crude compared to MPoD on the iPhone or MPaD on the iPad.

     

    Remote Control

    - Install MPoD or MPaD from the app store

    MPoD Link ex.png

    MPaD Link ex.png

     

    If using MPoD, open the app and select the target looking icon in the upper left corner of the Now Playing window. You should see the your server listed. Select the server and tap the Done button. Second, select the gear icon next to the target icon on the Now Playing Screen. Then select Refresh Local Cache to populate the app with the database of music stored on your NAS and available to the server. Now you'll be able to browse through the bottom of the app selecting Artist, Album, Song, and more.

     

    [ATTACH=CONFIG]6521[/ATTACH] [ATTACH=CONFIG]6519[/ATTACH] [ATTACH=CONFIG]6520[/ATTACH]

     

     

     

     

     

     

     

    Please let me know if you find errors in this guide. I will keep it updated as appropriate. Tips, tricks, and tweaks are also encouraged!

     

     

     

     

    1-Pixel.png

     

     

     

     

    Image Gallery

     

    [ATTACH=CONFIG]6515[/ATTACH][ATTACH=CONFIG]6512[/ATTACH][ATTACH=CONFIG]6509[/ATTACH][ATTACH=CONFIG]6516[/ATTACH][ATTACH=CONFIG]6513[/ATTACH][ATTACH=CONFIG]6510[/ATTACH][ATTACH=CONFIG]6507[/ATTACH][ATTACH=CONFIG]6514[/ATTACH][ATTACH=CONFIG]6511[/ATTACH][ATTACH=CONFIG]6508[/ATTACH][ATTACH=CONFIG]6517[/ATTACH][ATTACH=CONFIG]6518[/ATTACH]

     

     

    1-Pixel.png




    User Feedback

    Recommended Comments



    Great Tutorial.

     

    I would love to see the same done with Udoo pairing it with some of the best free Audiophile player software like XMBC, Mediaportal, Volumio or RuneAudio.

    (Also an article comparing free audiophile player software would be much appreciated)

    Share this comment


    Link to comment
    Share on other sites

    For an easy way to get your BBB up and running.

     

    Download:

    https://rcn-ee.net/deb/flasher/raring/BBB-eMMC-flasher-ubuntu-13.04-2013-10-08.img.xz

     

    Unzip with 7-zip and burn the image to a flash card with Win32DiskImager. For Mac follow the directions in the article.

     

    Put the card in the BBB hold down the boot button and apply power. When the lights start flashing you can release the button. When the lights are solid you are done flashing the image. Unplug the power and remove the card.

     

    This Ubuntu version will allow the BBB to boot from a flash card first.

     

    All you have to do now is download Rune Audio or Volumio for your BBB. Burn the image to a flash card.

     

    Plug in the card and apply power and your BBB will boot from the card.

     

    Follow the Rune Audio or Volumio directions for set up.

     

    You can also easily try different software by just swapping cards.

     

    Have Fun :)

    Bob

    Share this comment


    Link to comment
    Share on other sites

    Do you recommend against using volumio or rune? Is there any known sound quality penalty for the convenience and easier setup?

    Share this comment


    Link to comment
    Share on other sites

    Do you recommend against using volumio or rune? Is there any known sound quality penalty for the convenience and easier setup?

     

    I tried Volumio on one of my BeagleBones and it had trouble reading the metadata from my Apple Lossless files, and was taking forever to build a database for my 2000 CDs or so of tracks. I have the same problem with the default build of MPD on Debian too.

     

    I'm using Voyage MuBox instead and that reads the tracks in my library just fine. It seems to use a lot more CPU than the version of Debian that I tuned myself and use in my main system (about 30% with Apple Lossless vs 7-8%). But it is certainly sounding very good and using a higher percentage isn't necessarily a problem, although I wonder why it is occuring. I changed the default frequency scaling from 'ondemand' to 'performance'. The only problem I have it that it seems to lose the device I'm using overnight (HRT Music Streamer II+) and I have to reboot before I can start listening.

     

    Voyage MuBox was very easy to install and get running. You can download it from here:

     

    Supported Boards | Voyage MuBox

    Share this comment


    Link to comment
    Share on other sites

    I am running into a bit of an issue when I get to the step where etc/fstab file is edited.

     

    Here is my setup:

    - My music is on a PC in my itunes folder

    - I have shared the itunes folder as a shared folder over the network (and I can see the shared folder when running Advanced IP Scanner

    - I DO NOT have a login and password for this folder, so I don't know what to put in x and y in the line entered into fstab: the usernam=x, password=y

    I tried taking out the username and password part altogether, leaving username=admin, and entering a NULL value in password= , but in all cases, when I save and exit the file, and run command "mount -a", I get the following error:

     

    "[mntent]: line 8 in /etc/fstab is bad"

     

    any ideas? I do not have a NAS, and I don't intend to purchase one initially, so am trying to get it to reference my shared music folder within windows itself.

     

    -Kevin

    Share this comment


    Link to comment
    Share on other sites

    Hi Kevin - Can you try the username and password you use to login to the Windows PC in that file? If there isn't a username and password please set one on Windows.

    Share this comment


    Link to comment
    Share on other sites

    Hi Kevin - Can you try the username and password you use to login to the Windows PC in that file? If there isn't a username and password please set one on Windows.

     

    I am trying that now... I went to rune for a bit, but couldn't get any sound out, but I was able to find the network share using a user account and pass I created specifically for the BBB.

     

    Question, is there default support for mp4 (alac) in this server? Or do I have to download additional packages within linux?

     

    -K

    Share this comment


    Link to comment
    Share on other sites

    so I was able to get the fstab issue resolved, but no files load to the database when I update it. From MPoD, I can see the device connected, but, no files will load or show. Most of my files are MPEG-4 (ALAC), but I have some MPEG-3, and even those don't show up. Don't know what to do next. I tried Runeaudio again, and in there I can see the files, (only the MP3s), but they will not play. When I press the play button, the song doesn't start.

     

    Is there anyway I can putty into the BBB and determine if it is even seeing my DAC? I know the database load has nothing to do with this, but if I can see the files in Rune, and they just won't play, I wonder if it is a hardware compatibility issue. My DAC is a NAD d'3020 integrated DAC/AMP.

    Share this comment


    Link to comment
    Share on other sites

    so I have a very weird issue now. I had it playing, perfectly, and I unhooked everything, put the new, beautiful BBB server into the logitech case, rebooted it, and now nothing. No database recognized, and no sound.

    Share this comment


    Link to comment
    Share on other sites

    so I figured out this most recent issue as well, it appears as though I have to mount -a everytime I restart the BBB. Is there anyway to configure it so that when I restart, the mount happens automatically?

     

    Would like to be able to unplug this little wonder box, plug it back in, without using putty to ssh in everytime and set up NCMPC, control U. It seems like the MPoD app should be able to update database, but the nas doesn't mount automatically.

     

    The sound this puts out is phenomenal, I am very, very happy! Thanks so much for your hard work on this. I am very pleased I didn't spend hard earned on a 2 box setup and the audiophile optimizer.

    Share this comment


    Link to comment
    Share on other sites

    so I figured out this most recent issue as well, it appears as though I have to mount -a everytime I restart the BBB. Is there anyway to configure it so that when I restart, the mount happens automatically?

     

    Would like to be able to unplug this little wonder box, plug it back in, without using putty to ssh in everytime and set up NCMPC, control U. It seems like the MPoD app should be able to update database, but the nas doesn't mount automatically.

     

    The sound this puts out is phenomenal, I am very, very happy! Thanks so much for your hard work on this. I am very pleased I didn't spend hard earned on a 2 box setup and the audiophile optimizer.

     

    Is this a known issue? It is repeatable, when I restart the bbb server, mpod will see the device, but unless I putty in, and do the following commands, no music:

     

    mount -a

    ncmpc

    <cntrl> + U

     

    another thing I noticed, when I added the text related to something along the lines of "CPU=PERFORMANCE", the file I was editing was empty, is this normal?

     

    i really love the server, but would like to solve the issue of requiring a remount after every reboot. Did I miss a step?

     

    final observation, when I use the "update database" button in MPoD, it doesn't do anything, refresh local cache works as expected.

    Share this comment


    Link to comment
    Share on other sites

    Is this a known issue? It is repeatable, when I restart the bbb server, mpod will see the device, but unless I putty in, and do the following commands, no music:

     

    mount -a

    ncmpc

    <cntrl> + U

     

    another thing I noticed, when I added the text related to something along the lines of "CPU=PERFORMANCE", the file I was editing was empty, is this normal?

     

    i really love the server, but would like to solve the issue of requiring a remount after every reboot. Did I miss a step?

     

    final observation, when I use the "update database" button in MPoD, it doesn't do anything, refresh local cache works as expected.

     

    Which version of Linux are you running on the BeagleBone? When I first tried the BeagleBone with Angstrom Linux I had this problem, along with some difficulty in getting the NTP time server working properly. I switched to Debian Linux and it all worked just fine. I believe that the latest BeagleBones come pre-installed with Debian now, rather than Angstrom.

    Share this comment


    Link to comment
    Share on other sites

    Hi,

     

    I am facing an issue. I am using MPDroid on my Android mobile to control the MPD.

    Whenever I "Add and Play" a file I get a click/pop sound from DAC. This doesn't occur when the MPD is playing a playlist but if I manually change(fwd/ffwd/rewd)/Pause-Play/Stop any track there is the sound from my speaker.

     

    My chain is -

    Windows 7 shared machine on network,

    Beaglebone Black --> XMOS based USB-to-SPDIF converter --> DAC

     

    Any idea how to fix this problem?

     

    Thanks in advance.

    -Koushik.

    Share this comment


    Link to comment
    Share on other sites

    Which version of Linux are you running on the BeagleBone? When I first tried the BeagleBone with Angstrom Linux I had this problem, along with some difficulty in getting the NTP time server working properly. I switched to Debian Linux and it all worked just fine. I believe that the latest BeagleBones come pre-installed with Debian now, rather than Angstrom.

    I am using the latest Debian Wheezy image that is linked in the instructions.

    Share this comment


    Link to comment
    Share on other sites

    Has anyone been able to get the album art working on this by fetching from discogs or amazon as MPD allows? I have no option in the client (MPOD on my iphone) to tell it to go to discogs or amazon, but I believe this is supposed to be an option. It is possible that the BBB isn't on the internet?

    Share this comment


    Link to comment
    Share on other sites

    I can't get the BBB to boot off the MicroSD card. The card builds without error. When I apply power to the BBB while pressing the (very tiny) boot switch, no user light ever turns on. How long should that take? If I press the switch immediately after applying power, the BBB boots into Linux. The BBB shows up on my LAN scan, and I can ssh into the board. I also completed the 'apt-get update' steps, so the board seems to be ok. I've made multiple attempts, and reinitialized and rebuilt the card a second time. Mac OS X latest. Terminal session log follows. Any help appreciated.

     

    sh-3.2# diskutil list

    /dev/disk0

    #: TYPE NAME SIZE IDENTIFIER

    0: GUID_partition_scheme *121.3 GB disk0

    1: EFI EFI 209.7 MB disk0s1

    2: Apple_CoreStorage 121.0 GB disk0s2

    3: Apple_Boot Boot OS X 134.2 MB disk0s3

    /dev/disk1

    #: TYPE NAME SIZE IDENTIFIER

    0: GUID_partition_scheme *1.0 TB disk1

    1: EFI EFI 209.7 MB disk1s1

    2: Apple_CoreStorage 999.3 GB disk1s2

    3: Apple_Boot Recovery HD 650.0 MB disk1s3

    /dev/disk2

    #: TYPE NAME SIZE IDENTIFIER

    0: Apple_HFS Macintosh HD *1.1 TB disk2

    /dev/disk4

    #: TYPE NAME SIZE IDENTIFIER

    0: FDisk_partition_scheme *4.0 GB disk4

    1: DOS_FAT_32 NO NAME 4.0 GB disk4s1

     

    sh-3.2# dd if=/Users/gillespy/Desktop/BBB-eMMC-flasher-debian-7.4-2014-03-27-2gb.img.xz of=/dev/disk4 bs=1m

    166+1 records in

    166+1 records out

    174068108 bytes transferred in 111.563806 secs (1560256 bytes/sec)

    Share this comment


    Link to comment
    Share on other sites

    I couldn't boot off the SD Card either, I could only get it to work loading the Linux image on the internal storage.

    Share this comment


    Link to comment
    Share on other sites

    I can't get the BBB to boot off the MicroSD card. The card builds without error. When I apply power to the BBB while pressing the (very tiny) boot switch, no user light ever turns on. How long should that take? If I press the switch immediately after applying power, the BBB boots into Linux. The BBB shows up on my LAN scan, and I can ssh into the board. I also completed the 'apt-get update' steps, so the board seems to be ok. I've made multiple attempts, and reinitialized and rebuilt the card a second time. Mac OS X latest. Terminal session log follows. Any help appreciated.

     

    sh-3.2# diskutil list

    /dev/disk0

    #: TYPE NAME SIZE IDENTIFIER

    0: GUID_partition_scheme *121.3 GB disk0

    1: EFI EFI 209.7 MB disk0s1

    2: Apple_CoreStorage 121.0 GB disk0s2

    3: Apple_Boot Boot OS X 134.2 MB disk0s3

    /dev/disk1

    #: TYPE NAME SIZE IDENTIFIER

    0: GUID_partition_scheme *1.0 TB disk1

    1: EFI EFI 209.7 MB disk1s1

    2: Apple_CoreStorage 999.3 GB disk1s2

    3: Apple_Boot Recovery HD 650.0 MB disk1s3

    /dev/disk2

    #: TYPE NAME SIZE IDENTIFIER

    0: Apple_HFS Macintosh HD *1.1 TB disk2

    /dev/disk4

    #: TYPE NAME SIZE IDENTIFIER

    0: FDisk_partition_scheme *4.0 GB disk4

    1: DOS_FAT_32 NO NAME 4.0 GB disk4s1

     

    sh-3.2# dd if=/Users/gillespy/Desktop/BBB-eMMC-flasher-debian-7.4-2014-03-27-2gb.img.xz of=/dev/disk4 bs=1m

    166+1 records in

    166+1 records out

    174068108 bytes transferred in 111.563806 secs (1560256 bytes/sec)

    You need to unpack the .xz image before using dd to copy it to the SD card.

    Share this comment


    Link to comment
    Share on other sites

    You need to unpack the .xz image before using dd to copy it to the SD card.

    <slaps head>

    Excuse me while I go stand in the corner for a bit...

    Share this comment


    Link to comment
    Share on other sites

    Card built successfully (thanks, Richard), and loaded onto the BBB. When I ssh into the BBB, I get this error message.

    sh-3.2# ssh [email protected]

    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

    @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @

    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

    IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!

    Someone could be eavesdropping on you right now (man-in-the-middle attack)!

    It is also possible that a host key has just been changed.

    The fingerprint for the RSA key sent by the remote host is

    f0:34:53:d8:30:35:f7:4d:05:a6:a8:8f:60:96:0a:d5.

    Please contact your system administrator.

    Add correct host key in /var/root/.ssh/known_hosts to get rid of this message.

    Offending RSA key in /var/root/.ssh/known_hosts:1

    RSA host key for 192.168.1.102 has changed and you have requested strict checking.

    Host key verification failed.

    sh-3.2#

     

    Is this for real?? I was able to successfully ssh into the BBB previously.

    Share this comment


    Link to comment
    Share on other sites

    This is normal. You need to delete your ssh known hosts file on your computer before you can connect again to the BBB. Just do it once and you'll be good.

    Share this comment


    Link to comment
    Share on other sites

    This is normal. You need to delete your ssh known hosts file on your computer before you can connect again to the BBB. Just do it once and you'll be good.

    Even easier, just delete the offending entry:

     

    ssh-keygen -R 192.168.1.102

    Share this comment


    Link to comment
    Share on other sites

    I have completed all the setup steps, but 'mount -a' is failing.

     

    Here is the verbose output.

    root@arm:~# mount -a -v

    mount: UUID=C924-5D92 already mounted on /boot/uboot

    mount: debugfs already mounted on /sys/kernel/debug

    mount.cifs kernel mount options: ip=192.168.1.20,unc=\\192.168.1.20\Music,user=thurman,pass=********

    mount error(95): Operation not supported

    Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)

     

    Looks like my share is not mounting. Here is /etc/fstab.

    GNU nano 2.2.6 File: /etc/fstab

     

    # /etc/fstab: static file system information.

    #

    # Auto generated by: beaglebone-black-eMMC-flasher.sh

    #

    UUID=62568e03-26ad-430c-88b9-9eabeb590e33 / ext4 noatime,errors=remount-ro 0 1

    UUID=C924-5D92 /boot/uboot auto defaults 0 0

    debugfs /sys/kernel/debug debugfs defaults 0 0

    //192.168.1.20/Music /mnt/music cifs defaults,username=thurman,password=******* 0 0

     

    Here is my setup.

    Mac OS 10.9.4.

    Manually configured static IP address, as above.

    I am trying to have mpd index my iTunes folder. This is probably not my final configuration, but I'm trying a proof of concept.

    I have set a share for the 'Music' folder in iTunes that actually contains the music files. So the share path is:

    /Users/gillespy/Music/iTunes/iTunes Music/Music

    'Share files and folders using SMB' is selected.' User 'thurman' is selected.

    The password contains letters, numbers and the special character '$' (to avoid any unix problems).

     

    Any suggestions appreciated!

    Share this comment


    Link to comment
    Share on other sites




    Guest
    This is now closed for further comments




×
×
  • Create New...