Modified BootLoader to load firmware from sd or flash