Adding battery to BBB, battery doesn't charge.

I have added a battery to my BBB, following this

The board works on battery power for about 2.5 hours, but it doesn’t charge the battery. What do I need to do to make it charge? It seems the power the battery gets for charging is les than it needs. I use a BBB and the Olimex battery from the link.

I am using this battery now, and it works fine. I connected it as in the link I posted.

and this connector