Skip to contentSkip to conversation

Current CVS on Indigo2 fail

DISCUSSION Florian Lohoff 3 participants 8 messages Dec 13, 2001 – Dec 15, 2001 MIPS

lore
Share & tools
lore
#0 lore raw

HI,
i just tried to boot the current cvs as of a couple minutes old on an Indigo2 - It seemt the stuff crashes before its even able to print something on the screen.

Anyone else ?

Flo

Signature · 2 lines
Florian Lohoff                  [email protected]             +49-5201-669912
Nine nineth on september the 9th              Welcome to the new billenium
#1 lore raw
Quoted 7 lines · Florian Lohoff

HI,
i just tried to boot the current cvs as of a couple minutes old on an Indigo2 - It seemt the stuff crashes before its even able to print something on the screen.

Anyone else ?

Can this be the newport vs. I2 issue? I have (again) sent patches to Ralf to solve this problem...
-- Guido

#2 lore raw
Quoted 9 lines · Guido Guenther
Quoted 6 lines · Florian Lohoff

HI,
i just tried to boot the current cvs as of a couple minutes old on an Indigo2 - It seemt the stuff crashes before its even able to print something on the screen.

Can this be the newport vs. I2 issue? I have (again) sent patches to Ralf to solve this problem...

Definitly ? Mind sending me (the list) the patches too ?

Flo

Signature · 2 lines
Florian Lohoff                  [email protected]             +49-5201-669912
Nine nineth on september the 9th              Welcome to the new billenium
#3 lore raw
Quoted 8 lines · Florian Lohoff
Quoted 7 lines · Guido Guenther
Quoted 6 lines · Florian Lohoff

HI,
i just tried to boot the current cvs as of a couple minutes old on an Indigo2 - It seemt the stuff crashes before its even able to print something on the screen.

Quoted 4 lines
Quoted 2 lines

Can this be the newport vs. I2 issue? I have (again) sent patches to Ralf to solve this problem...

Definitly ? Mind sending me (the list) the patches too ?

an old version is at:
http://honk.physik.uni-konstanz.de/~agx/linux-mips/unsorted-patches/newport-dont-crash-i2-2001-03-25.diff
This currently doesn't apply cleanly due to the arch/mips/kernel/sgi to arch/mips/sgi-ip22 movement, but that's just a one line change. I'll update it when back home.
-- Guido

#7 lore raw
In reply to Florian Lohoff

Hello,

Quoted 5 lines

i just tried to boot the current cvs as of a couple minutes old on an Indigo2 - It seemt the stuff crashes before its even able to print something on the screen.

Anyone else ?

Me - I told you about it in #mipslinux the other day, remember?

Thanks

Ian

#4 lore raw
In reply to Guido Guenther
Quoted 6 lines · Guido Guenther
Quoted 1 line

Definitly ? Mind sending me (the list) the patches too ?

an old version is at:
http://honk.physik.uni-konstanz.de/~agx/linux-mips/unsorted-patches/newport-dont-crash-i2-2001-03-25.diff
This currently doesn't apply cleanly due to the arch/mips/kernel/sgi to arch/mips/sgi-ip22 movement, but that's just a one line change. I'll update it when back home.

It solved the issue ... Here is the patch against current cvs

Index: arch/mips/config.in
===================================================================
RCS file: /cvs/linux/arch/mips/config.in,v
retrieving revision 1.154.2.3

mips/config.in +2 -3
diff -u -r1.154.2.3 config.in
@@ -556,11 +556,10 @@
    comment 'SGI Character devices'
    if [ "$CONFIG_VT" = "y" ]; then
       tristate 'SGI Newport Console support' CONFIG_SGI_NEWPORT_CONSOLE
-      if [ "$CONFIG_SGI_NEWPORT_CONSOLE" != "y" ]; then
-	 define_bool CONFIG_DUMMY_CONSOLE y
-      else
+      if [ "$CONFIG_SGI_NEWPORT_CONSOLE" = "y" ]; then
 	 define_bool CONFIG_FONT_8x16 y
       fi
+      define_bool CONFIG_DUMMY_CONSOLE y
    fi
    endmenu
 fi

Index: arch/mips/sgi-ip22/ip22-setup.c
===================================================================
RCS file: /cvs/linux/arch/mips/sgi-ip22/ip22-setup.c,v retrieving revision 1.1.2.1

mips/sgi-ip22/ip22-setup.c +16 -12
diff -u -r1.1.2.1 ip22-setup.c
@@ -182,19 +182,23 @@
 
 #ifdef CONFIG_VT
 #ifdef CONFIG_SGI_NEWPORT_CONSOLE
