This section will cover Linux Kernel customizations for Gemstone development boards, including topics like
activating new hardware drivers.
By the end of this section, you will have knowledge about:
- Compiling Linux Kernel for Gemstone
- Activating new hardware drivers
linux-t3-gem-o1-rt_6.1.bb
that uses the
T3 Gemstone Linux Git repository. If you need to switch to an older or
newer version, you can update the SRCREV
variable in the recipe with the commit ID of the desired version and
then run the following commands to start the compilation.
All commands below will be executed inside the distrobox. Therefore, you must first run the
devbox shell
—> task box
commands. Additionally, to switch to the Yocto environment, you need to
run the m:oeinit t3-gem-o1
command.This section will use the T3-GEM-O1 board for explanation. If you are applying these steps for a different
machine, change the machine name accordingly.
Image
file from
the <sdk-directory>/build/t3-gem-o1/deploy-ti/images
folder to the /boot
folder on your board to perform tests.
Updating Configuration with Menuconfig
If you want to enable/disable various hardware drivers or modify kernel configuration (essentially changing features defined in Kconfig), you can use the menuconfig interface.Opening the Menuconfig screen
Opening the Menuconfig screen
Making changes permanent
Making changes permanent
At this stage, you can recompile the kernel, but your changes will only remain on your local machine and will be
lost if you clean the build directory. To prevent this, follow the steps below.The above commands will save the changes you made in the menuconfig interface to the
defconfig
file
located in yocto/meta-gemstone/dynamic-layers/meta-ti/recipes-kernel/linux/linux-t3-gem-o1-rt-6.1/
.Recompiling the Kernel
Recompiling the Kernel
Image
file will be generated in the
<sdk-directory>/build/t3-gem-o1/deploy-ti/images
directory.Modifying Source Code
Open the<sdk-directory>/build/tmp-musl/work-shared/t3-gem-o1/kernel-source
folder in your text editor.
After making the desired changes, compile the kernel using the following commands. To avoid losing your
changes, you can create your own fork of the T3 Gemstone Linux repository
and push your changes there.
<sdk-directory>/build/t3-gem-o1/deploy-ti/images
directory to the /boot
directory on the SD card. If you have fixed an issue or added a new feature, you can create
a pull request to the T3 Gemstone Linux repository so the community can
benefit from it.