Debian Bookworm for OpenFrame

General discussion relating to the O2 Joggler, from the default O2 setup, to alternative operating systems and applications.
User avatar
roobarb!
Posts: 1750
Joined: Sat Mar 05, 2011 1:30 pm
Location: Salford, UK
Contact:

Debian Bookworm for OpenFrame

Post by roobarb! »

________________________________________________________________

Debian Bookworm for OpenFrame (Kernel 6.1)
Operating System Patches / Kernel Patches / Build Log
________________________________________________________________


It's happened again! We've hit another LTS milestone! :D

Both Bullseye and Bookworm are now being built on a new little server dedicated just to making these images and serving them up. Bookworm isn't replacing Bullseye, I'll keep building fresh images of both until at least Bullseye's estimated end-of-life, which is June 2026. Probably for longer. :lol:


Installation and Setup

No different to other releases. Easiest way is to chuck it on a USB stick using the Raspberry Pi imager, plug it in, turn OpenFrame on.

More complete instructions on birdslikewires.net.


Enjoy!

I'm aiming for this release to be pretty vanilla - just the necessary little bits and bobs for you to build your own systems with. πŸ‘
BirdsLikeWires - Get fresh builds of Debian Bullseye and Bookworm for OpenFrame with the latest 5.10 and 6.1 kernels! 8-)
Man in a van
Posts: 494
Joined: Sun Aug 25, 2013 2:39 pm
Location: Staffordshire. UK

Re: Debian Bookworm for OpenFrame

Post by Man in a van »

Thanks Boss :)

I have been playing with the Release Candidates for a while.

Apparently there will be a point release in a month or; it was pushed out with over a 100 bugs still to be squashed! :shock:

Anyway, I had already built the Binaries for LMS, so here is O2 Joggler running LMS v8.4.0, Squeezelite on the internal speaker, and Jivelite for control.
Logitech Media Server Version: 8.4.0 - 1686847919 @ Thu 15 Jun 2023 07:26:26 PM CEST
Hostname: openframe
Server IP Address: 192.168.1.123
Server HTTP Port Number: 9000
Operating system: Debian - EN - utf8
Platform Architecture: i686-linux
Perl Version: 5.36.0 - i686-linux-gnu-thread-multi-64int
Audio::Scan: 1.06
IO::Socket::SSL: 2.081
Database Version: DBD::SQLite 1.58 (sqlite 3.22.0)
Total Players Recognized: 1
openframe
Player Model: SqueezeLite
Player Type: squeezelite
Firmware: v1.9.9-1414
Player IP Address: 192.168.1.123
Player MAC Address:
Image


ronnie
Man in a van
Posts: 494
Joined: Sun Aug 25, 2013 2:39 pm
Location: Staffordshire. UK

Re: Debian Bookworm for OpenFrame

Post by Man in a van »

I have been playing with this for some time

https://forums.slimdevices.com/forum/us ... e-melodeon

With varying success :(

It builds in the 32 bit, so I might have another player later in the year ;)

ronnie
User avatar
roobarb!
Posts: 1750
Joined: Sat Mar 05, 2011 1:30 pm
Location: Salford, UK
Contact:

Re: Debian Bookworm for OpenFrame

Post by roobarb! »

Awesome! I love seeing OpenFrames still doing cool stuff.

I've edited the opening post because audio is now working just fine. Minor tweak to asound.conf was all that was required. mpg123 seems to still try to use PulseAudio first (which is not present) but running with "-o alsa" or using mpg123-alsa works perfectly. Confirmed that hotplugging on the audio jack still works with kernel 6.1 as well, so no changes required there.

The fact that the Beeb have turned off MP3 streaming of everything except World Service confused me for a bit, as I was setting all this up on the 16th June, the day they switched off those feeds. One minute everything was fine, next minute there was nothing and naturally I assumed it was something I'd done! :lol:
BirdsLikeWires - Get fresh builds of Debian Bullseye and Bookworm for OpenFrame with the latest 5.10 and 6.1 kernels! 8-)
Man in a van
Posts: 494
Joined: Sun Aug 25, 2013 2:39 pm
Location: Staffordshire. UK

