How to burn kernel and file system into Quad Nor flash

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

How to burn kernel and file system into Quad Nor flash

1,472 Views
stevenyu
Contributor III

Hi Support,

We have checked MFG_TOOL , and found the tool can write uboot into flash. Would you please let us know how to burn kernel and file system into flash ? 

=== below are uci2.xml used to burn uboot into flash ===

<CMD state="Updater" type="push" body="$ dd if=$FILE of=/dev/mtd0 bs=1k seek=4" ifdev="MX6SX MX6UL MX6ULL">write U-Boot to NOR flash</CMD>
<CMD state="Updater" type="push" body="$ dd if=$FILE of=/dev/mtd0 bs=1k seek=1" ifdev="MX7D">write U-Boot to NOR flash</CMD>

<!--QSPI header-->
<CMD state="Updater" type="push" body="send" file="qspi-header.sh.tar">Sending qspi header shell</CMD>
<CMD state="Updater" type="push" body="$ tar xf $FILE "> Extracting...</CMD>
<CMD state="Updater" type="push" body="send" file="files/%norconfig%">Sending QSPI header config file</CMD>
<CMD state="Updater" type="push" body="$ sh qspi-header.sh $FILE"> Generating the ascii value header</CMD>
<!--hexdump to convert ascii value to hex file-->
<CMD state="Updater" type="push" body="$ busybox hexdump -R qspi-tmp > qspi-header">Converting ascii value to hex file</CMD>
<CMD state="Updater" type="push" body="$ dd if=qspi-header of=/dev/mtd0 bs=1k seek=1" ifdev="MX6SX MX6UL MX6ULL">Writing header to NOR flash</CMD>
<CMD state="Updater" type="push" body="$ dd if=qspi-header of=/dev/mtd0 bs=1k seek=0" ifdev="MX7D">Writing header to NOR flash</CMD>
<!--delete temporary files-->
<CMD state="Updater" type="push" body="$ rm qspi-tmp">Deleting temporary file</CMD>
<CMD state="Updater" type="push" body="$ rm qspi-header">Deleting temporary file</CMD>
<CMD state="Updater" type="push" body="$ echo Update Complete!">Done</CMD>

Regards,

Steven Yu

Labels (1)
0 Kudos
7 Replies

1,071 Views
nicknick
Contributor I

Hello 

I have the same question on 6ULL

Does anybody know how to write rootfs into Quad Nor Flash.

Thank you

Nick

0 Kudos

1,071 Views
Rita_Wang
NXP TechSupport
NXP TechSupport

Hi Steven,

Here you can use the mfgtool2-yocto-mx-evk-qspi-nor-n25q256a.vbs in mfgtool to download.
Have a great day,
Rita

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

0 Kudos

1,071 Views
stevenyu
Contributor III

Hi Rita,

This vbs only write u-boot into Quad Nor Flash.

Do you know how to write kernel and file system into Nor Flash if Quad Nor Flash is big enough?

How to make partitions in Nor using mfg_tool ?

Regards,

Steven Yu

0 Kudos

1,071 Views
Rita_Wang
NXP TechSupport
NXP TechSupport

Hi Steven,

Are you using andorid or linux BSP? And which version?
Have a great day,
Rita

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

0 Kudos

1,071 Views
stevenyu
Contributor III

Hi Rita,

We download mfg_tool from 6ULL web site, and the embedded os is not Android Linux, it is Yocto.

L4.1.15_2.0.0-ga_mfg-tools.tar.gz

Regards,

Steven Yu

0 Kudos

1,071 Views
joanxie
NXP TechSupport
NXP TechSupport
this is a sample for configuration of nor flash support:
$ flash_erase /dev/mtd0 0 0 $
dd if= u-boot-mx6q-sabreauto-weimnor.bin of=/dev/mtd0 bs=128K
$ flash_erase /dev/mtd2 0 0 $="$
dd if=uImage of=/dev/mtd2 bs=128K
$ flash_erase /dev/mtd2 0 0
for more detailed information, you can refer to the mx6 AI board which supports NOR flash boot. I attached the user guide.
0 Kudos

1,071 Views
stevenyu
Contributor III

Hi Joan Xie,

$ flash_erase /dev/mtd2 0 0 $="$         ==> any typo here?!
dd if=uImage of=/dev/mtd2 bs=128K
$ flash_erase /dev/mtd2 0 0
for more detailed information, you can refer to the mx6 AI board which supports NOR flash boot. I attached the user guide.

It looks like commands you provided put u-boot to mtd0 and put uImage to mtd2. 

How to make partitions in Nor Flash using mfg_tool ?

Regards,

Steven Yu

0 Kudos