Arduino uno bootloader issue and flashing of sketches

If you can write a hex file you can flash the bootloader, no doubt about that. But maybe the fuses are wrong for the bootloader and it isn't executing it.