Ernil means prince in Sindarin.
Perhaps composed of arn "noble" and ending -il.
Possible Old Sindarin form could be *arnillo.
Other words for "prince" are caun and cund