Use Docker to build a FAT partition image with the Pixel32 files in it.
461
It's exactly what it reads: Use Docker to build a FAT partition image with the Pixel32 files in it.
Assuming you have Docker installed first install the docker image:
docker pull murilopolese/pixel32-build
Then find a comfortable folder on your computer and type the following command:
docker run -v $(pwd)/build:/build murilopolese/pixel32-build
This will output the file pixel32.img on the folder build (it will create this folder if doesn't exist). We will use this file to Flash your Pixel Kit alongside with the MicroPython firmware.
Flashing it on your Pixel Kit using esptool should be something like this:
esptool.py -p /dev/your_pixelkit_port write_flash 0x1000 micropython_firmware.bin 0x200000 pixel32.img
IMPORTANT: ESP32 MicroPython's filesystem starts at memory location 0x200000 as it's hard coded.
COOL STUFF: You can mount the pixel32.img on your computer to add, remove or modify the files and then flash it again on your Pixel Kit ;)
Because it will automate the following tasks for us:
nodejs, yarn, dosfstools and mtools.pixel32.img file and format it as a FAT filesystem. (Solution found here)pixel32.img without having to mount it. (Solution found here)pixel32.img with MicroPython binary so we have only one single file to flash on Pixel Kit.Content type
Image
Digest
Size
106.4 MB
Last updated
almost 8 years ago
docker pull murilopolese/pixel32-build