On 2008-08-01 09:31 +0200, Evgeni Golov wrote:

> Hi Corsac,
>
> On Fri, 01 Aug 2008 08:31:14 +0200 Yves-Alexis Perez wrote:
>
>> I tried to use the new v86d from the initramfs so I could have a framebuffer
>> in early stages, but it doesn't work.
> [...]
>> Aug  1 08:11:06 hidalgo kernel: agpgart: Detected an Intel 965GM Chipset.
>> Aug  1 08:11:06 hidalgo kernel: agpgart: Detected 7676K stolen memory.
>> Aug  1 08:11:06 hidalgo kernel: agpgart: AGP aperture is 256M @ 0xe0000000
>> Aug  1 08:11:06 hidalgo kernel: uvesafb: Getting VBE info block failed 
>> (eax=0x4f00, err=-3)
>> Aug  1 08:11:06 hidalgo kernel: uvesafb: vbe_init() failed with -22
>> Aug  1 08:11:06 hidalgo kernel: uvesafb: probe of uvesafb.0 failed with 
>> error -22
>
> I have the same behaviour on my Z61 (but not my X31). I have to load
> v86d after the real system is up (and before Xorg, as the radeon driver
> does something which lets uvesafb segfault).

There seems to be some timing problem.  I followed the instructions on [1]
to get uvesafb working on my laptop which has a 1280x800 resolution,
and it worked out perfectly.  When I tried to adapt it to my desktop PC
which has a 1280x1024 resolution and does not need to run 915resolution
before loading the uvesafb module, it failed:

----[/etc/initramfs-tools/scripts/init-top/framebuffer, modified from [1]]
#!/bin/sh

PREREQ=""
prereqs()
{
   echo "$PREREQ"
}
case $1 in
# get pre-requisites
prereqs)
   prereqs
   exit 0
   ;;
esac

echo "fbhack"

for x in $(cat /proc/cmdline); do
    case $x in
      fbhack|video=*)
         echo "creating /dev/mem file"
         mknod /dev/mem c 1 1
         if [ -e /dev/zero ] ; then
            echo "Dev Zero Exists" 
         else
            mknod /dev/zero c 1 5
         fi
         if [ -e /dev/tty1 ] ; then
            echo "tty1 exists"
         else
            mknod /dev/tty1 c 4 1
         fi
         if [ -e /dev/console ] ; then
            echo "console exists"
         else
            mknod /dev/console c 5 1
         fi
         depmod -a
         echo "modprobe uvesafb"
         chk=`cat /proc/modules  | grep uvesafb`
         if [ "x$chk" != "x" ] ; then
            rmmod uvesafb
         fi
         /sbin/modprobe uvesafb mode=1280x1024-16
         echo "Done!"
      ;;
    esac
done
----

This failed with "uvesafb: probe of uvesafb.0 failed with error -22".
However, inserting a "sleep 1" before the
"/sbin/modprobe uvesafb mode=1280x1024-16" line does the trick.

Regards,
        Sven

[1] http://wiki.debian.org/DebianEeePC/HowTo/SplashyWithDmcryptAndStandardGrub



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to