Sleeping question. Help!!

Alicia
My LO is just over 2 weeks old and he absolutely refuses to sleep in his bassinet or crib! He hates laying on his back and won't sleep in that position for more than 30-40 min. It gets to the point at around 4 or 5am I am sleeping sitting up while holding him, it's the only way any of us are getting any sleep. I want him to sleep in his crib though, co sleeping is not what I wanted to do and I know it's creating a bad habit to allow it but otherwise we would not get any sleep. We have swaddled him, both with arms in and arms out, doesn't make a difference. What can I do so he will actually sleep in his crib?? I want to nip this in the bud while it's still early. Any advice would be appreciated.