2358397_en-US

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

2358397_en-US

2358397_en-US

How to build memtool on i.MX 95 19mm x 19mm Evaluation Kit

I am currently working on an i.MX95 platform running Android 16 with kernel version 6.12.52.  Could someone guide me on the steps to build memtool? 


Re: How to build memtool on i.MX 95 19mm x 19mm Evaluation Kit

Hello,

Please check the attached guide.

Re: How to build memtool on i.MX 95 19mm x 19mm Evaluation Kit

Thanks for your reply.

I use static link method mentioned in page4  to successfully build memtool and push into system.

evk_95:/data/local/tmp # ./memtool 0x4acf0000 1
E
Reading 0x1 count starting at address 0x4ACF0000


According to content from page5 to page12.

I modify bsp as follow:

(1)git diff arch/arm64/configs/imx95_gki.fragment

 +CONFIG_DEVMEM=y

(2)

kernel/configs$ git diff b/android-6.12/android-base-conditional.xml

@@ -13,10 +13,10 @@
CONFIG_AEABI
y


-
+

CONFIG_OABI_COMPAT
n
@@ -97,10 +97,10 @@
y


-
+

kernel/configs$ git diff c/android-6.12/android-base-conditional.xml

@@ -13,10 +13,10 @@
CONFIG_AEABI
y


-
+

CONFIG_OABI_COMPAT
n
@@ -97,10 +97,10 @@
y


-
+

(3)

kernel/configs$ git diff b/android-6.12/android-base.config

-# CONFIG_DEVMEM is not set


kernel/configs$ git diff c/android-6.12/android-base.config
-# CONFIG_DEVMEM is not set



After applying three parts patches, I use following commans to rebuild the whole bsp successfully.

source build/envsetup.sh
lunch evk_95-nxp_stable-userdebug
export TARGET_RELEASE=nxp_stable
build_build_var_cache
./imx-make.sh -j4 2>&1 | tee build-log.txt

The result checked under out folder.

out/target/product/evk_95$ cat obj/KERNEL_OBJ/.config | grep "CONFIG_DEVMEM"
CONFIG_DEVMEM=y

Finally, I execute command to reproduce NXP kernel and produce boot.image:

TARGET_IMX_KERNEL=true make bootimage

I use SD card to flash image and not able to boot into homescreen.

Error message as follow:

[ 13.954824][ T1] init: Wait for partitions returned after 10010ms
[ 13.961248][ T1] init: bool android::init::BlockDevInitializer::InitDevices(std::set<:string>): partition(s) not found after polling timeout: boot_a, dtbo_a, init_boot_a, metadata, super, vbmeta_a
[ 13.979426][ T1] init: Failed to create devices required for first stage mount
[ 13.987629][ T1] init: InitFatalReboot: signal 6
[ 13.993865][ T1] init: #00 pc 00000000003d4ed4 /init
[ 13.995444][ T14] sdhci-esdhc-imx 42860000.mmc: Adding to iommu group 2
[ 13.999402][ T76] i2c 1-0074: deferred probe pending: pca953x: reg get err
[ 14.006372][ T1] init: Reboot ending, jumping to kernel
[ 14.007156][ T14] sdhci-esdhc-imx 42860000.mmc: Got CD GPIO
[ 14.029979][ T1] kvm: exiting hardware virtualization
[ 14.035397][ T1] reboot: Restarting system with command 'bootloader'


Have I missed any steps or there are additional steps on imx95 bsp?



Re: How to build memtool on i.MX 95 19mm x 19mm Evaluation Kit
Please try to rebuild using the Android 16 flow, not the Android 12 PDF flow.
Re: How to build memtool on i.MX 95 19mm x 19mm Evaluation Kit

Sorry for not replying so long.

I have already fix this problem by following steps provide by PDF on imx95 platform.

Previous problem might be caused by not doing clean build.

I add related change into patch file for anyone want to reference.

Tags (1)
No ratings
Version history
Last update:
‎05-30-2026 04:09 AM
Updated by: