On Mon, Jul 10, 2023 at 4:47 PM Alin Jerpelea wrote:
> Apache NuttX 12.2.1 RC0 has been staged under [1] and it's time to vote on
> accepting it for release. Voting will be open for 72hr.
> (..)
> [1] https://dist.apache.org/repos/dist/dev/nuttx/12.2.1-RC0/

+1 :-)

BUILD HOST:
FreeBSD octagon 13.2-RELEASE-p1 FreeBSD 13.2-RELEASE-p1 GENERIC amd64

TARGETS:
1. ESP32.
2. ESP32-C3.
2. ESP32-S2.
3. ESP32-S3.

=== ESP32 ===

% /usr/bin/time -h ./tools/configure.sh -B esp32-devkitc:coremark
        2,94s real              1,51s user              1,47s sys

% /usr/bin/time -h gmake -j8 V=1
        16,69s real             52,18s user             32,14s sys

% /usr/bin/time -h gmake flash
        9,70s real              1,69s user              1,01s sys

% cu -l /dev/cuaU0 -s 115200
rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0030,len:7076
load:0x40078000,len:15660
load:0x40080400,len:4
load:0x40080404,len:3756
entry 0x40080640
I (29) boot: ESP-IDF v5.2-dev-544-g54576b7528 2nd stage bootloader
I (29) boot: compile time May 16 2023 16:18:19
I (30) boot: Multicore bootloader
I (35) boot: chip revision: v1.0
I (38) boot.esp32: SPI Speed      : 40MHz
I (43) boot.esp32: SPI Mode       : DIO
I (47) boot.esp32: SPI Flash Size : 4MB
I (52) boot: Enabling RNG early entropy source...
I (57) boot: Partition Table:
I (61) boot: ## Label            Usage          Type ST Offset   Length
I (68) boot:  0 factory          factory app      00 00 00010000 00100000
I (76) boot: End of partition table
I (80) esp_image: segment 0: paddr=00010020 vaddr=3f400020 size=014b4h
(  5300) map
I (90) esp_image: segment 1: paddr=000114dc vaddr=3ffb25b0 size=001b0h
(   432) load
I (97) esp_image: segment 2: paddr=00011694 vaddr=40080000 size=020d4h
(  8404) load
I (109) esp_image: segment 3: paddr=00013770 vaddr=00000000 size=0c8a8h ( 51368)
I (132) esp_image: segment 4: paddr=00020020 vaddr=400d0020
size=0de98h ( 56984) map
I (154) boot: Loaded app from partition at offset 0x10000
I (154) boot: Disabling RNG early entropy source...
Running CoreMark...
2K performance run parameters for coremark.
CoreMark Size    : 666
Total ticks      : 12180
Total time (secs): 12.180000
Iterations/Sec   : 985.221675
Iterations       : 12000
Compiler version : GCC8.4.0
Compiler flags   : -O3 -fno-strict-aliasing -fomit-frame-pointer
-ffunction-sections -fdata-sections
Parallel PThreads : 2
Memory location  : Stack
seedcrc          : 0xe9f5
[0]crclist       : 0xe714
[1]crclist       : 0xe714
[0]crcmatrix     : 0x1fd7
[1]crcmatrix     : 0x1fd7
[0]crcstate      : 0x8e3a
[1]crcstate      : 0x8e3a
[0]crcfinal      : 0xa14c
[1]crcfinal      : 0xa14c
Correct operation validated. See README.md for run and reporting rules.
CoreMark 1.0 : 985.221675 / GCC8.4.0 -O3 -fno-strict-aliasing
-fomit-frame-pointer -ffunction-sections -fdata-sections / Stack /
2:PThreads

% gmake clean distclean

% /usr/bin/time -h ./tools/configure.sh -B esp32-devkitc:nsh
        2,89s real              1,48s user              1,45s sys

% /usr/bin/time -h gmake -j8 V=1
        15,77s real             49,96s user             32,54s sys

% /usr/bin/time -h gmake flash
        11,53s real             2,04s user              1,48s sys

