Madara stated that the older son pocessed the so6p eyes and the younger one got the sages body,but the founder of uchiha was not the older one but the younger one...the descendents of the younger one pocessed the sharingan while the descendants of the older one didn't pocess the rinnengan but their rinnengan could be activated using the sharingan. This explains how nagato got rinnengan.