MFG Tool Permission denied error

cancel
Showing results for 
Search instead for 
Did you mean: 

MFG Tool Permission denied error

512 Views
gopinathsriniva
Contributor III

Hello Everyone,

I am flashing sabreSD IMX7 NAND using MFG tool. When I tried with prebuilt MFG images it works fine. But when I tried my own "MFG u-boot" I am getting below error while flashing.

r command $ nandwrite -p /dev/mtd1 -p $FILE.
UTP: received command '$ flash_erase /dev/mtd2 0 0'
UTP: executing "flash_erase /dev/mtd2 0 0"
Erasing 2048 Kibyte @ e00000 -- 100 % complete
UTP: sending Success to kernel for command $ flash_erase /dev/mtd2 0 0.
utp_poll: pass returned.
UTP: received command 'send'
UTP: sending Success to kernel for command send.
UTP: received command '$ nandwrite -p /dev/mtd2 -p $FILE'
UTP: executing "nandwrite -p /dev/mtd2 -p $FILE"
Writing data to block 0 at offset 0x0
UTP: sending Success to kernel for command $ nandwrite -p /dev/mtd2 -p $FILE.
utp_poll: pass returned.
UTP: received command '$ flash_erase /dev/mtd3 0 0'
UTP: executing "flash_erase /dev/mtd3 0 0"
flash_erase: error!: /dev/mtd3
error 13 (Permission denied)
UTP: sending Non-success to kernel for command $ flash_erase /dev/mtd3 0 0.
utp_poll: exit with status 65280

By the way, I am referring "Manufaturing Tool V2 Linux or Android Firmware Development guide" document given in the MFG tool package. I have successfully built the kernel image using "imx_v7_mfg_defconfig" def config file. But in case of u-boot there is no direct def_config file to support MFG u-boot.

Can you help me in resolving this issue? 

Note:

Here I am not building the u-boot and kernel using YOCTO. 

Labels (2)
Tags (1)
0 Kudos
2 Replies

142 Views
gopinathsriniva
Contributor III

Hi,

Update 1:

When I tried with Yocto build u-boot, I am getting below error. 

mtd: opening: "/dev/mtd0"
NFC geometry :
ECC Strength : 40
Page Size in Bytes : 8762
Metadata size : 10
ECC Chunk Size in byte : 1024
ECC Chunk count : 8
Block Mark Byte Offset : 7692
Block Mark Bit Offset : 0
====================================================
mtd: opened '/dev/mtd0' - '(null)'
mtd: mtd size too small
mtd_init futp_poll: exit with status 1280

I think, this error is due to NAND support is not added in u-boot. So Can anyone explain, what is the exact patch I need to add in u-boot for MFG tool?

Thanks in advance.

0 Kudos

142 Views
igorpadykov
NXP TechSupport
NXP TechSupport

Hi Gopinath

for uboot please refer to attached Yocto Guide sect.6.2 Manufacturing Tool, MFGTool

(recipy u-boot-mfgtool). For permissions issues one can try to rebuild mfg tools image from scratch.

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

0 Kudos