Android Customizing the Linux kernel: Difference between revisions
From Variscite Wiki
No edit summary |
|||
Line 1: | Line 1: | ||
<!-- Set release according to "release" parameter in URL and use RELEASE_N7.1.1_1.0.0_VAR-SOM-MX6 as default | <!-- Set release according to "release" parameter in URL and use RELEASE_N7.1.1_1.0.0_VAR-SOM-MX6 as default | ||
--> {{#vardefine:RELEASE_PARAM|{{#urlget:release}}}} <!-- | --> {{#vardefine:RELEASE_PARAM|{{#urlget:release}}}} <!-- | ||
--> {{#lst:Android_Platform_Customization|{{#var:RELEASE_PARAM| | --> {{#lst:Android_Platform_Customization|{{#var:RELEASE_PARAM|RELEASE_N7.1.1_1.0.0_VAR-SOM-MX6}}}} <!-- | ||
--> {{PageHeader|{{#var:HARDWARE_NAME}} - Android {{#var:ANDROID_NAME}} {{#var:ANDROID_VERSION}} - Customizing the Linux kernel}} {{DocImage|category1={{#var:HARDWARE_NAME}}|category2=Android}} __toc__ | --> {{PageHeader|{{#var:HARDWARE_NAME}} - Android {{#var:ANDROID_NAME}} {{#var:ANDROID_VERSION}} - Customizing the Linux kernel}} {{DocImage|category1={{#var:HARDWARE_NAME}}|category2=Android}} __toc__ | ||
Revision as of 13:20, 31 December 2019
VAR-SOM-MX6 - Android Nougat N7.1.1 - Customizing the Linux kernel
Making changes to kernel configuration
$ cd ~/var_n_711_100/n_711_100_build/vendor/variscite/kernel_imx/ $ make ARCH=arm mrproper $ make ARCH=arm imx_v7_var_android_defconfig $ make ARCH=arm menuconfig
Navigate the menu and select the desired kernel functionality Exit the menu and answer "Yes" when asked "Do you wish to save your new configuration?"
$ make ARCH=arm savedefconfig $ cp arch/arm/configs/imx_v7_var_android_defconfig arch/arm/configs/imx_v7_var_android_defconfig.orig $ cp defconfig arch/arm/configs/
Making changes to the device tree
Edit
- VAR-SOM-MX6 : arch/arm/boot/dts/imx6qdl-var-som.dtsi
- DART-MX6: arch/arm/boot/dts/imx6qdl-var-dart.dtsi
For example we want to make device tree changes for SPI configuration
Refer to: SPI
Build a new boot.img
When you perform changes to the kernel, you may build boot.img solely instead of building the whole Android.
$ cd ~/var_n_711_100/n_711_100_build $ source build/envsetup.sh $ lunch -userdebug $ make bootimage
Flashing the boot image to the target
Boot the device into fastboot mode by using below commands:
$ adb reboot bootloader $ fastboot flash bootout/target/product/var_mx6/boot-<setup-name>.img Replace setup-name as per above table. $ sudo fastboot reboot