@freemo @pj Sources for my comment:
https://www.npr.org/2021/06/02/1002107670/historian-uncovers-the-racist-roots-of-the-2nd-amendment\
https://www.nytimes.com/2018/05/24/opinion/second-amendment-slavery-james-madison.html
I take that view from the publications of these historians.
The often stated view of individuals being armed against the government seems to me to be a bit shakier in view of how the fledgling US government responded to things like the Whiskey rebellion. If they sincerely wanted individuals to be able to shoot federal agents, they would not have responded so strongly to those attacks.