S B C X U s e r ' s G u i d e
v . 1 . 0 . 1
code published in the git repositories, using the
git fetch/merge
or
the
git pull
commands. For further details, please refer to section
7.3.2.7.
Assuming that you've configured the environment variables sourcing the
env.sh
script, enter the Linux sources directory (
~/xelk/linux-
2.6-imx
) and run the following commands:
dvdk@dvdk-vm:~/xelk/linux-2.6-imx$ make
imx_v7_axel_defconfig
dvdk@dvdk-vm:~/xelk/linux-2.6-imx$ make
UIMAGE_LOADADDR=0x10008000 uImage imx6q-sbcx.dtb
The former command selects the default AXEL configuration, while the
latter builds the kernel binary image with the required u-boot header and
the binary dtb file.
Default linux kernel configuration can be changed by using the standard
menuconfig
,
xconfig
,
gconfig
make targets.
Subsequent builds just require
uImage
make target to update the binary
image.
Once the build process is completed, the kernel binary image is stored
into the
linux-2.6-imx/arch/arm/boot/uImage
file, while the dtb
is stored into the
linux-2.6-imx/arch/arm/boot/dts/imx6q-
sbcx.dtb
.
These files can be copied to the
/srv/tftp/xelk/
directory with the
following commands:
dvdk@dvdk-vm:~/xelk/linux-2.6-imx$ sudo cp
arch/arm/boot/uImage /srv/tftp/xelk/
dvdk@dvdk-vm:~/dvdk/xelk/linux-2.6-imx$ sudo cp
arch/arm/boot/dts/imx6q-sbcx.dtb /srv/tftp/xelk/
7.5.3
Build a custom application
Some users may prefer to cross-compile their applications outside of the
Yocto flow. It maybe specifically useful and easier for new projects in their
prototyping and proof-of-concept stages or for any smaller applications in
general. This way users don't have to worry about creating Yocto
"recipes" for their applications and becoming familiar with the entire Yocto
build system.
In order to cross-compile an application, written in C/C++, the cross-
December, 2019
101/139
Summary of Contents for SBC AXEL
Page 2: ...S B C X U s e r s G u i d e v 1 0 1 Page intentionally left blank December 2019 2 139 ...
Page 105: ...S B C X U s e r s G u i d e v 1 0 1 December 2019 105 139 ...
Page 106: ...S B C X U s e r s G u i d e v 1 0 1 December 2019 106 139 ...
Page 107: ...S B C X U s e r s G u i d e v 1 0 1 December 2019 107 139 Fig 44 QtQuick Hello World ...
Page 119: ...S B C X U s e r s G u i d e v 1 0 1 December 2019 119 139 ...
Page 121: ...S B C X U s e r s G u i d e v 1 0 1 December 2019 121 139 ...
Page 139: ...S B C X U s e r s G u i d e v 1 0 1 December 2019 139 139 ...