Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 571136 - Genkernel should enable more serial modules
Summary: Genkernel should enable more serial modules
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: genkernel (show other bugs)
Hardware: Sparc Linux
: Normal normal (vote)
Assignee: Gentoo Genkernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-01-07 01:49 UTC by Alex McWhirter
Modified: 2016-01-23 22:16 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alex McWhirter 2016-01-07 01:49:41 UTC
Sun Fire V215 - No Graphics Card / Framebuffer - Genkernel 4.1.12 sparc64

Last few lines of boot process...

[   63.002062] Console: colour dummy device 80x25
[   63.055381] console [tty0] enabled
[   63.096186] bootconsole [earlyprom0] disabled

Gentoo still boots although we lose the console. I can SSH into the box after a minute or two. The install CD boots fine and copying the kernel config from the CD to /etc/kernels (in order for genkernel to use it) will result in a perfectly fine booting system.


Notice this section from the kernel config from the CD...

#
# Non-8250 serial port support
#
CONFIG_SERIAL_SUNCORE=y
CONFIG_SERIAL_SUNZILOG=y
CONFIG_SERIAL_SUNZILOG_CONSOLE=y
CONFIG_SERIAL_SUNSU=y
CONFIG_SERIAL_SUNSU_CONSOLE=y
CONFIG_SERIAL_SUNSAB=y
CONFIG_SERIAL_SUNSAB_CONSOLE=y
CONFIG_SERIAL_SUNHV=y
CONFIG_SERIAL_CORE=y
CONFIG_SERIAL_CORE_CONSOLE=y

These Sun serial drivers are not set when using genkernel

#
# Non-8250 serial port support
#
# CONFIG_SERIAL_KGDB_NMI is not set
CONFIG_SERIAL_SUNCORE=y
# CONFIG_SERIAL_SUNZILOG is not set
# CONFIG_SERIAL_SUNSU is not set
# CONFIG_SERIAL_SUNSAB is not set
# CONFIG_SERIAL_SUNHV is not set
CONFIG_SERIAL_CORE=y
CONFIG_SERIAL_CORE_CONSOLE=y


I am building now with these options enabled, if that proves to be the issue then these options should probably be added to genkernel, otherwise Sun boxes without a framebuffer (most of them) may experience this issue if their serial console driver is not covered under CONFIG_SERIAL_SUNCORE.
Comment 1 Alex McWhirter 2016-01-07 06:08:15 UTC
I can verify that adding the following...

CONFIG_SERIAL_SUNZILOG=y
CONFIG_SERIAL_SUNZILOG_CONSOLE=y
CONFIG_SERIAL_SUNSU=y
CONFIG_SERIAL_SUNSU_CONSOLE=y
CONFIG_SERIAL_SUNSAB=y
CONFIG_SERIAL_SUNSAB_CONSOLE=y
CONFIG_SERIAL_SUNHV=y

to the genkernel config fixes the boot issue.
Comment 2 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2016-01-23 22:16:03 UTC
the generated kconfig turns out to be unusable on sparc anyway; I have tweaked the Git logic to use the older manual sparc config.

Git commit 7eb2709 and cae778e10e