IMX8MN-EVK EMMC Partition from UUU tool

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

IMX8MN-EVK EMMC Partition from UUU tool

11,997 Views
vinothkumars
Senior Contributor IV

Dear NXP,

 

We are trying to create EMMC partition by using UUU tool for custom board to flash u-boot, kernel, dtb, rootfs, application and data separately on particular partition. But, we are struggling to create proper partition for UUU tool almost a week.

Please find the EMMC partition layout,

vinothkumars_1-1608632257391.png

 

 

 

 

 

 

 

 

 

 

Currently, by default, we are using the following UUU command to flash which is have two partition (bootloader and all) and this is the default script.

.\uuu.exe -b emmc_all .\imx-boot .\imx-image

 

In android we have partition.img but, in Linux we don't have any image like that. Is there any possible to make EMMC partition from u-boot from UUU tool or is there any possible way to make partition.img for Linux

 

 

Regards,
Vinothkumar Sekar
Tags (2)
0 Kudos
31 Replies

1,112 Views
mallibeerala
Contributor III

Thank You very much.

Now Partition in SD card is created and I am loading Image, Xen, dtb files, Rootfs system into SD card partitions.

I taken ramdisk from "L4.14.98_2.0.0_ga_images_MX8QMMEK", Now uuu script is loaded successfully and partitions are created into SD card but while board running from SD card I am getting following error.

[ end Kernel panic - not syncing: No working init found. Try passing init= option to kernel. See Linux Documentation/admin-guide/init.rst for guidance.

Please find attached uuu script file and kernel_panic log file.

Thanks for your continuous support.

Mallikarjuna B.

0 Kudos

1,151 Views
shaoxiao_guo_dn
Contributor I

Select the package for your board, decompress, and then you can find initramfs.

Check the following link:

https://www.nxp.com/design/software/embedded-software/i-mx-software/embedded-linux-for-i-mx-applicat...

0 Kudos

1,144 Views
mallibeerala
Contributor III

I am using L_VIRT_4.14.98_2.0.0_4.11_0.10_ga_images_MX8QMMEK(Xen hypervisor Demo Image), In this Image fsl-image-mfgtool-initramfs-imx_mfgtools.cpio.gz.u-boot is not available but it is available in Image L4.14.98_2.0.0_ga_images_MX8QMMEK.

0 Kudos

1,140 Views
BiyongSUN
NXP Employee
NXP Employee

you can use other ramdisk from other release. 

It is just a ramdisk. 

0 Kudos

1,129 Views
mallibeerala
Contributor III

I taken ramdisk from "L4.14.98_2.0.0_ga_images_MX8QMMEK", Now uuu script is loaded successfully and partitions are created into SD card but while board running from SD card I am getting following error.

[ end Kernel panic - not syncing: No working init found. Try passing init= option to kernel. See Linux Documentation/admin-guide/init.rst for guidance.

Please find attached uuu script file and kernel_panic log file.

Thanks for your continuous support.

Mallikarjuna B.

0 Kudos

1,125 Views
BiyongSUN
NXP Employee
NXP Employee

This ticket is  IMX8MN-EVK EMMC Partition from UUU tool. 

My reply is for the partitioning in uuu script. 

could not figure out why flash sdcard have to use uuu. 

Could use sdcard reader to do so. 

 

and the L_VIRT_4.14.98_2.0.0_4.11_0.10_ga has user guide.

follow the guide to create a sdcard.  

The sdcard image could have different bootloader(flash.bin). 

If you use the uuu script should use the same bootloader as sdcard image.

or in the uuu script skip flash the bootloader to sdcard. 

FB: ucmd setenv fastboot_dev mmc
FB: ucmd setenv mmcdev ${sd_dev}
FB: ucmd mmc dev ${sd_dev}
FB: flash -raw2sparse all fsl-image-validation-imx-imx8qmmek.sdcard
#FB: flash bootloader imx-boot-imx8qmmek-sd.bin-flash_b0
#FB: ucmd if env exists emmc_ack; then ; else setenv emmc_ack 0; fi;
#FB: ucmd mmc partconf ${emmc_dev} ${emmc_ack} 1 0
FB: done

could not figure out why use the uuu to flash the sdcard for the demo. 

could use sdcard reader and linux dd command to flash the sdcard. 

or in the windows, like win32diskimager-binary tool to flash the sdcard.

 

0 Kudos

1,105 Views
mallibeerala
Contributor III

We are Working on xen hypervisor, as per xen hypervisor procedure, we have to load root file system in 2nd & 3rd partition, by using dd command for flashing total image into SD card, only root file system is loading into 2nd partition, so we are running uuu script for loading root file system in 3rd partition also.

Query: While running this PARTSTR=$'600M,7680M,83\n command ext3 type partition is creating, how can I create ext4 partition using uuu.

Thanks & Regards,
Mallikarjuna B.

 

0 Kudos

1,176 Views
shaoxiao_guo_dn
Contributor I

Please provide the corresponding log when running uuu.

0 Kudos

1,148 Views
mallibeerala
Contributor III

Please find the attached uuu script, uuu execution data file and kernel_panic file.

0 Kudos

1,499 Views
BiyongSUN
NXP Employee
NXP Employee

It is MBR, not GPT.

vinothkumars is checking for GPT. 

MBR only can have 4 primary and GPT can have 128 primary.

0 Kudos

1,480 Views
shaoxiao_guo_dn
Contributor I

Thanks again!

It seems that GPT is better. I will check it later.

But now I have another question, expecting your help.

download images to EMMC using uuu is very slow - NXP Community

0 Kudos