lkml.org 
[lkml]   [2004]   [Oct]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectPATCH re CONFIG_DUMMY_CONSOLE on sparc platfoms. My Console was going blank as startup. (fwd)
Opps. Sorry, I did not get to the bottom of the list of things to do to
submit a patch.

---------- Forwarded message ----------
Date: Sun, 17 Oct 2004 22:00:03 +0100 (BST)
From: Mark Fortescue <mark@mtfhpc.demon.co.uk>
To: wli@holomorphy.com, davem@davemloft.net, ecd@skynet.be,
jj@sunsite.ms.mff.cuni.cz, anton@samba.org
Subject: My Console was going blank as startup.
Hi all,

I am currently trying to get a sparc kernel up and running on my sparc1
clone. I have a hacked 2.2.14 kernel that start up but I decided that
seeing as I am upgrading all my linux systems, I would upgrade to the
latest kernel.

The new kernel turned the console off and then ... (power up reset
required at this point).

I looked through the code to try and get some diagnostics out of the
system at an early stage and found that the 'prom console' conswitchp was
never going to be setup for a prom console as CONFIG_DUMMY_CONSOLE is
always set.

The attached patch changes this. It has allowd me to get one step
further (a watchdog timeout followed be a return to the prom monitor) but
I still do not have a working kernel.

Any advice on sparc kernel configuration (sparc1 sun4c + CG3) would be
appreciated as I would like to get a system up and running soon to test
out come cross compilation problems I have been gaving with GCC.

Is the latest kernel still bootable using the SunOS 4.1 boot program ?

Note: I am using binutils-2.15 and gcc-3.4.2 with Dan Kegel's cross
compilation patches applied.

Regards
Mark Fortescue.

##############################################################################
#
# Mark Fortescue (mark@mtfhpc.demon.co.uk) Kernel Updates, 17th Oct 2004.
#
# (from 2.6.8.1 with patch-2.6.9-rc2 and patch-2.6.9-rc2-bk6 applied.)
#
# Prom Console Modification.
#
# I was getting a blank screen so I could not tell what was going on
# when my sparc (32) kernel faild during init.
# CONFIG_DUMMY_CONSOLE is always set so the CONFIG_PROM_CONSOLE was
# never tested. Changing the order make the code make sense and is
# similar to the VGA versions.
#
# I Checked the sparc64 version and have updated this as well.
# Someone needs to check that what I have done is correct as I
# do not have a sparc64 system and my sparc kernel does not boot.
#
##############################################################################
diff -ruNpd linux-2.6.8.1/arch/sparc/kernel/setup.c linux-2.6.8.1-p02/arch/sparc/kernel/setup.c
--- linux-2.6.8.1/arch/sparc/kernel/setup.c Fri Oct 15 20:14:06 2004
+++ linux-2.6.8.1-p02/arch/sparc/kernel/setup.c Sun Oct 17 01:52:16 2004
@@ -304,10 +304,10 @@ void __init setup_arch(char **cmdline_p)
break;
};

-#ifdef CONFIG_DUMMY_CONSOLE
- conswitchp = &dummy_con;
-#elif defined(CONFIG_PROM_CONSOLE)
+#ifdef CONFIG_PROM_CONSOLE
conswitchp = &prom_con;
+#elif defined(CONFIG_DUMMY_CONSOLE)
+ conswitchp = &dummy_con;
#endif
boot_flags_init(*cmdline_p);

diff -ruNpd linux-2.6.8.1/arch/sparc64/kernel/setup.c linux-2.6.8.1-p02/arch/sparc64/kernel/setup.c
--- linux-2.6.8.1/arch/sparc64/kernel/setup.c Fri Oct 15 20:14:07 2004
+++ linux-2.6.8.1-p02/arch/sparc64/kernel/setup.c Sun Oct 17 01:53:35 2004
@@ -479,10 +479,10 @@ void __init setup_arch(char **cmdline_p)

printk("ARCH: SUN4U\n");

-#ifdef CONFIG_DUMMY_CONSOLE
- conswitchp = &dummy_con;
-#elif defined(CONFIG_PROM_CONSOLE)
+#ifdef CONFIG_PROM_CONSOLE
conswitchp = &prom_con;
+#elif defined(CONFIG_DUMMY_CONSOLE)
+ conswitchp = &dummy_con;
#endif

#ifdef CONFIG_SMP
----------------------------------------------------------------------------

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:07    [from the cache]
©2003-2014 Jasper Spaans. Advertise on this site