ESP3D wiring

ESP3D is firmware for ESP8266 and ESP32 to add wireless control your 3D printer. For me is important print progress and temperatures but you can upload files on SD card and start printing, move motors and send custom commands.

You can get ESP3D here https://github.com/luc-github/ESP3D. I use it with ESP12 and here is my wiring:

Of course ESP part are two pin headers. GPIO0 and GPIO2 are high but for programming I can switch them.

GPIO0GPIO2GPIO15
UART Download Mode010
Flash Startup110
SD-Card Boot001
Boot modes

Grub recovery after Windows update

Yesterday I updated Windows 10, BIOS and some drivers of my Dell and couldn’t run Grub, just Windows Boot Manager. I re-installed Grub from Debian recovery without succes, Windows started directly after reboot.

First fix was copy /boot/efi/EFI/debian/grubx64.efi to /boot/efi/EFI/Microsoft/Boot/bootmgrfw.efi (with backup of original file, of course) and then Grub started. But why BIOS didn’t read /boot/efi/debian/grubx64.efi?

In BIOS (Boot Sequence menu) I had 1. option “debian” and File System List was “HD(1,GPT,D6E…)” what was wrong. I deleted this option and add new one with File System List “PciRoot(0x0)/Pci(0x17,0x0)/Sata(0x2,0x0)/HD(1,GPT,D6E…)” and correct File Name “\EFI\debian\grubx64.efi” and then Grub started work.

Then I reverted back “first fix”, rename back /boot/efi/EFI/Microsoft/Boot/bootmgrfw.efi.backup to /boot/efi/EFI/Microsoft/Boot/bootmgrfw.efi and Grub starts after reboot again.

NetworkManager changes WiFi MAC address

If your WiFi is managed by NetworkManager and it has random MAC address after reboot, you can disable it in /etc/NetworkManager/NetworkManager.conf:

[device]
wifi.scan-rand-mac-address=no

[connection]
# ethernet.cloned-mac-address=permanent
wifi.cloned-mac-address=permanent

[connection] section shouldn’t be necessary nor ethernet line (it is commented).