Home of the Squeezebox™ & Transporter® network music players.
Results 1 to 5 of 5
  1. #1
    Junior Member
    Join Date
    May 2013
    Location
    Dortmund, Germany
    Posts
    4

    Compile SqueezeOS for "Baby" - missing babydsp.so (BB/Poky recipe - Private_SVN)

    Hello Developers,

    coming from http://forums.slimdevices.com/showth...ages-available I am trying to compile SqueezeOS for "baby" (Squeezebox Radio). I checked out http://svn.slimdevices.com/repos/jive/7.8/trunk/ and follwed the instructions at http://wiki.slimdevices.com/index.ph...d_Instructions as well as http://wiki.slimdevices.com/index.ph...ezeos_Building (using the scripts in the parabuild subdirectory).

    I selected MACHINE=baby to build for the Squeezebox Radio and figured out some minor problems like the missing fakeroot 1.9.4. I am now stuck at the stage were squeezeplay is compiled. At some point it looks like bitbake tries to "bake" squeezeos-dsp-src_svn.bb, which can not succeed as I did not set "SQUEEZEOS_PRIVATE_SVN".

    I would be very thankful for some advice! (or an baby-UBI-firmware-image)

    Best regards
    Robert

  2. #2
    Senior Member ralphy's Avatar
    Join Date
    Jan 2006
    Location
    Canada
    Posts
    2,468
    I've managed to workaround the missing private babydsp sources to successfully build the radio firmware.

    Copy /usr/lib/alsa-lib/libasound_module_pcm_babydsp.so from a radio to your poky build system and rename it using scp.

    Code:
    $ scp -p root@radio:/usr/lib/alsa-lib/libasound_module_pcm_babydsp.so libasound_module_pcm_babydsp.so.0.0.0
    
    libasound_module_pcm_babydsp.so      100%   33KB  33.5KB/s   00:00
    Create a tar file which contains the renamed babydsp module in the correct folder structure. I included the firmware version of the radio where the shared library came from in the filename.

    Code:
    $ tar -tzvf babydsp-7.7.3r16676.tar.gz
    
    drwxr-xr-x ralphy/ralphy     0 2020-02-05 16:31 squeezeos_dsp/
    drwxr-xr-x ralphy/ralphy     0 2020-02-05 16:10 squeezeos_dsp/.libs/
    -rw-r--r-- ralphy/ralphy 34271 1969-12-31 19:00 squeezeos_dsp/.libs/libasound_module_pcm_babydsp.so.0.0.0
    Create an md5 checksum file

    Code:
    md5sum babydsp-7.7.3r16676.tar.gz > babydsp-7.7.3r16676.tar.gz.md5
    Put both files in the poky/sources folder

    Update squeezeos-dsp-src_svn.bb. We only want bitbake to perform the install step. File attached.

    I used a url to a local apache server running on my build VM in the SRC_URI to host the files, but bitbake won't try to download them as long as the tar and md5 files are already in poky/sources.


    Code:
    DESCRIPTION = "SqueezeOS DSP - Private code"
    LICENSE = "Confidential"
    
    PV = "${DISTRO_VERSION}+svnr${SRCREV}"
    PR = "r3"
    
    PROVIDES = "squeezeos-dsp"
    
    DEPENDS += "alsa-lib"
    
    # no thumb here thanks!
    ARM_INSTRUCTION_SET = "arm"
    
    # SRC_URI="${SQUEEZEOS_PRIVATE_SVN};module=squeezeos_dsp"
    SRC_URI="http://poky/babydsp-7.7.3r16676.tar.gz;module=squeezeos_dsp"
    
    S = "${WORKDIR}/squeezeos_dsp"
    
    #inherit autotools
    
    #do_configure_prepend() {
    #	cd ${S}/openmax
    #	tar -xzf openmax-arm-98665.tgz
    #	cd ${S}
    #}
    
    do_install() {
    	mkdir -p ${D}/${libdir}/alsa-lib
    	pwd
    	install -m 0644 .libs/libasound_module_pcm_babydsp.so.0.0.0 ${D}/${libdir}/alsa-lib/libasound_module_pcm_babydsp.so
    }
    
    PACKAGES = "squeezeos-dsp squeezeos-dsp-dbg"
    
    FILES_squeezeos-dsp = "${libdir}/alsa-lib"
    FILES_squeezeos-dsp-dbg = "${libdir}/alsa-lib/.debug"

    Set MACHINE ?= "baby" in poky/build/conf/local.conf

    Setup your bitbake environment variables and run bitbake.
    Attached Files Attached Files
    Last edited by ralphy; 2020-02-06 at 07:06.
    Ralphy

    1-Touch, 5-Classics, 3-Booms, 1-UE Radio
    Squeezebox client builds donations always appreciated.

  3. #3
    Babelfish's Best Boy mherger's Avatar
    Join Date
    Apr 2005
    Location
    Switzerland
    Posts
    20,420

    [SlimDevices: Jive] Compile SqueezeOS for "Baby" - missingbabydsp.so (BB/Poky recipe - Private_SVN)

    > I've managed to workaround the missing private babydsp sources to
    > successfully build the radio firmware.


    Let me start by saying you're crazy.

    What's the motivation to build your own firmware? You're obviously aware
    of the missing features (AAC/WMA)...

    --

    Michael

  4. #4
    Senior Member
    Join Date
    May 2010
    Location
    London, UK
    Posts
    488
    Quote Originally Posted by mherger View Post
    What's the motivation to build your own firmware? You're obviously aware
    of the missing features (AAC/WMA)...
    Perhaps, to quote (or misquote) George Mallory, "Because it's there".

    In my case, motivation is/was to explore ways to ameliorate a "Bass amp problem".

  5. #5
    Senior Member ralphy's Avatar
    Join Date
    Jan 2006
    Location
    Canada
    Posts
    2,468
    Quote Originally Posted by mherger View Post
    > I've managed to workaround the missing private babydsp sources to
    > successfully build the radio firmware.


    Let me start by saying you're crazy.

    What's the motivation to build your own firmware? You're obviously aware
    of the missing features (AAC/WMA)...

    --

    Michael
    LOL. That's twice now you've called me crazy for attempting this!

    I already have squeezelite running on the radio so the missing decoders, spotify and other private music services support don't matter.
    Ralphy

    1-Touch, 5-Classics, 3-Booms, 1-UE Radio
    Squeezebox client builds donations always appreciated.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •