jcmvbkbc / esp32-linux-build

xtensa linux build scripts for the esp32s3 and esp32
http://wiki.osll.ru/doku.php/etc:users:jcmvbkbc:linux-xtensa:esp32s3
99 stars 19 forks source link

partition table #4

Open FransM opened 9 months ago

FransM commented 9 months ago

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

jcmvbkbc commented 9 months ago

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?

FransM commented 9 months ago

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 ....

jcmvbkbc commented 9 months ago

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.

FransM commented 9 months ago

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.

jcmvbkbc commented 9 months ago

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.