That 2A82 fault is a Vanos code, and is USUALLY caused by a bad Vanos solenoid. I say usually, because sometimes there is wear on the camshaft bearing ledge that causes a loss of oil supply to the Vanos units that can cause the same fault code / symptoms.
This is one of the reasons I believe in changing the oil on my N54 cars much earlier than BMW recommends. How many miles on your car? How's it been maintained?