-	conswitchp = &newport_con;
+	if( mips_machtype == MACH_SGI_INDY ) {
+		conswitchp = &newport_con;
 
-	screen_info = (struct screen_info) {
-		0, 0,		/* orig-x, orig-y */
-		0,		/* unused */
-		0,		/* orig_video_page */
-		0,		/* orig_video_mode */
-		160,		/* orig_video_cols */
-		0, 0, 0,	/* unused, ega_bx, unused */
-		64,		/* orig_video_lines */
-		0,		/* orig_video_isVGA */
-		16		/* orig_video_points */
-	};
+		screen_info = (struct screen_info) {
+			0, 0,		/* orig-x, orig-y */
+			0,		/* unused */
+			0,		/* orig_video_page */
+			0,		/* orig_video_mode */
+			160,		/* orig_video_cols */
+			0, 0, 0,	/* unused, ega_bx, unused */
+			64,		/* orig_video_lines */
+			0,		/* orig_video_isVGA */
+			16		/* orig_video_points */
+		};
+	} else {
+		conswitchp = &dummy_con;
+	}
 #else
 	conswitchp = &dummy_con;
 #endif

Flo

Signature · 2 lines
Florian Lohoff                  [email protected]             +49-5201-669912
Nine nineth on september the 9th              Welcome to the new billenium
#5 lore raw
Quoted 9 lines · Florian Lohoff
Quoted 6 lines · Guido Guenther
Quoted 1 line

Definitly ? Mind sending me (the list) the patches too ?

an old version is at:
http://honk.physik.uni-konstanz.de/~agx/linux-mips/unsorted-patches/newport-dont-crash-i2-2001-03-25.diff
This currently doesn't apply cleanly due to the arch/mips/kernel/sgi to arch/mips/sgi-ip22 movement, but that's just a one line change. I'll update it when back home.

It solved the issue ... Here is the patch against current cvs

Which is exactly what I sent to Ralf just yesterday evening ;-)
-- Guido

Quoted 71 lines

Index: arch/mips/config.in
===================================================================
RCS file: /cvs/linux/arch/mips/config.in,v
retrieving revision 1.154.2.3
diff -u -r1.154.2.3 config.in

mips/config.in +2 -3
@@ -556,11 +556,10 @@
    comment 'SGI Character devices'
    if [ "$CONFIG_VT" = "y" ]; then
       tristate 'SGI Newport Console support' CONFIG_SGI_NEWPORT_CONSOLE
-      if [ "$CONFIG_SGI_NEWPORT_CONSOLE" != "y" ]; then
-	 define_bool CONFIG_DUMMY_CONSOLE y
-      else
+      if [ "$CONFIG_SGI_NEWPORT_CONSOLE" = "y" ]; then
 	 define_bool CONFIG_FONT_8x16 y
       fi
+      define_bool CONFIG_DUMMY_CONSOLE y
    fi
    endmenu
 fi

Index: arch/mips/sgi-ip22/ip22-setup.c
===================================================================
RCS file: /cvs/linux/arch/mips/sgi-ip22/ip22-setup.c,v retrieving revision 1.1.2.1
diff -u -r1.1.2.1 ip22-setup.c

mips/sgi-ip22/ip22-setup.c +16 -12
@@ -182,19 +182,23 @@
 
 #ifdef CONFIG_VT
 #ifdef CONFIG_SGI_NEWPORT_CONSOLE
-	conswitchp = &newport_con;
+	if( mips_machtype == MACH_SGI_INDY ) {
+		conswitchp = &newport_con;
 
-	screen_info = (struct screen_info) {
-		0, 0,		/* orig-x, orig-y */
-		0,		/* unused */
-		0,		/* orig_video_page */
-		0,		/* orig_video_mode */
-		160,		/* orig_video_cols */
-		0, 0, 0,	/* unused, ega_bx, unused */
-		64,		/* orig_video_lines */
-		0,		/* orig_video_isVGA */
-		16		/* orig_video_points */
-	};
+		screen_info = (struct screen_info) {
+			0, 0,		/* orig-x, orig-y */
+			0,		/* unused */
+			0,		/* orig_video_page */
+			0,		/* orig_video_mode */
+			160,		/* orig_video_cols */
+			0, 0, 0,	/* unused, ega_bx, unused */
+			64,		/* orig_video_lines */
+			0,		/* orig_video_isVGA */
+			16		/* orig_video_points */
+		};
+	} else {
+		conswitchp = &dummy_con;
+	}
 #else
 	conswitchp = &dummy_con;
 #endif

Flo

Signature · 2 lines
Florian Lohoff                  [email protected]             +49-5201-669912
Nine nineth on september the 9th              Welcome to the new billenium
Signature · 2 lines
This kind of limitation can lead administrators to do irrational things,
      like install Windows. Clearly a fix was required. (lwn.net)
#6 lore raw
In reply to Florian Lohoff

Hello,

Quoted 1 line

It solved the issue ... Here is the patch against current cvs

I sync'd with cvs and tried to apply this patch and it failed.

Without the patch, the kernel doesn't work on my I2:

Command Monitor. Type "exit" to return to the menu.

Quoted 1 line
Quoted 1 line

bootp():/vmlinux

Setting $netaddr to 192.168.0.13 (from server )
Obtaining /vmlinux from server
|

[hangs here]

Bye for Now,

Ian