Template:Build-Linux: Difference between revisions

From Ronetix's Wiki
Jump to navigation Jump to search
(initial creation)
 
(Modify to skip Section Level 1 formatting)
Line 1: Line 1:
= Overview =
== Overview ==
The Linux kernel provides support for on-board peripherals and interfaces of the {{#var:HARDWARE_NAME}} System-on-Module
The Linux kernel provides support for on-board peripherals and interfaces of the {{#var:HARDWARE_NAME}} System-on-Module
= Building kernel for {{#var:HARDWARE_NAME}} =
 
== Building kernel for {{#var:HARDWARE_NAME}} ==
This Linux kernel is based on {{#var:KERNEL_BASED_URL}}, branch {{#var:KERNEL_BRANCH}}
This Linux kernel is based on {{#var:KERNEL_BASED_URL}}, branch {{#var:KERNEL_BRANCH}}


==== Set up the cross-compiler and CPU architecture ====
=== Set up the cross-compiler and CPU architecture ===
  $ export ARCH=arm64
  $ export ARCH=arm64
  $ export CROSS_COMPILE=/opt/cross/aarch64-ronetix-linux-11.1/bin/aarch64-ronetix-linux-gnu-
  $ export CROSS_COMPILE=/opt/cross/aarch64-ronetix-linux-11.1/bin/aarch64-ronetix-linux-gnu-
Line 11: Line 12:
http://download.ronetix.at/toolchains/crosstool-ng
http://download.ronetix.at/toolchains/crosstool-ng


==== Clone the latest revision of the repo ====
=== Clone the latest revision of the repo ===
  $ git clone https://github.com/ronetix/linux.git
  $ git clone https://github.com/ronetix/linux.git
  $ cd linux
  $ cd linux
  $ git checkout remotes/origin/{{#var:KERNEL_BRANCH}} -b {{#var:KERNEL_BRANCH}}
  $ git checkout remotes/origin/{{#var:KERNEL_BRANCH}} -b {{#var:KERNEL_BRANCH}}


==== Configure and build ====
=== Configure and build ===
  $ make {{#var:DEFCONFIG_NAME}}
  $ make {{#var:DEFCONFIG_NAME}}
  $ make
  $ make


= Build Results =
== Build Results ==
The resulted images are located in arch/arm64/boot
The resulted images are located in arch/arm64/boot


Line 39: Line 40:
|}
|}


= See also =
== See also ==
* [[{{#var:HARDWARE_NAME}} Yocto Linux | Yocto Linux]]
* [[{{#var:HARDWARE_NAME}} Yocto Linux | Yocto Linux]]
* [[{{#var:HARDWARE_NAME}} Linux|Building Linux Kernel]]
* [[{{#var:HARDWARE_NAME}} Linux|Building Linux Kernel]]
* [[{{#var:HARDWARE_NAME}} U-Boot|Building U-Boot]]
* [[{{#var:HARDWARE_NAME}} U-Boot|Building U-Boot]]

Revision as of 15:58, 16 November 2023

Overview

The Linux kernel provides support for on-board peripherals and interfaces of the System-on-Module

Building kernel for

This Linux kernel is based on , branch

Set up the cross-compiler and CPU architecture

$ export ARCH=arm64
$ export CROSS_COMPILE=/opt/cross/aarch64-ronetix-linux-11.1/bin/aarch64-ronetix-linux-gnu-

Cross-compiler can be downloaded from here: http://download.ronetix.at/toolchains/crosstool-ng

Clone the latest revision of the repo

$ git clone https://github.com/ronetix/linux.git
$ cd linux
$ git checkout remotes/origin/ -b 

Configure and build

$ make 
$ make

Build Results

The resulted images are located in arch/arm64/boot

File Name Description
Image Linux kernel image
zImage Linux kernel image, compressed
Device tree blob for

See also