MiczFlor / RPi-Jukebox-RFID

A Raspberry Pi jukebox, playing local music, podcasts, web radio and streams triggered by RFID cards, web app or home automation. All plug and play via USB. GPIO scripts available.
http://phoniebox.de
MIT License
1.33k stars 395 forks source link

Spike: checkout yocto as optional solution to create phoniebox RPi images: #791

Open ZyanKLee opened 4 years ago

ZyanKLee commented 4 years ago

https://www.yoctoproject.org/

lj2000 commented 4 years ago

Thank you for opening this spike! To my mind yocto is perfect for creating our specific Linux distribution / Board support package for the Phoniebox. In another (private) tinker project I set up an yocto environment for my RPI with the help of the following site: https://jumpnowtek.com/rpi/Raspberry-Pi-Systems-with-Yocto.html

Of course we need some special packages for the phoniebox, too But I think this page helps us to perform the first steps for getting the RPI up and running using the yocto build tooling.

BTW: There is another reason for yocto: At the moment the Phoniebox is based on the Raspberry Pi. Using yocto we "just" need to change the meta-layer of the hardware and so we can employ the Phoniebox on other hardware platforms, too.

ZyanKLee commented 4 years ago

Thanks a lot for this link. I was kind of lost with this whole endeavor when I struggled to get the build succeeding. Perhaps this will help me with it.

Would you be willing to assist with a PoC or answer questions when I hit the next wall?

lj2000 commented 4 years ago

I am very happy to assist you with a PoC and/or ( try :) ) to answer questions! I already have a running yocto environment for my (other) raspberry project which I want to update to the actual yocto revision the next days and weeks.

saeugetier commented 4 years ago

I may help you with the yocto integration as well. It might be an easy deployment solution. I have done some projects with raspberry pi and yocto in the past.

ZyanKLee commented 4 years ago

Yesterday I found few minutes to tinker with it. Followed the manual linked by @lj2000 and tried to create my own meta layer with a recipe. That failed sure to obvious reasons (user pi not being available). Then I went to bed.

Thanks for offering your help. I will definitely come back to you once I understood the basics enough to not make a fool of myself by asking too easy questions :wink:

thomas-roos commented 2 years ago

Hi, I'm currently working on this https://github.com/ThomasRausU/yocto-rfid-jukebox May someone likes to help with the recipes and learn about yocto.

pabera commented 2 years ago

@ThomasRausU Nice, this looks very interesting. Your template seems to target 1 single Jukebox setup though which is, looking at it historically, something unique. Every single Phoniebox has a different set up it seems. This is why there is an installer to support custom aspects like special RFID readers or custom sound cards.

Some developers are currently working on a V3 of the Phoniebox software (dev branch) and they had thoughts about building Pi images using buildroot. They would not allow it to bypass custom installations for RFID or sound, but they could avoid the Phoniebox builders to install the actual software or webapp at least.

If you like to help with that, why don't you join the future3 developer channel on Matrix.org (via Element.io). We discuss all sorts of things there and we love to have more members on board.

thomas-roos commented 2 years ago

Hi, the https://github.com/ThomasRausU/yocto-rfid-jukebox is an example what you can do with the https://github.com/ThomasRausU/meta-jukebox yocto layer - there is also a future3/develop branch which is referenced in the yocto-rfid-jukebox example. Current dev status is that backend is running, frontend is build and running. Soundcard and rfid reader is working. As you said there are a lot of different setups - I personally don't know what people are expecting what phoniebox should be. Should it be a image that is working out of the box or a application to install beside other applications. For my part I like to have a phonybox for my child and build it with yocto, because I know and love yocto. As I don't like php I started to continue this winter with V3. My plan is to have a working box by xmas ;) I will join the chat.

saeugetier commented 2 years ago

Hi, I'm currently working on this https://github.com/ThomasRausU/yocto-rfid-jukebox May someone likes to help with the recipes and learn about yocto.

Nice work. I will look into your repository. And maybe i find some time to contribute. I have some experiences with Yocto. I was building a photobooth application in Yocto: https://github.com/saeugetier/photobooth

pabera commented 2 years ago

Same invitation goes to you @saeugetier 😉 .. We could use help in this domain!