Why would a 1990 Chevy pickup with a 5.7ltr barely idle at start up and blow black gunk out of the tailpipes?

It may need a new throttle positioning sensor, or the temp control plug it is located on the intake manifold towards the front, also may be timing, the gunk may be oil so your valve seals in the heads might be bad, good luck.