Skip to content

Toolchain

roleo edited this page Aug 22, 2020 · 5 revisions

I didn't find a pre-compiled toolchain for this platform, so I compiled it from scratch using crosstool-NG.

First, I looked for informations about the libc version and the compiler. Extracting the strings from the binary files and browsing the filesystem, I collect these informations:

  • uclibc 0.9.33.2
  • libstdc ++ 6.0.16
  • gcc 4.6.1
  • crosstool-NG 1.18.0

So I downloaded crosstool-NG, I set it up and I tried to compile it. But I encountered several compilation problems with gcc 4.6.1. I had to use a newer version and the first version I got to work is 4.7.2.

In this release page, you can find the compiled toolchain and the config files I used to build it (crosstool-NG config file and uclibc config file).

https://github.com/roleoroleo/sonoff-hack/releases/tag/toolchain-0.0.1

Clone this wiki locally