Open Source & Linux Lab

It's better when it's simple

User Tools

Site Tools


etc:users:jcmvbkbc:linux-xtensa:esp32s3

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
etc:users:jcmvbkbc:linux-xtensa:esp32s3 [2024/05/19 22:17] jcmvbkbcetc:users:jcmvbkbc:linux-xtensa:esp32s3 [2024/06/09 05:06] (current) – update bootloader instructions to wifi-enabled version jcmvbkbc
Line 4: Line 4:
   * https://github.com/jcmvbkbc/xtensa-dynconfig/tree/original   * https://github.com/jcmvbkbc/xtensa-dynconfig/tree/original
   * https://github.com/jcmvbkbc/config-esp32s3   * https://github.com/jcmvbkbc/config-esp32s3
-  * https://github.com/jcmvbkbc/esp-idf/tree/linux-5.0.1 +  * https://github.com/jcmvbkbc/esp-hosted/tree/ipc-5.1.1 
-  * https://github.com/jcmvbkbc/linux-xtensa/tree/xtensa-6.7-esp32 +  * https://github.com/jcmvbkbc/linux-xtensa/tree/xtensa-6.10-rc2-esp32 
-  * https://github.com/jcmvbkbc/binutils-gdb-xtensa/tree/xtensa-2.41-fdpic +  * https://github.com/jcmvbkbc/binutils-gdb-xtensa/tree/xtensa-fdpic-abi-spec-1.4 
-  * https://github.com/jcmvbkbc/gcc-xtensa/tree/xtensa-14-4992-fdpic +  * https://github.com/jcmvbkbc/gcc-xtensa/tree/xtensa-fdpic-abi-spec-1.4 
-  * https://github.com/jcmvbkbc/uclibc-ng-xtensa/tree/xtensa-1.0.44-fdpic +  * https://github.com/jcmvbkbc/uclibc-ng-xtensa/tree/xtensa-fdpic-abi-spec-1.4 
-  * https://github.com/jcmvbkbc/buildroot/tree/xtensa-2023.11-fdpic+  * https://github.com/jcmvbkbc/buildroot/tree/xtensa-2024.02-fdpic
   * https://github.com/jcmvbkbc/crosstool-NG/tree/xtensa-fdpic   * https://github.com/jcmvbkbc/crosstool-NG/tree/xtensa-fdpic
  
Line 24: Line 24:
 ===== Things that work ===== ===== Things that work =====
  
-  * WiFi. Use the script that builds firmware based on esp-hosted. It runs on core 0, linux runs on core 1, special linux IPC is used for communication. WiFi transport that uses linux IPC is added both to the firmware and to the linux kernel wifi driver. Not all wifi security options may be working, e.g. open and wpa2-psk are working and 802.11w is not.+  * WiFi. Use the script that builds firmware based on esp-hosted. The firmware runs on core 0, linux runs on core 1, special linux IPC is used for communication. WiFi transport that uses linux IPC is added both to the firmware and to the linux kernel wifi driver. Not all wifi security options may be working, e.g. open and wpa2-psk are working and 802.11w is not.
   * Writing to FLASH and using ESP FLASH partition table. Driver based on linux IPC sends FLASH-related requests to the firmware. Default configuration has an etc partition that is flashed with /etc file system and mounted at boot time. The file system is writable and it can be used to store things like wpa_supplicant.conf, /etc/passwd, /etc/shadow, ...   * Writing to FLASH and using ESP FLASH partition table. Driver based on linux IPC sends FLASH-related requests to the firmware. Default configuration has an etc partition that is flashed with /etc file system and mounted at boot time. The file system is writable and it can be used to store things like wpa_supplicant.conf, /etc/passwd, /etc/shadow, ...
   * USB serial. It is visible as the /dev/ttyACM1 (in kernels based on v6.5) or the /dev/ttyGS3 (in kernels based on v6.6-rc and newer) device inside the linux environment. (The change of name was requested by the linux TTY subsystem maintainer, the change of number is to keep UART ports numbering coherent with esp32s3 TRM).   * USB serial. It is visible as the /dev/ttyACM1 (in kernels based on v6.5) or the /dev/ttyGS3 (in kernels based on v6.6-rc and newer) device inside the linux environment. (The change of name was requested by the linux TTY subsystem maintainer, the change of number is to keep UART ports numbering coherent with esp32s3 TRM).