% cu -l /dev/cuaU0 -s 115200
rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0030,len:7076
load:0x40078000,len:15660
load:0x40080400,len:4
load:0x40080404,len:3756
entry 0x40080640
I (29) boot: ESP-IDF v5.2-dev-544-g54576b7528 2nd stage bootloader
I (29) boot: compile time May 16 2023 16:18:19
I (30) boot: Multicore bootloader
I (34) boot: chip revision: v1.0
I (38) boot.esp32: SPI Speed      : 40MHz
I (43) boot.esp32: SPI Mode       : DIO
I (47) boot.esp32: SPI Flash Size : 4MB
I (52) boot: Enabling RNG early entropy source...
I (57) boot: Partition Table:
I (61) boot: ## Label            Usage          Type ST Offset   Length
I (68) boot:  0 factory          factory app      00 00 00010000 00100000
I (76) boot: End of partition table
I (80) esp_image: segment 0: paddr=00010020 vaddr=3f400020 size=02684h
(  9860) map
I (92) esp_image: segment 1: paddr=000126ac vaddr=3ffb14a0 size=001a4h
(   420) load
I (97) esp_image: segment 2: paddr=00012858 vaddr=40080000 size=0175ch
(  5980) load
I (108) esp_image: segment 3: paddr=00013fbc vaddr=00000000 size=0c05ch ( 49244)
I (131) esp_image: segment 4: paddr=00020020 vaddr=400d0020
size=10d40h ( 68928) map
I (157) boot: Loaded app from partition at offset 0x10000
I (157) boot: Disabling RNG early entropy source...

NuttShell (NSH) NuttX-12.2.1
nsh> uname -a
NuttX 12.2.1 148c631a2d Jul 14 2023 23:26:25 xtensa esp32-devkitc
nsh> ls /dev
/dev:
 console
 null
 ttyS0

% xtensa-esp32-elf-gcc -v
Using built-in specs.
COLLECT_GCC=xtensa-esp32-elf-gcc
COLLECT_LTO_WRAPPER=/usr/home/cederom/.espressif/tools/xtensa-esp32-elf/esp-2021r2-patch5-8.4.0/xtensa-esp32-elf/bin/../libexec/gcc/xtensa-esp32-elf/8.4.0/lto-wrapper
Target: xtensa-esp32-elf
Configured with:
/builds/idf/crosstool-NG/.build/xtensa-esp32-elf/src/gcc/configure
--build=x86_64-build_pc-linux-gnu --host=x86_64-build_pc-linux-gnu
--target=xtensa-esp32-elf
--prefix=/builds/idf/crosstool-NG/builds/xtensa-esp32-elf
--exec_prefix=/builds/idf/crosstool-NG/builds/xtensa-esp32-elf
--with-local-prefix=/builds/idf/crosstool-NG/builds/xtensa-esp32-elf/xtensa-esp32-elf
--with-headers=/builds/idf/crosstool-NG/builds/xtensa-esp32-elf/xtensa-esp32-elf/include
--with-newlib --enable-threads=no --disable-shared
--with-pkgversion='crosstool-NG esp-2021r2-patch5'
--disable-__cxa_atexit --enable-cxx-flags=-ffunction-sections
--disable-libgomp --disable-libmudflap --disable-libmpx
--disable-libssp --disable-libquadmath --disable-libquadmath-support
--disable-libstdcxx-verbose
--with-gmp=/builds/idf/crosstool-NG/.build/xtensa-esp32-elf/buildtools
--with-mpfr=/builds/idf/crosstool-NG/.build/xtensa-esp32-elf/buildtools
--with-mpc=/builds/idf/crosstool-NG/.build/xtensa-esp32-elf/buildtools
--with-isl=/builds/idf/crosstool-NG/.build/xtensa-esp32-elf/buildtools
--enable-lto --enable-target-optspace --without-long-double-128
--disable-nls --enable-multiarch --enable-languages=c,c++
--disable-libstdcxx-verbose --enable-threads=posix
--enable-gcov-custom-rtio --enable-libstdcxx-time=yes
Thread model: posix
gcc version 8.4.0 (crosstool-NG esp-2021r2-patch5)




=== ESP32-C3 ===

