- Kernel Source
- dtc (Device Tree Compiler)
- GCC 4.9.2 (to matching for running linux kernel image)
Install "rpi-source" software.
The "rpi-source" command automaticaly downloads the kernel source that matched running linux kernel version.
https://github.com/notro/rpi-source/wiki
to install:
sudo wget https://raw.githubusercontent.com/notro/rpi-source/master/rpi-source -O /usr/bin/rpi-source && sudo chmod +x /usr/bin/rpi-source && /usr/bin/rpi-source -q --tag-update
Install dtc by package system.
sudo apt-get install device-tree-compiler
If bc is not installed, must install bc.
sudo apt-get install bc
Install GCC-4.9.x by package system.
sudo apt-get install gcc-4.9 g++-4.9
Change default GCC.
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.9 10
Choose place of kernel source files & directory, e.g. '.' current folder.
rpi-source -d .
T.B.D.
cd ./I-Sabre-Q2M
make
sudo make modules_install
make dtbs
sudo make install_dtbo
Add following lines.
dtoverlay=i-sabre-q2m
dtparam=i2c_arm=on
Use aplay -l command to check audio card is added.
aplay -l
Installed audio card is follows.
card xxx: DAC [I-Sabre Q2M DAC], device 0: I-Sabre Q2M DAC i-sabre-q2m-dai-0 []