From nobody Fri Apr  7 09:04:55 2000
From: fpons@mandrakesoft.com
Subject: Re: zip a l'install
To: Chmouel Boudjnah <chmouel@mandrakesoft.com>
Cc: Pascal Rigaux <pixel@linux-mandrake.com>
Date: 07 Apr 2000 17:57:36 +0200

Chmouel Boudjnah <chmouel@mandrakesoft.com> writes:

> fpons@mandrakesoft.com writes:
> 
> > > tu essaye de detect les zip a l'install ?
> > Oui.
> 
> ok, je te previendrais quand ca sera ok, mais il faudra detect les
> zip usb (simple juste un modprobe interface-usb, modprobe usb-storage,
> et ca te donne accs a /dev/sda comme les parrallele) je sais que ca
> va prendre du temp, tu a une ide comment faire (question de si
> detection de l'usb ?) 

Normallement (enfin j'espre !) on doit apres avoir fait ces
modprobe l'acces au /proc/scsi/* pour les nouveaux venus.

Si ca y est cela ne devrait pas poser trop de problme  priori.

Au fait, que j'y pense, j'ai un petit patch pour les kernel de BOOT
question de changement de mode automatiquement pour le fb, il doit
venir en plus de l'ancien (dont je ne trouve plus les sources !) avec
lequel il ne devrait pas poser de conflits, si c'est le cas laisse
tomber et renvoie moi le patch.

----------------------------------------------------------------------
--- source/arch/i386/boot/video.S.orig	Tue Mar 28 14:31:28 2000
+++ source/arch/i386/boot/video.S	Tue Mar 28 16:24:50 2000
@@ -552,7 +552,7 @@
 	int	0x10
 	add	bh,#VIDEO_FIRST_VESA>>8
 	cmp	ax,#0x004f
-	jnz	setbad
+	jnz	check_vesa_retry
 
 	mov	al,(di)		! Check capabilities.
 	and	al,#0x19
@@ -562,20 +562,33 @@
 	mov	al,(di)		! Check capabilities.
 	and	al,#0x99
 	cmp	al,#0x99
-	jnz	_setbad		! to bad, no linear frame buffer
+	jnz	check_vesa_retry ! to bad, no linear frame buffer
 
+	push	bx
 	sub	bh,#VIDEO_FIRST_VESA>>8
 	or	bx,#0x4000	! want use linear frame buffer	
 	mov	ax,#0x4f02	! VESA BIOS mode set call
 	int	0x10
 	cmp	ax,#0x004f	! AL=4f if implemented, AH=0 if OK
-	jnz	_setbad
+	pop	bx
+	jnz	check_vesa_retry
 
+check_vesa_good:
 	movb	[graphic_mode],#1 ! flag graphic mode
 	movb	[do_restore],#0   ! no screen restore
 	stc
 	ret
-	
+
+check_vesa_retry:		! test other VESA mode in same depth
+	mov	ax,bx
+	cmp	ax,#0x120+VIDEO_FIRST_VESA
+	jae	_setbad
+	and	ax,#0xfff0
+	cmp	bx,#0x110+VIDEO_FIRST_VESA
+	adc	bx,#-3
+	cmp	bx,ax
+	jae	check_vesa
+
 _setbad:	br	setbad		! Ugly...
 	
 !
----------------------------------------------------------------------

> 
> -- 
> MandrakeSoft Inc                http://www.mandrakesoft.com
> Pasadena, CA USA                                  --Chmouel

Franois.

