linux-xtensa icon indicating copy to clipboard operation
linux-xtensa copied to clipboard

Booting Linux on ESP32-S3 with U-Boot

Open zap8600 opened this issue 10 months ago • 4 comments

Would it be possible to get a proper bootloader like U-Boot onto the ESP32-S3 and boot Linux with it?

zap8600 avatar Apr 13 '24 05:04 zap8600

It would, but why would anybody want that?

jcmvbkbc avatar Apr 13 '24 12:04 jcmvbkbc

I'm interested in trying to create drivers for the ESP32-S3's hardware without the need of ESP-IDF or without anything that ESP-IDF does getting in the way. I do also want to check out developing for bare-metal Xtensa on the ESP32-S3.

zap8600 avatar Apr 13 '24 19:04 zap8600

Developing your own drivers will be hard for the Wifi part, which requires closed-source firmware that interacts with FreeRTOS(or at least tries to; You could possibly stub out the required FreeRTOS functions). The Wifi hardware is not documented. I think in some ways the ESP-IDF makes creating new drivers for Linux easier - You can just create a small binding between FreeRTOS and Linux via the IPC mechanism, instead of a full driver. If you actually just want working drivers, don't re-implement them yourself, just use the ESP-IDF drivers in Linux via the IPC, and write a Linux "stub" driver. But if you just want to learn about embedded programming I guess you could just try to port u-boot! Learning is guaranteed :P

max1220 avatar Apr 17 '24 00:04 max1220

I will learn, which is what I'm aiming for! I want to see if I can get U-Boot to replace the main app entirely so that only the bare minimum of ESP-IDF would be needed.

zap8600 avatar Apr 28 '24 21:04 zap8600