Gentoo Archives: gentoo-user

From: Richard Fish <bigfish@××××××××××.org>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] dummy console
Date: Tue, 26 Jul 2005 18:56:55
Message-Id: 42E68722.6020806@asmallpond.org
In Reply to: Re: [gentoo-user] dummy console by Jorge Almeida
1 Jorge Almeida wrote:
2
3 > On Mon, 25 Jul 2005, Richard Fish wrote:
4 >
5 >>
6 >>
7 >> Jorge Almeida wrote:
8 >>
9 >>> I upgraded from kernel 2.6.11 (gentoo-sources r4) to 2.6.12 (r6), and
10 >>> lost my framebuffer console. No console whatsoever, actually, but xdm
11 >>> starts OK. Checking .config, I see
12 >>> # Console display driver support
13 >>> #
14 >>> CONFIG_VGA_CONSOLE=y
15 >>> CONFIG_DUMMY_CONSOLE=y
16 >>> CONFIG_FRAMEBUFFER_CONSOLE=m
17 >>
18 >>
19 >>
20 >> Oh, and also, FRAMEBUFFER_CONSOLE should be =y
21 >>
22 > Will try that (only tomorrow night, I can't access my home box until
23 > then).
24 > Still, what about the "dummy" thing? The configurator doesn't give a
25 > chance. Is it OK like this?
26 >
27
28 Seems ok (I have the same thing). Looking at the Kconfig file in
29 drivers/video/console, I find:
30
31
32 config VGA_CONSOLE
33 bool "VGA text console" if EMBEDDED || !X86
34 depends on !ARCH_ACORN && !ARCH_EBSA110 && !4xx && !8xx &&
35 !SPARC32 && !SPARC64 && !M68K && !PARISC
36 default y
37 [...]
38
39 Which means that VGA_CONSOLE is only configurable if you are doing an
40 EMBEDDED or non-x86 configuration. For normal x86 builds, VGA_CONSOLE
41 will always be available, since it defaults to 'y'
42
43 Later on, we find:
44
45 config DUMMY_CONSOLE
46 bool
47 depends on PROM_CONSOLE!=y || VGA_CONSOLE!=y ||
48 SGI_NEWPORT_CONSOLE!=y
49 default y
50
51 There seems to be a bit of a hole in the logic here, becuase
52 PROM_CONSOLE is only configurable if you are on SPARC, and
53 SGI_NEWPORT_CONSOLE is only configurable if you are on an SGI. So on
54 x86, you are guaranteed both that VGA_CONSOLE will be =y, which means
55 the middle conditional fails, but both of the other conditionals are
56 true, so the whole statement is true. So you will get DUMMY_CONSOLE,
57 and you will not have a chance to configure it since there is no title
58 after the "bool".
59
60 -Richard
61
62 --
63 gentoo-user@g.o mailing list

Replies

Subject Author
Re: [gentoo-user] dummy console Jorge Almeida <jalmeida@××××××××××××.pt>