most GPS only take AA batteries, so you don't really need to charge them, but during a camping trip, many people now have these solar chargers that charge your batteries for you, just carry two sets of batteries and your all good.
a GPS can be a good addition to a hiking bag, but nothing can really replace the durability and dependability of a solid compass.