BMW has signed an agreement with Toyota Motor to cooperate on lithium-ion battery cells.