pr0v3rbs / FirmAE

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

Mips64 architecture kernel #9

Open newthis opened 3 years ago

newthis commented 3 years ago

Hi , I came across a firmware which belongs to netgear (WMS5316_FW_V2.1.7), The architecture of the firmware is mips64 , but the mips kernel provided by FirmAE is mips32. Is there some script or tool which can compile the mips64 architecture kernel

pr0v3rbs commented 3 years ago

Currently, FirmAE does not support mips64 cause the toolchain is the musl-cross of the Firmadyne. However, the latest musl-cross supports x86_64 architecture. link Moreover, FirmAE uses the kernel-v4.1 for all the architectures, so it may be compatible with the latest musl-cross.

pr0v3rbs commented 3 years ago

Sorry for my misunderstanding, musl-cross does not support mips64. However, I found musl-cross-make repository which supports mips64 and also aarch64. The kernel-v4.1 is old, so it only supports the old version of gcc (5.3.0) and the other libraries, too. I'm testing now to build the compiler.