We are moving! New user registrations to this forum is now closed. Posting here will be disabled eventually. Please go to the new community for your Snakeoil OS support and other discussions. (June 03)

New community website: https://community.snakeoil-os.net (June 03)

Join us in the new community by Creating a new account. (June 04)


Misc. sharing for building Raspberry Pi 5 as music server
#2
The rest is particularly for/from my Pi 5 music server project.

Just get your pi 5 updated. 
Code:
sudo apt update && apt full-upgrade -y
sudo rpi-eeprom-update -a

But don't use "rpi-update" to update the pi 5 firmware as even the beta firmware will be used.  And from the web info, we are advised not to update the pi 5 firmware FREQUENTLY.

This time, besides adding a power filter hat (it got a dc socket to accept DC 5V input and different types of capacitors and then supply the power to the whole system thru GPIO), I used battery to power Pi 5.  In internet there are few battery hats for pi (for stacking purpose), and most of them cannot provide 5VDC 5A/6A as almost all of them are made for Pi4 and before. Finally I chosen one can provide 5VDC 5A and get it connected to my Pi 5.  Yet Raspberry Pi OS and Ubuntu Desktop keep saying it's not supplying 5V 5A.  The speed of Pi, and wireless connection become very very slow.  


[Image: IMG-20250327-221225761-HDR.jpg]

[Image: IMG-20250327-221057133.jpg]


[Image: IMG-20250327-221111580.jpg]

With the help from the seller, I learnt that if I don't power the Pi 5 with 5V 5A/6A PD power supply thru the onboard USB C socket, then I need to add a line in eeprom by Raspberry Pi OS to make Pi 5 to accept more current from other DC inputs.

[Image: O1CN01yy058l1DestT6oYRu_!!1041210242-2-ampmedia.png]
 
Code:
sudo rpi-eeprom-config -e

after adding following line at the end of the file, then Ctrl-O to overwrite, Ctrl-X to exit.  The screen will show few lines saying something like the flashings are successful.  And then reboot to take effect.
 
Code:
PSU_MAX_CURRENT=5000 

Here, one have to use Raspberry Pi OS to update the eeprom prior flashing and use other OS, e.g. ubuntu, on that Pi 5.  Or, Pi 5 doesn't accept 5A current.  I guess the installer of other OS read the eeprom and set something can't be changed afterward.  I used Raspberry Pi OS, and Ubuntu Desktop to test few times to confirm.  In short, if one is powering Pi 5 with LPS or anything other than a PD USB C power supply, and DIDN'T add this line in eeprom before, you HAVE to use Raspberry Pi OS to update it (ubuntu can't do the job in my setup), and reboot Pi to take effect.  And then re-flashing and re-installing Ubuntu server and other OS used on this Pi 5, so to the SnakeOil again.  Or your Pi 5 is still running in low power supply mode, even you've updated eeprom.

https://www.raspberrypi.com/documentatio...AX_CURRENT
 

Besides this, I'd like to remove the snap service, too.  This is useless to me but occupying CPU cycle.
 
Code:
sudo systemctl disable snapd.socket
sudo systemctl disable snapd.service
sudo systemctl disable snapd.seeded.service
sudo snap remove snap-store
sudo apt autoremove --purge snapd

Please be noticed that, some of the above items may not present in your system.
 

For the analogue and digital audio hats, initially I thought ubuntu, Raspberry OS, and some other big name audio OS will auto detect the hat and configure accordingly and automatically.  But NONE.  All shows no audio device found.  Some audio OS got a nice webui to let me to choose from a long list.  Some got to input manually in the cli, including ubuntu and raspberry OS.  For the cli case, one got to know the exact name of the overlay (driver) in that OS.  

config file path = /boot/firmware/config.txt
overlay path = /boot/firmware/overlays
 
Code:
sudo nano /boot/firmware/config.txt

In the config.txt, just add this line at the end, under [All] or "Enable Audio hat" in Raspberry OS.  Such as,
 
Code:
dtoverlay=i2s-dac

