Now I am writing a device driver for circuit board identification. I need some help from this forum. Now I got circuit id thro my programme. When the board is switch on, the id is compare with exisiting id.If id is correct, bootloader(init/main.c) continue to load the programme. If the id is wrong,it stops the loading and exit from there.

(for example )That id (1234) is compare with user id (1234).If user giving are other id like (234,897,....). The device driver automatically stop loading.

please give any idea for that.
with regards