It's a very common (and safe) procedure. There's a good write up at https://wiki.galliumos.org/Firmware