MfgTool updater for iMX28 platform is crashing

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

MfgTool updater for iMX28 platform is crashing

2,403 Views
bdp42
Contributor IV

Hi,

 

I am using the Freescale imx28EVK  platform in an attempt to program NAND flash on the platform.

 

Host and Target platform details are as follows:

 

Kernel is Linux 2.6.35

BSP is  L2.6.35_1.1.0_130130.

ltib 9.1.1 ($Revision: 1.445.6.1 $)

Host platform is Ubuntu 14.04 LTS.

 

I can build uboot and the kernel and can program the SD card using the host PC and can boot the EVK platform from the SD card. I modified the kernel to support the NAND device and it correctly recognises the NAND device. I can program NAND manually using the command line tools and can boot from NAND in this way.

 

However I want to program NAND via the manufacturing tools and I need to modify the updater to include support for the NAND device we are using

 

I followed the instructions in the imx28 Linux BSP users' guide. The updater is being generated but is crashing. I've attached the console output. From this it appears to be having a problem with the RAM file system but I can't figure it out.

 

I ran ./ltib --selectype and selected mfg mode.

I also ran ./ltib -p boot_stream.spec -f

 

I looked at the following threads for guidance

 

https://community.freescale.com/thread/319727

 

https://community.freescale.com/thread/282492

 

https://community.freescale.com/thread/305098

 

The first thread mentions the initramfs.cpio.gz file and this file is created. However I can use the Mfg Tool to program the SD card using the pre-installed iMX28 profile that comes with the Mfg Tool and this profile does not have this file. This is confusing. Also the generated updater_ivt.sb file has a size of about 95MB whereas the pre-installed iMX28 updater_ivt.sb file is about 4.5MBytes and this works when programming the SD card. This first thread also refers to a rootfs.tar.bz2 file but this is not created.

 

Can anyone provide assistance?

 

Thanks,

Bruno

Original Attachment has been moved to: imx28evkConsole.txt.zip

Labels (2)
0 Kudos
Reply
5 Replies

1,693 Views
igorpadykov
NXP Employee
NXP Employee

Hi Bruno

error RAMDISK: EOF while reading compressed data

may be fixed with patch below

http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=MCIMX28EVKJ&fpsp=1&tab=Design_Tools_T...

"Updates and Patches (9)"

The purpose of this patch release is Fix the updater.sb boot issue in the

i.MX28 Linux BSP L2.6.35_1.1.0 release. (REV L2.6.35_1.1.1)  GZ (331.5 kB) L2.6.35_1.1.1_UPDATER_PATCH_UP

Best regards

igor

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

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

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

0 Kudos
Reply

1,693 Views
bdp42
Contributor IV

Hi,

I applied the patches and the symptoms have changed. It is getting further along the process but is still failing. I have attached the console output.

It can't find the flash_eraseall command that I have added to the ucl.xml file. Presumably this is not in the ram file system. So either this is not being included in the file system or I am not building the file system correctly.

I can see that the file initramfs.cpio.gz was created. I copied this to <Mfgtools>\Profiles\MX28 Linux Update\OS Firmware\ but this had no effect on the problem.

The first link mentioned in my first post states the following:

    File updater_ivt.sb and initramfs.cpio.gz should be located in <Mfgtools>\Profiles\MX28 Linux Update\OS Firmware\

    Files imx28_ivt_linux.sb, imx28_ivt_uboot.sb (if needed), and rootfs.tar.bz2 should be located in <Mfgtools>\Profiles\MX28 Linux Update\OS Firmware\files\

rootfs.tar.bz2 was not generated. Is this needed?

The other confusing thing is that initramfs.cpio.gz is not present in the iMX28 Mfg Tool directory structure than came with the Mfg Tool.

Can you clarify what files I should expect to see after the LTIB build is complete and where do I put them in the MfgTool directory structure?

Thanks,

Bruno

0 Kudos
Reply

1,693 Views
igorpadykov
NXP Employee
NXP Employee

initramfs.cpio.gz is not used for i.MX28. ucl2.xml list all necessary commands,

flash_eraseall command is not used there. Please use "Singlechip NAND" entry.

After ltib build one can create manually rootfs.tar.bz2 and put it to mfg tools folder.

Best regards

igor

0 Kudos
Reply

1,693 Views
bdp42
Contributor IV

Hi,

The problem was that the file system used by the updater did not contain the flash_eraseall MTD util. It also looks like the file system is included in the file updater_ivt.sb and is not a separate file as I originally thought.  initramfs.cpio.gz is not used and I think rootfs.tar.bz2 is the root file system used by the normal production kernel. Neither of these are used by the updater as far as I can see.

After some further digging I used LTIB to build the mtd-utils and include them into the updater. Now I can use the MTD utils to erase and program NAND flash. The system is booting from NAND but is experiencing other issues.

I still don't fully understand how this all hangs together yet.

Bruno

0 Kudos
Reply

1,693 Views
igorpadykov
NXP Employee
NXP Employee

Files in folder OS Firmware/files are used for normal

linux - they are flashed to media: nand or sd.

Files in folder OS Firmware, like updater_ivt are for

small linux image (which contains own rootfs) which runs on

processor and executes mfg tools operations.

~igor

0 Kudos
Reply