Re: [debian-sparc] showstoppers when moving from kernel 2.4 to 2.6
Bonjour, Hodie VII Kal. Dec. MMIV est, Joerg Friedrich scripsit: > I have two issues after switching from kernel 2.4.x to 2.6.x > > First: Keymap. this issue is known, > http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=269405 > For 2.6 a workaround is not to load any keymap. This the good solution only if you have a qwerty keyboard. For a national keyboard, you have to load the classic i386 one (for example, with my french keyboardn I load a customized version of fr-latin1). > /etc/init.d/afbinit is looking for "Elite 3D" which is no longer > reported by 2.6. ok can be worked around, but 2.6 does no longer report > the devicename (fb0 in this example). > > Does anyone know a possibility to get the devicename? What about using a sysfs mounted /sys? (/sys/class/graphics) -- Erwann ABALEA <[EMAIL PROTECTED]> - If you find yourself struggling with loneliness, you're not alone. And yet you are alone. So very alone. Demotivators, 2002 calendar
Re: showstoppers when moving from kernel 2.4 to 2.6
Hendrik Sattler schrieb am Freitag, 26. November 2004 um 16:14:43 +0100: > Am Freitag, 26. November 2004 08:44 schrieb Joerg Friedrich: > > [EMAIL PROTECTED]:~# grep -i "Elite 3D" /proc/fb > > [EMAIL PROTECTED]:~# egrep -i "Elite 3D" /proc/fb > > [EMAIL PROTECTED]:~# cat /proc/fb | egrep -i "Elite 3D" > > [EMAIL PROTECTED]:~# cat -s /proc/fb | egrep -i "Elite 3D" > > 0 Elite 3D > > [EMAIL PROTECTED]:~# cat -s /proc/fb | grep -i "Elite 3D" > > 0 Elite 3D > > > > I need to use "cat -s" otherwise it doesn't work > > Off-topic here but strange. What does the whole file with "cat /proc/fb" look > like"? > BTW: /proc/fb exists on linux-2.4.x, too, so why not dump dmsg and only use > that file? Because under 2.4 /proc/fb is populated _after_ afbinit is run -- Jörg Friedrich There are only 10 types of people: Those who understand binary and those who don't.
Re: showstoppers when moving from kernel 2.4 to 2.6
Am Freitag, 26. November 2004 08:44 schrieb Joerg Friedrich: > [EMAIL PROTECTED]:~# grep -i "Elite 3D" /proc/fb > [EMAIL PROTECTED]:~# egrep -i "Elite 3D" /proc/fb > [EMAIL PROTECTED]:~# cat /proc/fb | egrep -i "Elite 3D" > [EMAIL PROTECTED]:~# cat -s /proc/fb | egrep -i "Elite 3D" > 0 Elite 3D > [EMAIL PROTECTED]:~# cat -s /proc/fb | grep -i "Elite 3D" > 0 Elite 3D > > I need to use "cat -s" otherwise it doesn't work Off-topic here but strange. What does the whole file with "cat /proc/fb" look like"? BTW: /proc/fb exists on linux-2.4.x, too, so why not dump dmsg and only use that file? HS -- Mein GPG-Key ist auf meiner Homepage verfügbar: http://www.hendrik-sattler.de oder über pgp.net PingoS - Linux-User helfen Schulen: http://www.pingos.org
Re: showstoppers when moving from kernel 2.4 to 2.6
Hendrik Sattler schrieb am Donnerstag, 25. November 2004 um 23:48:29 +0100: > This one? Yes. > +# Building the devicelist: > +# Kernel 2.4 running' > +if [ `dmesg | grep -c "Elite 3D"` -ne 0 ]; then > + afb_devs=`/bin/dmesg | /bin/egrep -i "Elite 3D" | /bin/sed 's/\:.*//'` > +fi > + > +# Kernel 2.6: > +if [ `/bin/dmesg | /bin/grep -c "ffb: AFB"` -gt 0 ]; then > + afb_devs=`/bin/cat -s /proc/fb | /bin/egrep -i "Elite 3D" | /bin/sed > 's/\ .*//' | /bin/sed 's/^/fb/'` > +fi > > First thing is useless use of cat and why egrep instead of grep? With egrep, your right. I don't know why, but see this: [EMAIL PROTECTED]:~# grep -i "Elite 3D" /proc/fb [EMAIL PROTECTED]:~# egrep -i "Elite 3D" /proc/fb [EMAIL PROTECTED]:~# cat /proc/fb | egrep -i "Elite 3D" [EMAIL PROTECTED]:~# cat -s /proc/fb | egrep -i "Elite 3D" 0 Elite 3D [EMAIL PROTECTED]:~# cat -s /proc/fb | grep -i "Elite 3D" 0 Elite 3D I need to use "cat -s" otherwise it doesn't work > You can also remove one sed (untested): > afb_devs=fb`/bin/grep -i "Elite 3D" /proc/fb | /bin/sed 's/\ .*//'` no I cannot because there might be more than one line in /proc/fb ie: --- 0 Elite 3D 1 Elite 3D --- and both devices should be inizialized. but yes I could do it with only one sed: /bin/sed 's/\([0-9]\)\ .*/fb\1/' > Those are two programs less to execute... > And maybe put case for 2.4.* and 2.6.* so not both have to be executed. This > way, you can get rid of both if statements. -- Jörg Friedrich There are only 10 types of people: Those who understand binary and those who don't.
Re: showstoppers when moving from kernel 2.4 to 2.6
Am Donnerstag, 25. November 2004 22:27 schrieb Joerg Friedrich: > After searching a while I found a solution. gentoo had a patch, so it > should work now. the patch should appear on > http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=250619 soon :-) This one? +# Building the devicelist: +# Kernel 2.4 running' +if [ `dmesg | grep -c "Elite 3D"` -ne 0 ]; then + afb_devs=`/bin/dmesg | /bin/egrep -i "Elite 3D" | /bin/sed 's/\:.*//'` +fi + +# Kernel 2.6: +if [ `/bin/dmesg | /bin/grep -c "ffb: AFB"` -gt 0 ]; then + afb_devs=`/bin/cat -s /proc/fb | /bin/egrep -i "Elite 3D" | /bin/sed 's/\ .*//' | /bin/sed 's/^/fb/'` +fi First thing is useless use of cat and why egrep instead of grep? You can also remove one sed (untested): afb_devs=fb`/bin/grep -i "Elite 3D" /proc/fb | /bin/sed 's/\ .*//'` Those are two programs less to execute... And maybe put case for 2.4.* and 2.6.* so not both have to be executed. This way, you can get rid of both if statements. HS -- Mein GPG-Key ist auf meiner Homepage verfügbar: http://www.hendrik-sattler.de oder über pgp.net PingoS - Linux-User helfen Schulen: http://www.pingos.org
Re: showstoppers when moving from kernel 2.4 to 2.6
On Thu, Nov 25, 2004 at 11:17:00PM +0100, Joerg Friedrich wrote: > Admar Schoonen schrieb am Donnerstag, 25. November 2004 um 23:04:45 +0100: > > On Thu, Nov 25, 2004 at 10:27:41PM +0100, Joerg Friedrich wrote: > > > One last question: anone using devfs or udev? > > > How are the framebuffer-devices named? > > > > $ ls -l /dev/fb* > > crw-rw 1 root video 29, 0 Nov 25 08:42 /dev/fb0 > > crw-rw 1 root video 29, 1 Nov 25 08:42 /dev/fb1 > > $ > > > > At least, that's on my system with two mach64 based cards. > > do you use devfs or udev? I thought this is something wich subdirs in > /dev? Oh, I'm sorry I forgot to mention. I'm using udev. Iirc, all I did was 'apt-get install udev'. I still have a /.dev/ laying around which contains my old pre-udev /dev/, but I guess I can throw it away now. Admar
Re: showstoppers when moving from kernel 2.4 to 2.6
Admar Schoonen schrieb am Donnerstag, 25. November 2004 um 23:04:45 +0100: > On Thu, Nov 25, 2004 at 10:27:41PM +0100, Joerg Friedrich wrote: > > One last question: anone using devfs or udev? > > How are the framebuffer-devices named? > > $ ls -l /dev/fb* > crw-rw 1 root video 29, 0 Nov 25 08:42 /dev/fb0 > crw-rw 1 root video 29, 1 Nov 25 08:42 /dev/fb1 > $ > > At least, that's on my system with two mach64 based cards. do you use devfs or udev? I thought this is something wich subdirs in /dev? -- Jörg Friedrich There are only 10 types of people: Those who understand binary and those who don't.
Re: showstoppers when moving from kernel 2.4 to 2.6
On Thu, Nov 25, 2004 at 10:27:41PM +0100, Joerg Friedrich wrote: > One last question: anone using devfs or udev? > How are the framebuffer-devices named? $ ls -l /dev/fb* crw-rw 1 root video 29, 0 Nov 25 08:42 /dev/fb0 crw-rw 1 root video 29, 1 Nov 25 08:42 /dev/fb1 $ At least, that's on my system with two mach64 based cards. Admar
Re: showstoppers when moving from kernel 2.4 to 2.6
Joerg Friedrich schrieb am Donnerstag, 25. November 2004 um 21:37:21 +0100: > Hi, > > I have two issues after switching from kernel 2.4.x to 2.6.x > > Second: Problem with afbinit, which is needed to use AFB-based graphics > adaptor. /etc/init.d/afbinit tries to parse the output of dmesg to > determin which devices needs to be initialized. > 2.4: has this output: > fb0: Elite 3D at 01fc type 39 DAC 0 > > 2.6: > ffb: AFB at 01fc type 39 DAC 10 > > /etc/init.d/afbinit is looking for "Elite 3D" which is no longer > reported by 2.6. ok can be worked around, but 2.6 does no longer report > the devicename (fb0 in this example). > > Does anyone know a possibility to get the devicename? After searching a while I found a solution. gentoo had a patch, so it should work now. the patch should appear on http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=250619 soon :-) One last question: anone using devfs or udev? How are the framebuffer-devices named? -- Jörg Friedrich There are only 10 types of people: Those who understand binary and those who don't.
showstoppers when moving from kernel 2.4 to 2.6
Hi, I have two issues after switching from kernel 2.4.x to 2.6.x First: Keymap. this issue is known, http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=269405 For 2.6 a workaround is not to load any keymap. 2.4 I was not able to test due to because I ran into a problem with the silo.conf (http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=282965) but I will test tomorrow. Second: Problem with afbinit, which is needed to use AFB-based graphics adaptor. /etc/init.d/afbinit tries to parse the output of dmesg to determin which devices needs to be initialized. 2.4: has this output: fb0: Elite 3D at 01fc type 39 DAC 0 2.6: ffb: AFB at 01fc type 39 DAC 10 /etc/init.d/afbinit is looking for "Elite 3D" which is no longer reported by 2.6. ok can be worked around, but 2.6 does no longer report the devicename (fb0 in this example). Does anyone know a possibility to get the devicename? -- Jörg Friedrich There are only 10 types of people: Those who understand binary and those who don't.