Rapper Meek Mill has been sentenced to two to four years in prison for violating his probation, according to US media reports.

It's after he was jailed in 2008 on drug dealing and gun charges.

He's been on probation ever since and was arrested in March after a fight in an airport and again in August for reckless driving, but both charges were dropped.

However, a judge said both arrests were a breach of his probation.

Prosecutors also provided evidence of failed drugs tests.

Judge Genece E. Brinkley, who has overseen Meek Mill’s case since he was known by his given name, Robert Rahmeek Williams, scolded the rapper in court on Monday for the violations, which stemmed from a 2008 conviction.

“I gave you break after break, and you basically just thumbed your nose at this court,” she said.

The judge also cited the rapper’s repeated scheduling of concerts in areas where she had barred him from performing.

Meanwhile lawyer for the rapper Meek Mill accused the Philadelphia Judge of inappropriate and “vindictive” behavior toward his client after she sentenced the rapper this week to two to four years in prison for probation violations.

In a phone interview Tuesday, a lawyer for Meek Mill, Joe Tacopina, said that Judge Brinkley had behaved inappropriately over the course of the case, saying, for example, that the judge had requested that the rapper include her name in a song and had given him unsolicited advice on who should manage him.

“She’s exhibited enormous bias,” he said.