<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>i.MX ProcessorsのトピックRe: [imx8mn lpddr4] how to replace kernel with my changes on android 14.0.0_2.2.0</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/imx8mn-lpddr4-how-to-replace-kernel-with-my-changes-on-android/m-p/1997842#M231018</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/107445"&gt;@bryan_hong&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The modifications in your code is in boot.img.&amp;nbsp; &amp;nbsp;it is under folder&lt;/P&gt;
&lt;P&gt;/imx-android-14.0.0_2.2.0/android_build/out/target/product/evk_8mn&lt;/P&gt;
&lt;P&gt;boot.img is a composite image, which includes the AOSP generic Kernel image and boot parameters.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="danielchen_2-1732090282223.png" style="width: 618px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/311423iE64FFFBA64984E26/image-dimensions/618x17?v=v2" width="618" height="17" role="button" title="danielchen_2-1732090282223.png" alt="danielchen_2-1732090282223.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The boot.img is from google, you can not change it.&amp;nbsp; &amp;nbsp;By default, fastboot only program the default image from google.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 20 Nov 2024 08:15:12 GMT</pubDate>
    <dc:creator>danielchen</dc:creator>
    <dc:date>2024-11-20T08:15:12Z</dc:date>
    <item>
      <title>[imx8mn lpddr4] how to replace kernel with my changes on android 14.0.0_2.2.0</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx8mn-lpddr4-how-to-replace-kernel-with-my-changes-on-android/m-p/1996856#M230968</link>
      <description>&lt;P&gt;dear nxp&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have modified as below&lt;/P&gt;&lt;P&gt;imx-android-14.0.0_2.2.0/android_build/vendor/nxp-opensource/kernel_imx$ vi arch/arm64/kernel/setup.c +97&lt;/P&gt;&lt;P&gt;pr_info("&lt;STRONG&gt;BCooting&lt;/STRONG&gt; Linux on ...&lt;/P&gt;&lt;P&gt;then, executed below&lt;/P&gt;&lt;P&gt;./imx-make.sh kernel&lt;/P&gt;&lt;P&gt;./imx-make.sh bootimage&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;fastboot flash boot_a boot.img&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But&amp;nbsp;&lt;STRONG&gt;BCooting&lt;/STRONG&gt;&amp;nbsp;did not be presented at booting.&lt;/P&gt;&lt;P&gt;How do I apply kernel modifications?&lt;/P&gt;&lt;P&gt;Thanks in advanced&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Nov 2024 06:30:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx8mn-lpddr4-how-to-replace-kernel-with-my-changes-on-android/m-p/1996856#M230968</guid>
      <dc:creator>bryan_hong</dc:creator>
      <dc:date>2024-11-19T06:30:42Z</dc:date>
    </item>
    <item>
      <title>Re: [imx8mn lpddr4] how to replace kernel with my changes on android 14.0.0_2.2.0</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx8mn-lpddr4-how-to-replace-kernel-with-my-changes-on-android/m-p/1997842#M231018</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/107445"&gt;@bryan_hong&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The modifications in your code is in boot.img.&amp;nbsp; &amp;nbsp;it is under folder&lt;/P&gt;
&lt;P&gt;/imx-android-14.0.0_2.2.0/android_build/out/target/product/evk_8mn&lt;/P&gt;
&lt;P&gt;boot.img is a composite image, which includes the AOSP generic Kernel image and boot parameters.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="danielchen_2-1732090282223.png" style="width: 618px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/311423iE64FFFBA64984E26/image-dimensions/618x17?v=v2" width="618" height="17" role="button" title="danielchen_2-1732090282223.png" alt="danielchen_2-1732090282223.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The boot.img is from google, you can not change it.&amp;nbsp; &amp;nbsp;By default, fastboot only program the default image from google.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Nov 2024 08:15:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx8mn-lpddr4-how-to-replace-kernel-with-my-changes-on-android/m-p/1997842#M231018</guid>
      <dc:creator>danielchen</dc:creator>
      <dc:date>2024-11-20T08:15:12Z</dc:date>
    </item>
    <item>
      <title>Re: [imx8mn lpddr4] how to replace kernel with my changes on android 14.0.0_2.2.0</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx8mn-lpddr4-how-to-replace-kernel-with-my-changes-on-android/m-p/1998322#M231048</link>
      <description>&lt;P&gt;thanks for your comments.&lt;/P&gt;&lt;P&gt;Could you share a document on how to modify kernels other than GKI? For example, is there a document on how to modify the source code for the vendor_boot.img?&lt;/P&gt;</description>
      <pubDate>Thu, 21 Nov 2024 00:26:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx8mn-lpddr4-how-to-replace-kernel-with-my-changes-on-android/m-p/1998322#M231048</guid>
      <dc:creator>bryan_hong</dc:creator>
      <dc:date>2024-11-21T00:26:32Z</dc:date>
    </item>
    <item>
      <title>Re: [imx8mn lpddr4] how to replace kernel with my changes on android 14.0.0_2.2.0</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx8mn-lpddr4-how-to-replace-kernel-with-my-changes-on-android/m-p/2000762#M231145</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;Yes, it is possible to modify the kernel, and the changes are reflected in the &lt;/STRONG&gt;&lt;STRONG&gt;boot.img&lt;/STRONG&gt;&lt;STRONG&gt;.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;After building, the boot.img file can be found in the following directory:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;/imx-android-14.0.0_2.2.0/android_build/out/target/product/evk_8mn/boot.img&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The &lt;STRONG&gt;boot.img&lt;/STRONG&gt; is a composite image that includes the kernel and boot parameters. When you rebuild the kernel source code your changes are incorporated into this image.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;H3&gt;&lt;SPAN&gt;Steps to Rebuild and Verify:&lt;/SPAN&gt;&lt;/H3&gt;&lt;OL&gt;&lt;LI&gt;&lt;SPAN&gt;&lt;STRONG&gt;Ensure Your Changes Are Saved:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;After modifying the kernel source file (e.g., setup.c), save the changes.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Verify the modification by reopening the file:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;vim arch/arm64/kernel/setup.c&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;&lt;STRONG&gt;Rebuild the Kernel and Boot Image:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;Clean and rebuild the kernel and boot image to ensure the changes are applied:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;./imx-make.sh clean&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;./imx-make.sh kernel&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;./imx-make.sh bootimage&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;&lt;STRONG&gt;Flash the Updated Boot Image:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;Flash the newly built boot.img to the device:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;fastboot flash boot boot.img&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;fastboot reboot&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;&lt;STRONG&gt;Verify the Modification:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;Use &lt;STRONG&gt;ADB logcat&lt;/STRONG&gt; to confirm the pr_info() message is visible at boot time:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;adb logcat -b all | grep -i "BCooting"&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Alternatively, connect via &lt;STRONG&gt;Minicom serial communication&lt;/STRONG&gt; to check the logs directly during boot.&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;H3&gt;&amp;nbsp;&lt;/H3&gt;&lt;P&gt;&lt;SPAN&gt;Your modification "BCooting Linux on ..." should now appear in the logs if all the steps are followed correctly.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Nov 2024 06:23:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx8mn-lpddr4-how-to-replace-kernel-with-my-changes-on-android/m-p/2000762#M231145</guid>
      <dc:creator>Dhaval_Shiroya</dc:creator>
      <dc:date>2024-11-25T06:23:48Z</dc:date>
    </item>
    <item>
      <title>Re: [imx8mn lpddr4] how to replace kernel with my changes on android 14.0.0_2.2.0</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx8mn-lpddr4-how-to-replace-kernel-with-my-changes-on-android/m-p/2000849#M231149</link>
      <description>&lt;P&gt;dear&amp;nbsp;Dhaval_Shiroya&lt;/P&gt;&lt;P&gt;First, thanks for your comments.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have changes `arch/arm64/kernel/setup.c` and arch/arm64/boot/dts/freescale/imx8mn-evk.dts as below.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;pr_info("&lt;STRONG&gt;BBBCooting&lt;/STRONG&gt; Linux&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;model = "&lt;STRONG&gt;N_NXP&lt;/STRONG&gt; i.MX8MNano EVK board";&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;then,&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Compile kernel, dtb and flash as below.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;rm -rf out&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;./imx-make.sh kernel&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;./imx-make.sh dtboimage&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;adb reboot bootloader&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;fastboot flash boot boot.img&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;fastboot flash dtbo_a dtbo-imx8mn.img&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;then&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;adb logcat -b all | grep -i "N_NXP"&lt;BR /&gt;01-01 00:00:00.000 0 0 I Machine model: &lt;STRONG&gt;N_NXP&lt;/STRONG&gt; i.MX8MNano EVK board&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;but&amp;nbsp;&lt;/P&gt;&lt;P&gt;adb logcat -b all | grep -i "&lt;STRONG&gt;BBBCooting&lt;/STRONG&gt;"&amp;nbsp; &amp;lt;- it can't&amp;nbsp; be founded&lt;/P&gt;&lt;P&gt;so, In summary&lt;/P&gt;&lt;P&gt;It seems that Google's boot.img not being modified.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Bryan&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Nov 2024 08:22:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx8mn-lpddr4-how-to-replace-kernel-with-my-changes-on-android/m-p/2000849#M231149</guid>
      <dc:creator>bryan_hong</dc:creator>
      <dc:date>2024-11-25T08:22:35Z</dc:date>
    </item>
  </channel>
</rss>