Line 75: Line 75:
 $ CT_PREFIX=`pwd`/builds nice ./ct-ng build $ CT_PREFIX=`pwd`/builds nice ./ct-ng build
 $ popd $ popd
-</code> 
- 
-It doesn't complete successfully ATM, failing with the following message, but it builds and installs everything that's important. 
-<code> 
-... 
-[INFO ]  Installing final gcc compiler: done in 572.47s (at 29:47) 
-[INFO ]  ================================================================= 
-[INFO ]  Checking dynamic linker symlinks 
-[EXTRA]    Checking dynamic linker for multilib '' 
-[ERROR]    collect2: error: ld returned 1 exit status 
-[ERROR]    
-[ERROR]  >> 
-[ERROR]  >>  Build failed in step 'Checking dynamic linker symlinks' 
-[ERROR]  >>        called in step '(top-level)' 
-[ERROR]  >> 
-[ERROR]  >>  Error happened in: CT_DoExecLog[scripts/functions@377] 
-[ERROR]  >>        called from: CT__FixupLDSO[scripts/functions@1695] 
-[ERROR]  >>        called from: CT_IterateMultilibs[scripts/functions@1608] 
-[ERROR]  >>        called from: CT_MultilibFixupLDSO[scripts/functions@1761] 
-[ERROR]  >>        called from: uClibc_ng_post_cc[scripts/build/libc/uClibc-ng.sh@335] 
-[ERROR]  >>        called from: do_libc_post_cc[scripts/build/libc.sh@38] 
-[ERROR]  >>        called from: main[scripts/crosstool-NG.sh@697] 
-[ERROR]  >> 
-... 
 </code> </code>
  
Line 104: Line 80:
  
 <code> <code>
-$ git clone https://github.com/jcmvbkbc/buildroot -b xtensa-2023.08-fdpic+$ git clone https://github.com/jcmvbkbc/buildroot -b xtensa-2024.02-fdpic
 $ nice make -C buildroot O=`pwd`/build-buildroot-esp32s3 esp32s3_defconfig $ nice make -C buildroot O=`pwd`/build-buildroot-esp32s3 esp32s3_defconfig
 $ buildroot/utils/config --file build-buildroot-esp32s3/.config --set-str TOOLCHAIN_EXTERNAL_PATH `pwd`/crosstool-NG/builds/xtensa-esp32s3-linux-uclibcfdpic $ buildroot/utils/config --file build-buildroot-esp32s3/.config --set-str TOOLCHAIN_EXTERNAL_PATH `pwd`/crosstool-NG/builds/xtensa-esp32s3-linux-uclibcfdpic
Line 115: Line 91:
  
 <code> <code>
-$ git clone https://github.com/jcmvbkbc/esp-idf -b linux-5.0.1 +$ git clone https://github.com/jcmvbkbc/esp-hosted -b ipc-5.1.1 
-$ pushd esp-idf+$ pushd esp-hosted/esp_hosted_ng/esp/esp_driver 
 +$ cmake . 
 +$ cd esp-idf
 $ . export.sh $ . export.sh
-$ cd examples/get-started/linux_boot+$ cd ../network_adapter
 $ idf.py set-target esp32s3 $ idf.py set-target esp32s3
 $ cp sdkconfig.defaults.esp32s3 sdkconfig $ cp sdkconfig.defaults.esp32s3 sdkconfig
etc/users/jcmvbkbc/linux-xtensa/esp32s3.1716146255.txt.gz · Last modified: 2024/05/19 22:17 by jcmvbkbc