1. tty(printf)
1.1 enable usb gadget serial
USB Gadget Support
<*> USB Gadget precomposed configurations
<X> Serial Gadget (with CDC ACM and CDC OBEX support)
Note, if don't enable serial gadget, uart-console will output:
can't open /dev/ttyGS0: No such file or directory
we can also use usb configfs to config uab-acm, this is a better method.
1.2 enable usb-serial tty
edit /etc/inittab, add following:
# Put a getty on the serial port
::respawn:/sbin/getty -L -n ttyGS0 115200 vt100
1.3 connect usb-serial and login