I have a iphone 3g with 3.1.2 with blackrain. can i get the latest firmware somehow when i have a broken power button?

also the

iphone 3g loops when unplugged but works plugged in?

maybe the latest firmware would fix that?