add GPL headers
Integrated LPC and FWH code from https://github.com/hliu115288339/bbflash
also propably lots of my debug stuff, didnt check :p