![]() |
A developer tool to build a Moode image - Printable Version +- Moode Forum (https://moodeaudio.org/forum) +-- Forum: moOde audio player (https://moodeaudio.org/forum/forumdisplay.php?fid=3) +--- Forum: Support (https://moodeaudio.org/forum/forumdisplay.php?fid=7) +--- Thread: A developer tool to build a Moode image (/showthread.php?tid=124) Pages:
1
2
|
A developer tool to build a Moode image - badbat75 - 04-24-2018 Hi all, I want to share with you the tool I'm developing to accelerate the build of a moode image in order to speedup tests when a change in the build is included. Here you can download the tool. https://github.com/badbat75/rpi_moode_build This is under development even if I released a version 1.0 dedicated to build a stable r4.0. It is divided in 2 scripts.
In the github repository you can see the README.md to config your build. From the second build you can speed up the process to 4 times, on a RPi3 I got the entire build in 5 minutes. (depends on the updates) At the end of the build you can find the logs of the two scripts in different files, to debug what happened during the build. For example: Code: ZIP_FORMAT=XZ ./buildmoode.sh runinchroot.sh Code: ENABLE_CCACHE=0 ENABLE_SQUASHFS=0 ./buildmoode.sh runinchroot.sh Code: DEV_MODE=1 ./buildmoode.sh RE: A developer tool to build a Moode image - Tim Curtis - 04-24-2018 Very cool. Are you seeing significantly faster Build times with cache and compiler parallels? -Tim RE: A developer tool to build a Moode image - badbat75 - 05-04-2018 MoodeBuild v1.1 Changelog:
https://github.com/badbat75/rpi_moode_build/archive/v1.1.zip Time to rebuild on an RPi3 with cache hit at 100% image extraction included (no OS updates available currently): 25mins (previous value was wrong) RE: A developer tool to build a Moode image - TheOldPresbyope - 05-04-2018 (05-04-2018, 10:10 AM)badbat75 Wrote: MoodeBuild v1.1 @badbat75 Thanks. I haven't had time to kick the tires and try the lights but I hope to soon. Long ago I was a proponent of parallel-izing but IIRC Tim ran into a problem running parallel make jobs on every component and stopped doing it. I don't remember which software component was the culprit. I take it parallel-make jobs are working fine for you. Regards, Kent RE: A developer tool to build a Moode image - badbat75 - 07-17-2018 Hi guys, I released a completely new build tool that offers more functionalities and boost up more the build of moode. Changelog: Code: Complete refactoring of the script You can find more information here: https://github.com/badbat75/bbbuild/releases And download it from here: https://github.com/badbat75/bbbuild/archive/2.0.zip Command line usage: https://github.com/badbat75/bbbuild You can build your moode running: Code: ZIP_FORMAT=XZ ./bbbuild moode-r42 RE: A developer tool to build a Moode image - Tim Curtis - 07-17-2018 Nice! I'll check it out. If you wouldn't mind, create a Thread in the Test Team section to discuss APT-X and AAC codecs for Bluetooth. -Tim RE: A developer tool to build a Moode image - badbat75 - 07-18-2018 (07-17-2018, 12:16 PM)Tim Curtis Wrote: Nice! I'll check it out. Oh yes, I will. RE: A developer tool to build a Moode image - FizzyTea - 07-18-2018 Hello @badbat75 I have used your tool to build moode 4.2. I entered interactive mode to add files ssh, wpa_supplicant.conf, moodecfg.txt before flashing using etcher and booting the image. All seems good initially. However when I attempt to edit /var/www/js/scripts-panels.js I am told (by nano) Code: File '/var/www/js/scripts-panels.js' is unwritable Permissions look normal compared to permissions on moode 4.2 built with mosbuild. Root is the owner and has read-write permissions. Doing some tests I try to create some blank files. Using 'sudo touch test' I am told Code: touch: cannot touch 'test': Read-only file system For /var/www/js & /var/www this is the case. I am however able to create a blank file (using sudo of course) in /var/ Any thoughts would be appreciated. Thanks. RE: A developer tool to build a Moode image - TheOldPresbyope - 07-18-2018 (07-17-2018, 12:16 PM)Tim Curtis Wrote: Nice! I'll check it out. So I see openaptx is used to gain aptx capability. Quoting from the openaptx github README.md Quote:This project is for research purposes only. Without a proper license private and commercial usage might be a case of a patent infringement. If you are looking for a library, which can be installed and used legally (commercial, private and educational usage), go to the Qualcomm® aptX™ homepage and contact Qualcomm customer service. I'm just saying.... Regards, Kent RE: A developer tool to build a Moode image - badbat75 - 07-18-2018 (07-18-2018, 11:48 AM)FizzyTea Wrote: Hello @badbat75 I have used your tool to build moode 4.2. By default, /var/www is mounted on squashfs that is a readonly filesystem. If you want to disable during the build add ENABLE_SQUASHFS=0 before bbbuild command: Code: ENABLE_SQUASHFS=0 ZIP_FORMAT=XZ ./bbbuild moode-r42 |