Can't use "su" to switch to root mode in UART console


I compiled the lichee and android (eng) source code , and it runs well. When i use UART console and want to configure the eth0 by using ifconfig, I need to be root user firstly. But, “su” command doesn’t work.

Any suggestion?

use “sudo -i” ? Great