Earnhardt is the nephew of team owner Dale Earnhardt Jr. He has competed in 14 career Nationwide Series races, including four this season for Archie St. Hilaire and Go Green Racing. He recorded a season-best 20th-place finish at Phoenix on March 2.
The Nationwide Series race at Richmond is scheduled for April 26.
The son of Kerry Earnhardt also made 10 starts in NASCAR's truck series in 2010 and 2011. He is only the second fourth-generation driver to compete in NASCAR's top touring series, joining the late Adam Petty.
The No. 5 car is usually driven by Kasey Kahne or Brad Sweet.