I suggest you decide which framework you want to use (Apache Felix or Eclipse Equinox) and then use tutorials specifically for that framework. While OSGi is an implementation independent API, each implementation will have its own quirks.
For Felix, introductory material is at
http://felix.apache.org/documentation/getting-started.html
Beyond that, tell us what you tried in detail, and what the results were that differed form the tutorial, and we'll try to help.