-
Notifications
You must be signed in to change notification settings - Fork 34
Description
your build script works perfectly fine, I am able to flash it to my generic ESP32-S3 R8N16 with the devkit-c1-8m.conf
configuration, but when I attempt to modify the partition table it gets overwritten by your script, and after multiple attempts I've given up.
and now I am trying to follow this guide but when I try to flash the xipImage
I get the following error Exception: Input file size exceeds partition size
, even without modifying the partition table.
ESP32DE's guide is a little confusing so I noted down the exact steps in a text file so that it's easier to follow, I was hoping someone could spot what have I done wrong or what have I missed that's preventing me from flashing the xipImage
while the rest of the files flashed without any errors.
from ESP32DE's guide I replaced xtensa-2023.02-fdpic
with xtensa-2024.08-fdpic
, could this be the cause of my issue? it is very painful to test this as the whole build process takes about 2 or 3 hours due to very slow download speeds from GitHub.
any help is greatly appreciated
cd ~
mkdir esp32s3-linux
cd esp32s3-linux
git clone https://github.com/jcmvbkbc/xtensa-dynconfig -b original
git clone https://github.com/jcmvbkbc/config-esp32s3 esp32s3
make -C xtensa-dynconfig ORIG=1 CONF_DIR=`pwd` esp32s3.so
export XTENSA_GNU_CONFIG=`pwd`/xtensa-dynconfig/esp32s3.so
git clone https://github.com/jcmvbkbc/crosstool-NG.git -b xtensa-fdpic
pushd crosstool-NG
./bootstrap && ./configure --enable-local && make
./ct-ng xtensa-esp32s3-linux-uclibcfdpic
./ct-ng menuconfig
#### > Exit > Save
CT_PREFIX=`pwd`/builds nice ./ct-ng build
popd
git clone https://github.com/jcmvbkbc/buildroot -b xtensa-2024.08-fdpic
nice make -C buildroot O=`pwd`/build-xtensa-2024.08-fdpic-esp32s3 esp32s3_devkit_c1_8m_defconfig
nice make -C buildroot O=`pwd`/build-xtensa-2024.08-fdpic-esp32s3 menuconfig
#### > Toolchain
######## > Toolchain path > /home/bsdinis/esp32s3-linux/crosstool-NG/builds/xtensa-esp32s3-linux-uclibcfdpic
#### > Exit > Save
nice make -C buildroot O=`pwd`/build-xtensa-2024.08-fdpic-esp32s3
git clone https://github.com/jcmvbkbc/esp-idf -b linux-5.0.1
pushd esp-idf
./install.sh
. ./export.sh
cd examples/get-started/linux_boot
idf.py set-target esp32s3
idf.py menuconfig
#### > [O] Load > /home/bsdinis/esp32s3-linux/esp-idf/examples/get-started/linux_boot/sdkconfig.defaults.esp32s3
#### > Serial flasher config > Flash size > 16MB
#### > [S] Save > /home/bsdinis/esp32s3-linux/esp-idf/examples/get-started/linux_boot/sdkconfig
#### > [Q] Quit
#### Edit and rename ~/esp32s3-linux/buildroot/board/espressif/esp32s3/rootfs_overlay/etc/wpa_supplicant.conf.example
idf.py build
sudo chmod a+rw /dev/ttyUSB0
idf.py -p /dev/ttyUSB0 flash
popd
parttool.py write_partition --partition-name linux --input build-xtensa-2024.08-fdpic-esp32s3/images/xipImage
parttool.py write_partition --partition-name rootfs --input build-xtensa-2024.08-fdpic-esp32s3/images/rootfs.cramfs