On 2021-01-16, Marcus MERIGHI <mcmer-open...@tor.at> wrote: > bast...@durel.org (Bastien Durel), 2021.01.14 (Thu) 18:07 (CET): >> Le jeudi 14 janvier 2021 à 16:59 +0100, Marcus MERIGHI a écrit : >> > bast...@durel.org (Bastien Durel), 2021.01.14 (Thu) 16:05 (CET): >> > > Le jeudi 14 janvier 2021 à 15:47 +0100, Marcus MERIGHI a écrit : >> > > > bast...@durel.org (Bastien Durel), 2021.01.14 (Thu) 10:20 (CET): >> > > > > I have a router connected via a serial port to another machine >> > > > > (which >> > > > > is usually powered off), wich fails to boot until I connect and >> > > > > validate the boot> prompt >> > > > > >> > > > > I configured my boot.conf as it follows : >> > > > > >> > > > > # cat >> > > > > /etc/boot.conf >> > > > > set timeout 10 >> > > > > set tty com0 >> > > > >> > > > I usually have >> > > > >> > > > stty com0 115200 >> > > > set tty com0 >> > > > set timeout 2 >> > > > >> > > > and the machines boot automagically... >> > > > >> > > > Marcus >> > > > >> > > Actually, it looks like the automagic boot depends on the status of >> > > the >> > > attached computer : when it runs, the router boots automagically, >> > > and >> > > when it does not, then the boot waits until I press enter (after >> > > booting it, obviously) >> > >> > Ah, I failed on getting what you meant! >> > >> > Emitting wild guesses now... As soon as the boot> prompt receives >> > input, >> > it cancels the timout counter (and doesn't auto-boot). Could it be >> > that >> > your non-auto-booting machine receives something that looks like >> > input >> > to the boot> prompt? Can you test with the serial cable detached? >> > >> >> Done that; that's very strange : the router did not auto-boot, but did >> as soon as I plugged-in the serial cable in (I left minicom running on >> the other box) (or maybe after a few seconds, I did not checked in real >> time) > > so you have ruled out the second box, good! > > Things I'd try... > > - any stray empty lines in /etc/boot.conf? > I'm not saying these would cause any harm, but I'd try > - add the speed setting ("stty com0 115200") > - move "set timeout X" to the end > > good luck! and please report back if you solve this puzzle!
On some machines you may need to loop back the RS232 control lines. I normally use a DE9-RJ45 adapter on serial console machines, in most cases I just connect up RXD TXD GND, but if it's one of those machines then I'll short CD DTR DSR CTS together (pins 1/4/6/8 on the DE9 side).