Detect board via command line

I want to use the command line to find out which board was used. In my case I use both the VF61 and the iMX6. Is there a way to do this without adding an extra file to the image?

Exactly what I was looking for, thank you.

Hi @Daniel

You see the hardware type if you look for the cpu informations:

root@colibri-imx6:~# cat /proc/cpuinfo | grep Hardware
Hardware        : Freescale i.MX6 Quad/DualLite (Device Tree)

.

root@colibri-vf:~# cat /proc/cpuinfo | grep Hardware
Hardware        : Freescale Vybrid VF5xx/VF6xx (Device Tree)

Best regards, Diego