Hi ,
You have 2 options here.
1st option,
Make a list of your achievement for the last 2 years , from a Minute one to the best , relate it on how it has contributed to the company's benefits / Progress
with this list speak with your HR Manager and then you both meet your boss and try to resolve the issue , In most of the cases the issues get resolved immediately.
In some cases the issue may not be resolved and the HR may support your boss due to their personnel relations, In that case you boss is bound to harass you further , so you need to go with option 2
Option 2:
Make a minutes of Meeting you had with the HR and Your boss, attach it along with your achievements and send a mail to your top management keeping the HR and your boss in CC.
The Bottom Line is clear , If your boss treat you well , you are a part of his team. If he is acting smart and trying to ruin your growth , then make sure even that fellow meets the same fate. You may not be benefited by this but atleast he will learn a lesson .
All the best
Prasad