pr0v3rbs / FirmAE

Towards Large-Scale Emulation of IoT Firmware for Dynamic Analysis
MIT License
665 stars 121 forks source link

Linux kernel #11

Open azpema opened 3 years ago

azpema commented 3 years ago

Hello, The router firmware I am trying to emulate relies on Linux kernel 3.4, so I was wondering how I could compile this kernel in order to make it work with FirmAE. Thank you

pr0v3rbs commented 3 years ago

For all the architectures (armel, mipsel, mipseb), FirmAE uses a customized v4.1 kernel which considered to have backward compatibility by disabling such as memory protection configuration. To use the other version of the kernel such as v3.x, the Firmadyne kernel can be compatible.

For the 32bit architectures, the kernels can be compiled by using the musl-cross of the Firmadyne. About the 64bit, the kernels can be compiled by using the musl-cross-make v0.9.8.