3.2 Build Linux Kernel
Enter the work directory and uncompress the Linux Kernel source code package
:
$ cd <WORKDIR>/
$ tar -jxvf myir-kernel.tar.bz2
$ cd myir-kernel
Compile Kernel
:
The configuration of Kernel for MYD-AM335X series is located at myir-
kernel/arch/arm/configs/,customers can compile Kernel as shown below:
Table 3-2-1 Kernel Config Files for MYIR Development Boards
Board Type
Configuration File Name
MYD-AM335X
myd_c335x_defconfig
MYD-AM335X-Y
myd_y335x_defconfig
MYD-AM335X-J
myd_j335x_defconfig
Compile Kernel for MYD-AM335X development board
:
If users want to compile and install kernel modules, they should set
INSTALL_MOD_PATH
,
it is useful for debug kernel modules with NFS.
$
export
INSTALL_MOD_PATH=$HOME/
export
/rootfsa/
$ make distclean
$ make myd_c335x_defconfig
$ make zImage dtbs
$ make modules
$ make modules_install
The kernel modules have a version magic, it should match the version of zImage. So
if users change the version of kernel, they should recompile the zImage and kernel
modules together. If the version does not match, the kernel will complain as below:
[ 2750.480576] ti_am335x_adc: disagrees about version of symbol dev_warn
[ 2750.487670] ti_am335x_adc: Unknown symbol dev_warn (err -22)
[ 2750.493977] ti_am335x_adc: disagrees about version of symbol dev_err
16