Middle English knar (14th century, original sense “a stoneâ€),
Online Etymology Dictionary|gnarled
from which also knurl (diminutive suffix) and later gnarl (variant). Before Middle English, origin is Unknown.