[aml] fix linux config and patch