So after doing the head gasket my 4.0 GEMS idles beautifully and actually performs not too badly - up to about 2500rpm, at which point it start spluttering and generally won't rev beyond that. It's the same on petrol or gas. There's a fault code stored for the camshaft sensor according to my cheapy ELM327, but when I look at the appropriate pin with the sillyscope I can see the correct two short two long squarewave pulses, looking just like the picture in the manual.
One of the lambda sensors seems a bit lazy, but it was like that before I started working on the engine.
What have I missed here?