SMP NoMMU Linux
I have been fiddling for quite something with Paulneja’s fork bank linux build (Github) for the ESP32S3. Its pretty good on its own, but it was single core linux and the other core runs ESP-IDF with WiFI and flash functions. So with a lot of AI efforts and references from Apache Nuttx for ESP32S3 I was able to get SMP Linux working on ESP32S3 with fork bank along with WiFi. Will be putting up a release link soon once I am done with all the testing. I have also got USB Host working. GDMA is in progress but still remains pending for peripherals. Here’s a small snippet:
root@arduino:# uname -a
Linux arduino 7.2.4-forkbank #1 SMP Sat Sep 5 00:00:00 UTC 2026 xtensa GNU/Linux
root@arduino:# lscpu
Architecture: xtensa
Byte Order: Little Endian
CPU(s): 2
On-line CPU(s) list: 0,1
Vendor ID: Tensilica
Model name: -
Model: Xtensa LX7.0.12
Thread(s) per core: 1
Core(s) per socket: 1
Socket(s): 2
BogoMIPS: 480.00
Flags: nmi debug ocd trax perf density boolean loop nsa minmax
sext clamps mac16 mul16 mul32 mul32h fpu s32c1i
root@arduino:# free
total used free shared buff/cache available
Mem: 7768 4776 2016 0 976 1928
root@arduino:# ifconfig
espsta0 Link encap:Ethernet HWaddr 34:85:18:7B:81:B8
inet addr:192.168.1.54 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:499 errors:0 dropped:63 overruns:0 frame:0
TX packets:132 errors:0 dropped:2 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:50350 (49.1 KiB) TX bytes:7369 (7.1 KiB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
root@arduino:# ping google.com
PING google.com (142.251.221.206): 56 data bytes
64 bytes from 142.251.221.206: seq=0 ttl=114 time=67.180 ms
64 bytes from 142.251.221.206: seq=1 ttl=114 time=196.730 ms
64 bytes from 142.251.221.206: seq=2 ttl=114 time=60.430 ms
64 bytes from 142.251.221.206: seq=3 ttl=114 time=63.869 ms
64 bytes from 142.251.221.206: seq=4 ttl=114 time=68.288 ms
^C
— google.com ping statistics —
5 packets transmitted, 5 packets received, 0% packet loss
round-trip min/avg/max = 60.430⁄91.299⁄196.730 ms
root@arduino:# cat /proc/cpuinfo
CPU count : 2
CPU list : 0-1
vendor_id : Tensilica
model : Xtensa LX7.0.12
core ID : LX7_ESP32_S3_MP
build ID : 0x90f1f
config ID : c2f0fffe:23090f1f
byte order : little
cpu MHz : 240.00
bogomips : 480.00
flags : nmi debug ocd trax perf density boolean loop nsa minmax sext clamps mac16 mul16 mul32 mul32h fpu s32c1i
physical aregs : 64
misc regs : 4
ibreak : 2
dbreak : 2
perf counters : 2
num ints : 32
ext ints : 26
int levels : 6
timers : 3
debug level : 6
icache line size: 4
icache ways : 1
icache size : 0
icache flags :
dcache line size: 16
dcache ways : 1
dcache size : 0
dcache flags :
load/store exceptions : 6202204
load/store clock count : 854516361
root@arduino:# espctl system info
kernel: Linux 7.2.4-forkbank
machine: xtensa
board: Arduino Nano ESP32
vendor: Arduino
soc: Espressif ESP32-S3
uptime: 685 s
mem total: 7768 KB
mem free: 2044 KB
gpio: /dev/gpiochip2 (esp32s3-gpio, 49 lines)
pins: 30 names (built-in)
cpu freq: 240.00 MHz
temp: 30.4 C
root@arduino:#