Quick Question on "cat /proc/mtd" output

One thing I’m confused about. The VisionFive 2 Quick Start guide says “cat /proc/mtd” should show this:

dev: size erasesize name
mtd0: 00020000 00001000 “spl”
mtd1: 00300000 00001000 “uboot”
mtd2: 00100000 00001000 “data”

But I get (this is booting Debian 202308 on SD card):

dev: size erasesize name
mtd0: 00040000 00001000 “spl”
mtd1: 00300000 00001000 “uboot”
mtd2: 00100000 00001000 “data”

Any idea if the difference in size for mtd0 could cause issues? If so is there a way to fix it?

My bad! I found topic " Flashcp => /dev/mtd0 2.11.5"

So it seems I’m good.

1 Like

SPL got fat over time.

1 Like

There is an upper limit to how much the SPL can grow. It needs to be small enough to fit inside the L2 LIM cache, which at that early stage in the boot process is the only memory that can be directly accessed.

1 Like

L2 is 2MB.

uboot starts at 00300000. = 3MB

There’s 1 extra MB gap. I imagine they put it there for a reason (reserved for possible future use, u-boot env, ???)