- 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
Check GCC version is 4.9.x.
gcc --version
Check gcc version to build the running linux kernel image.
cat /proc/version
Choose place of kernel source files & directory, e.g. '.' current folder.
rpi-source -d .
git clone https://github.com/audiophonics/I-Sabre-K2M
cd ./I-Sabre-K2M
make
sudo make modules_install
make dtbs
sudo make install_dtbo
Add following lines.
dtoverlay=i-sabre-k2m
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 K2M DAC], device 0: I-Sabre K2M DAC i-sabre-k2m-dai-0 []