<?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>topic Re: Android VTS with Generic Kernel Image (imx8mp + Android 11 2.6.0) in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Android-VTS-with-Generic-Kernel-Image-imx8mp-Android-11-2-6-0/m-p/1804688#M219837</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/229348"&gt;@alfred123&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I wound up "forward porting" the kernel from the Android 11 1.2.1 BSP - it is the correct version (5.4) that is expected by the Android 11 xTS tests.&amp;nbsp; Unfortunately, there's no other way to make the tests pass, as the VTS suite must be executed against a system running the 5.4 GKI.&lt;/P&gt;&lt;P&gt;This effort was a "shot in the dark" at the time - I think I got lucky that things worked, however your mileage may vary depending on what peripheral drivers you need.&amp;nbsp; I can report that all NXP drivers function normally, however be advised that the Google GKI provides no support for interrupts for the Trusty drivers when the GKI is loaded.&amp;nbsp; Therefore, you have to disable all of the NXP hardware codecs when the GKI/GSI is loaded on to the device.&amp;nbsp; Also, the GKI may not provide all of the symbols needed by your peripheral drivers, so be prepared to write compatibility module drivers that contain the necessary symbols.&lt;/P&gt;&lt;P&gt;I would recommend when selecting a NXP BSP, to examine the kernel version that is shipped with it and ensure it aligns with the supported/expected kernel versions for that version of Android outlined by Google &lt;A href="https://source.android.com/docs/core/architecture/kernel/android-common#feature-and-launch-kernels" target="_self"&gt;here.&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Unfortunately for the Android 11 BSPs provided by NXP, the 1.2.1 BSP had the correct kernel version, but no support for Trusty/Widevine.&amp;nbsp; So, that forced me down this particular road to get things to work and to pass the tests.&lt;/P&gt;&lt;P&gt;Hope this helps - all I can say now is: Good Luck!&lt;/P&gt;</description>
    <pubDate>Fri, 09 Feb 2024 13:29:35 GMT</pubDate>
    <dc:creator>brood</dc:creator>
    <dc:date>2024-02-09T13:29:35Z</dc:date>
    <item>
      <title>Android VTS with Generic Kernel Image (imx8mp + Android 11 2.6.0)</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Android-VTS-with-Generic-Kernel-Image-imx8mp-Android-11-2-6-0/m-p/1529700#M195755</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm currently working on running the Android VTS test suite against a custom board using the following items:&lt;/P&gt;&lt;P&gt;1. i.MX8M+&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. Android 11-2.6.0 BSP&lt;/P&gt;&lt;P&gt;The issue that I'm having is the following VTS test fails:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;vts_security_avb_test&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;With the following failures:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;AvbTest#Boot&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;AvbTest#SystemHashtree&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;AvbTest#SystemDescriptor&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;These tests must pass for us as we are a GMS certified product, all compatibility tests must pass for certification to succeed.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;From my understanding, I have to flash the Google-signed GKI (Generic Kernel Image) and vbmeta.img images to get these tests to pass.&amp;nbsp; However, when I do so, the board doesn't boot and instead gets stuck at 'Starting kernel ...'.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The procedure I'm using to flash the device is:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;1. Flash normal image compiled from Android 11 2.6.0 BSP&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2. adb reboot bootloader&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;3. fastboot -w&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;4. fastboot flash boot &amp;lt;GKI image&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;5. fastboot flash --disable-verification vbmeta &amp;lt;GKI/GSI vbmeta&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;After performing the above steps, I would expect the device to boot using GKI, however it just hangs with 'Starting kernel ...'.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I have look ahead at the Android 12 BSP, which supports shipping a generic kernel image from Google, however upgrading to the Android 12 BSP at this point is impossible due to project timelines so I must use the Android 11 2.6.0 BSP.&lt;/P&gt;&lt;P&gt;Attached are UBOOT logs from both successful boot (using compiled image from BSP) and unsuccessful boot after flashing GKI.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Sep 2022 17:34:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Android-VTS-with-Generic-Kernel-Image-imx8mp-Android-11-2-6-0/m-p/1529700#M195755</guid>
      <dc:creator>brood</dc:creator>
      <dc:date>2022-09-28T17:34:08Z</dc:date>
    </item>
    <item>
      <title>Re: Android VTS with Generic Kernel Image (imx8mp + Android 11 2.6.0)</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Android-VTS-with-Generic-Kernel-Image-imx8mp-Android-11-2-6-0/m-p/1804537#M219830</link>
      <description>&lt;P&gt;I also ran into same issue, how did you fixed the 3 test cases of vts_security_avb_test module?&lt;/P&gt;</description>
      <pubDate>Fri, 09 Feb 2024 06:43:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Android-VTS-with-Generic-Kernel-Image-imx8mp-Android-11-2-6-0/m-p/1804537#M219830</guid>
      <dc:creator>alfred123</dc:creator>
      <dc:date>2024-02-09T06:43:06Z</dc:date>
    </item>
    <item>
      <title>Re: Android VTS with Generic Kernel Image (imx8mp + Android 11 2.6.0)</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Android-VTS-with-Generic-Kernel-Image-imx8mp-Android-11-2-6-0/m-p/1804688#M219837</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/229348"&gt;@alfred123&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I wound up "forward porting" the kernel from the Android 11 1.2.1 BSP - it is the correct version (5.4) that is expected by the Android 11 xTS tests.&amp;nbsp; Unfortunately, there's no other way to make the tests pass, as the VTS suite must be executed against a system running the 5.4 GKI.&lt;/P&gt;&lt;P&gt;This effort was a "shot in the dark" at the time - I think I got lucky that things worked, however your mileage may vary depending on what peripheral drivers you need.&amp;nbsp; I can report that all NXP drivers function normally, however be advised that the Google GKI provides no support for interrupts for the Trusty drivers when the GKI is loaded.&amp;nbsp; Therefore, you have to disable all of the NXP hardware codecs when the GKI/GSI is loaded on to the device.&amp;nbsp; Also, the GKI may not provide all of the symbols needed by your peripheral drivers, so be prepared to write compatibility module drivers that contain the necessary symbols.&lt;/P&gt;&lt;P&gt;I would recommend when selecting a NXP BSP, to examine the kernel version that is shipped with it and ensure it aligns with the supported/expected kernel versions for that version of Android outlined by Google &lt;A href="https://source.android.com/docs/core/architecture/kernel/android-common#feature-and-launch-kernels" target="_self"&gt;here.&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Unfortunately for the Android 11 BSPs provided by NXP, the 1.2.1 BSP had the correct kernel version, but no support for Trusty/Widevine.&amp;nbsp; So, that forced me down this particular road to get things to work and to pass the tests.&lt;/P&gt;&lt;P&gt;Hope this helps - all I can say now is: Good Luck!&lt;/P&gt;</description>
      <pubDate>Fri, 09 Feb 2024 13:29:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Android-VTS-with-Generic-Kernel-Image-imx8mp-Android-11-2-6-0/m-p/1804688#M219837</guid>
      <dc:creator>brood</dc:creator>
      <dc:date>2024-02-09T13:29:35Z</dc:date>
    </item>
  </channel>
</rss>

