Le samedi 16 janvier 2021 à 12:49 +0100, Marcus MERIGHI a écrit : > 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! > > Marcus > Hello,
I set boot.conf to this : # cat -e /etc/boot.conf stty com0 115200$ set tty com0$ set timeout 5$ # But the router does not boot without beeing connected to a powered-up machine :( -- Bastien