bugGNU GRUB - Bugs: bug #24366, serial console not recognized at...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #24366: serial console not recognized at first boot

Submitted by:  Caeies <Caeies>
Submitted on:  Wed 24 Sep 2008 12:41:25 PM UTC  
 
Category: TerminalSeverity: Major
Priority: 5 - NormalItem Group: None
Status: InvalidPrivacy: Public
Assigned to: NoneOriginator Name: 
Open/Closed: ClosedRelease: svn / 23092008
Release: Bazaar - trunkReproducibility: Every Time
Planned Release: None

Mon 21 Dec 2009 02:52:03 PM UTC, comment #3:

Not appears on latest trunk

Vladimir Serbinenko <phcoder>
Project Administrator
Wed 24 Sep 2008 03:30:10 PM UTC, comment #2:

So,

As discussed on IRC, the problem is between, the chair and the keyboard.

The error is in the serial command :

serial --unit=0 --speed=57600 --word=o --parity=no --stop=1

with the -word=o which is take from my previous grub install (grub-legacy) o is not supported, it's 8 (rtfm, caught caught).

The question I'm asking myself, is why the returned code is 0 and not an error code ? Reading the latest source code it should have returned an error message "bad word length", but that doesn't seems to be the case ...

Thanks for your time, and sorry for disturbance.

Regards,

Caeies.

Caeies <Caeies>
Wed 24 Sep 2008 01:09:22 PM UTC, comment #1:

Hmm,

Quickly reading the sources, why the console is not a module too ? will be easier to switch to serial only ...

With the actual code, how grub could start if there's no console at all ?

Outputing the welcome message on the console is IMHO "dangerous" if no console exists no ?

Regards,

Caeies.

Caeies <Caeies>
Wed 24 Sep 2008 12:41:25 PM UTC, original submission:

Hi all,

I just try the latest svn sources, with debian patches included (I have build the package from the debian directory of the experimental deb).

Here's my setup :

a soekris net4801 : that's means an emulated console, and a serial line at 57600 bauds.

my grub.cfg :

#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by /usr/sbin/update-grub using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
insmod serial
set default=0
set timeout=5
serial --unit=0 --speed=57600 --word=o --parity=no --stop=1
terminal serial
terminal ####### <==== for testing purpose
read ####### <==== for testing purpose
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=cyan/blue
set menu_color_highlight=white/blue
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_hurd ###
### END /etc/grub.d/10_hurd ###

### BEGIN /etc/grub.d/10_linux ###
menuentry "Debian GNU/Linux, linux 2.6.26-1-486" {
set root=(hd0,1)
linux /boot/vmlinuz-2.6.26-1-486 root=/dev/hda1 ro novga nofb console=ttyS0,57600n8,nomonitor acpi=off
initrd /boot/initrd.img-2.6.26-1-486
}
menuentry "Debian GNU/Linux, linux 2.6.26-1-486 (single-user mode)" {
set root=(hd0,1)
linux /boot/vmlinuz-2.6.26-1-486 root=/dev/hda1 ro single novga nofb console=ttyS0,57600n8,nomonitor acpi=off
initrd /boot/initrd.img-2.6.26-1-486
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file is an example on how to add custom entries
### END /etc/grub.d/40_custom ###

As you can see, I have added two lines to be able to check for serial console use ... the "terminal" (just before the read command) say : available: console, current: console. Not a word about the previous serial command nor terminal...

Then, I'm asking for the command line and put the following lines :
lsmod -> serial is loaded
terminal ouput only console
terminal serial doesn't work
doing a
serial -s 57600
then a terminal serial
is working ...

any idea ?

Regards,

Caeies.

Caeies <Caeies>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by phcoder (Posted a comment)
  • -unavailable- added by Caeies (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 21 Dec 2009 02:52:03 PM UTCphcoderStatusNone=>Invalid
      Open/ClosedOpen=>Closed
      ReleaseNone=>Bazaar - trunk

    Back to the top


    Powered by Savane 3.1-cleanup1