May I report something here?
I saw in /boot/boot.cmd these lines
if test “${console}” = “display” || test “${console}” = “both”; then setenv consoleargs “console=ttyS2,115200n8”; fi
if test “${console}” = “serial” || test “${console}” = “both”; then setenv consoleargs “${consoleargs} console=tty1”; fi
if display then use ttyS2
if serial then use tty1
Shouldn’t it be the other way?
So now I have one running with kernel 4.4 as a web proxy for ipv6, and one I’m testing with kernel 5.10. This crashes after a few days, and then never comes back up. Note, even with a serial console, there is nothing after this line: “RTL8201F Fast Ethernet stmmac-0:00: attached PHY driver [RTL8201F Fast Ethernet]” Basically, I must take out the SD card and fsck it. My Gentoo boxes do this automatically on unclean reboot, maybe it’s unsafe in theory.
I can only guess that something is running, but only on ttyS1, not ttyS2, and it has to do with fsck.
So I changed /etc/rc.d/rc.S and looked at the part “/sbin/fsck $FORCEFSCK -C -a /”. After this, if RETVAL -ge 4, it proceeds to sulogin. So, for next time, I commented out the PS1 line and the sulogin line, and added
/sbin/fsck -C -y /
It is ext4. (Maybe f2fs would work, but I never tried booting from it.) Now I hope it will work like Gentoo next time, try to auto-fix the filesystem and reboot.