Initial commit

This commit is contained in:
Your Name
2026-04-23 17:07:55 +08:00
commit b7e39e063b
16725 changed files with 1625565 additions and 0 deletions
@@ -0,0 +1 @@
baud = 115200
@@ -0,0 +1,28 @@
#!/bin/bash
function usage()
{
echo "Usage: $(basename "$0") init|reset"
}
if [ "$#" -ne "1" ] ; then
usage
exit 1;
fi
UART_ROUTING_SYSFS="/sys/bus/platform/drivers/aspeed-uart-routing/1e789098.uart-routing"
case "$1" in
init)
echo -n "uart1" > ${UART_ROUTING_SYSFS}/uart4
echo -n "uart4" > ${UART_ROUTING_SYSFS}/uart1
;;
reset)
echo -n "io1" > ${UART_ROUTING_SYSFS}/uart1
echo -n "io4" > ${UART_ROUTING_SYSFS}/uart4
;;
*)
usage
exit 1;
;;
esac
@@ -0,0 +1,5 @@
[Service]
ExecStartPre=/usr/sbin/uart-routing.sh init
ExecStart=-/usr/sbin/dropbear -r ${DROPBEAR_RSAKEY_DIR}/dropbear_rsa_host_key -c "/usr/bin/obmc-console-client" -i $DROPBEAR_EXTRA_ARGS
ExecStopPost=/usr/sbin/uart-routing.sh reset
StandardInput=socket