I'm using im6dl board with 1Gb RAM and android bsp.
The board boots fine but it goes into suspend mode the minute I disconnect the usb otg.
The kernel command line is
Kernel command line: console=ttymxc0,115200 init=/init video=mxcfb0:dev=ldb,fbpix=RGB32,bpp=32 video=mxcfb1:off video=mxcfb2:off video=mxcfb3:off vmalloc=128M androidboot.console=ttymxc0 consoleblank=0 androidboot.hardware=freescale cma=448M galcore.contiguousSize=33554432 buildvariant=userdebug androidboot.selinux=permissive androidboot.dm_verity=disabled android.permission.WAKE_LOCK buildvariant=user androidboot.serialno=2421c1d4e6b4bd55 androidboot.storage_type=emmc androidboot.serialno=2421c1d4e6b4bd55 androidboot.storage_type=emmc.
Please refer the attached document for full log.
How can I modify the android source to prevent the board from entering suspend mode?
Hi Sujay
from log i.MX6SOLO is used and one can check if issue persist in linux using sect.5 Enabling Solo
Emulation attached Linux Guide and software described in i.MX Software and Development Tools | NXP
As for android, may be useful to rebuild all image from scratch for "i.MX6Solo SABRE-SD"
platform. pay attention to sect.3.3 Building U-Boot images, sect.3.4 Building a kernel image
attached Android Guide.
Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hi Igor
imxsolo and imxdl images can be used interchangeably the issue here is removing auto suspend not rebuilding images.
Hi Sujay
had you used maxcpus=1 in kernel boot parameters for imxsolo image.
For Android suspend mode one can look at general development resources:
https://www.thecustomdroid.com/disable-doze-specific-apps/
Power management | Android Developers
Best regards
igor