% /usr/bin/time -h ./tools/configure.sh -B esp32c3-devkit:coremark
        2,91s real              1,42s user              1,53s sys

% /usr/bin/time -h gmake -j8 V=1 CROSSDEV=riscv32-esp-elf-
        15,55s real             47,95s user             30,82s sys

% /usr/bin/time -h gmake flash CROSSDEV=riscv32-esp-elf-
        9,37s real              1,47s user              1,06s sys

% cu -l /dev/cuaU0 -s 115200
ESP-ROM:esp32c3-api1-20210207
Build:Feb  7 2021
rst:0x1 (POWERON),boot:0xc (SPI_FAST_FLASH_BOOT)
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fcd6100,len:0x121c
load:0x403ce000,len:0x744
load:0x403d0000,len:0x26c4
entry 0x403ce000
Running CoreMark...
2K performance run parameters for coremark.
CoreMark Size    : 666
Total ticks      : 14710
Total time (secs): 14.710000
Iterations/Sec   : 407.885792
Iterations       : 6000
Compiler version : GCC8.4.0
Compiler flags   : -O3 -fno-strict-aliasing -fomit-frame-pointer
-ffunction-sections -fdata-sections
Memory location  : Stack
seedcrc          : 0xe9f5
[0]crclist       : 0xe714
[0]crcmatrix     : 0x1fd7
[0]crcstate      : 0x8e3a
[0]crcfinal      : 0xa14c
Correct operation validated. See README.md for run and reporting rules.
CoreMark 1.0 : 407.885792 / GCC8.4.0 -O3 -fno-strict-aliasing
-fomit-frame-pointer -ffunction-sections -fdata-sections / Stack

% gmake clean distclean CROSSDEV=riscv32-esp-elf-

% /usr/bin/time -h ./tools/configure.sh -B esp32c3-devkit:nsh
        2,92s real              1,52s user              1,44s sys

% /usr/bin/time -h gmake -j8 V=1 CROSSDEV=riscv32-esp-elf-
        15,65s real             51,82s user             32,54s sys

% /usr/bin/time -h gmake flash CROSSDEV=riscv32-esp-elf-
        12,77s real             2,09s user              1,50s sys

% cu -l /dev/cuaU0 -s 115200
ESP-ROM:esp32c3-api1-20210207
Build:Feb  7 2021
rst:0x1 (POWERON),boot:0xc (SPI_FAST_FLASH_BOOT)
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fcd6100,len:0x121c
load:0x403ce000,len:0x744
load:0x403d0000,len:0x26c4
entry 0x403ce000

NuttShell (NSH) NuttX-12.2.1
nsh> uname -a
NuttX 12.2.1 148c631a2d Jul 14 2023 23:55:05 risc-v esp32c3-devkit
nsh> ls /dev
/dev:
 console
 null
 ttyS0
 zero

% riscv32-esp-elf-gcc -v
Using built-in specs.
COLLECT_GCC=riscv32-esp-elf-gcc
COLLECT_LTO_WRAPPER=/usr/home/cederom/.espressif/tools/riscv32-esp-elf/esp-2021r2-patch5-8.4.0/riscv32-esp-elf/bin/../libexec/gcc/riscv32-esp-elf/8.4.0/lto-wrapper
Target: riscv32-esp-elf
Configured with:
/builds/idf/crosstool-NG/.build/riscv32-esp-elf/src/gcc/configure
--build=x86_64-build_pc-linux-gnu --host=x86_64-build_pc-linux-gnu
--target=riscv32-esp-elf
--prefix=/builds/idf/crosstool-NG/builds/riscv32-esp-elf
--exec_prefix=/builds/idf/crosstool-NG/builds/riscv32-esp-elf
--with-local-prefix=/builds/idf/crosstool-NG/builds/riscv32-esp-elf/riscv32-esp-elf
--with-headers=/builds/idf/crosstool-NG/builds/riscv32-esp-elf/riscv32-esp-elf/include
--with-newlib --enable-threads=no --disable-shared --with-arch=rv32gc
--with-abi=ilp32 --with-pkgversion='crosstool-NG esp-2021r2-patch5'
--disable-__cxa_atexit --enable-cxx-flags=-ffunction-sections
--disable-libgomp --disable-libmudflap --disable-libmpx
--disable-libssp --disable-libquadmath --disable-libquadmath-support
--disable-libstdcxx-verbose
--with-gmp=/builds/idf/crosstool-NG/.build/riscv32-esp-elf/buildtools
--with-mpfr=/builds/idf/crosstool-NG/.build/riscv32-esp-elf/buildtools
--with-mpc=/builds/idf/crosstool-NG/.build/riscv32-esp-elf/buildtools
--with-isl=/builds/idf/crosstool-NG/.build/riscv32-esp-elf/buildtools
--enable-lto --enable-target-optspace --without-long-double-128
--disable-nls --enable-multiarch --enable-languages=c,c++
--disable-libstdcxx-verbose --enable-threads=posix
--enable-gcov-custom-rtio --enable-libstdcxx-time=yes
Thread model: posix
gcc version 8.4.0 (crosstool-NG esp-2021r2-patch5)




