imx8mp update NAND from userspace

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

imx8mp update NAND from userspace

616 Views
AngelF
Contributor II

Hello,

We are working on a custom board based on iMX8MP chipset derivated from the evaluation board EVK-IMX8MP, and we got FW from NXP version 5.4.70_2.3.2.

We have NAND flash, and we are flashing it using uuu, or from u-boot if needed.

u-boot=> mtdparts

device nand0 <nand.0>, # parts = 7
#: name size offset mask_flags
0: NAND.u-boot 0x00800000 0x00000000 0
1: NAND.u-boot-bckp 0x00800000 0x00800000 0
2: NAND.u-boot-env 0x00100000 0x01000000 0
3: NAND.u-boot-env.backup0x00100000 0x01100000 0
4: NAND.u-boot-spl-os 0x00100000 0x01200000 0
5: NAND.kernel 0x04000000 0x01300000 0
6: NAND.file-system 0x3ad00000 0x05300000 0

After flashing NAND.uboot we send command "nandbcb init ${fileaddr} NAND.u-boot ${filesize}"

This is working fine, but we also would like to be able to flash NAND.u-boot from userspace.

We can do "flash_erase /dev/mtd0 0 0" and "nandwrite -p /dev/mtd0 flash.bin" but we do not know how to do something like "nandbcb ......" from userspace.

Which is the correct process to update u-boot from userspace ?

Best regards and thank you

Angel

 

0 Kudos
2 Replies

600 Views
b36401
NXP Employee
NXP Employee

We have no Linux utilities for "deep" NAND programming.
Sorry for the inconvenience.

0 Kudos

589 Views
AngelF
Contributor II

Hello,

Thank you for your answer.

I understand that the only way to update boot partition is from u-boot or using uuu.

Best regards

Angel

0 Kudos