Started by grmpf, March 04, 2018, 06:56:03 pm
Quote from: grmpf on March 04, 2018, 06:56:03 pmhow do I enable the Teres I serial line on the audio jack at Linux runtime?
Quote from: deesix on March 05, 2018, 12:41:12 amSee https://www.olimex.com/forum/index.php?topic=5955.msg24394#msg24394
Quote from: grmpfhow do I enable the Teres I serial line on the audio jack at Linux runtime? [...] I suppose there must be either a GPIO port for the "#DEBUGSELECT" which I can control by the Linux kernel or at least a kernel parameter to switch it.
Quote from: LubOlimexThere is a script in the official image that can be executed via the command line to switch between the [debug/audio] modes. This would allow you to use the audio jack for debugging even after the kernel had started (you lose audio out of course) - it is I believe "debug_switch.sh" or something.
#!/bin/bashUENV_PATH="/boot/uEnv.txt"set -eif [ "$(id -u)" -ne "0" ]; then echo "This script requires root." exit 1ficase $1 in on) sed -i.bak '/debug=/c\debug=on' $UENV_PATH echo "Debug on headphone port enabled. Please reboot !" ;; off) sed -i.bak '/debug=/c\debug=off' $UENV_PATH echo "Debug on headphone port disabled. Please reboot !" ;; *) echo "Unknown option! Usage: ./debug_swirch on|off " esac
Quote from: Brian on March 14, 2018, 01:56:30 pmThere it is: https://github.com/d3v1c3nv11/teres1-debug.git