cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Visitor
Visitor
627 Views
Registered: ‎06-25-2019

flashcp BOOT.BIN won't fit into /dev/mtd0

Hi All,

When I used flashcp to copy the BOOT.BIN into mtd0, it gave me an error “won't fit into /dev/mtd0”.

My BOOT.BIN is a bit bigger than 1 MB which was set for mtd0.

Is there any way we can resize them?

Because it is the DUAL QSPI, is the total size of mtd0-mtd7 equal to 128MB?

Based on the current mtd size config of mtd0-mtd7, it is total of more than 128 MB.

Does it have to be 128 MB total?

 

Below is the MTDs size:

 

cat /proc/mtd

dev:    size   erasesize  name

mtd0: 00100000 00002000 "qspi-fsbl-uboot"

mtd1: 00500000 00002000 "qspi-linux"

mtd2: 00020000 00002000 "qspi-device-tree"

mtd3: 005e0000 00002000 "qspi-rootfs"

mtd4: 01e00000 00002000 "boot"

mtd5: 00040000 00002000 "bootenv"

mtd6: 02400000 00002000 "kernel"

mtd7: 03dc0000 00002000 "spare"

 

Thanks,

Tuan

0 Kudos
1 Reply
Highlighted
Xilinx Employee
Xilinx Employee
590 Views
Registered: ‎09-14-2018

hi @tnguyen4447 

Maybe you can change your partition size of flash in dts at Petalinux stage.

0 Kudos