This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

How to fix problem flashing ubi file?



Hi

I am working with the XTCIEVMK2X board and wish to flash keystone-evm-ubifs.ubi, which is supplied with MCSDK 03.01.00.03.  I get the following error:

K2HK EVM # tftp ${addr_ubi} keystone-evm-ubifs.ubi
<snip>
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         ###########################################################
         1.5 MiB/s
done
Bytes transferred = 279052288 (10a20000 hex)
K2HK EVM # run burn_ubi

NAND erase.part: device 0 offset 0x180000, size 0x7e80000
Erasing at 0x7fe0000 -- 100% complete.
OK

NAND write: Size exceeds partition or device limit
K2HK EVM #

The pertinant u-boot env variables are:

addr_ubi=0x82000000
burn_ubi=nand erase.part ubifs; nand write ${addr_ubi} ubifs ${filesize}
filesize=F9A0000

Should I increase the value of filesize?

Best regards

David

  • Looks like your file is greater than NAND part size.
    From above log,
    Erase size: 0x7e80000
    filesize: 0xF9A0000
    Please refer below post, e2e.ti.com/.../1240947

    Thank you.
  • Hi Raj

    I didn't understand the explanation in e2e.ti.com/.../1240947 so can we start afresh here please?

    You wrote:

    > Looks like your file is greater than NAND part size.

    Are you saying that the physical size of the NAND is too small, or that I need to adjust some variable?

    Can I increase the NAND partition size or is this a restriction of the EVM?

    Best regards

    David
  • David: said:
    I didn't understand the explanation in e2e.ti.com/.../1240947 so can we start afresh here please?

    Ok. No problem. I will try to address it here.

    David: said:
    Are you saying that the physical size of the NAND is too small, or that I need to adjust some variable?

    Can I increase the NAND partition size or is this a restriction of the EVM?


    No. The physical size of NAND is 512MB. Only the ubifs partition size is 128MB. This can be increased using below u-boot command(mtdparts),

    u-boot# setenv mtdparts 'mtdparts=davinci_nand.0:1024k(bootloader)ro,512k(params)
    ro,262144k(ubifs)'

    processors.wiki.ti.com/.../MCSDK_UG_Chapter_Exploring

    Also DTS file needs to be modified for the size of NAND, please refer the above wiki for more information.

    Thank you.