PURPOSE: This phase I trial is studying the side effects and best dose of erlotinib when given alone or together with radiation therapy in treating young patients with refractory or relapsed malignant brain tumors or newly diagnosed brain stem glioma.