Jump to content
christian w

Programmatically find board revision

Recommended Posts

Hello community

We have been using a good number of tinkerboards for a while, starting with the original R1.x but recently also adding R2.x ones

Now we wonder if we can somehow programmatically figure out (during runtime) what revision we are running our software on.

Is there any way to get at this information? Maybe serial number conventions or some other secret eeprom registers?

Thanks for pointers!

Share this post


Link to post
Share on other sites

hello @christian w

to check the hardware version: 

cat /proc/boardinfo and cat /proc/boardver

if you're using the first generation of tinker board that the command above doesn't work, please use this command instead:

cat /proc/board_info

 

to check the os version:

cat /etc/version

 

Share this post


Link to post
Share on other sites

Thanks a lot for this feedback @tooz

On my board there is no /proc/board* node, unfortunately. I think I have a rev1 board here, will check with a rev2 one asap..

I might have to mention that we have a custom OS running on our boards, that's built according to a Yocto receipt

Can you give me a pointer how these /proc entries are being established maybe?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...