Performing tayammum with a mud wall is valid. The recommended precaution is that if there is dry earth or soil, one should not perform tayammum with damp earth or soil.