=== ESP32-S2 ===

% /usr/bin/time -h ./tools/configure.sh -B esp32s2-saola-1:coremark
        2,92s real              1,43s user              1,53s sys

Update config with:
CONFIG_ESP32S2_UART0_TXPIN=2
CONFIG_ESP32S2_UART0_RXPIN=3

% /usr/bin/time -h gmake -j8 V=1 CROSSDEV=xtensa-esp32s2-elf-
        16,09s real             49,37s user             31,51s sys

% /usr/bin/time -h gmake flash CROSSDEV=xtensa-esp32s2-elf-
        4,64s real              1,68s user              0,99s sys

% cu -l /dev/cuaU0 -s 115200
Running CoreMark...
2K performance run parameters for coremark.
CoreMark Size    : 666
Total ticks      : 12820
Total time (secs): 12.820000
Iterations/Sec   : 468.018721
Iterations       : 6000
Compiler version : GCC8.4.0
Compiler flags   : -O3 -fno-strict-aliasing -fomit-frame-pointer
-ffunction-sections -fdata-sections
Memory location  : Stack
seedcrc          : 0xe9f5
[0]crclist       : 0xe714
[0]crcmatrix     : 0x1fd7
[0]crcstate      : 0x8e3a
[0]crcfinal      : 0xa14c
Correct operation validated. See README.md for run and reporting rules.
CoreMark 1.0 : 468.018721 / GCC8.4.0 -O3 -fno-strict-aliasing
-fomit-frame-pointer -ffunction-sections -fdata-sections / Stack

%/usr/bin/time -h gmake clean distclean CROSSDEV=xtensa-esp32s2-elf-
        7,31s real              3,50s user              3,91s sys

% /usr/bin/time -h ./tools/configure.sh -B esp32s2-saola-1:nsh
        2,91s real              1,38s user              1,58s sys

Update config with:
CONFIG_ESP32S2_UART0_TXPIN=2
CONFIG_ESP32S2_UART0_RXPIN=3

% /usr/bin/time -h gmake -j8 V=1 CROSSDEV=xtensa-esp32s2-elf-
        15,41s real             49,39s user             31,84s sys

% /usr/bin/time -h gmake flash CROSSDEV=xtensa-esp32s2-elf-
        5,96s real              2,14s user              1,36s sys

% cu -l /dev/cuaU0 -s 115200
NuttShell (NSH) NuttX-12.2.1
nsh> uname -a
NuttX 12.2.1 148c631a2d Jul 15 2023 00:25:22 xtensa esp32s2-saola-1
nsh> ls /dev
/dev:
 console
 null
 ttyS0




=== ESP32-S3 ===

My new purchases ESP32-S3-Pico and ESP32-S3-DEV-KIT-N8R8 are not
recognised by FreeBSD. Maybe CH334F (USB-TO-UART) is not yet supported
and kernel support needs to be added to FreeBSD. Too early to test.
Out of scope :-)


Best regards :-)
Tomek

-- 
CeDeROM, SQ7MHZ, http://www.tomek.cedro.info

Reply via email to