• For Layerscape ARMv8 platforms in 32bit mode:
$ make multi_v7_defconfig multi_v7_lpae.config multi_v8.config lsdk.config
To further fine tune the configuration base on your system need you can use the following make commands.
•
$ make menuconfig
Choose configure options in text based color menus, radiolists & dialogs. It is a good way to navigate through all the selectable
kernel configure options in a well-organized human-readable hierarchy and you can get a description of every option when
it is highlighted by selecting the
<Help>
button. In the device driver part of this User’s Manual we also provided the path to
the configure options needed for a feature to work in the menuconfig.
•
$ make ${FRAGMENT}.config
You can also utilize this capability to enable options for a specific feature in your custom kernel configuration quickly without
selecting each one of them in the menuconfig. In the device driver part of this User’s Manual, we listed the
CONFIG_*
symbols
needed by a specific feature/driver. Put these symbols with “=y” or “=m” depending on if you want these features/drivers to
be built-in or built as loadable kernel module into a
${FEATURE}.config
file under
arch/$ARCH/configs/
directory. Run
$
make ${FEATURE}.config
command, it will enable all these listed kernel configure options together.
Building kernel
Building the kernel is simple.
• To build kernel images and device tree images.
make
• To build loadable kernel modules:
make modules
You can supply
-j <NUM>
option to the above make commands to spin
NUM
concurrent threads to reduce build time on multicore
systems.
After a successful build:
• Compiled kernel images are in arch/${ARCH}/boot/ folder.
• Compiled device trees (dtb files) are in arch/${ARCH}/boot/dts folder.
• Compiled kernel modules are spread out in driver folders. You can extract them to a specific folder (e.g. /folder/to/install) by
using command:
$ make modules_install INSTALL_MOD_PATH=/folder/to/install
Install new kernel and modules
The path or naming convention of kernel images and modules are different for different Linux distributions. The following
instructions are based on the convention of LS1028A BSP.
Using the flex-build scripts
• Copy kernel image, dtb and kernel modules from your kernel tree to the staging folder of the flexbuild script (Skip if you are
using the
flexbuild -c linux
to build the kernel directly).
—
For 64-bit ARM:
$ cp arch/arm64/boot/Image.gz ${path-to-flexbuild}/build/linux/kernel/arm64/
$ cp arch/arm64/boot/dts/freescale/*.dtb ${path-to-flexbuild}/build/linux/kernel/arm64/
$ make modules_install INSTALL_MOD_PATH=${path-to-flexbuild}/build/linux/kernel/arm64/
Linux kernel
Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019
40
NXP Semiconductors
Summary of Contents for Layerscape LS1028A BSP
Page 135: ......