Re: Debian Bookworm for OpenFrame

Post by Man in a van »

I now have a fresh install and running Ralphy's Squeezeplay

It's all a bit slow to load (as was my previous post) but runs OK

No album art from either local files or streaming radio stations

Start up using a @reboot Cronjob

I seem to have a default USA keyboard :o

ronnie
User avatar
roobarb!
Posts: 1750
Joined: Sat Mar 05, 2011 1:30 pm
Location: Salford, UK
Contact:

Re: Debian Bookworm for OpenFrame

Post by roobarb! »

Man in a van wrote: ↑Wed Jun 21, 2023 3:20 pm No album art from either local files or streaming radio stations
That's usually a library thing, did you get art on the previous incarnation out of the box? Image conversion libraries (in fact, as many libraries as possible) aren't included by default so people have a little space to work with on the internal memory.
Man in a van wrote: ↑Wed Jun 21, 2023 3:20 pm I seem to have a default USA keyboard :o
Hmm, I'll test for that - IIRC it's a dpkg-reconfigure keyboard-configuration or /etc/default/keyboard thing.
BirdsLikeWires - Get fresh builds of Debian Bullseye and Bookworm for OpenFrame with the latest 5.10 and 6.1 kernels! 8-)
Man in a van
Posts: 494
Joined: Sun Aug 25, 2013 2:39 pm
Location: Staffordshire. UK

Re: Debian Bookworm for OpenFrame

Post by Man in a van »

roobarb! wrote: ↑Fri Jun 23, 2023 11:22 am
Man in a van wrote: ↑Wed Jun 21, 2023 3:20 pm No album art from either local files or streaming radio stations
That's usually a library thing, did you get art on the previous incarnation out of the box? Image conversion libraries (in fact, as many libraries as possible) aren't included by default so people have a little space to work with on the internal memory.
I'm using a 32 gb usb stick so have plenty or room :)

Ralphy's Squeezeplay has no frame buffer but neither does the Jivelite version that I build (this goes back a few years working with chill).

At the moment I have only installed xinit (I have in the past installed xserver which gives the same result).

I have not yet tried a full desktop

As you well know, it takes a lot of time :roll:

From reboot to a usable touch screen is almost two minutes with this simple build.

Image

On your build of Squeezeplay how do you do it? Would it be possible to run the build script incorporating Ralphy's Sourceforge url for Squeezeplay,
or does it require a checksum for the download?

ronnie
jkn
Posts: 126
Joined: Sat Jul 16, 2011 11:18 am

Re: Debian Bookworm for OpenFrame

Post by jkn »

roobarb! wrote: ↑Wed Jun 21, 2023 11:26 am
The fact that the Beeb have turned off MP3 streaming of everything except World Service confused me for a bit, as I was setting all this up on the 16th June, the day they switched off those feeds. One minute everything was fine, next minute there was nothing and naturally I assumed it was something I'd done! :lol:
Heh. Many, many years ago I built an MSF time signal receiver, for a novelty clock project I was making. This time signal is/was broadcast as a low frequency Radio signal from Rugby, UK. I had a kit-built RF stage, and wrote a program on an 8051 CPU to decode the signal and drive some LEDs.

After I built it I started testing in ... and absolutely nothing from the RF stage. All the constituent bits seemed to be working, but no output at all. I tried everything, couldn't get any result.

Next day ... all was fine! It turned out that on ... the afternoon of the third Tuesday in the month... they turned the signal off for maintenance. Guess when I was trying things out? Grr...
Man in a van
Posts: 494
Joined: Sun Aug 25, 2013 2:39 pm
Location: Staffordshire. UK

Re: Debian Bookworm for OpenFrame

Post by Man in a van »

@roobarb!

Is something wrong here?

Image

