@Rno Here is a Buck + Boost 5v converter that will supply even if the 6v input drops lower.
Remember usually a buck converter needs the input voltage to be at least 1v higher than the output for proper operation. So if your input could sag below 6v you have to be careful if you need a steady 5v output.