AD738x Platform Build Linux & the Devicetree - ArrowElectronics/data-storm-daq GitHub Wiki
-
Source the environment
$ source ~/gcc-linaro/gcc-linaro-5.5.0-2017.10-x86_64_arm-linux-gnueabi/env.sh -
Clone the git repo
$ cd ~/ad738x $ git clone https://github.com/ArrowElectronics/linux.git -
Change into the new repo
$ cd linux -
Check out the Altera 4.19 branch
$ git checkout altera_4.19 -
Set the defconfig
$ make socfpga_tei0022_adi_defconfig -
Build the kernel
$ make zImage -
Build the device tree blob
-
To build the device tree blob for AD7380/AD7383/AD7386
$ make socfpga_cyclone5_tei0022_02_axi_hdmi_ad7380.dtb -
To build the device tree blob for AD7381/AD7384/AD7387/AD7388
$ make socfpga_cyclone5_tei0022_02_axi_hdmi_ad7381.dtb
8. Review the device tree source file
NOTE: Device tree source for AD7380 is compatible with AD7383 and AD7386. To build for those devices, follow the steps below.
-
Open device tree source file for AD7380
$ gedit arch/arm/boot/dts/socfpga_cyclone5_tei0022_02_axi_hdmi_ad7380.dts
-
Modify the compatible string as shown below in file opened.
For AD7383, modify the string highlighted below to "adi,ad7383" and save the file. For AD7386, modify the string highlighted below to "adi,ad7386" and save the file.
NOTE: Device tree source for AD7381 is compatible with AD7384, AD7387 and AD7388. To build for those devices, follow the steps below.
-
Open device tree source file for AD7381
$ gedit arch/arm/boot/dts/socfpga_cyclone5_tei0022_02_axi_hdmi_ad7381.dts
-
Modify the compatible string as shown below.
For AD7384, modify the string highlighted below to "adi,ad7384" and save the file. For AD7387, modify the string highlighted below to "adi,ad7387" and save the file. For AD7388, modify the string highlighted below to "adi,ad7388" and save the file.
Next - Update the SD Card (Linux)
Return to Build the Example Design
Return to AD738x Platform User Guide
