4 ms·
>Maybe one can run python on the network card rom too? The network card ROM isn't microcontroller code, its just x86 code that runs on your main processor, call
by snops 11y ago
>Maybe one can run python on the network card rom too?
The network card ROM isn't microcontroller code, its just x86 code that runs on your main processor, called by the BIOS[1]. You could potentially hence have the OPs project run from the BootROM, if it would fit. It might be slightly tricky, as it runs as part of GRUB, which doesn't expect to find itself running from there.
Alternatively, the article mentions:
> Environments like Mirage OS (and other "just enough operating systems") could also add Python using the BITS code without too much difficulty, he said.
You could therefore probably add this code to iPXE [2] without too much trouble to get python on your BootROM, though I'm unsure how much of the C standard library you would need to borrow or reimplement. By the looks of it, iPXE doesn't have threads or local storage support, so you would be pretty limited in usability without a lot of work.
[1] http://networkboot.org/fundamentals/ http://networkboot.org/fundamentals/
[2] http://ipxe.org http://ipxe.org
- Macha 11y ago> You could potentially hence have the OPs project run from the BootROM Just pointing out as the OP that I'm not the author of the project. I just came across the article on r/python
- e12e 11y agoAh, of course. I should've said run python on your hard disk/cdrom... :-)
- rjsw 11y agoMirage is built on top of the mini-os written in C that comes with the Xen sources.