...
Select submenus for USB Gadget Support : Device Drivers > USB support > USB support . Select <*> for “Serial gadget console support“.
...
Modify Configure the environment variable bootargs by modifying b_c configurations to as “b_c=console=ttyGS0,115200 earlycon\0“ in boot\uboot\include\configfs\pentagram_common_sp7350.h.
...
If bootargs is not determined in pentagram_common_sp7350.h, configure it as “bootargs = “console=ttyGS0, 115200 earlycon loglevel=8 no_console_suspend “; in sp7350-dev.dts, sp7350-dm.dts, sp7350-ev.dts or sp7350-xink.dts.
...
Execute the make command to build the Linux image.
...