Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
D
developer.puri.sm
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Christophe Roux
developer.puri.sm
Commits
429d6b47
Commit
429d6b47
authored
Sep 23, 2019
by
David Boddie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update kernel rebuilding information to 5.2
parent
e7fcc41d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
Development_Environment/Boards/HowTo/Rebuilding_the_Kernel.rst
...opment_Environment/Boards/HowTo/Rebuilding_the_Kernel.rst
+7
-7
No files found.
Development_Environment/Boards/HowTo/Rebuilding_the_Kernel.rst
View file @
429d6b47
...
...
@@ -26,9 +26,9 @@ Installing the Toolchain
Install the necessary packages for your system. On Debian-based systems, you
can do this with the ``apt`` tool::
sudo apt install crossbuild-essential-arm64 build-essential gcc-aarch64-linux-gnu bison
sudo apt install crossbuild-essential-arm64 build-essential gcc-aarch64-linux-gnu bison
flex libssl-dev bc kmod
On Fedora, use the ``dnf`` tool::
On Fedora, use the ``dnf`` tool
to install the extra packages. For example
::
sudo dnf install gcc-aarch64-linux-gnu binutils-aarch64-linux-gnu
...
...
@@ -39,8 +39,8 @@ Building the Kernel
Clone the `linux-emcraft repository`_ and enter the working directory::
git clone
https://source.puri.sm/Librem5/linux-emcraft.git
cd linux-
emcraft
git clone
-b imx8-5.2-devkit https://source.puri.sm/Librem5/linux-next.git linux-next-5.2
cd linux-
next-5.2
For simplicity, we create a directory to hold the modules that will be built::
...
...
@@ -51,12 +51,12 @@ Compile the kernel, optionally using ``ccache`` if installed::
# With ccache:
CROSS_COMPILE='ccache aarch64-linux-gnu-' \
INSTALL_MOD_STRIP=1 INSTALL_MOD_PATH=_modules \
make ARCH=arm64 librem5-
evk
_defconfig all modules_install
make ARCH=arm64 librem5-
devkit
_defconfig all modules_install
# Without ccache:
CROSS_COMPILE=aarch64-linux-gnu- \
INSTALL_MOD_STRIP=1 INSTALL_MOD_PATH=_modules \
make ARCH=arm64 librem5-
evk
_defconfig all modules_install
make ARCH=arm64 librem5-
devkit
_defconfig all modules_install
You can also pass the ``-j`` command line option to ``make`` if you want to
compile many files in parallel, specifying the number of parallel builds as an
...
...
@@ -75,7 +75,7 @@ From the workstation, copy the kernel and device tree binary to the board,
replacing ``pureos`` with the IP address of the development board::
scp arch/arm64/boot/Image root@pureos:/boot/boot2/
scp arch/arm64/boot/dts/freescale/
librem5-evk
.dtb root@pureos:/boot/boot2/dtbs/
scp arch/arm64/boot/dts/freescale/
imx8mq-librem5-devkit
.dtb root@pureos:/boot/boot2/dtbs/
Remove the ``source`` and ``build`` symlinks from the modules directory and
copy the directory for the corresponding kernel version to the correct location
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment