MFGTool: How to partition NOR/NAND in imx6 Sabre Auto reference board

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

MFGTool: How to partition NOR/NAND in imx6 Sabre Auto reference board

3,400 Views
karthikeyanram1
Contributor II

Hi,

We have to flash our custom image (Bootmanager, Integrity monolithic [kernel+VAS]) to NOR/NAND flash using MFG Tool using Serial Download mode.

Currently NOR and NAND has 4 partitions. The Bootstrap kernel and U-Boot is partitioning the NOR and NAND chip.

Is there any way to change this partition size?

Or we have to create new Bootstrap U-Boot and kernel image with new partition configuration?

Regards,

Karthikeyan,

k_keyan0691@yahoo.co.in

+919043955880

Labels (1)
0 Kudos
3 Replies

1,443 Views
igorpadykov
NXP Employee
NXP Employee

Hi Karthikeyan

seems partitions are defined in dts file, like

Linux/arch/arm/boot/dts/imx53-evk.dts - Linux Cross Reference - Free Electrons

can be changed in kernel boot parameters as described in attached Linux Guide

sect.4.6 Flash memory maps.

For mfg tools partition operations one can look at attached ucl2.xml

from mfg-tools  3.14.28_1.0.0 release

Best regards

igor

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

1,443 Views
karthikeyanram1
Contributor II

Hi ,

Thank for your reply. I have number of questions.

1. Which build system Freescale used ? Yocto or LTIB?

2. We are using i.MX_6_Linux_Reference_Manual.pdf guide to create the kernel image. It is mentioned in

Chapter 43

EIM NOR Driver

arch/arm/mach-mx6/board-mx6q_sabreauto.c file the NOR partition is done.

But i am not able to find this file in Freescale git as well as Yocto community git.

linux-2.6-imx.git - Freescale i.MX Linux Tree

Freescale/linux-fslc · GitHub

Which git repositary  or any patch to be added or guide to refer for kernel and uboot image creation.

3. In Manufacturing Tool V2 Linux or Android Firmware Development Guide V2.docx Page no:3 mentioned that

Please refer to the BSP User Guide, chapter Build Manufacturing Firmware

Which BSP user guide its mentioned?

4. We need two u-boot (1. In bootstrap mode 2. Actual which will be flashed.)

In Freescale_Yocto_Project_User's_Guide.pdf   6.2 The Manufacturing Tool, MFGTool mentioned that u-boot-mfgtool recipe in Yocto used to create uboot image for MFGTool.

Is is the image used in Bootstrap mode or actual image to be flashed.

Our goal is to create the Bootstrap mode U boot and kernel image with our own partition layout. Please help us.

Regards,

Karthikeyan,

k_keyan0691@yahoo.co.in

+919043955880

1,443 Views
igorpadykov
NXP Employee
NXP Employee

1. as you did not specify, answer was provided for default, latest L3.14.28

2. one can look at

Linux/Documentation/devicetree/bindings/bus/imx-weim.txt - Linux Cross Reference - Free Electrons

3. "BSP User Guide, chapter Build Manufacturing Firmware " in L3.14.28 Linux BSP means

sect.6.2 Manufacturing Tool, MFGTool Freescale_Yocto_Project_User's_Guide.pdf,

attached, also can be found on

Supporting Information (14)

L3.14.28_1.0.0_LINUX_DOCS (REV L3.14.28_1.0.0)

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

4. in 3.14.28 Mfg Tools folder /firmware contains files which are used by Mfg Tools

(firmware), folder /files - for flashing to media. It may be useful to look at ucl2.xml,

*.vbs files for better understanding.

~igor