How did he make gardens and orchards?
Koheles Rabah 2:8: This refers to great Mishnayos, like of R. Chiya Rabah, R. Hoshayah Rabah and Bar Kapara.
Rav Sadya Gaon: He increased them.
What is the difference between gardens and orchards?
Ibn Ezra: Gardens have many species of trees. An orchard is all of one species - "Pardes Rimonim" (Shir ha'Shirim 4:13). "Gan" can be masculine ("Gan Na'ul" - ibid. 12) or feminine ("Le'avdah u'Leshamrah" - Bereishis 2:15). The plural can be "Ganim" (Shir ha'Shirim 4:15), or Ganos (like here).
Ri Kara: Gardens are of vegetables (Metzudas Tziyon - and flowers); orchards are of fruit trees.
What is "Etz Kol Pri"?
Rav Sadya Gaon: Every nice tree that bears fruits.
Rashi citing Tanchuma Kedoshim 10: Shlomo knew the Chachmah of sinews of the land - which sinew goes to Kush, and there he planted peppers; which goes to a land where carobs grow, and there he planted carobs. All sinews of all lands go to Tziyon. It is the foundation of the world - "mi'Tziyon mi'Chlal Yofi" (Tehilim 50:2).
Koheles Zuta 2:8: This refers to Talmud Bavli, which is mixed 1 .
Sanhedrin 24a: It is mixed with Mikra, Mishnah and Talmud. (Talmud Bavli was over 1,000 years after Shlomo! We can say that it sprouted from Chachmah that Shlomo planted. Eruvin 21b - he gave 3000 parables for every matter in Torah, and 1005 reasons for every mid'Rabanan law. He taught Simanim, reasons and analogies. He made fences (Rabbinic decrees); before Shlomo, the Torah was like a basket without handles. He made handles for it. Much of the Talmud is based on decrees of Shlomo and later Chachamim. - PF)