jlink: add detect hw type