The world’s second-largest automaker and the Silicon Valley startup are trying to address each other’s core weakness.