[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#408588: Debian on SGI Altix IA-64



On Mon, Jan 29, 2007 at 09:39:08AM -0500, St?phane Larose wrote:
> On Saturday 27 January 2007 23:21, Joey Hess wrote:
> > I'm not 100% sure, but I think that this is happening before udev gets a
> > chance to make it, since it's prior to init starting.
> 
> This is correct. And after init, udev create the /dev/ttySG0 device correctly.
> 
> > Seems like we could fix it by making init-udev-devices skip creation of
> > /dev/tts/0, if running on the altix. What would be a good way to detect
> > that machine?
> 
> I don't know if this is a good way but if the /proc/sgi_sn/ directory exist, 
> it means that the 'sn' driver is loaded which is SGI architecture.

Is /proc mounted at this point? If so, then that's probably the best
detection method available for etch. We could do something like [1]
and not create the serial devices - but that feels like a hack to
me. What if someone put a serial pci card in one of these machines and
wanted to use that as a console?

Is there a way we can support both? What if we create a ttySG0 file in
init-udev-devices and pass console=ttySG0 to the kernel[2]?
If that works, I don't think its a big deal to ask altix users to pass
console=ttySG0 to the installer - we could even put it in the elilo
help menu (which isn't localized).

St?phane: can you test these two patches and report back what works?
If /proc isn't mounted at this point, you might remove the if
statement around [2].

[1]
Index: src/lib/debian-installer/init-udev-devices
===================================================================
--- src/lib/debian-installer/init-udev-devices	(revision 44839)
+++ src/lib/debian-installer/init-udev-devices	(working copy)
@@ -22,7 +22,7 @@
 	makedev 600 /dev/tty"$i" c 4 "$i"
 done
 makedir 755 /dev/tts
-for i in 0 1; do
+[ -d /proc/sgi_sn ] || for i in 0 1; do
 	makedev 600 /dev/tts/"$i" c 4 "$(($i + 64))"
 	makedev 600 /dev/ttyS"$i" c 4 "$(($i + 64))"
 done


[2]
Index: src/lib/debian-installer/init-udev-devices
===================================================================
--- src/lib/debian-installer/init-udev-devices	(revision 44839)
+++ src/lib/debian-installer/init-udev-devices	(working copy)
@@ -26,3 +26,7 @@
 	makedev 600 /dev/tts/"$i" c 4 "$(($i + 64))"
 	makedev 600 /dev/ttyS"$i" c 4 "$(($i + 64))"
 done
+# SGI Altix consoles
+if [ -d /proc/sgi_sn ]; then
+	makedev 600 /dev/ttySG0 c 204 40
+fi

-- 
dann frazier



Reply to: