I have a NanoPi NEO Air running the FriendlyCore Xenial 3.4.39_20171102 image from eMMC. Last thing I did was "sudo turn-wifi-into-apmode yes" and now I don't get a shell after boot using a USB-TTL cable connected to UART0. It just hangs after "systemd[1]: Started Journal Service". Ctrl-C/Enter doesn't do anything. It's no longer connected to my Wi-Fi so I can't ssh in either.

I could simply reflash eMMC from a microSD card, but there's a commit that I forgot to push prior to switching the Wi-Fi mode and I'd rather not lose it.

Is there any way to recover the terminal on UART0? I can provide a log of the boot messages if it helps. U-boot environment:

Code: Select all

sunxi# printenv
baudrate=115200
boot_fastboot=fastboot
boot_mmc=2
boot_normal=fatload mmc ${boot_mmc}:1 40007800 boot.img;boota 40007800
boot_recovery=sunxi_flash read 40007800 recovery;boota 40007800
bootcmd=run setargs_mmc boot_normal
bootdelay=1
console=ttyS0,115200
fbconsole=tty0
filesize=177038
fsck.repair=yes
init=/sbin/init
loglevel=8
mmc_root=/dev/mmcblk0p2
nand_root=/dev/nandd
selinux=0
setargs_mmc=setenv bootargs console=${console} console=${fbconsole} root=${mmc_root} rootwait storage_type=${storage_type} init=${init} loglevel=${loglevel} partitions=${partitions} selinux=${selinux} fsck.repair=${fsck.repair}
stderr=serial
stdin=serial
stdout=serial
storage_type=2


Thank you.