Is there any source code example using EGL and ES 2.0 on top of the (any) open source Linux drivers?

I got an ES 2.0 book but it's hard to figure out how to bind EGL to X (if you know what I mean) to be able to run the examples from the book.