Thanks for your question. I will try to help.
I assume by “right of abode” you are referring to “indefinite leave to remain”, which is the right to remain permanently in the UK without any other visas.
Unfortunately, the advice you have received is correct.
If you are going to apply for ILR under your tier 2 visa then no time that you have spent as a dependent of your wife’s tier 1 visa is permitted to count towards the 5 years residence requirement.
So, if you have already spent two years on your tier 2 visa then you will have to wait a further three years on it until you can apply on the basis of 5 a 5 years residence because none of your tier 1 time counts.
However, as you will reach 10 years total time in the UK on work visas before this you can probably apply under the 10 years long residence rules, in which you have to show that you have been in the UK legally for 10 years.
So, if you have been in the UK on work visas for 8 years now then you only need another 2 years to apply under the long residence rules. However, the evidential burden under the long residence rules is quite high because you have to show your 10 years period of residence with documentary evidence, so there’s quite a bit of evidence (eg. Tenancy agreements, tax documents, employment contracts, payslips, banks statements, utility bills etc) to cobble together over a long period of time.
My goal is to provide you with a good service. If you feel you have received anything less, please reply back. Please remember to leave positive feedback using the stars at the top of the page.