ronnie
User avatar
roobarb!
Posts: 1750
Joined: Sat Mar 05, 2011 1:30 pm
Location: Salford, UK
Contact:

Re: Debian Bookworm for OpenFrame

Post by roobarb! »

Man in a van wrote: ↑Sun Jul 02, 2023 8:28 am @roobarb!

Is something wrong here?

Image

ronnie
Yeah, there's a bug. This version is fine for now, just looking at it.

It's half fixed, I'll take another look tomorrow.

UPDATE: I broke it more, and much worse.

UPDATE2: Well, I completely fried that server and had to rebuild it. Be careful deleting things that look like files but are actually active mount points! That's what comes from typing too fast too late at night. :shock:

It didn't help that Debian Bookworm appears to have a loop mounting bug when using custom nodes, which end up throwing "no such device or address" errors. The build server is now back on Bullseye, but can produce both Bullseye and Bookworm images just fine. πŸ‘

If you can't access the server right now you probably have a cached DNS entry for the old one. You can visit by it's IP address while you wait for your local DNS to update.
BirdsLikeWires - Get fresh builds of Debian Bullseye and Bookworm for OpenFrame with the latest 5.10 and 6.1 kernels! 8-)
Man in a van
Posts: 494
Joined: Sun Aug 25, 2013 2:39 pm
Location: Staffordshire. UK

Re: Debian Bookworm for OpenFrame

Post by Man in a van »

Downloads all good now :)

Thanks Boss ;)
User avatar
roobarb!
Posts: 1750
Joined: Sat Mar 05, 2011 1:30 pm
Location: Salford, UK
Contact:

Re: Debian Bookworm for OpenFrame

Post by roobarb! »

Man in a van wrote: ↑Thu Jul 06, 2023 11:46 am Downloads all good now :)

Thanks Boss ;)
Hehe, excellent - thanks for confirming, always appreciated! 8-)
BirdsLikeWires - Get fresh builds of Debian Bullseye and Bookworm for OpenFrame with the latest 5.10 and 6.1 kernels! 8-)
Man in a van
Posts: 494
Joined: Sun Aug 25, 2013 2:39 pm
Location: Staffordshire. UK

Re: Debian Bookworm for OpenFrame

Post by Man in a van »

Just a note to say that "sudo of-expand" still does not work on the internal ram of the Cisco Openframe :?: :!: :?

On both Bullseye and Bookworm it goes into a boot loop on rebooting :roll:

Sigh.....................................................!

ronnie
proddick
Posts: 29
Joined: Fri Feb 22, 2013 10:59 am

Re: Debian Bookworm for OpenFrame

Post by proddick »

@roobarb!

Thanks for doing this, it is great you are keeping these Jogglers alive :-)

I needed to build a new Squeezeplay Joggler and tried this build but the script to install Squeezeplay isn't included. I had a look at the package below but didn't get far due to my lack of Linux skills. I suspect there are some pre-requisites before that can be run? Any pointers (or a script ;-) ) would be appreciated.

https://sourceforge.net/projects/lmscli ... lay/linux/
Man in a van
Posts: 494
Joined: Sun Aug 25, 2013 2:39 pm
Location: Staffordshire. UK

Re: Debian Bookworm for OpenFrame

Post by Man in a van »

proddick wrote: ↑Thu Jul 20, 2023 11:45 am @roobarb!

Thanks for doing this, it is great you are keeping these Jogglers alive :-)

I needed to build a new Squeezeplay Joggler and tried this build but the script to install Squeezeplay isn't included. I had a look at the package below but didn't get far due to my lack of Linux skills. I suspect there are some pre-requisites before that can be run? Any pointers (or a script ;-) ) would be appreciated.

https://sourceforge.net/projects/lmscli ... lay/linux/

Have a read through this thread :)

viewtopic.php?f=2&t=5194

ronnie
Man in a van
Posts: 494
Joined: Sun Aug 25, 2013 2:39 pm
Location: Staffordshire. UK

Re: Debian Bookworm for OpenFrame

Post by Man in a van »

