Fork from Pivos group AMLogic source