Copy form Lemaker, modify for bananapi.