Please pay attention that the name after "dtoverlay=" must be exactly the same in that folder (no filename extension is needed).

If still doesn't work, I hope adding this line in the same file, above that "dtoverlay=" line will help.
 
Code:
force_eeprom_read=0

Of course, reboot is needed to take effect.  If you've input correctly, in the Player tab of SO webui, the name of corresponding audio hat will appear in the output device field.  And you can assign it to your player as well.

For the Lan connection, I used to use optical fibre for the galvanic isolation.  ie. switch/router > Lan cable > media converter > optical fibre > media converter > Lan cable > Pi/PC.

These really bled me and took me a lot of space.  From the LPS to the optical fibre and lan cable, they are all good stuff.  Some are generally not available to a layman like me.  In 1.5 yrs ago, I tried a small LAN isolator from iFi.  Wooh.... then I used that simple LAN isolator to replace my optical fibre isolation.

I compared these 2 methods in this way:  I started to play a music file in internal SSD to my USB DAC, and then unplug the LAN cable from this music server (NUC).  I use the sound without lan cable as reference to compare the optical fibre method and iFi isolator.  The result is:
1) optical fibre method gives cleaner and clearer sound, but that's not close to the sound without LAN cable plugged;
2) iFi isolator gives the sound very close to the sound without LAN cable plugged.

That iFi lan isolator just costs a fraction of my optical fibre method. LOL
Reply


Bookmarks

Messages In This Thread
RE: Misc. sharing for building Raspberry Pi 5 as music server - by hkphantomgtr - 09-Apr-2025, 05:26 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  SQ difference - Raspberry Pi vs x86_64? justme 42 5,221 27-May-2025, 02:16 PM
Last Post: Snoopy8
  Raspberry Pi 5 uglymusic 2 931 23-Nov-2023, 12:41 AM
Last Post: uglymusic
  SnakeOil Server Hardware - What are you using? NoDisc 17 11,393 11-Oct-2019, 09:05 AM
Last Post: mkysimes



Users browsing this thread: 1 Guest(s)
[-]
Our Sponsors

[-]
Latest Threads
Android Firefox issues with forum
Last Post: agent_kith
10-Jun-2025 04:45 PM
» Replies: 21
» Views: 1960
[split] Possible To Load Snakeoil OS in ...
Last Post: Snoopy8
09-Jun-2025 06:43 AM
» Replies: 14
» Views: 1449
Snakeoil 1.4.3 (High End U3)
Last Post: hkphantomgtr
05-Jun-2025 03:58 PM
» Replies: 67
» Views: 8625
Snakeoil with Ubuntu Desktop ?
Last Post: Snoopy8
02-Jun-2025 09:38 AM
» Replies: 8
» Views: 874
Add IR remote control using Flirc USB in...
Last Post: Snoopy8
31-May-2025 03:50 PM
» Replies: 5
» Views: 631
Work In Progress: 1.4.4
Last Post: hkphantomgtr
29-May-2025 11:44 PM
» Replies: 44
» Views: 4835
SQ difference - Raspberry Pi vs x86_64?
Last Post: Snoopy8
27-May-2025 02:16 PM
» Replies: 42
» Views: 5221
Snakeoil 1.4.0 (High End)
Last Post: aabman
25-May-2025 11:35 AM
» Replies: 93
» Views: 14486
new install issues
Last Post: carlodim
23-May-2025 09:56 AM
» Replies: 42
» Views: 4258
Is this project still alive?
Last Post: agent_kith
20-May-2025 03:11 PM
» Replies: 10
» Views: 1133

[-]
SnakeoilOS Mission Statement

Our mission is to create a free to use computer OS that is easy to install, intuitive to operate and play music that will connect and engage with you emotionally.

SnakeoilOS gives you the freedom to spend more time on listening, enjoying and exploring music. Wasting time on computers is now a thing of the past! Everything is constantly evolving/improving. Please check back often for updates.

If you like this project, do show your support with a small token donation. All donations collected will be used to run this website, and for purchasing new equipment for the project.