iMX6Q board restart again and again

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

iMX6Q board restart again and again

1,725 Views
hongxingyu1982
Contributor III

Hi guys

 

I use mfgtools download boot.img, recovery.img, system.img, u-boot-6q.bin, userdata.img to my target iMX6Q board. After downloading successfully, I am trying to boot the iMX6Q board, but it will not finish boot. It stops displaying to the console after "Freeing init memory:252K", and then restart, and so forth.

 

But if I download the others four image except userdata.img, it will boot ok.

 

Attachment is the log, could you help me to solve this issue ?

 

Thank you very much!

 

Best regards

Hongxing

Original Attachment has been moved to: userdata.img_restart_log.txt.zip

0 Kudos
Reply
13 Replies

1,401 Views
jimmychan
NXP TechSupport
NXP TechSupport

which BSP are you using?

please check the partition, size are created properly and your images not exceed the size of the partition.

You can try to create the partition and 'dd' the images to each partition manually.

0 Kudos
Reply

1,401 Views
hongxingyu1982
Contributor III

HI jimmy

Nice to meet you !  Thank you for your reply.

Yes, it seems the partition error.

Now I used iMX6Q as target board. I use 8G eMMC, and have tried "BOARD_USERDATAIMAGE_PARTITION_SIZE := 6189744128#5.9G", and used the mfgtools to download the userdata.img to my target board, but it can't boot. I had changed "BOARD_USERDATAIMAGE_PARTITION_SIZE := 6189744128#5.0G", 4.5G, 4.0G, 3.5G, 3.0G, 2.5G, 2.0G, all of them can't boot.
As I changed the ""BOARD_USERDATAIMAGE_PARTITION_SIZE := 1189744128#1.1G, it is OK.

Could you give me some clues?

By the way, I set BOARD_SYSTEMIMAGE_PARTITION_SIZE := 534773760.

Thanks

Br//Hongxing

0 Kudos
Reply

1,401 Views
jimmychan
NXP TechSupport
NXP TechSupport

which BSP and which MFGtool are you using?

0 Kudos
Reply

1,401 Views
hongxingyu1982
Contributor III

Hi Jimmy,

Our project is based on i.MX6 Quad with imx6_android_kk4.4.2_1.0.0-ga_core_source_bsp, and the MFGtool is Mfgtools-Rel-13.01.00_ER_MX6Q_UPDATER\MfgTool2.

Thanks
Br//Hongxing

0 Kudos
Reply

1,401 Views
jimmychan
NXP TechSupport
NXP TechSupport

Different BSP has different MFGtool.

Please use this

i.MX6Q|i.MX 6Quad Processors|Quad Core|NXP    

i.MX 6Family Manufacturing Toolkit for kk4.4.2_1.0.0 (REV KK4.4.2_1.0.0)

i.MX 6Family Manufacturing Toolkit for kk4.4.2_1.0.0.
  •  GZ
  • (194.5 MB)
  • IMX_6_MFG_kk4.4.2_1.0.0_TOOL
0 Kudos
Reply

1,401 Views
hongxingyu1982
Contributor III

Hello jimmy

Thank you very much!

I had download the tools, and unzip it. it is Mfgtools-Rel-13.01.00_ER_MX6Q_UPDATER\MfgTool2.exe. But It seems the same as I used before.

So is it the root cause ?

0 Kudos
Reply

1,401 Views
jimmychan
NXP TechSupport
NXP TechSupport

So, have you modify the mksdcard-android.sh to match your partition size?

0 Kudos
Reply

1,401 Views
hongxingyu1982
Contributor III

Hi JImmy

The partition size of mksdcard-android.sh is as blew:

#!/bin/bash

# partition size in MB
BOOTLOAD_RESERVE=8
BOOT_ROM_SIZE=8
SYSTEM_ROM_SIZE=512
CACHE_SIZE=512
RECOVERY_ROM_SIZE=8
VENDER_SIZE=8
MISC_SIZE=8

So how do I modify it? Could you show me more details.

Thanks

Br//Hongxing

0 Kudos
Reply

1,401 Views
jimmychan
NXP TechSupport
NXP TechSupport

For the partition details, please read the Android User Guide Section 4.4.1 Storage partitions.

Then you can modify the size base on your needs.

0 Kudos
Reply

1,401 Views
hongxingyu1982
Contributor III

Jimmy, the copy and past layout is not very clear, I have capture the screen and upload it. please check.Storage_partitions.png

It seems the same as mksdcard-android.sh.

0 Kudos
Reply

1,401 Views
jimmychan
NXP TechSupport
NXP TechSupport

the mfgtool (ucl.xml) execute 'fdisk' with the script 'mksdcard-android.sh' to make the partition on your storage. So you can modify the partition size in the script if needed.

0 Kudos
Reply

1,401 Views
hongxingyu1982
Contributor III

Jimmy, the Android User Guide Section 4.4.1 Storage partitions is shown below:

Partition type/index
Name
Start offset
Size
File system
Content
N/A BOOT Loader 1 KB 1 MB N/A bootloader
Primary 1 Boot 8 MB 8 MB boot.img format,
kernel + ramdisk boot.img
Primary 2 Recovery Follow Boot 8MB boot.img format,
kernel + ramdisk recovery.img
Logic 5 (Extended 3) SYSTEM Follow
Recovery 512 MB EXT4. Mount as /
system Android system files under /
system/ dir.
Logic 6 (Extended 3) CACHE Follow
SYSTEM. 512 MB EXT4. Mount as /
cache. Android cache for image
store of OTA.
Logic 7 Device follow CACHE 8 MB Ext4. To Store MAC address files.
(Extended 3)
Logic 8
Mount at /vender.
Misc
(Extended 3)
Primary 4
Follow
4M N/A For recovery store
bootloader message,
reserve.
Total - Other
images EXT4. Mount at /
data. Application data storage for
the system application and
for internal media partition
in /mnt/sdcard/ dir.
Device
DATA
Follow Misc.

It seems the same as mksdcard-android.sh.

0 Kudos
Reply

1,401 Views
hongxingyu1982
Contributor III

Hi, guys

Can anyone give me some clues for this issue?

Thanks

Hongxing

0 Kudos
Reply