So I went down the path of getting Buildroot working on my Raspberry Pi Zero W and then the Audio Injector sound card.
Buildroot boots on the Zero W in 3 seconds!
Audio works in seconds!
If anyone else wants to try this here is the tutorial I am following: http://www.jumpnowtek.com/rpi/Raspberry ... droot.html
I noticed flatmax had some issues here that I did not run into: https://www.raspberrypi.org/forums/view ... &p=1263867
Here are some of the changes to Buildroot [master] in his [jumpnow] branch that all worked for me.
- Newer versions of the Linux kernel and RPi firmware
- Some custom applications primarily as an experiment in how to add custom packages to Buildroot. The source for all of them are public github repos.
- serialecho - a C, Makefile based app
- tspress - a Qt5 Widgets GUI app using qmake
- pytouch.py - a PyQt5 app
- Custom Buildroot defconfigs to support my images for the RPi boards.
- Sample rootfs overlays to customize conf files. <- This is the important one!
Some patches to the kernel build so that the RPi DTS overlays (DTBOs) are built from the kernel source and not just downloaded from the RPi firmware github repo. This make its a little easier (at least for my workflow) to include custom dts overlays when you need them by just including them as kernel patches.
So lets get started:
Code: Select all
git clone -b jumpnow https://github.com/jumpnow/buildroot
cd buildroot
make jumpnow_rpi0_defconfig
make
Code: Select all
sudo dd if=output/images/rpi0-sdcard.img of=/dev/sdb bs=1M
Code: Select all
make menuconfig
Also I added PREEMPT support to the kernel:
Code: Select all
made linux-menuconfig
Code: Select all
sudo nano /boot/config.txt
add: dtoverlay=audioinjector-wm8731-audio
Oh yea! don't forget to load the alsa settings from the audio injector deb.tar.gz file in the setup thread:
Code: Select all
alsactl --file asound.state.RCA.thru.test restore
amixer sset 'Master' 121
amixer sset 'Capture' 23
alsactl store