Modify Partition Layout

In order to use the maximum available space on the device we need to make some changes.

While in the U-Boot shell, simply change a few env vars.

setenv rootfs_size_1 0x1B10000
saveenv
setenv set_bootargs_1 set bootargs_1 ${bootargs} root=31:11 mtdparts=spi0.0:256k(0:SBL1),128k(0:MIBIB),384k(0:QSEE),64k(0:CDT),64k(0:DDRPARAMS),64k(0:APPSBLENV),512k(0:APPSBL),64k(0:ART),64k(0:custom),64k(0:KEYS),${kernel_size_1}(0:HLOS),${rootfs_size_1}(rootfs)
saveenv
setenv set_bootargs_1 set bootargs_1 ${bootargs} root=31:11 mtdparts=spi0.0:256k(0:SBL1),128k(0:MIBIB),384k(0:QSEE),64k(0:CDT),64k(0:DDRPARAMS),64k(0:APPSBLENV),512k(0:APPSBL),64k(0:ART),64k(0:custom),64k(0:KEYS),${kernel_size_1}(0:HLOS),${rootfs_size_1}(rootfs)
saveenv

then

sf probe
sf erase 0x1a0000 0x1e60000

Then, with your ap51 flash tool running.

reset
Note

In ubuntu 24.04.3, I found that I had to have the tftp-hpa server running while using the ap51 flash tool for some reason. Using just the ap51 flash tool would result in uboot not being able to acquire the files over ftp.

It would say something like: server died