board doesn't start up when device is connected to serial console port.

  • Dear Support,


    Upon connecting a serial device to the console port (/dev/ttymxc1) the board doesn't start up, i.e. hangs in u-boot (at least that's what we asume). This is true for most of the serial devices to (e.g. serial payment terminal) we want to connect that serial port. Connecting however a PC through a null-modem cable doesn't seem to have this issue.


    It's very hard to diagnose what is really going on, as we obviously cannot monitor the boot process (as the serial device is connected to it). The only thing we can think of is that the Rx pin is held low/high by the serial device, which causes the board to fail to boot.


    Is this a known phenomenon? Any way we can solve this issue?

    Note we do need to make use of the console port as our setup requires the use of all available serial ports.


    Thanks for your support,


    Didier Guillemyn.

  • didier.guillemyn@telenet.be

    Changed the title of the thread from “board doesn't start up when device is connected to serial port.” to “board doesn't start up when device is connected to serial console port.”.
  • Hello Didier,


    could it be, that your device sets the serial port to a state, that causes U-Boot to stop?

    By default, when pressing any button in U-Boot in the first 3 seconds it will enter the shell and wait for input.

    Could you try to connect your device, boot and then switch to the null-modem and press enter, to see if you are in the U-Boot shell?


    Your F&S Support Team

  • Dear support,


    I haven't been able to perform that test yet again, but if I read you well, a potential issue might be that the connected device sends an unsolicited character to the board within the first 3 seconds from booting. In that case it would indeed stop the boot process (the same way you press a key on your console when your pc is connected to the board through a null modem cable).


    Is there a way to disable the interruption of the booting when a character is received on the serial console by the board, or even better, to only stop the boot process if a special character is sent to the board (like Ctrl-S in the NBoot I previously had on a WEC 7 device)?


    Regards,


    Didier Guillemyn.

  • Hello,


    you could either set the bootdelay in U-Boot to -2, but then you wont be able to enter the Uboot console again until you delete the environment!

    Code
    1. setenv bootdelay -2
    2. saveenv


    Or you could add a special character using the CONFIG_AUTOBOOT_STOP_STR

    https://github.com/FSEmbedded/…2d61fb/boot/Kconfig#L1347


    You will have to add this config to your uboot fsimx8mp_defconfig and rebuild Uboot.


    Your F&S Support Team