REL 1.0
Page 22 of 69
iWave Systems Technologies Pvt. Ltd.
iW-RainboW-G15D Linux User Manual
Audio-in patch apply procedure
In
Linux,
apply
the
patch
file,
“PATCH003-iW-PRDVZ-SC-01-R5.0-REL1.0-Linux4.1.15_Kernel_audio-
in_customization.patch” which shifts the data to the right location through SDMA script and makes AC’97 Audio IN
tone proper. The audio-in patch file has to be applied on top of the Linux kernel. To prepare the Linux kernel for the
iW-RainboW-G15M-Q7 platform, refer the section Linux kernel in standalone compilation.
Note: This workaround patch disables the SPI interface DMA mode operation and enables PIO mode operation.
Copy the audio-in patch file to current directory.
host@host/<Directory>~$cp
/<path_to_
iW-RainboW-G15M-Q7-RX.X-RELX.X-Linux4.1.15-
YoctoKrogoth_Deliverables>/
iW-RainboW-G15M-Q7-RX.X-RELX.X-Linux4.1.15-
YoctoKrogoth_Deliverables/Source-Code/Linux/Kernel/PATCH003-iW-PRDVZ-SC-01-RX.X-RELX.X-
Linux4.1.15_Kernel_audio-in_customization.patch .
Change the directory to Linux source code directory.
host@host/<Directory>~$cd <path_to_linux-iwg15>/linux-iwg15
To apply the audio-in patch file, execute the below command.
host@host/<Directory>/linux-iwg15~$patch -Np1 < /<path to patch file>/PATCH003-iW-PRDVZ-SC-
01-RX.X-RELX.X-Linux4.1.15_Kernel_audio-in_customization.patch
Export the architecture, cross compiler and tool chain path.
host@host/<Directory>/linux-iwg15~$export ARCH=arm
host@host/<Directory>/linux-iwg15~$export
PATH=$PATH:/opt/fsl-imx-x11/4.1.15-
2.1.0/sysroots/<processor>-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi
host@host/<Directory>/linux-iwg15~$export CROSS_COMPILE=arm-poky-linux-gnueabi-
To configure the kernel for iW-RainboW-G15M-Q7, execute the below command.
host@host/<Directory>/linux-iwg15~$make iw_rainbowg15m_q7_defconfig
To compile the kernel module drivers and kernel image, execute the below commands.
host@host/<Directory>/linux-iwg15~$make
After successful compilation, kernel image (zImage) and device tree (.dtb) will be created in the below path
respectively.
~/linux-iwg15/arch/arm/boot/zImage
~/linux-iwg15/arch/arm/boot/dts/imx6*-iwg15m-q7*.dtb
Refer the BINARY PROGRAMMING section to update the Linux kernel binary