Do you have some use case? With UEFI console, it is possible, but you need a custom kernel with some special modification (no details at the moment, just a memory of doing this with help from somebody). Also, with non-zero probability of misunderstanding the question, could you provide some more details?