If you can obtain a contact order(if you and your child other parent have a good relationship, you might get an affidavit from the other parent), and you can meet the rules as well.
You can return to your home country and apply for ACCESS RIGHT TO A CHILD RESIDENT IN THE UK. You past immigration history would not be a problem(hope you haven't got a criminal record). Alternatively, you can submit a DL application based on your article 8 rights but bear in mind that it's a very long route to regularisation.
Seek expert advice from a very good immigration solicitor and you can as well get more information on the
UKBA website.
Good luck.