a boy holding onto the wall of an old brick house's raised foundation.
a boy is against the wall of a raised foundation
It is basically impossible to hold onto a wall without being against it.
a boy holding onto the raised brick foundation
Holding onto the wall is a paraphrase of against the wall.