tests: update running hints in usage for raspberry pi 3

This commit is contained in:
Vanya A. Sergeev
2025-11-02 00:00:24 -05:00
parent d777aba55b
commit ce83fdce9b
5 changed files with 9 additions and 8 deletions

View File

@@ -169,7 +169,7 @@ int main(int argc, char *argv[]) {
fprintf(stderr, "[3/4] Loopback test: Expects 24XX32 EEPROM (or similar) at address 0x51.\n");
fprintf(stderr, "[4/4] Interactive test: I2C bus should be observed with an oscilloscope or logic analyzer.\n\n");
fprintf(stderr, "Hint: for Raspberry Pi 3, enable I2C1 with:\n");
fprintf(stderr, " $ echo \"dtparam=i2c_arm=on\" | sudo tee -a /boot/config.txt\n");
fprintf(stderr, " $ echo \"dtparam=i2c_arm=on\" | sudo tee -a /boot/firmware/config.txt\n");
fprintf(stderr, " $ sudo reboot\n");
fprintf(stderr, "Use pins I2C1 SDA (header pin 2) and I2C1 SCL (header pin 3),\n");
fprintf(stderr, "and run this test with:\n");

View File

@@ -189,10 +189,10 @@ int main(int argc, char *argv[]) {
fprintf(stderr, "[2/4] Open/close test: LED should be real.\n");
fprintf(stderr, "[3/4] Loopback test: No test.\n");
fprintf(stderr, "[4/4] Interactive test: LED should be observed.\n\n");
fprintf(stderr, "Hint: for Raspberry Pi 3, disable triggers for led1:\n");
fprintf(stderr, " $ echo none > /sys/class/leds/led1/trigger\n");
fprintf(stderr, "Observe led1 (red power LED), and run this test:\n");
fprintf(stderr, " %s led1\n\n", argv[0]);
fprintf(stderr, "Hint: for Raspberry Pi 3, disable triggers for PWR:\n");
fprintf(stderr, " $ echo none > /sys/class/leds/PWR/trigger\n");
fprintf(stderr, "Observe PWR (red power LED), and run this test:\n");
fprintf(stderr, " %s PWR\n\n", argv[0]);
exit(1);
}

View File

@@ -265,7 +265,7 @@ int main(int argc, char *argv[]) {
fprintf(stderr, "[3/4] Loopback test: No test.\n");
fprintf(stderr, "[4/4] Interactive test: PWM channel should be observed with an oscilloscope or logic analyzer.\n\n");
fprintf(stderr, "Hint: for Raspberry Pi 3, enable PWM0 and PWM1 with:\n");
fprintf(stderr, " $ echo \"dtoverlay=pwm-2chan,pin=18,func=2,pin2=13,func2=4\" | sudo tee -a /boot/config.txt\n");
fprintf(stderr, " $ echo \"dtoverlay=pwm-2chan,pin=18,func=2,pin2=13,func2=4\" | sudo tee -a /boot/firmware/config.txt\n");
fprintf(stderr, " $ sudo reboot\n");
fprintf(stderr, "Monitor GPIO 18 (header pin 12), and run this test with:\n");
fprintf(stderr, " %s 0 0\n", argv[0]);

View File

@@ -262,7 +262,8 @@ int main(int argc, char *argv[]) {
fprintf(stderr, "[3/4] Loopback test: Serial TX and RX should be connected with a wire.\n");
fprintf(stderr, "[4/4] Interactive test: Serial TX should be observed with an oscilloscope or logic analyzer.\n\n");
fprintf(stderr, "Hint: for Raspberry Pi 3, enable UART0 with:\n");
fprintf(stderr, " $ echo \"dtoverlay=pi3-disable-bt\" | sudo tee -a /boot/config.txt\n");
fprintf(stderr, " $ echo \"enable_uart=1\" | sudo tee -a /boot/firmware/config.txt\n");
fprintf(stderr, " $ echo \"dtoverlay=pi3-disable-bt\" | sudo tee -a /boot/firmware/config.txt\n");
fprintf(stderr, " $ sudo systemctl disable hciuart\n");
fprintf(stderr, " $ sudo reboot\n");
fprintf(stderr, " (Note that this will disable Bluetooth)\n");

View File

@@ -236,7 +236,7 @@ int main(int argc, char *argv[]) {
fprintf(stderr, "[3/4] Loopback test: SPI MISO and MOSI should be connected with a wire.\n");
fprintf(stderr, "[4/4] Interactive test: SPI MOSI, CLK, CS should be observed with an oscilloscope or logic analyzer.\n\n");
fprintf(stderr, "Hint: for Raspberry Pi 3, enable SPI0 with:\n");
fprintf(stderr, " $ echo \"dtparam=spi=on\" | sudo tee -a /boot/config.txt\n");
fprintf(stderr, " $ echo \"dtparam=spi=on\" | sudo tee -a /boot/firmware/config.txt\n");
fprintf(stderr, " $ sudo reboot\n");
fprintf(stderr, "Use pins SPI0 MOSI (header pin 19), SPI0 MISO (header pin 21), SPI0 SCLK (header pin 23),\n");
fprintf(stderr, "connect a loopback between MOSI and MISO, and run this test with:\n");