opticharger: fix some ascii implements

Change-Id: Iac1dfebfbebdc8e94c38fb14ef8430fcf91a4aee
build.sh: Support architecture check

Change-Id: If71685c238c8e1690fd50fee9b4151f803305a81