Do not allow unrecognized board id

Signed-off-by: Junjie Mao <eternal.n08@gmail.com>