R-Car/Boards/Yocto-Gen3-CommonFAQ/How to use upstream kernel on R-Car Gen3 Starter Kit.

From eLinux.org
< R-Car‎ | Boards/Yocto-Gen3-CommonFAQ
Revision as of 02:09, 11 September 2020 by Y.H. (talk | contribs) (Created page with "== How to use upstream kernel on R-Car Gen3 Starter Kit. == By replacing with upstream kernel/dtb, it 's enabled to boot it on Starter Kit.<br/> Below is how to build upstream...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

How to use upstream 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 upstream kernel.

  1. Preparing aarch64 cross-compiler
    ex.) Build Yocto SDK and install it.
    Steps from here is based on using yocto SDK.
    Please refer to the R-Car/Boards/Yocto-Gen3#Build_SDK
  2. How to build kernel of Stable/Development's repository
    git clone git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git linux
    # git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git linux
    cd linux
    source /opt/poky/x.y.z/environment-setup-aarch64-poky-linux
    make ARCH=arm64 defconfig
    make ARCH=arm64
    
  3. How to build kernel of renesas's repository
    git clone git://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-devel.git linux-renesas
    # git clone git://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-drivers.git linux-renesas
    cd linux-renesas
    source /opt/poky/x.y.z/environment-setup-aarch64-poky-linux
    make ARCH=arm64 renesas_defconfig
    make ARCH=arm64
    

See also: