Skip to content

Commit 96a2c62

Browse files
author
Mattijs Korpershoek
committed
feat(android): kernel: Move "new drivers" to end of page
This deserves a section on its own, since some users might just want to rebuild the existing kernel without modifying the defconfig. Move this to the end of the page and change header to be a separate chapter. Signed-off-by: Mattijs Korpershoek <[email protected]>
1 parent b8d0d53 commit 96a2c62

File tree

1 file changed

+31
-29
lines changed

1 file changed

+31
-29
lines changed

source/android/Foundational_Components_Kernel.rst

Lines changed: 31 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,38 @@ The usual (``make menuconfig``) is done via ``bazel`` command :
9393
will be used to create :file:`boot.img`
9494

9595

96+
Rebuild Android images
97+
======================
98+
99+
.. ifconfig:: CONFIG_part_variant in ('AM62X', 'AM62PX')
100+
101+
We should re-generate the Android images to include the newly build kernel.
102+
Follow the Android :ref:`android-build-aosp` to do so.
103+
104+
*********************
105+
Flashing instructions
106+
*********************
107+
108+
.. ifconfig:: CONFIG_part_variant in ('AM62X', 'AM62PX')
109+
110+
In order to flash a new kernel, several images should be flashed:
111+
112+
.. code-block:: console
113+
114+
$ adb reboot fastboot
115+
< Wait for fastbootd reboot >
116+
117+
$ cd <PATH/TO/IMAGES>
118+
$ fastboot flash boot boot.img
119+
$ fastboot flash vendor_boot vendor_boot.img
120+
$ fastboot flash vendor_dlkm vendor_dlkm.img
121+
$ fastboot reboot
122+
123+
The board should boot with the new kernel.
124+
125+
********************
96126
Enabling new drivers
97-
====================
127+
********************
98128

99129
Since the kernel is based on the
100130
`Generic Kernel Image <https://source.android.com/docs/core/architecture/kernel/generic-kernel-image>`_,
@@ -129,31 +159,3 @@ To enable new modules:
129159
130160
#. Finally, rebuild the Android images.
131161
132-
Rebuild Android images
133-
======================
134-
135-
.. ifconfig:: CONFIG_part_variant in ('AM62X', 'AM62PX')
136-
137-
We should re-generate the Android images to include the newly build kernel.
138-
Follow the Android :ref:`android-build-aosp` to do so.
139-
140-
*********************
141-
Flashing instructions
142-
*********************
143-
144-
.. ifconfig:: CONFIG_part_variant in ('AM62X', 'AM62PX')
145-
146-
In order to flash a new kernel, several images should be flashed:
147-
148-
.. code-block:: console
149-
150-
$ adb reboot fastboot
151-
< Wait for fastbootd reboot >
152-
153-
$ cd <PATH/TO/IMAGES>
154-
$ fastboot flash boot boot.img
155-
$ fastboot flash vendor_boot vendor_boot.img
156-
$ fastboot flash vendor_dlkm vendor_dlkm.img
157-
$ fastboot reboot
158-
159-
The board should boot with the new kernel.

0 commit comments

Comments
 (0)