esp32-linux-build icon indicating copy to clipboard operation
esp32-linux-build copied to clipboard

partition table

Open FransM opened this issue 1 year ago • 5 comments
trafficstars

There is an issue with the partition table. If I run ./rebuild-esp32s3-linux-wifi.sh the resulting image cannot be flashed due to the size of the xipImage Also the wiki mentions parttool.py write_partition --partition-name etc --input build-buildroot-esp32s3/images/etc.jffs2 but there is no etc in the partition table.

I'm having an S3 N16R8 device

FransM avatar Feb 21 '24 17:02 FransM

but there is no etc in the partition table.

There is, but both issues suggest that you may not have it flashed on the device. Can you check that?

jcmvbkbc avatar Feb 22 '24 02:02 jcmvbkbc

Maybe I goofed wrt the etc partition.

If I recall correctly I initially could not flash the partitions and then wanted to write the partitions through the command line, using the commands given on the wiki. For the s3 wifi version this resulted in a message that the xipImage was too big. The rootfs could be flashed and for etc it complained that there was no partition for it.

A later experiment with a clean rebuild did flash properly. Maybe the individual commands on the wiki are outdated, but it could also be user error ....

FransM avatar Feb 22 '24 09:02 FransM

Maybe the individual commands on the wiki are outdated

Sure, they're more of a general direction outline, the scripts should do the job precisely.

jcmvbkbc avatar Feb 22 '24 09:02 jcmvbkbc

The issue is that the script does a full clean build including checking out all gits, building gcc etc etc. This is a bit time consuming. It is useful to have the individual steps if one e.g. wants to change the kernel config.

FransM avatar Feb 22 '24 10:02 FransM

Take a look at the head of the script, there's a few environment variables that control what parts are downloaded/built. e.g. running keep_toolchain=y ./rebuild... will avoid downloading/building the toolchain.

jcmvbkbc avatar Feb 22 '24 10:02 jcmvbkbc