Best way to distinguish between BBB vs BBAI in C

77 views
Skip to first unread message

John Allwine

unread,
Apr 17, 2020, 12:14:52 PM4/17/20
to BeagleBoard
What's the best way, at runtime, in C, to know whether we're executing on a Beaglebone Black vs Beaglebone AI?

Robert Nelson

unread,
Apr 17, 2020, 12:43:33 PM4/17/20
to Beagle Board, John Allwine
On Fri, Apr 17, 2020 at 11:15 AM John Allwine <jo...@allwinedesigns.com> wrote:
>
> What's the best way, at runtime, in C, to know whether we're executing on a Beaglebone Black vs Beaglebone AI?

Don't try to get too fancy, just read /proc/device-tree/model to
detect what board you have..

Regards,

--
Robert Nelson
https://rcn-ee.com/
Reply all
Reply to author
Forward
0 new messages