https://elinux.org/index.php?title=R-Car/Boards/Yocto-Gen3-CommonFAQ/How_to_use_Renesas_repository%27s_kernel_on_R-Car_Gen3_Starter_Kit.&feed=atom&action=historyR-Car/Boards/Yocto-Gen3-CommonFAQ/How to use Renesas repository's kernel on R-Car Gen3 Starter Kit. - Revision history2024-03-29T09:40:51ZRevision history for this page on the wikiMediaWiki 1.31.0https://elinux.org/index.php?title=R-Car/Boards/Yocto-Gen3-CommonFAQ/How_to_use_Renesas_repository%27s_kernel_on_R-Car_Gen3_Starter_Kit.&diff=529236&oldid=prevY.H.: Created page with "== How to use Renesas repository's kernel on R-Car Gen3 Starter Kit. == By replacing with upstream kernel/dtb, it 's enabled to boot it on Starter Kit. Below is how to build u..."2020-09-18T10:19:27Z<p>Created page with "== How to use Renesas repository's kernel on R-Car Gen3 Starter Kit. == By replacing with upstream kernel/dtb, it 's enabled to boot it on Starter Kit. Below is how to build u..."</p>
<p><b>New page</b></p><div>== How to use Renesas repository's kernel on R-Car Gen3 Starter Kit. ==<br />
By replacing with upstream kernel/dtb, it 's enabled to boot it on Starter Kit.<br />
Below is how to build upstream kernel.<br />
# Preparing aarch64 cross-compiler<br />
#: It is enough to execute one of the following:<br />
## Using gcc-aarch64-linux-gnu<br />
##: <syntaxhighlight lang=bash><br />
sudo apt install g++-aarch64-linux-gnu<br />
export CROSS_COMPILE=aarch64-linux-gnu-<br />
export ARCH=arm64<br />
</syntaxhighlight><br />
## Using Yocto SDK<br />
##: Please refer to the [[R-Car/Boards/Yocto-Gen3##Build_SDK]] to install SDK.<br />
##: <syntaxhighlight lang=bash><br />
source /opt/poky/x.y.z/environment-setup-aarch64-poky-linux<br />
</syntaxhighlight><br />
## Using other cross compiler(ex. [https://releases.linaro.org/components/toolchain/binaries/ linaro], [https://mirrors.edge.kernel.org/pub/tools/crosstool/ kernel.org] and so on)<br />
##: Set environment variable "CROSS_COMPILE" and "ARCH":<br />
##: <syntaxhighlight lang=bash><br />
export CROSS_COMPILE=<path/to/compiler>/<compiler_prefix><br />
export ARCH=arm64<br />
</syntaxhighlight><br />
# Build kernel<br />
## The case to use latest drivers<br />
##: <syntaxhighlight lang=bash><br />
git clone git://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-drivers.git<br />
cd renesas-drivers<br />
make renesas_defconfig<br />
make<br />
</syntaxhighlight><br />
## The case to use latest SoC or features<br />
##: <syntaxhighlight lang=bash><br />
git clone git://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-devel.git<br />
cd renesas-devel<br />
make renesas_defconfig<br />
make<br />
</syntaxhighlight><br />
## Renesas Linux BSP which is used in Yocto BSP<br />
##: <syntaxhighlight lang=bash><br />
git clone git://github.com/renesas-rcar/linux-bsp<br />
cd linux-bsp<br />
make defconfig<br />
make<br />
</syntaxhighlight><br />
<br />
[[Category: R-Car/FAQ/Gen3]]<br />
[[Category: R-Car/FAQ/Gen3/H3SK]]<br />
[[Category: R-Car/FAQ/Gen3/M3SK]]</div>Y.H.