In the Greek world, it's very doubtful that there was any such thing as books when the Iliad was composed. Still, it's possible to make some limited inferences about non-written precursors to the poem: an old post of mine here goes into some details. I hope you'll feel free to ask follow-up questions, of course.