Why were the people hungry? Didn't the people save food for themselves?
Rashi: It all rotted,except for the grain that Yosef stored.
What was Pharaoh referring to when he told the people to do whatever Yosef asked of them?
Rashi, Bereishis Rabah 90:6: He was referring to Yosef's command to circumcise. 1
Targum Yonasan: He was simply advising them to follow Yosef's instructions, after they came crying to him because the seeds that they planted failed to grow. 2
When the people complained to Pharaoh, he asked them why they had not stored grain, as Yosef had instructed them to, to which they replied that they had but that it had rotted. That was when Pharaoh advised them to obey Yosef's instructions; otherwise, just as Yosef had decreed on the grain that it should rot, he may well decree on them that they should die!
And all that was available was what Yosef had stored away in the giant silos in each town.
Rashi explains that Yosef ordered them to circumcise, Why did he do so?
Gur Aryeh, Oznayim la'Torah: Yosef understood that the famine was a punishment for their unbridled licentiousness. Consequently, circumcising themselves would serve as an atonement for their sins. 1
Pardes Yosef, citing Ya'aros Devash 1:2: Yosef was concerned lest his brothers learn from the Mitzriyim and not circumcise themselves. He made them circumcise to remove shame from his brothers. 2
In order to prevent the Egyptians, who were a highly immoral nation, from molesting the women in his family. (EC) Refer to 41:55:3:1.
Etz Yosef (on Bereishis Rabah 91:3): Through this, many of them converted. Refer to 41:55:151:3.
Rishon l'Tziyon (of the Ohr ha'Chayim, YD 263:5): Yosef married Osnas. It is disgraceful to marry daughters of Arelim.
And Chazal have taught that B'ris Milah lessens the desire. See Oznayim la'Torah above, Pasuk 33. Kli Yakar - it would reduce intimacy, which is improper at a time of famine.
He did not want his brothers to feel that they are strangers, or that the Egyptians should not treat them as such. This is why he moved the Egyptians from one town to another (EC. See Bereishis 47:21.)
Etz Yosef: Surely this was a pretext. There is no difference whether or not a Nochri is circumcised! Rather, they scorned him and his sons for being circumcised. He made them circumcise to stop this.
Rashi explains that Yosef ordered them to circumcise. What is the source for this?
Hadar Zekenim: The Hei in "Himol Yimol" is extra. Yosef said (Bereishis 47:23) "Hei Lachem Zera" - fulfill Hei, which alludes to Milah, and I will give seed to you.
Moshav Zekenim - "Asher Yomar Lachem Ta'asu" - we find that 'Amirah' refers to Milah. When David was in the bathhouse, and was consoled through his Mitzvah of Milah, he sang Shirah about it, "Sas Anochi Al Imrasecha" (Tehilim 119:162).
Bereishis Rabah 90:6: The Mitzrim did not say 'Chiyisanu', rather, 'Hecheyisanu' (Bereishis 43:25) - you gave to us life in this world and the world to come.
רש"י: שהיה יוסף אומר להם שימולו: גור אריה: למה אמר להם למול, והרי לא מכריחים גוי להתגייר?
גור אריה: כשראה יוסף שהתבואה שלהם הרקיבה ושלו התקיימה, ידע יוסף שהטעם הוא כי הם ערלים והמילה היא ברית שתרגומה 'קיימא' ומי שאין לו את הקיום הזה, נרקבה תבואתו. והטעם, שכל מה שנברא עם האדם ראוי להתקיים חוץ מהערלה ולכן תבואתם של הערלים לא התקיימה.
גור אריה: בזכות שיוסף שמר את הברית ולא בא על גויה הוא זכה להיות המשביר לכל הארץ, ולכן מי שאיננו מהול- אינו ראוי להתפרנס מיוסף.