Carry 2 titanium nail stakes. They make great starter holes for your other pegs in hard packed and/or rocky ground. I always carry them in the Sierra and Rocky Mtns
If you still can't get your regular pegs in, use the titanium nail stake instead.
If those won't go in, use rocks and/or nearby brush.
If those won't do it, you're camping in the wrong spot. Move on!