This is Ralphy's Squeezeplay on a Joggler Bookworm image, started from PuTTY on a Windows Desktop

Image

It's installed on a micro sd card in a usb reader, but not with an expanded file system
of@openframe:~$ df -h
Filesystem Size Used Avail Use% Mounted on
udev 242M 0 242M 0% /dev
tmpfs 50M 2.0M 48M 5% /run
/dev/sda2 923M 555M 321M 64% /
tmpfs 246M 0 246M 0% /dev/shm
tmpfs 5.0M 8.0K 5.0M 1% /run/lock
tmpfs 192M 24K 192M 1% /tmp
tmpfs 256M 74M 183M 29% /var/cache/apt
tmpfs 256M 129M 128M 51% /var/lib/apt/lists
tmpfs 16M 16K 16M 1% /var/log
/dev/sda1 41M 16M 26M 37% /boot
tmpfs 50M 0 50M 0% /run/user/1000
I added the no curser command to the squeezeplay.sh
The screen calibration is not quite right, but usable with a little care :) ;)

ronnie
Man in a van
Posts: 494
Joined: Sun Aug 25, 2013 2:39 pm
Location: Staffordshire. UK

Re: Debian Bookworm for OpenFrame

Post by Man in a van »

Managed to get this to start with a squeezeplay.service file,

Code: Select all

[Unit]
Description=Squeezeplay
Requires=network-online.target
After=network-online.target

[Service]
Type=exec
User=root
Environment="JIVE_NOCURSOR=1"
ExecStart=/opt/squeezeplay/bin/squeezeplay.sh
Restart=always
RestartSec=10
StartLimitInterval=30
StartLimitBurst=20

[Install]
WantedBy=multi-user.target
From power on it takes about two minutes 45 secs to a full screen, still no images; any suggestions welcomed :)

Image

Using the internal speaker for playback,

Code: Select all

of@openframe:~$ systemctl status squeezeplay.service
● squeezeplay.service - Squeezeplay
     Loaded: loaded (/etc/systemd/system/squeezeplay.service; enabled; preset: enabled)
     Active: active (running) since Sat 2023-07-22 07:18:57 BST; 7min ago
   Main PID: 521 (squeezeplay.sh)
        CPU: 1min 30.628s
     CGroup: /system.slice/squeezeplay.service
             β”œβ”€521 /bin/bash /opt/squeezeplay/bin/squeezeplay.sh
             β”œβ”€523 ./jive
             └─527 jive_alsa -d hw:CARD=MID -c hw:CARD=MID -b 30000 -p 3 -t 500 -s 0 -f 1
of@openframe:~$
ronnie
Man in a van
Posts: 494
Joined: Sun Aug 25, 2013 2:39 pm
Location: Staffordshire. UK

Re: Debian Bookworm for OpenFrame

Post by Man in a van »

Today I made a new image using the latest download and ran sudo update. (there is now a 12.1 bookworm release)

I installed Ralphy's squeezeplay

I also modified @sixedup jivelite.service file to use squeezeplay (used sudo su to make the script as root)

Code: Select all

root@openframe:/home/of# nano /etc/systemd/system/squeezeplay.service
  GNU nano 7.2                                                               /etc/systemd/system/squeezeplay.service
[Unit]
Description=Squeezeplay
After=network.target
Requires=network.target

[Service]
Type=exec
User=root
Group=root
WorkingDirectory=/opt/squeezeplay/bin
Environment="JIVE_NOCURSOR=1"
ExecStart=/bin/sh -c "/opt/squeezeplay/bin/squeezeplay.sh"
ExecStop=/bin/sh -c "/usr/bin/killall squeezeplay"
Restart=on-failure

[Install]
WantedBy=multi-user.target

Code: Select all


root@openframe:/home/of# systemctl daemon-reload

systemctl enable squeezeplay.service

systemctl start squeezeplay.service

