When you say that you got an earful from someone, you mean that the person spoke to you angrily for a long time.
Examples: The teacher gave the students an earful for not doing their homework.* When I came home late last week, my mother gave me an earful. * If you don’t return the Rs. 50 by tomorrow, you will get an earful from me.