U-BOOT source code analysis and transplantation