#2421 closed enhancement (fixed)
net4801 (x86) headless system grub serial console improvement
| Reported by: | anonymous | Owned by: | nico |
|---|---|---|---|
| Priority: | normal | Milestone: | Barrier Breaker 14.07 |
| Component: | base system | Version: | |
| Keywords: | grub | Cc: |
Description
The problem with the default settings for net4801 grub is that it stops and waits for the serial console, if no attached the system doesn't boot until connected (grub is paused). I don't know if it has been done with a special idea behind (if yes - sorry for my report).
The original GRUB menu.lst
serial --unit=0 --speed=38400 --word=8 --parity=no --stop=1 terminal --timeout=10 console serial default 0 timeout 5 title OpenWrt root (hd0,0) kernel /boot/vmlinuz root=/dev/hda2 rootfstype=ext2 init=/etc/preinit noinitrd console=tty0 console=ttyS0,38400n8 reboot=bios boot title OpenWrt (failsafe) root (hd0,0) kernel /boot/vmlinuz failsafe=true root=/dev/hda2 rootfstype=ext2 init=/etc/preinit noinitrd console=tty0 console=ttyS0,38400n8 reboot=bios boot
The version I am using and works perfectly:
default 0
timeout 3
serial --unit=0 --speed=38400 --word=8 --parity=no --stop=1
terminal --dumb --timeout=6 serial
title OpenWrt
root (hd0,0)
kernel /boot/vmlinuz root=/dev/hda2 rootfstype=ext2 init=/etc/preinit noinitrd console=tty0 console=ttyS0,38400n8 reboot=bios
boot
title OpenWrt (failsafe)
root (hd0,0)
kernel /boot/vmlinuz failsafe=true root=/dev/hda2 rootfstype=ext2 init=/etc/preinit noinitrd console=tty0 console=ttyS0,38400n8 reboot=bios
boot
Attachments (0)
Change History (7)
comment:1 Changed 10 years ago by nico
- Owner changed from developers to nico
- Status changed from new to assigned
comment:2 follow-up: ↓ 4 Changed 10 years ago by nico
comment:3 Changed 10 years ago by spawn
I tried --dump, also switching serial with console - the same grub waits for serial console to be attached. net4801 is a headless system - for grub there will never be something else than serial console
P.S. for any other x86 the menu.lst what comes with openwrt is OK, I think this problem is only for headless systems (might be I am wrong - the sorry). I also found http://www.linuxvillage.ca/support/soekris4801.html#grub they use the same these settings I think they had the same problem.
comment:4 in reply to: ↑ 2 Changed 9 years ago by jan
Replying to nico:
Any reason you removed the "console" option from the "terminal" line?
It will prevent grub from interacting with anything else than a serial console.
Have you tried adding the "--dumb" option while keeping both "console serial" or flipping them?
I have exactly the same problem with grub as spawn. If 'console' is present, even with --dumb, grub waits. This is a problem on headless systems, since it's then impossible to reboot without a physical access to the machine. spawn's suggestion works (ie 'terminal --dumb serial').
[I have soekris net5501 (more-less the same hardware as net4801).]
comment:5 Changed 9 years ago by MASHtm <wbreyha@…>
And even if the serial cable is attached grub slows down output like 300 baud. Removing "console" was the only solution that helped speeding up grub to serial line speed.
I've changed it to
terminal serial
only on my net4801.
comment:6 Changed 8 years ago by jow
- Resolution set to fixed
- Status changed from assigned to closed
See r19681
comment:7 Changed 4 years ago by jow
- Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07
Milestone Attitude Adjustment 12.09 deleted

Any reason you removed the "console" option from the "terminal" line?
It will prevent grub from interacting with anything else than a serial console.
Have you tried adding the "--dumb" option while keeping both "console serial" or flipping them?