tce-load -lwi compiletc libffi-dev python3.9 squashfs-tools wget --no-check-certificate -O- https://github.com/micropython/micropython/releases/download/v1.21.0/micropython-1.21.0.tar.xz | tar -xJ cd micropython-1.21.0/ports/unix/ #for some reason, the first make with cflags causes error. you need to compile with just "make" then pass the flags make make clean CFLAGS="-mtune=generic -Os -pipe" make -j8 mkdir -p /tmp/micropython/usr/local/bin/ mv build-standard/micropython /tmp/micropython/usr/local/bin/ strip -s /tmp/micropython/usr/local/bin/micropython mksquashfs /tmp/micropython ../../../micropython.tcz