systemctl status squeezeplay.service
● squeezeplay.service - Squeezeplay
     Loaded: loaded (/etc/systemd/system/squeezeplay.service; enabled; preset: enabled)
     Active: active (running) since Sun 2023-07-23 10:00:21 BST; 106ms ago
   Main PID: 708 (sh)
        CPU: 87ms
     CGroup: /system.slice/squeezeplay.service
             β”œβ”€708 /bin/sh -c /opt/squeezeplay/bin/squeezeplay.sh
             β”œβ”€709 /bin/bash /opt/squeezeplay/bin/squeezeplay.sh
             └─710 ./jive

Jul 23 10:00:21 openframe systemd[1]: Starting squeezeplay.service - Squeezeplay...
Jul 23 10:00:21 openframe systemd[1]: Started squeezeplay.service - Squeezeplay.
root@openframe:/home/of# alsamixer

Code: Select all

root@openframe:/home/of# df -h
Filesystem      Size  Used Avail Use% Mounted on
udev            242M     0  242M   0% /dev
tmpfs            50M  1.8M   48M   4% /run
/dev/sda2       923M  556M  321M  64% /
tmpfs           246M     0  246M   0% /dev/shm
tmpfs           5.0M  8.0K  5.0M   1% /run/lock
tmpfs           192M   16K  192M   1% /tmp
tmpfs           256M  3.4M  253M   2% /var/cache/apt
tmpfs           256M     0  256M   0% /var/lib/apt/lists
tmpfs            16M   16K   16M   1% /var/log
/dev/sda1        41M   16M   26M  37% /boot
tmpfs            50M     0   50M   0% /run/user/1000

Everyhing seems well, the touchscreen is a little out of calibration and seems to require a firmer "touch"

