AI-Assisted Hardware-in-the-Loop for Embedded Linux