risc-v boot process bugfixes