Sitll no Album artwork :( :? :roll:

Any :idea:

ronnie
Man in a van
Posts: 494
Joined: Sun Aug 25, 2013 2:39 pm
Location: Staffordshire. UK

Re: Debian Bookworm for OpenFrame

Post by Man in a van »

I releaise that not every one will "au fait" with Squeezeplay configuration for playback.

This is a copy of a post made by Ralphy on the slimdevices forum

-------------------------------------------------------------------------------------------------------------
SQUEEZEPLAY ON JOGGLER- CONFIGURE OUTPUT

Run aplay -l to find the alsa device name. I'm using an allo dac in my example as I don't have a hifiberry dac installed ATM.

$ aplay -l | grep card
card 0: ALSA [bcm2835 ALSA], device 0: bcm2835 ALSA [bcm2835 ALSA]
card 0: ALSA [bcm2835 ALSA], device 1: bcm2835 ALSA [bcm2835 IEC958/HDMI]
card 1: sndallodigione [snd_allo_digione], device 0: Allo DigiOne HiFi wm8804-spdif-0 []

Then update the ALSA section in /opt/squeezeplay/bin/squeezeplay.sh to use the hifiberry. I'd also suggest setting USEALSASAMPLESIZE to zero to autodetect the sample size supported by the hifiberry dac instead of forcing default 16 bit.

# ALSA
#
# Supported sample sizes 0=autodetect, default=16
# "<0|16|24|24_3|32>"
#
export USEALSASAMPLESIZE=0
export USEALSADEVICE=hw:CARD=sndallodigione
export USEALSACAPTURE=hw:CARD=sndallodigione

Quit squeezeplay and start it again using /opt/squeezeplay/bin/squeezeplay.sh
-----------------------------------------------------------------------------------------------------------
I use the internal speaker; "aplay -L" gives

Code: Select all

of@openframe:~$ aplay -L
null
    Discard all samples (playback) or generate zero samples (capture)
mixer
default
hw:CARD=MID,DEV=0
    HDA Intel MID, STAC9202 Analog
    Direct hardware device without any conversions
hw:CARD=MID,DEV=1
    HDA Intel MID, STAC9202 Digital
    Direct hardware device without any conversions
plughw:CARD=MID,DEV=0
    HDA Intel MID, STAC9202 Analog
    Hardware device with all software conversions
plughw:CARD=MID,DEV=1
    HDA Intel MID, STAC9202 Digital
    Hardware device with all software conversions
sysdefault:CARD=MID
    HDA Intel MID, STAC9202 Analog
    Default Audio Device
front:CARD=MID,DEV=0
    HDA Intel MID, STAC9202 Analog
    Front output / input
surround21:CARD=MID,DEV=0
    HDA Intel MID, STAC9202 Analog
    2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=MID,DEV=0
    HDA Intel MID, STAC9202 Analog
    4.0 Surround output to Front and Rear speakers
surround41:CARD=MID,DEV=0
    HDA Intel MID, STAC9202 Analog
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=MID,DEV=0
    HDA Intel MID, STAC9202 Analog
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=MID,DEV=0
    HDA Intel MID, STAC9202 Analog
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=MID,DEV=0
    HDA Intel MID, STAC9202 Analog
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=MID,DEV=0
    HDA Intel MID, STAC9202 Digital
    IEC958 (S/PDIF) Digital Audio Output
dmix:CARD=MID,DEV=0
    HDA Intel MID, STAC9202 Analog
    Direct sample mixing device
dmix:CARD=MID,DEV=1
    HDA Intel MID, STAC9202 Digital
    Direct sample mixing device

Code: Select all

of@openframe:~$ sudo systemctl status squeezeplay.service
[sudo] password for of:
● squeezeplay.service - Squeezeplay
     Loaded: loaded (/etc/systemd/system/squeezeplay.service; enabled; preset: enabled)
     Active: active (running) since Sun 2023-07-23 11:17:27 BST; 1min 49s ago
   Main PID: 366 (sh)
        CPU: 15.496s
     CGroup: /system.slice/squeezeplay.service
             β”œβ”€366 /bin/sh -c /opt/squeezeplay/bin/squeezeplay.sh
             β”œβ”€367 /bin/bash /opt/squeezeplay/bin/squeezeplay.sh
             β”œβ”€370 ./jive
             └─381 jive_alsa -d sysdefault:CARD=MID -c sysdefault:CARD=MID -b 30000 -p 3 -t 500 -s 0 -f 1

Jul 23 11:17:27 openframe systemd[1]: Starting squeezeplay.service - Squeezeplay...
Jul 23 11:17:27 openframe systemd[1]: Started squeezeplay.service - Squeezeplay.
Jul 23 11:17:29 openframe squeezeplay_alsa[381]: _pcm_open:729 Opened device sysdefault:CARD=MID using format: S32_LE sample rate: 44100
Jul 23 11:17:29 openframe squeezeplay_alsa[381]: _pcm_open:755 Using buffer period count: 3
Jul 23 11:17:29 openframe squeezeplay_alsa[381]: _pcm_open:767 Using buffer time: 63990
Jul 23 11:18:08 openframe squeezeplay_alsa[381]: _pcm_open:729 Opened device sysdefault:CARD=MID using format: S32_LE sample rate: 48000
Jul 23 11:18:08 openframe squeezeplay_alsa[381]: _pcm_open:755 Using buffer period count: 3
Jul 23 11:18:08 openframe squeezeplay_alsa[381]: _pcm_open:767 Using buffer time: 64000
of@openframe:~$
And "alsamixer" allows the volume to be increased

ronnie
Man in a van
Posts: 494
Joined: Sun Aug 25, 2013 2:39 pm
Location: Staffordshire. UK

Re: Debian Bookworm for OpenFrame

Post by Man in a van »

Man in a van wrote: ↑Sun Jul 02, 2023 8:28 am @roobarb!

Is something wrong here?

Image

ronnie

@roobarb!


This is repeated for the download available today (25th July)
Index of /openframe/images/debian/bookworm/latest/

../
boo-ext2-1028-43-bookworm-6.1.41op.img.gz 25-Jul-2023 03:46 91M
boo-ext2-1028-43-bookworm-6.1.41op.img.gz.md5 25-Jul-2023 03:46 76


ronnie
Post Reply