Skip to contentSkip to conversation

Working config wanted for 2.6.11, Ultra 5, sparc64

DISCUSSION Brian Bartholomew 3 participants 6 messages Jun 13, 2005

lore
Share & tools
lore
#0 lore raw

I want to use Gentoo 2005.5 on my Ultra 5s (among others). I want to use kernel 2.6.something for better performance on these slow machines, and to be consistent with my Intels. I am attempting to use kernel linux-2.6.11-gentoo-r8, but after a week of trying to construct a working config file, I still can't get console video that doesn't wrap on my monitor, or a working keyboard. I've tried the config file that Gentoo's genkernel produces, the one shipped in arch/sparc64/defconfig, and quite a few that I've constructed by walking every option in menuconfig.

I just can't believe 2.6 is as broken on Ultra 5 as my experience with it has been. Can someone offer me a 2.6.11 config file that's known to work on Ultra 5? Or any Ultra 5 config for 2.6.anything?

Thanks.
Brian

#1 lore raw

From: Brian Bartholomew <[email protected]>
Date: Mon, 13 Jun 2005 15:55:47 -0400

Quoted 3 lines

I just can't believe 2.6 is as broken on Ultra 5 as my experience with it has been. Can someone offer me a 2.6.11 config file that's known to work on Ultra 5? Or any Ultra 5 config for 2.6.anything?

If you enable CONFIG_SERIAL_SUNSU, CONFIG_SERIO, and CONFIG_KEYBOARD_SUNKBD, you should get a working keyboard.

Do not load Sun keymaps at boot time, as only x86 style keymaps work with 2.6.x kernels on all platforms now.

As for the ATI driver, I have problems with it as well, but only on my SunBlade100 system. It doesn't setup my Samsung 19" LCD properly. Perhaps specifying a by-hand resolution and sync rate on the kernel command line will help.

#2 lore raw
In reply to Brian Bartholomew

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Quoted 4 lines · David S. Miller

As for the ATI driver, I have problems with it as well, but only on my SunBlade100 system. It doesn't setup my Samsung 19" LCD properly. Perhaps specifying a by-hand resolution and sync rate on the kernel command line will help.

We've had one Gentoo user report that atyfb doesn't work for him in the most recent 2.6 kernels (blade 1x0). I haven't had a chance to test it on mine, but I believe he is using a CRT.

As for LCDs, in times past to get my Samsung 17" LCD to work, I had to specify both an OBP level resolution and refresh rate as well as in the kernel arguments for the atyfb driver (since atyfb doesn't always seem to respect the OBP defined rates).

The OBP setting that worked in my case was output-device=screen:r1280x1024x60 and the kernel argument was video=atyfb:1024x768@60 (never did quite get a 1280x1024 console going).

Cheers,
- --
Jason Wever
Gentoo/Sparc Co-Team Lead
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFCrfMUdKvgdVioq28RAp9WAJ4sGVYUCFQ7bMUzQ52TylxvzOCrqwCfVgRn fXXEt8ryARVcQHVGfiWO+lg=4jjI
-----END PGP SIGNATURE-----

#3 lore raw
In reply to Brian Bartholomew

From: Jason Wever <[email protected]>
Date: Mon, 13 Jun 2005 14:56:49 -0600 (MDT)

Quoted 8 lines

As for LCDs, in times past to get my Samsung 17" LCD to work, I had to specify both an OBP level resolution and refresh rate as well as in the kernel arguments for the atyfb driver (since atyfb doesn't always seem to respect the OBP defined rates).

The OBP setting that worked in my case was output-device=screen:r1280x1024x60 and the kernel argument was video=atyfb:1024x768@60 (never did quite get a 1280x1024 console going).

Ok. This is very peculiar because there was a long'ish thread where we specifically fixed ATY in the 2.6.x kernel to adhere to the OBP settings precisely.

There are, obviously, some holes still in this area. Ho hum...

Thanks for the data.

#4 lore raw
In reply to Brian Bartholomew

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Quoted 8 lines · David S. Miller

From: Jason Wever <[email protected]>
Date: Mon, 13 Jun 2005 14:56:49 -0600 (MDT)

Quoted 5 lines

As for LCDs, in times past to get my Samsung 17" LCD to work, I had to specify both an OBP level resolution and refresh rate as well as in the kernel arguments for the atyfb driver (since atyfb doesn't always seem to respect the OBP defined rates).

Quoted 7 lines
Quoted 3 lines

The OBP setting that worked in my case was output-device=screen:r1280x1024x60 and the kernel argument was video=atyfb:1024x768@60 (never did quite get a 1280x1024 console going).

Ok. This is very peculiar because there was a long'ish thread where we specifically fixed ATY in the 2.6.x kernel to adhere to the OBP settings precisely.

When abouts in the 2.6 series was this? I used 2.6.6 for a long time on the Blade 100 with this config (due to SCSI lockup issues with a SYMBIOS card in other versions of 2.6) but I haven't tested >Â.6.11 in a non-headless configuration.

Cheers,
- --
Jason Wever
Gentoo/Sparc Co-Team Lead
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFCrgwFdKvgdVioq28RAlx8AKCrTB7V+U2W/peH6OelPv/u57OaLQCggVhy bIm5yz+oimcJ1KMbqLax2rs=l/Zf
-----END PGP SIGNATURE-----

#5 lore raw
In reply to Brian Bartholomew

From: Jason Wever <[email protected]>
Date: Mon, 13 Jun 2005 16:43:15 -0600 (MDT)

Quoted 4 lines

When abouts in the 2.6 series was this? I used 2.6.6 for a long time on the Blade 100 with this config (due to SCSI lockup issues with a SYMBIOS card in other versions of 2.6) but I haven't tested >Â.6.11 in a non-headless configuration.

It was the following change, which went into Linus's bitkeeper tree on Feb. 15, 2005

# This is a BitKeeper generated diff -Nru style patch. #
# ChangeSet
# 2005/02/15 08:23:00-08:00 [email protected]
# [SPARC]: Fix video mode probing in atyfb driver.
#
# On Sparc, if the user does not specify a mode option, we
# should use the PROM probed values in default_var always.
#
# Signed-off-by: David S. Miller <[email protected]>
#

# drivers/video/aty/atyfb_base.c
#   2005/02/15 08:22:09-08:00 [email protected] +9 -1
#   [SPARC]: Fix video mode probing in atyfb driver.
# 
diff -Nru a/drivers/video/aty/atyfb_base.c b/drivers/video/aty/atyfb_base.c
--- a/drivers/video/aty/atyfb_base.c	2005-06-13 15:46:56 -07:00
+++ b/drivers/video/aty/atyfb_base.c	2005-06-13 15:46:56 -07:00
@@ -2511,7 +2511,15 @@
 		}
 	} else
 #endif /* !CONFIG_PPC */
-	if (!fb_find_mode(&var, info, mode, NULL, 0, &defmode, 8))
+	if (
+#if defined(CONFIG_SPARC32) || defined(CONFIG_SPARC64)
+	   /* On Sparc, unless the user gave a specific mode
+	    * specification, use the PROM probed values in
+	    * default_var.
+	    */
+	    !mode ||
+#endif
+	    !fb_find_mode(&var, info, mode, NULL, 0, &defmode, 8))
 		var = default_var;

if (noaccel)